ServicePrincipalOpts

class aws_cdk.aws_iam.ServicePrincipalOpts(*, conditions=None, region=None)

Bases: object

Options for a service principal.

Parameters:
  • conditions (Optional[Mapping[str, Any]]) – Additional conditions to add to the Service Principal. Default: - No conditions

  • region (Optional[str]) – (deprecated) The region in which the service is operating. Default: - the current Stack’s region.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_iam as iam

# conditions: Any

service_principal_opts = iam.ServicePrincipalOpts(
    conditions={
        "conditions_key": conditions
    },
    region="region"
)

Attributes

conditions

Additional conditions to add to the Service Principal.

Default:
  • No conditions

region

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

Default:
  • the current Stack’s region.

Deprecated:

You should not need to set this. The stack’s region is always correct.

Stability:

deprecated