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.

LifecyclePolicy

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

type LifecyclePolicy struct { DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"` DateModified *time.Time `type:"timestamp" timestampFormat:"iso8601"` Description *string `type:"string"` ExecutionRoleArn *string `type:"string"` PolicyDetails *PolicyDetails `type:"structure"` PolicyId *string `type:"string"` State *string `type:"string" enum:"GettablePolicyStateValues"` }

Detailed information about a lifecycle policy.

DateCreated

Type: *time.Time

The local date and time when the lifecycle policy was created.

DateModified

Type: *time.Time

The local date and time when the lifecycle policy was last modified.

Description

Type: *string

The 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.

State

Type: *string

The activation state of the lifecycle policy.

Method

GoString

func (s LifecyclePolicy) GoString() string

GoString returns the string representation

SetDateCreated

func (s *LifecyclePolicy) SetDateCreated(v time.Time) *LifecyclePolicy

SetDateCreated sets the DateCreated field's value.

SetDateModified

func (s *LifecyclePolicy) SetDateModified(v time.Time) *LifecyclePolicy

SetDateModified sets the DateModified field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetExecutionRoleArn

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

SetExecutionRoleArn sets the ExecutionRoleArn field's value.

SetPolicyDetails

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

SetPolicyDetails sets the PolicyDetails field's value.

SetPolicyId

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

SetPolicyId sets the PolicyId field's value.

SetState

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

SetState sets the State field's value.

String

func (s LifecyclePolicy) String() string

String returns the string representation

On this page: