Table of Contents

Class ServicePrincipalOpts

Namespace
Amazon.CDK.AWS.IAM
Assembly
Amazon.CDK.AWS.IAM.dll

Options for a service principal.

public class ServicePrincipalOpts : IServicePrincipalOpts
Inheritance
ServicePrincipalOpts
Implements
Inherited Members

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"
            };

Remarks

ExampleMetadata: fixture=_generated

Constructors

ServicePrincipalOpts()

public ServicePrincipalOpts()

Properties

Conditions

Additional conditions to add to the Service Principal.

public IDictionary<string, object>? Conditions { get; set; }

Property Value

IDictionary<string, object>

Remarks

Default: - No conditions

Region

(deprecated) The region in which the service is operating.

[Obsolete("You should not need to set this. The stack's region is always correct.")]
public string? Region { get; set; }

Property Value

string

Remarks

Default: - the current Stack's region.

Stability: Deprecated