CfnLifecyclePolicyMixinProps
- class aws_cdk.mixins_preview.aws_imagebuilder.mixins.CfnLifecyclePolicyMixinProps(*, description=None, execution_role=None, name=None, policy_details=None, resource_selection=None, resource_type=None, status=None, tags=None)
Bases:
objectProperties for CfnLifecyclePolicyPropsMixin.
- Parameters:
description (
Optional[str]) – Optional description for the lifecycle policy.execution_role (
Optional[str]) – The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.name (
Optional[str]) – The name of the lifecycle policy to create.policy_details (
Union[IResolvable,Sequence[Union[IResolvable,PolicyDetailProperty,Dict[str,Any]]],None]) – Configuration details for the lifecycle policy rules.resource_selection (
Union[IResolvable,ResourceSelectionProperty,Dict[str,Any],None]) – Selection criteria for the resources that the lifecycle policy applies to.resource_type (
Optional[str]) – The type of Image Builder resource that the lifecycle policy applies to.status (
Optional[str]) – Indicates whether the lifecycle policy resource is enabled.tags (
Optional[Mapping[str,str]]) – Tags to apply to the lifecycle policy resource.
- 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.mixins_preview.aws_imagebuilder import mixins as imagebuilder_mixins cfn_lifecycle_policy_mixin_props = imagebuilder_mixins.CfnLifecyclePolicyMixinProps( description="description", execution_role="executionRole", name="name", policy_details=[imagebuilder_mixins.CfnLifecyclePolicyPropsMixin.PolicyDetailProperty( action=imagebuilder_mixins.CfnLifecyclePolicyPropsMixin.ActionProperty( include_resources=imagebuilder_mixins.CfnLifecyclePolicyPropsMixin.IncludeResourcesProperty( amis=False, containers=False, snapshots=False ), type="type" ), exclusion_rules=imagebuilder_mixins.CfnLifecyclePolicyPropsMixin.ExclusionRulesProperty( amis=imagebuilder_mixins.CfnLifecyclePolicyPropsMixin.AmiExclusionRulesProperty( is_public=False, last_launched=imagebuilder_mixins.CfnLifecyclePolicyPropsMixin.LastLaunchedProperty( unit="unit", value=123 ), regions=["regions"], shared_accounts=["sharedAccounts"], tag_map={ "tag_map_key": "tagMap" } ), tag_map={ "tag_map_key": "tagMap" } ), filter=imagebuilder_mixins.CfnLifecyclePolicyPropsMixin.FilterProperty( retain_at_least=123, type="type", unit="unit", value=123 ) )], resource_selection=imagebuilder_mixins.CfnLifecyclePolicyPropsMixin.ResourceSelectionProperty( recipes=[imagebuilder_mixins.CfnLifecyclePolicyPropsMixin.RecipeSelectionProperty( name="name", semantic_version="semanticVersion" )], tag_map={ "tag_map_key": "tagMap" } ), resource_type="resourceType", status="status", tags={ "tags_key": "tags" } )
Attributes
- description
Optional description for the lifecycle policy.
- execution_role
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.
- name
The name of the lifecycle policy to create.
- policy_details
Configuration details for the lifecycle policy rules.
- resource_selection
Selection criteria for the resources that the lifecycle policy applies to.
- resource_type
The type of Image Builder resource that the lifecycle policy applies to.
- status
Indicates whether the lifecycle policy resource is enabled.
- tags
Tags to apply to the lifecycle policy resource.