CfnEntitlementPropsMixin
- class aws_cdk.cfn_property_mixins.aws_accountaccess.CfnEntitlementPropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::AccountAccess::Entitlement specifying an entitlement for account access.
- See:
- CloudformationResource:
AWS::AccountAccess::Entitlement
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_accountaccess as accountaccess import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_entitlement_props_mixin = accountaccess.CfnEntitlementPropsMixin(accountaccess.CfnEntitlementMixinProps( application_arn="applicationArn", entitlement=accountaccess.CfnEntitlementPropsMixin.EntitlementProperty( principal_role=accountaccess.CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty( account="account", principal=accountaccess.CfnEntitlementPropsMixin.PrincipalProperty( identity_center=accountaccess.CfnEntitlementPropsMixin.IdentityCenterPrincipalProperty( group_id="groupId", user_id="userId" ) ), role_arn="roleArn" ) ) ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::AccountAccess::Entitlement.- Parameters:
props (
Union[CfnEntitlementMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['applicationArn', 'entitlement']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
EntitlementProperty
- class CfnEntitlementPropsMixin.EntitlementProperty(*, principal_role=None)
Bases:
object- Parameters:
principal_role (
Union[IResolvable,PrincipalRoleEntitlementProperty,Dict[str,Any],None])- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_accountaccess as accountaccess entitlement_property = accountaccess.CfnEntitlementPropsMixin.EntitlementProperty( principal_role=accountaccess.CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty( account="account", principal=accountaccess.CfnEntitlementPropsMixin.PrincipalProperty( identity_center=accountaccess.CfnEntitlementPropsMixin.IdentityCenterPrincipalProperty( group_id="groupId", user_id="userId" ) ), role_arn="roleArn" ) )
Attributes
IdentityCenterPrincipalProperty
- class CfnEntitlementPropsMixin.IdentityCenterPrincipalProperty(*, group_id=None, user_id=None)
Bases:
object- Parameters:
group_id (
Optional[str]) – The ID of the group.user_id (
Optional[str]) – The ID of the user.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_accountaccess as accountaccess identity_center_principal_property = accountaccess.CfnEntitlementPropsMixin.IdentityCenterPrincipalProperty( group_id="groupId", user_id="userId" )
Attributes
- group_id
The ID of the group.
PrincipalProperty
- class CfnEntitlementPropsMixin.PrincipalProperty(*, identity_center=None)
Bases:
object- Parameters:
identity_center (
Union[IResolvable,IdentityCenterPrincipalProperty,Dict[str,Any],None])- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_accountaccess as accountaccess principal_property = accountaccess.CfnEntitlementPropsMixin.PrincipalProperty( identity_center=accountaccess.CfnEntitlementPropsMixin.IdentityCenterPrincipalProperty( group_id="groupId", user_id="userId" ) )
Attributes
PrincipalRoleEntitlementProperty
- class CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty(*, account=None, principal=None, role_arn=None)
Bases:
object- Parameters:
account (
Optional[str]) – The AWS account ID.principal (
Union[IResolvable,PrincipalProperty,Dict[str,Any],None])role_arn (
Optional[str]) – The ARN of the IAM role.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_accountaccess as accountaccess principal_role_entitlement_property = accountaccess.CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty( account="account", principal=accountaccess.CfnEntitlementPropsMixin.PrincipalProperty( identity_center=accountaccess.CfnEntitlementPropsMixin.IdentityCenterPrincipalProperty( group_id="groupId", user_id="userId" ) ), role_arn="roleArn" )
Attributes
- account
The AWS account ID.
- principal
-
- Type:
see