CfnSupportPermitPropsMixin
- class aws_cdk.cfn_property_mixins.aws_supportauthz.CfnSupportPermitPropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::SupportAuthZ::SupportPermit.
Represents a support permit that grants AWS support time-bounded access to one or more resources for a set of actions.
- See:
- CloudformationResource:
AWS::SupportAuthZ::SupportPermit
- 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_supportauthz as supportauthz import aws_cdk as cdk # all_actions: Any # all_resources_in_region: Any # merge_strategy: cdk.IMergeStrategy cfn_support_permit_props_mixin = supportauthz.CfnSupportPermitPropsMixin(supportauthz.CfnSupportPermitMixinProps( description="description", name="name", permit=supportauthz.CfnSupportPermitPropsMixin.PermitProperty( actions=supportauthz.CfnSupportPermitPropsMixin.ActionSetProperty( actions=["actions"], all_actions=all_actions ), conditions=[supportauthz.CfnSupportPermitPropsMixin.ConditionProperty( allow_after="allowAfter", allow_before="allowBefore" )], resources=supportauthz.CfnSupportPermitPropsMixin.ResourceSetProperty( all_resources_in_region=all_resources_in_region, resources=["resources"] ) ), signing_key_info=supportauthz.CfnSupportPermitPropsMixin.SigningKeyInfoProperty( kms_key="kmsKey" ), support_case_display_id="supportCaseDisplayId", tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::SupportAuthZ::SupportPermit.- Parameters:
props (
Union[CfnSupportPermitMixinProps,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 = ['description', 'name', 'permit', 'signingKeyInfo', 'supportCaseDisplayId', 'tags']
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.
ActionSetProperty
- class CfnSupportPermitPropsMixin.ActionSetProperty(*, actions=None, all_actions=None)
Bases:
objectThe set of actions a support permit grants.
Exactly one of AllActions or Actions must be provided.
- Parameters:
actions (
Optional[Sequence[str]]) – An explicit list of actions to grant.all_actions (
Any) – Grants all actions.
- 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_supportauthz as supportauthz # all_actions: Any action_set_property = supportauthz.CfnSupportPermitPropsMixin.ActionSetProperty( actions=["actions"], all_actions=all_actions )
Attributes
- actions
An explicit list of actions to grant.
ConditionProperty
- class CfnSupportPermitPropsMixin.ConditionProperty(*, allow_after=None, allow_before=None)
Bases:
objectA time-bound condition controlling when the permit is active.
Exactly one of AllowAfter or AllowBefore must be provided.
- Parameters:
allow_after (
Optional[str]) – The permit is active only after this time.allow_before (
Optional[str]) – The permit is active only before this time.
- 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_supportauthz as supportauthz condition_property = supportauthz.CfnSupportPermitPropsMixin.ConditionProperty( allow_after="allowAfter", allow_before="allowBefore" )
Attributes
- allow_after
The permit is active only after this time.
- allow_before
The permit is active only before this time.
PermitProperty
- class CfnSupportPermitPropsMixin.PermitProperty(*, actions=None, conditions=None, resources=None)
Bases:
objectThe grant definition: which actions on which resources, optionally constrained by time conditions.
- Parameters:
actions (
Union[IResolvable,ActionSetProperty,Dict[str,Any],None]) – The set of actions a support permit grants. Exactly one of AllActions or Actions must be provided.conditions (
Union[IResolvable,Sequence[Union[IResolvable,ConditionProperty,Dict[str,Any]]],None]) – Optional time-bound conditions (at most two).resources (
Union[IResolvable,ResourceSetProperty,Dict[str,Any],None]) – The set of resources a support permit applies to. Exactly one of AllResourcesInRegion or Resources must be provided.
- 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_supportauthz as supportauthz # all_actions: Any # all_resources_in_region: Any permit_property = supportauthz.CfnSupportPermitPropsMixin.PermitProperty( actions=supportauthz.CfnSupportPermitPropsMixin.ActionSetProperty( actions=["actions"], all_actions=all_actions ), conditions=[supportauthz.CfnSupportPermitPropsMixin.ConditionProperty( allow_after="allowAfter", allow_before="allowBefore" )], resources=supportauthz.CfnSupportPermitPropsMixin.ResourceSetProperty( all_resources_in_region=all_resources_in_region, resources=["resources"] ) )
Attributes
- actions
The set of actions a support permit grants.
Exactly one of AllActions or Actions must be provided.
- conditions
Optional time-bound conditions (at most two).
- resources
The set of resources a support permit applies to.
Exactly one of AllResourcesInRegion or Resources must be provided.
ResourceSetProperty
- class CfnSupportPermitPropsMixin.ResourceSetProperty(*, all_resources_in_region=None, resources=None)
Bases:
objectThe set of resources a support permit applies to.
Exactly one of AllResourcesInRegion or Resources must be provided.
- Parameters:
all_resources_in_region (
Any) – Applies to all resources in the region.resources (
Optional[Sequence[str]]) – An explicit list of resource ARNs.
- 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_supportauthz as supportauthz # all_resources_in_region: Any resource_set_property = supportauthz.CfnSupportPermitPropsMixin.ResourceSetProperty( all_resources_in_region=all_resources_in_region, resources=["resources"] )
Attributes
- all_resources_in_region
Applies to all resources in the region.
- resources
An explicit list of resource ARNs.
SigningKeyInfoProperty
- class CfnSupportPermitPropsMixin.SigningKeyInfoProperty(*, kms_key=None)
Bases:
objectThe signing key used by the permit.
Exactly one key type must be provided.
- Parameters:
kms_key (
Optional[str]) – The ARN of the KMS key used to sign permit grants.- 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_supportauthz as supportauthz signing_key_info_property = supportauthz.CfnSupportPermitPropsMixin.SigningKeyInfoProperty( kms_key="kmsKey" )
Attributes
- kms_key
The ARN of the KMS key used to sign permit grants.