You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::DLM::Types::CreateLifecyclePolicyRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateLifecyclePolicyRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  execution_role_arn: "ExecutionRoleArn", # required
  description: "PolicyDescription", # required
  state: "ENABLED", # required, accepts ENABLED, DISABLED
  policy_details: { # required
    resource_types: ["VOLUME"], # accepts VOLUME
    target_tags: [
      {
        key: "String", # required
        value: "String", # required
      },
    ],
    schedules: [
      {
        name: "ScheduleName",
        tags_to_add: [
          {
            key: "String", # required
            value: "String", # required
          },
        ],
        create_rule: {
          interval: 1, # required
          interval_unit: "HOURS", # required, accepts HOURS
          times: ["Time"],
        },
        retain_rule: {
          count: 1, # required
        },
      },
    ],
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.

Returns:

  • (String)

    A description of the lifecycle policy.

#execution_role_arnString

The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.

#policy_detailsTypes::PolicyDetails

The configuration of the lifecycle policy.

Target tags cannot be re-used across lifecycle policies.

Returns:

#stateString

The desired activation state of the lifecycle policy after creation.

Possible values:

  • ENABLED
  • DISABLED

Returns:

  • (String)

    The desired activation state of the lifecycle policy after creation.