CfnResourceSharePropsMixin
- class aws_cdk.mixins_preview.aws_ram.mixins.CfnResourceSharePropsMixin(props, *, strategy=None)
Bases:
MixinCreates a resource share.
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals. .. epigraph:
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
- CloudformationResource:
AWS::RAM::ResourceShare
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_ram import mixins as ram_mixins cfn_resource_share_props_mixin = ram_mixins.CfnResourceSharePropsMixin(ram_mixins.CfnResourceShareMixinProps( allow_external_principals=False, name="name", permission_arns=["permissionArns"], principals=["principals"], resource_arns=["resourceArns"], sources=["sources"], tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::RAM::ResourceShare.- Parameters:
props (
Union[CfnResourceShareMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['allowExternalPrincipals', 'name', 'permissionArns', 'principals', 'resourceArns', 'sources', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) 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.- Stability:
experimental