interface ServicePrincipalOpts
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IAM.ServicePrincipalOpts |
Java | software.amazon.awscdk.services.iam.ServicePrincipalOpts |
Python | aws_cdk.aws_iam.ServicePrincipalOpts |
TypeScript (source) | @aws-cdk/aws-iam » ServicePrincipalOpts |
Options for a service principal.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iam from '@aws-cdk/aws-iam';
declare const conditions: any;
const servicePrincipalOpts: iam.ServicePrincipalOpts = {
conditions: {
conditionsKey: conditions,
},
region: 'region',
};
Properties
Name | Type | Description |
---|---|---|
conditions? | { [string]: any } | Additional conditions to add to the Service Principal. |
region? | string | The region in which the service is operating. |
conditions?
Type:
{ [string]: any }
(optional, default: No conditions)
Additional conditions to add to the Service Principal.
region?
⚠️ Deprecated: You should not need to set this. The stack's region is always correct.
Type:
string
(optional, default: the current Stack's region.)
The region in which the service is operating.