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.

UpdateLifecyclePolicyInput

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

type UpdateLifecyclePolicyInput struct { Description *string `type:"string"` ExecutionRoleArn *string `type:"string"` PolicyDetails *PolicyDetails `type:"structure"` PolicyId *string `location:"uri" locationName:"policyId" type:"string" required:"true"` State *string `type:"string" enum:"SettablePolicyStateValues"` }

Description

Type: *string

A description of the lifecycle policy.

ExecutionRoleArn

Type: *string

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

PolicyDetails

Specifies the configuration of a lifecycle policy.

PolicyId

Type: *string

The identifier of the lifecycle policy.

PolicyId is a required field

State

Type: *string

The desired activation state of the lifecycle policy after creation.

Method

GoString

func (s UpdateLifecyclePolicyInput) GoString() string

GoString returns the string representation

SetDescription

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

SetDescription sets the Description field's value.

SetExecutionRoleArn

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

SetExecutionRoleArn sets the ExecutionRoleArn field's value.

SetPolicyDetails

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

SetPolicyDetails sets the PolicyDetails field's value.

SetPolicyId

func (s *UpdateLifecyclePolicyInput) SetPolicyId(v string) *UpdateLifecyclePolicyInput

SetPolicyId sets the PolicyId field's value.

SetState

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

SetState sets the State field's value.

String

func (s UpdateLifecyclePolicyInput) String() string

String returns the string representation

Validate

func (s *UpdateLifecyclePolicyInput) Validate() error

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

On this page: