CfnLifecyclePolicy

class aws_cdk.aws_dlm.CfnLifecyclePolicy(scope, id, *, description=None, execution_role_arn=None, policy_details=None, state=None, tags=None)

Bases: aws_cdk.core.CfnResource

A CloudFormation AWS::DLM::LifecyclePolicy.

CloudformationResource

AWS::DLM::LifecyclePolicy

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html

Create a new AWS::DLM::LifecyclePolicy.

Parameters
  • scope (Construct) –

    • scope in which this resource is defined.

  • id (str) –

    • scoped id of the resource.

  • description (Optional[str]) – AWS::DLM::LifecyclePolicy.Description.

  • execution_role_arn (Optional[str]) – AWS::DLM::LifecyclePolicy.ExecutionRoleArn.

  • policy_details (Union[PolicyDetailsProperty, IResolvable, None]) – AWS::DLM::LifecyclePolicy.PolicyDetails.

  • state (Optional[str]) – AWS::DLM::LifecyclePolicy.State.

  • tags (Optional[Sequence[CfnTag]]) – AWS::DLM::LifecyclePolicy.Tags.

Methods

add_deletion_override(path)

Syntactic sugar for addOverride(path, undefined).

Parameters

path (str) – The path of the value to delete.

Return type

None

add_depends_on(target)

Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

Parameters

target (CfnResource) –

Return type

None

add_metadata(key, value)

Add a value to the CloudFormation Resource Metadata.

Parameters
  • key (str) –

  • value (Any) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

None

add_override(path, value)

Adds an override to the synthesized CloudFormation resource.

To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example:

# Example automatically generated. See https://github.com/aws/jsii/issues/826
cfn_resource.add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"])
cfn_resource.add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE")

would add the overrides Example:

"Properties": {
   "GlobalSecondaryIndexes": [
     {
       "Projection": {
         "NonKeyAttributes": [ "myattribute" ]
         ...
       }
       ...
     },
     {
       "ProjectionType": "INCLUDE"
       ...
     },
   ]
   ...
}
Parameters
  • path (str) –

    • The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.

  • value (Any) –

    • The value. Could be primitive or complex.

Return type

None

add_property_deletion_override(property_path)

Adds an override that deletes the value of a property from the resource definition.

Parameters

property_path (str) – The path to the property.

Return type

None

add_property_override(property_path, value)

Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

Parameters
  • property_path (str) – The path of the property.

  • value (Any) – The value.

Return type

None

apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)

Sets the deletion policy of the resource based on the removal policy specified.

Parameters
  • policy (Optional[RemovalPolicy]) –

  • apply_to_update_replace_policy (Optional[bool]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: true

  • default (Optional[RemovalPolicy]) – The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resoure, please consult that specific resource’s documentation.

Return type

None

get_att(attribute_name)

Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

Parameters

attribute_name (str) – The name of the attribute.

Return type

Reference

get_metadata(key)

Retrieve a value value from the CloudFormation Resource Metadata.

Parameters

key (str) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

Any

inspect(inspector)

(experimental) Examines the CloudFormation resource and discloses attributes.

Parameters

inspector (TreeInspector) –

  • tree inspector to collect and process attributes.

Stability

experimental

Return type

None

override_logical_id(new_logical_id)

Overrides the auto-generated logical ID with a specific ID.

Parameters

new_logical_id (str) – The new logical ID to use for this stack element.

Return type

None

to_string()

Returns a string representation of this construct.

Return type

str

Returns

a string representation of this resource

Attributes

CFN_RESOURCE_TYPE_NAME = 'AWS::DLM::LifecyclePolicy'
attr_arn

Arn

Type

cloudformationAttribute

Return type

str

cfn_options

Options for this resource, such as condition, update policy etc.

Return type

ICfnResourceOptions

cfn_resource_type

AWS resource type.

Return type

str

creation_stack

return:

the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered.

Return type

List[str]

description

AWS::DLM::LifecyclePolicy.Description.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-description

Return type

Optional[str]

execution_role_arn

AWS::DLM::LifecyclePolicy.ExecutionRoleArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-executionrolearn

Return type

Optional[str]

logical_id

The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

Return type

str

Returns

the logical ID as a stringified token. This value will only get resolved during synthesis.

node

The construct tree node associated with this construct.

Return type

ConstructNode

policy_details

AWS::DLM::LifecyclePolicy.PolicyDetails.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-policydetails

Return type

Union[PolicyDetailsProperty, IResolvable, None]

ref

Return a string that will be resolved to a CloudFormation { Ref } for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

Return type

str

stack

The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

Return type

Stack

state

AWS::DLM::LifecyclePolicy.State.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-state

Return type

Optional[str]

tags

AWS::DLM::LifecyclePolicy.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-tags

Return type

TagManager

Static Methods

classmethod is_cfn_element(x)

Returns true if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

Parameters

x (Any) –

Return type

bool

Returns

The construct as a stack element or undefined if it is not a stack element.

classmethod is_cfn_resource(construct)

Check whether the given construct is a CfnResource.

Parameters

construct (IConstruct) –

Return type

bool

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool

ActionProperty

class CfnLifecyclePolicy.ActionProperty(*, cross_region_copy, name)

Bases: object

Parameters
Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-action.html

Attributes

cross_region_copy

CfnLifecyclePolicy.ActionProperty.CrossRegionCopy.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-action.html#cfn-dlm-lifecyclepolicy-action-crossregioncopy

Return type

Union[IResolvable, List[Union[IResolvable, CrossRegionCopyActionProperty]]]

name

CfnLifecyclePolicy.ActionProperty.Name.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-action.html#cfn-dlm-lifecyclepolicy-action-name

Return type

str

CreateRuleProperty

class CfnLifecyclePolicy.CreateRuleProperty(*, cron_expression=None, interval=None, interval_unit=None, location=None, times=None)

Bases: object

Parameters
  • cron_expression (Optional[str]) – CfnLifecyclePolicy.CreateRuleProperty.CronExpression.

  • interval (Union[int, float, None]) – CfnLifecyclePolicy.CreateRuleProperty.Interval.

  • interval_unit (Optional[str]) – CfnLifecyclePolicy.CreateRuleProperty.IntervalUnit.

  • location (Optional[str]) – CfnLifecyclePolicy.CreateRuleProperty.Location.

  • times (Optional[Sequence[str]]) – CfnLifecyclePolicy.CreateRuleProperty.Times.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html

Attributes

cron_expression

CfnLifecyclePolicy.CreateRuleProperty.CronExpression.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-cronexpression

Return type

Optional[str]

interval

CfnLifecyclePolicy.CreateRuleProperty.Interval.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-interval

Return type

Union[int, float, None]

interval_unit

CfnLifecyclePolicy.CreateRuleProperty.IntervalUnit.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-intervalunit

Return type

Optional[str]

location

CfnLifecyclePolicy.CreateRuleProperty.Location.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-location

Return type

Optional[str]

times

CfnLifecyclePolicy.CreateRuleProperty.Times.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-times

Return type

Optional[List[str]]

CrossRegionCopyActionProperty

class CfnLifecyclePolicy.CrossRegionCopyActionProperty(*, encryption_configuration, target, retain_rule=None)

Bases: object

Parameters
Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyaction.html

Attributes

encryption_configuration

CfnLifecyclePolicy.CrossRegionCopyActionProperty.EncryptionConfiguration.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyaction.html#cfn-dlm-lifecyclepolicy-crossregioncopyaction-encryptionconfiguration

Return type

Union[IResolvable, EncryptionConfigurationProperty]

retain_rule

CfnLifecyclePolicy.CrossRegionCopyActionProperty.RetainRule.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyaction.html#cfn-dlm-lifecyclepolicy-crossregioncopyaction-retainrule

Return type

Union[IResolvable, CrossRegionCopyRetainRuleProperty, None]

target

CfnLifecyclePolicy.CrossRegionCopyActionProperty.Target.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyaction.html#cfn-dlm-lifecyclepolicy-crossregioncopyaction-target

Return type

str

CrossRegionCopyRetainRuleProperty

class CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty(*, interval, interval_unit)

Bases: object

Parameters
  • interval (Union[int, float]) – CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Interval.

  • interval_unit (str) – CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.IntervalUnit.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html

Attributes

interval

CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Interval.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-interval

Return type

Union[int, float]

interval_unit

CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.IntervalUnit.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-intervalunit

Return type

str

CrossRegionCopyRuleProperty

class CfnLifecyclePolicy.CrossRegionCopyRuleProperty(*, encrypted, cmk_arn=None, copy_tags=None, retain_rule=None, target=None, target_region=None)

Bases: object

Parameters
  • encrypted (Union[bool, IResolvable]) – CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Encrypted.

  • cmk_arn (Optional[str]) – CfnLifecyclePolicy.CrossRegionCopyRuleProperty.CmkArn.

  • copy_tags (Union[bool, IResolvable, None]) – CfnLifecyclePolicy.CrossRegionCopyRuleProperty.CopyTags.

  • retain_rule (Union[IResolvable, CrossRegionCopyRetainRuleProperty, None]) – CfnLifecyclePolicy.CrossRegionCopyRuleProperty.RetainRule.

  • target (Optional[str]) – CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Target.

  • target_region (Optional[str]) – CfnLifecyclePolicy.CrossRegionCopyRuleProperty.TargetRegion.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html

Attributes

cmk_arn

CfnLifecyclePolicy.CrossRegionCopyRuleProperty.CmkArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-cmkarn

Return type

Optional[str]

copy_tags

CfnLifecyclePolicy.CrossRegionCopyRuleProperty.CopyTags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-copytags

Return type

Union[bool, IResolvable, None]

encrypted

CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Encrypted.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-encrypted

Return type

Union[bool, IResolvable]

retain_rule

CfnLifecyclePolicy.CrossRegionCopyRuleProperty.RetainRule.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-retainrule

Return type

Union[IResolvable, CrossRegionCopyRetainRuleProperty, None]

target

CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Target.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-target

Return type

Optional[str]

target_region

CfnLifecyclePolicy.CrossRegionCopyRuleProperty.TargetRegion.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-targetregion

Return type

Optional[str]

EncryptionConfigurationProperty

class CfnLifecyclePolicy.EncryptionConfigurationProperty(*, encrypted, cmk_arn=None)

Bases: object

Parameters
  • encrypted (Union[bool, IResolvable]) – CfnLifecyclePolicy.EncryptionConfigurationProperty.Encrypted.

  • cmk_arn (Optional[str]) – CfnLifecyclePolicy.EncryptionConfigurationProperty.CmkArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-encryptionconfiguration.html

Attributes

cmk_arn

CfnLifecyclePolicy.EncryptionConfigurationProperty.CmkArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-encryptionconfiguration.html#cfn-dlm-lifecyclepolicy-encryptionconfiguration-cmkarn

Return type

Optional[str]

encrypted

CfnLifecyclePolicy.EncryptionConfigurationProperty.Encrypted.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-encryptionconfiguration.html#cfn-dlm-lifecyclepolicy-encryptionconfiguration-encrypted

Return type

Union[bool, IResolvable]

EventParametersProperty

class CfnLifecyclePolicy.EventParametersProperty(*, event_type, snapshot_owner, description_regex=None)

Bases: object

Parameters
  • event_type (str) – CfnLifecyclePolicy.EventParametersProperty.EventType.

  • snapshot_owner (Sequence[str]) – CfnLifecyclePolicy.EventParametersProperty.SnapshotOwner.

  • description_regex (Optional[str]) – CfnLifecyclePolicy.EventParametersProperty.DescriptionRegex.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventparameters.html

Attributes

description_regex

CfnLifecyclePolicy.EventParametersProperty.DescriptionRegex.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventparameters.html#cfn-dlm-lifecyclepolicy-eventparameters-descriptionregex

Return type

Optional[str]

event_type

CfnLifecyclePolicy.EventParametersProperty.EventType.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventparameters.html#cfn-dlm-lifecyclepolicy-eventparameters-eventtype

Return type

str

snapshot_owner

CfnLifecyclePolicy.EventParametersProperty.SnapshotOwner.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventparameters.html#cfn-dlm-lifecyclepolicy-eventparameters-snapshotowner

Return type

List[str]

EventSourceProperty

class CfnLifecyclePolicy.EventSourceProperty(*, type, parameters=None)

Bases: object

Parameters
  • type (str) – CfnLifecyclePolicy.EventSourceProperty.Type.

  • parameters (Union[IResolvable, EventParametersProperty, None]) – CfnLifecyclePolicy.EventSourceProperty.Parameters.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventsource.html

Attributes

parameters

CfnLifecyclePolicy.EventSourceProperty.Parameters.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventsource.html#cfn-dlm-lifecyclepolicy-eventsource-parameters

Return type

Union[IResolvable, EventParametersProperty, None]

type

CfnLifecyclePolicy.EventSourceProperty.Type.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventsource.html#cfn-dlm-lifecyclepolicy-eventsource-type

Return type

str

FastRestoreRuleProperty

class CfnLifecyclePolicy.FastRestoreRuleProperty(*, availability_zones=None, count=None, interval=None, interval_unit=None)

Bases: object

Parameters
  • availability_zones (Optional[Sequence[str]]) – CfnLifecyclePolicy.FastRestoreRuleProperty.AvailabilityZones.

  • count (Union[int, float, None]) – CfnLifecyclePolicy.FastRestoreRuleProperty.Count.

  • interval (Union[int, float, None]) – CfnLifecyclePolicy.FastRestoreRuleProperty.Interval.

  • interval_unit (Optional[str]) – CfnLifecyclePolicy.FastRestoreRuleProperty.IntervalUnit.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html

Attributes

availability_zones

CfnLifecyclePolicy.FastRestoreRuleProperty.AvailabilityZones.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-availabilityzones

Return type

Optional[List[str]]

count

CfnLifecyclePolicy.FastRestoreRuleProperty.Count.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-count

Return type

Union[int, float, None]

interval

CfnLifecyclePolicy.FastRestoreRuleProperty.Interval.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-interval

Return type

Union[int, float, None]

interval_unit

CfnLifecyclePolicy.FastRestoreRuleProperty.IntervalUnit.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-intervalunit

Return type

Optional[str]

ParametersProperty

class CfnLifecyclePolicy.ParametersProperty(*, exclude_boot_volume=None, no_reboot=None)

Bases: object

Parameters
  • exclude_boot_volume (Union[bool, IResolvable, None]) – CfnLifecyclePolicy.ParametersProperty.ExcludeBootVolume.

  • no_reboot (Union[bool, IResolvable, None]) – CfnLifecyclePolicy.ParametersProperty.NoReboot.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html

Attributes

exclude_boot_volume

CfnLifecyclePolicy.ParametersProperty.ExcludeBootVolume.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html#cfn-dlm-lifecyclepolicy-parameters-excludebootvolume

Return type

Union[bool, IResolvable, None]

no_reboot

CfnLifecyclePolicy.ParametersProperty.NoReboot.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html#cfn-dlm-lifecyclepolicy-parameters-noreboot

Return type

Union[bool, IResolvable, None]

PolicyDetailsProperty

class CfnLifecyclePolicy.PolicyDetailsProperty(*, actions=None, event_source=None, parameters=None, policy_type=None, resource_locations=None, resource_types=None, schedules=None, target_tags=None)

Bases: object

Parameters
  • actions (Union[IResolvable, Sequence[Union[IResolvable, ActionProperty]], None]) – CfnLifecyclePolicy.PolicyDetailsProperty.Actions.

  • event_source (Union[IResolvable, EventSourceProperty, None]) – CfnLifecyclePolicy.PolicyDetailsProperty.EventSource.

  • parameters (Union[IResolvable, ParametersProperty, None]) – CfnLifecyclePolicy.PolicyDetailsProperty.Parameters.

  • policy_type (Optional[str]) – CfnLifecyclePolicy.PolicyDetailsProperty.PolicyType.

  • resource_locations (Optional[Sequence[str]]) – CfnLifecyclePolicy.PolicyDetailsProperty.ResourceLocations.

  • resource_types (Optional[Sequence[str]]) – CfnLifecyclePolicy.PolicyDetailsProperty.ResourceTypes.

  • schedules (Union[IResolvable, Sequence[Union[IResolvable, ScheduleProperty]], None]) – CfnLifecyclePolicy.PolicyDetailsProperty.Schedules.

  • target_tags (Union[IResolvable, Sequence[Union[IResolvable, CfnTag]], None]) – CfnLifecyclePolicy.PolicyDetailsProperty.TargetTags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html

Attributes

actions

CfnLifecyclePolicy.PolicyDetailsProperty.Actions.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-actions

Return type

Union[IResolvable, List[Union[IResolvable, ActionProperty]], None]

event_source

CfnLifecyclePolicy.PolicyDetailsProperty.EventSource.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-eventsource

Return type

Union[IResolvable, EventSourceProperty, None]

parameters

CfnLifecyclePolicy.PolicyDetailsProperty.Parameters.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-parameters

Return type

Union[IResolvable, ParametersProperty, None]

policy_type

CfnLifecyclePolicy.PolicyDetailsProperty.PolicyType.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-policytype

Return type

Optional[str]

resource_locations

CfnLifecyclePolicy.PolicyDetailsProperty.ResourceLocations.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-resourcelocations

Return type

Optional[List[str]]

resource_types

CfnLifecyclePolicy.PolicyDetailsProperty.ResourceTypes.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-resourcetypes

Return type

Optional[List[str]]

schedules

CfnLifecyclePolicy.PolicyDetailsProperty.Schedules.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-schedules

Return type

Union[IResolvable, List[Union[IResolvable, ScheduleProperty]], None]

target_tags

CfnLifecyclePolicy.PolicyDetailsProperty.TargetTags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-targettags

Return type

Union[IResolvable, List[Union[IResolvable, CfnTag]], None]

RetainRuleProperty

class CfnLifecyclePolicy.RetainRuleProperty(*, count=None, interval=None, interval_unit=None)

Bases: object

Parameters
  • count (Union[int, float, None]) – CfnLifecyclePolicy.RetainRuleProperty.Count.

  • interval (Union[int, float, None]) – CfnLifecyclePolicy.RetainRuleProperty.Interval.

  • interval_unit (Optional[str]) – CfnLifecyclePolicy.RetainRuleProperty.IntervalUnit.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html

Attributes

count

CfnLifecyclePolicy.RetainRuleProperty.Count.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-count

Return type

Union[int, float, None]

interval

CfnLifecyclePolicy.RetainRuleProperty.Interval.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-interval

Return type

Union[int, float, None]

interval_unit

CfnLifecyclePolicy.RetainRuleProperty.IntervalUnit.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-intervalunit

Return type

Optional[str]

ScheduleProperty

class CfnLifecyclePolicy.ScheduleProperty(*, copy_tags=None, create_rule=None, cross_region_copy_rules=None, fast_restore_rule=None, name=None, retain_rule=None, share_rules=None, tags_to_add=None, variable_tags=None)

Bases: object

Parameters
Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html

Attributes

copy_tags

CfnLifecyclePolicy.ScheduleProperty.CopyTags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-copytags

Return type

Union[bool, IResolvable, None]

create_rule

CfnLifecyclePolicy.ScheduleProperty.CreateRule.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-createrule

Return type

Union[IResolvable, CreateRuleProperty, None]

cross_region_copy_rules

CfnLifecyclePolicy.ScheduleProperty.CrossRegionCopyRules.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-crossregioncopyrules

Return type

Union[IResolvable, List[Union[IResolvable, CrossRegionCopyRuleProperty]], None]

fast_restore_rule

CfnLifecyclePolicy.ScheduleProperty.FastRestoreRule.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-fastrestorerule

Return type

Union[IResolvable, FastRestoreRuleProperty, None]

name

CfnLifecyclePolicy.ScheduleProperty.Name.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-name

Return type

Optional[str]

retain_rule

CfnLifecyclePolicy.ScheduleProperty.RetainRule.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-retainrule

Return type

Union[IResolvable, RetainRuleProperty, None]

share_rules

CfnLifecyclePolicy.ScheduleProperty.ShareRules.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-sharerules

Return type

Union[IResolvable, List[Union[IResolvable, ShareRuleProperty]], None]

tags_to_add

CfnLifecyclePolicy.ScheduleProperty.TagsToAdd.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-tagstoadd

Return type

Union[IResolvable, List[Union[IResolvable, CfnTag]], None]

variable_tags

CfnLifecyclePolicy.ScheduleProperty.VariableTags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-variabletags

Return type

Union[IResolvable, List[Union[IResolvable, CfnTag]], None]

ShareRuleProperty

class CfnLifecyclePolicy.ShareRuleProperty(*, target_accounts=None, unshare_interval=None, unshare_interval_unit=None)

Bases: object

Parameters
  • target_accounts (Optional[Sequence[str]]) – CfnLifecyclePolicy.ShareRuleProperty.TargetAccounts.

  • unshare_interval (Union[int, float, None]) – CfnLifecyclePolicy.ShareRuleProperty.UnshareInterval.

  • unshare_interval_unit (Optional[str]) – CfnLifecyclePolicy.ShareRuleProperty.UnshareIntervalUnit.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-sharerule.html

Attributes

target_accounts

CfnLifecyclePolicy.ShareRuleProperty.TargetAccounts.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-sharerule.html#cfn-dlm-lifecyclepolicy-sharerule-targetaccounts

Return type

Optional[List[str]]

unshare_interval

CfnLifecyclePolicy.ShareRuleProperty.UnshareInterval.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-sharerule.html#cfn-dlm-lifecyclepolicy-sharerule-unshareinterval

Return type

Union[int, float, None]

unshare_interval_unit

CfnLifecyclePolicy.ShareRuleProperty.UnshareIntervalUnit.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-sharerule.html#cfn-dlm-lifecyclepolicy-sharerule-unshareintervalunit

Return type

Optional[str]