AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateLifecyclePolicyInput

import "github.com/aws/aws-sdk-go/service/dlm"

type CreateLifecyclePolicyInput struct { Description *string `type:"string" required:"true"` ExecutionRoleArn *string `type:"string" required:"true"` PolicyDetails *PolicyDetails `type:"structure" required:"true"` State *string `type:"string" required:"true" enum:"SettablePolicyStateValues"` }

Description

Type: *string

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

Description is a required field

ExecutionRoleArn

Type: *string

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

ExecutionRoleArn is a required field

PolicyDetails

Specifies the configuration of a lifecycle policy.

State

Type: *string

The desired activation state of the lifecycle policy after creation.

State is a required field

Method

GoString

func (s CreateLifecyclePolicyInput) GoString() string

GoString returns the string representation

SetDescription

func (s *CreateLifecyclePolicyInput) SetDescription(v string) *CreateLifecyclePolicyInput

SetDescription sets the Description field's value.

SetExecutionRoleArn

func (s *CreateLifecyclePolicyInput) SetExecutionRoleArn(v string) *CreateLifecyclePolicyInput

SetExecutionRoleArn sets the ExecutionRoleArn field's value.

SetPolicyDetails

func (s *CreateLifecyclePolicyInput) SetPolicyDetails(v *PolicyDetails) *CreateLifecyclePolicyInput

SetPolicyDetails sets the PolicyDetails field's value.

SetState

func (s *CreateLifecyclePolicyInput) SetState(v string) *CreateLifecyclePolicyInput

SetState sets the State field's value.

String

func (s CreateLifecyclePolicyInput) String() string

String returns the string representation

Validate

func (s *CreateLifecyclePolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: