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)
[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.
Target tags cannot be re-used across lifecycle policies.
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 ) ) ), Parameters = list( ExcludeBootVolume = TRUE|FALSE ) ) )