Creates a policy to manage the lifecycle of the specified AWS resources. You can create up to 100 lifecycle policies.
dlm_create_lifecycle_policy(ExecutionRoleArn, Description, State,
PolicyDetails, Tags)
[required] The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
[required] A description of the lifecycle policy. The characters \^[0-9A-Za-z \_-]+\$ are supported.
[required] The desired activation state of the lifecycle policy after creation.
[required] The configuration details of the lifecycle policy.
The tags to apply to the lifecycle policy during creation.
svc$create_lifecycle_policy( ExecutionRoleArn = "string", Description = "string", State = "ENABLED"|"DISABLED", PolicyDetails = list( PolicyType = "EBS_SNAPSHOT_MANAGEMENT", ResourceTypes = list( "VOLUME"|"INSTANCE" ), TargetTags = list( list( Key = "string", Value = "string" ) ), Schedules = list( list( Name = "string", CopyTags = TRUE|FALSE, TagsToAdd = list( list( Key = "string", Value = "string" ) ), VariableTags = list( list( Key = "string", Value = "string" ) ), CreateRule = list( Interval = 123, IntervalUnit = "HOURS", Times = list( "string" ) ), RetainRule = list( Count = 123, Interval = 123, IntervalUnit = "DAYS"|"WEEKS"|"MONTHS"|"YEARS" ), FastRestoreRule = list( Count = 123, Interval = 123, IntervalUnit = "DAYS"|"WEEKS"|"MONTHS"|"YEARS", AvailabilityZones = list( "string" ) ), CrossRegionCopyRules = list( list( TargetRegion = "string", Encrypted = TRUE|FALSE, CmkArn = "string", CopyTags = TRUE|FALSE, RetainRule = list( Interval = 123, IntervalUnit = "DAYS"|"WEEKS"|"MONTHS"|"YEARS" ) ) ) ) ), Parameters = list( ExcludeBootVolume = TRUE|FALSE ) ), Tags = list( "string" ) )