Class ServicePrincipalOpts
Options for a service principal.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ServicePrincipalOpts : Object, IServicePrincipalOpts
Syntax (vb)
Public Class ServicePrincipalOpts
Inherits Object
Implements IServicePrincipalOpts
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;
var conditions;
var servicePrincipalOpts = new ServicePrincipalOpts {
Conditions = new Dictionary<string, object> {
{ "conditionsKey", conditions }
},
Region = "region"
};
Synopsis
Constructors
ServicePrincipalOpts() |
Properties
Conditions | Additional conditions to add to the Service Principal. |
Region | The region in which you want to reference the service. |
Constructors
ServicePrincipalOpts()
public ServicePrincipalOpts()
Properties
Conditions
Additional conditions to add to the Service Principal.
public IDictionary<string, object> Conditions { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Remarks
Default: - No conditions
Region
The region in which you want to reference the service.
public string Region { get; set; }
Property Value
System.String
Remarks
This is only necessary for cross-region references to opt-in regions. In those cases, the region name needs to be included to reference the correct service principal. In all other cases, the global service principal name is sufficient.
This field behaves differently depending on whether the @aws-cdk/aws-iam:standardizedServicePrincipals
flag is set or not:
Default: - the resolving Stack's region.