package dlm

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

Package dlm provides the client and types for making API requests to Amazon Data Lifecycle Manager.

With Amazon Data Lifecycle Manager, you can manage the lifecycle of your AWS resources. You create lifecycle policies, which are used to automate operations on the specified resources.

Amazon DLM supports Amazon EBS volumes and snapshots. For information about using Amazon DLM with Amazon EBS, see Automating the Amazon EBS Snapshot Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html) in the Amazon EC2 User Guide.

See https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12 for more information on this service.

See dlm package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/dlm/

Using the Client

To Amazon Data Lifecycle Manager with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon Data Lifecycle Manager client DLM for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/dlm/#New

Index

Constants

const (

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// The service failed in an unexpected way.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeInvalidRequestException for service response error code
	// "InvalidRequestException".
	//
	// Bad request. The request is missing required parameters or has invalid parameters.
	ErrCodeInvalidRequestException = "InvalidRequestException"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// The request failed because a limit was exceeded.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// A requested resource was not found.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
)
const (
	ServiceName = "dlm"       // Service endpoint prefix API calls made to.
	EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)

Service information constants

Types

type CreateLifecyclePolicyInput

type CreateLifecyclePolicyInput struct {

	// A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are
	// supported.
	//
	// Description is a required field
	Description *string `type:"string" required:"true"`

	// The Amazon Resource Name (ARN) of the IAM role used to run the operations
	// specified by the lifecycle policy.
	//
	// ExecutionRoleArn is a required field
	ExecutionRoleArn *string `type:"string" required:"true"`

	// The configuration details of the lifecycle policy.
	//
	// Target tags cannot be re-used across lifecycle policies.
	//
	// PolicyDetails is a required field
	PolicyDetails *PolicyDetails `type:"structure" required:"true"`

	// The desired activation state of the lifecycle policy after creation.
	//
	// State is a required field
	State SettablePolicyStateValues `type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CreateLifecyclePolicyRequest

func (CreateLifecyclePolicyInput) GoString

func (s CreateLifecyclePolicyInput) GoString() string

GoString returns the string representation

func (CreateLifecyclePolicyInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateLifecyclePolicyInput) String

String returns the string representation

func (*CreateLifecyclePolicyInput) Validate

func (s *CreateLifecyclePolicyInput) Validate() error

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

type CreateLifecyclePolicyOutput

type CreateLifecyclePolicyOutput struct {

	// The identifier of the lifecycle policy.
	PolicyId *string `type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CreateLifecyclePolicyResponse

func (CreateLifecyclePolicyOutput) GoString

func (s CreateLifecyclePolicyOutput) GoString() string

GoString returns the string representation

func (CreateLifecyclePolicyOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateLifecyclePolicyOutput) SDKResponseMetadata

func (s CreateLifecyclePolicyOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (CreateLifecyclePolicyOutput) String

String returns the string representation

type CreateLifecyclePolicyRequest

type CreateLifecyclePolicyRequest struct {
	*aws.Request
	Input *CreateLifecyclePolicyInput
	Copy  func(*CreateLifecyclePolicyInput) CreateLifecyclePolicyRequest
}

CreateLifecyclePolicyRequest is a API request type for the CreateLifecyclePolicy API operation.

func (CreateLifecyclePolicyRequest) Send

Send marshals and sends the CreateLifecyclePolicy API request.

type CreateRule

type CreateRule struct {

	// The interval. The supported values are 12 and 24.
	//
	// Interval is a required field
	Interval *int64 `min:"1" type:"integer" required:"true"`

	// The interval unit.
	//
	// IntervalUnit is a required field
	IntervalUnit IntervalUnitValues `type:"string" required:"true" enum:"true"`

	// The time, in UTC, to start the operation.
	//
	// The operation occurs within a one-hour window following the specified time.
	Times []string `type:"list"`
	// contains filtered or unexported fields
}

Specifies when to create snapshots of EBS volumes. Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CreateRule

func (CreateRule) GoString

func (s CreateRule) GoString() string

GoString returns the string representation

func (CreateRule) MarshalFields

func (s CreateRule) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateRule) String

func (s CreateRule) String() string

String returns the string representation

func (*CreateRule) Validate

func (s *CreateRule) Validate() error

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

type DLM

type DLM struct {
	*aws.Client
}

DLM provides the API operation methods for making requests to Amazon Data Lifecycle Manager. See this package's package overview docs for details on the service.

DLM methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *DLM

New creates a new instance of the DLM client with a config.

Example:

// Create a DLM client from just a config.
svc := dlm.New(myConfig)

func (*DLM) CreateLifecyclePolicyRequest

func (c *DLM) CreateLifecyclePolicyRequest(input *CreateLifecyclePolicyInput) CreateLifecyclePolicyRequest

CreateLifecyclePolicyRequest returns a request value for making API operation for Amazon Data Lifecycle Manager.

Creates a policy to manage the lifecycle of the specified AWS resources. You can create up to 100 lifecycle policies.

// Example sending a request using the CreateLifecyclePolicyRequest method.
req := client.CreateLifecyclePolicyRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CreateLifecyclePolicy

func (*DLM) DeleteLifecyclePolicyRequest

func (c *DLM) DeleteLifecyclePolicyRequest(input *DeleteLifecyclePolicyInput) DeleteLifecyclePolicyRequest

DeleteLifecyclePolicyRequest returns a request value for making API operation for Amazon Data Lifecycle Manager.

Deletes the specified lifecycle policy and halts the automated operations that the policy specified.

// Example sending a request using the DeleteLifecyclePolicyRequest method.
req := client.DeleteLifecyclePolicyRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/DeleteLifecyclePolicy

func (*DLM) GetLifecyclePoliciesRequest

func (c *DLM) GetLifecyclePoliciesRequest(input *GetLifecyclePoliciesInput) GetLifecyclePoliciesRequest

GetLifecyclePoliciesRequest returns a request value for making API operation for Amazon Data Lifecycle Manager.

Gets summary information about all or the specified data lifecycle policies.

To get complete information about a policy, use GetLifecyclePolicy.

// Example sending a request using the GetLifecyclePoliciesRequest method.
req := client.GetLifecyclePoliciesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePolicies

func (*DLM) GetLifecyclePolicyRequest

func (c *DLM) GetLifecyclePolicyRequest(input *GetLifecyclePolicyInput) GetLifecyclePolicyRequest

GetLifecyclePolicyRequest returns a request value for making API operation for Amazon Data Lifecycle Manager.

Gets detailed information about the specified lifecycle policy.

// Example sending a request using the GetLifecyclePolicyRequest method.
req := client.GetLifecyclePolicyRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePolicy

func (*DLM) UpdateLifecyclePolicyRequest

func (c *DLM) UpdateLifecyclePolicyRequest(input *UpdateLifecyclePolicyInput) UpdateLifecyclePolicyRequest

UpdateLifecyclePolicyRequest returns a request value for making API operation for Amazon Data Lifecycle Manager.

Updates the specified lifecycle policy.

// Example sending a request using the UpdateLifecyclePolicyRequest method.
req := client.UpdateLifecyclePolicyRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UpdateLifecyclePolicy

type DeleteLifecyclePolicyInput

type DeleteLifecyclePolicyInput struct {

	// The identifier of the lifecycle policy.
	//
	// PolicyId is a required field
	PolicyId *string `location:"uri" locationName:"policyId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/DeleteLifecyclePolicyRequest

func (DeleteLifecyclePolicyInput) GoString

func (s DeleteLifecyclePolicyInput) GoString() string

GoString returns the string representation

func (DeleteLifecyclePolicyInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteLifecyclePolicyInput) String

String returns the string representation

func (*DeleteLifecyclePolicyInput) Validate

func (s *DeleteLifecyclePolicyInput) Validate() error

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

type DeleteLifecyclePolicyOutput

type DeleteLifecyclePolicyOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/DeleteLifecyclePolicyResponse

func (DeleteLifecyclePolicyOutput) GoString

func (s DeleteLifecyclePolicyOutput) GoString() string

GoString returns the string representation

func (DeleteLifecyclePolicyOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteLifecyclePolicyOutput) SDKResponseMetadata

func (s DeleteLifecyclePolicyOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteLifecyclePolicyOutput) String

String returns the string representation

type DeleteLifecyclePolicyRequest

type DeleteLifecyclePolicyRequest struct {
	*aws.Request
	Input *DeleteLifecyclePolicyInput
	Copy  func(*DeleteLifecyclePolicyInput) DeleteLifecyclePolicyRequest
}

DeleteLifecyclePolicyRequest is a API request type for the DeleteLifecyclePolicy API operation.

func (DeleteLifecyclePolicyRequest) Send

Send marshals and sends the DeleteLifecyclePolicy API request.

type GetLifecyclePoliciesInput

type GetLifecyclePoliciesInput struct {

	// The identifiers of the data lifecycle policies.
	PolicyIds []string `location:"querystring" locationName:"policyIds" type:"list"`

	// The resource type.
	ResourceTypes []ResourceTypeValues `location:"querystring" locationName:"resourceTypes" min:"1" type:"list"`

	// The activation state.
	State GettablePolicyStateValues `location:"querystring" locationName:"state" type:"string" enum:"true"`

	// The tags to add to objects created by the policy.
	//
	// Tags are strings in the format key=value.
	//
	// These user-defined tags are added in addition to the AWS-added lifecycle
	// tags.
	TagsToAdd []string `location:"querystring" locationName:"tagsToAdd" type:"list"`

	// The target tag for a policy.
	//
	// Tags are strings in the format key=value.
	TargetTags []string `location:"querystring" locationName:"targetTags" min:"1" type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePoliciesRequest

func (GetLifecyclePoliciesInput) GoString

func (s GetLifecyclePoliciesInput) GoString() string

GoString returns the string representation

func (GetLifecyclePoliciesInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetLifecyclePoliciesInput) String

func (s GetLifecyclePoliciesInput) String() string

String returns the string representation

func (*GetLifecyclePoliciesInput) Validate

func (s *GetLifecyclePoliciesInput) Validate() error

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

type GetLifecyclePoliciesOutput

type GetLifecyclePoliciesOutput struct {

	// Summary information about the lifecycle policies.
	Policies []LifecyclePolicySummary `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePoliciesResponse

func (GetLifecyclePoliciesOutput) GoString

func (s GetLifecyclePoliciesOutput) GoString() string

GoString returns the string representation

func (GetLifecyclePoliciesOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetLifecyclePoliciesOutput) SDKResponseMetadata

func (s GetLifecyclePoliciesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetLifecyclePoliciesOutput) String

String returns the string representation

type GetLifecyclePoliciesRequest

type GetLifecyclePoliciesRequest struct {
	*aws.Request
	Input *GetLifecyclePoliciesInput
	Copy  func(*GetLifecyclePoliciesInput) GetLifecyclePoliciesRequest
}

GetLifecyclePoliciesRequest is a API request type for the GetLifecyclePolicies API operation.

func (GetLifecyclePoliciesRequest) Send

Send marshals and sends the GetLifecyclePolicies API request.

type GetLifecyclePolicyInput

type GetLifecyclePolicyInput struct {

	// The identifier of the lifecycle policy.
	//
	// PolicyId is a required field
	PolicyId *string `location:"uri" locationName:"policyId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePolicyRequest

func (GetLifecyclePolicyInput) GoString

func (s GetLifecyclePolicyInput) GoString() string

GoString returns the string representation

func (GetLifecyclePolicyInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetLifecyclePolicyInput) String

func (s GetLifecyclePolicyInput) String() string

String returns the string representation

func (*GetLifecyclePolicyInput) Validate

func (s *GetLifecyclePolicyInput) Validate() error

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

type GetLifecyclePolicyOutput

type GetLifecyclePolicyOutput struct {

	// Detailed information about the lifecycle policy.
	Policy *LifecyclePolicy `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePolicyResponse

func (GetLifecyclePolicyOutput) GoString

func (s GetLifecyclePolicyOutput) GoString() string

GoString returns the string representation

func (GetLifecyclePolicyOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetLifecyclePolicyOutput) SDKResponseMetadata

func (s GetLifecyclePolicyOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (GetLifecyclePolicyOutput) String

func (s GetLifecyclePolicyOutput) String() string

String returns the string representation

type GetLifecyclePolicyRequest

type GetLifecyclePolicyRequest struct {
	*aws.Request
	Input *GetLifecyclePolicyInput
	Copy  func(*GetLifecyclePolicyInput) GetLifecyclePolicyRequest
}

GetLifecyclePolicyRequest is a API request type for the GetLifecyclePolicy API operation.

func (GetLifecyclePolicyRequest) Send

Send marshals and sends the GetLifecyclePolicy API request.

type GettablePolicyStateValues

type GettablePolicyStateValues string
const (
	GettablePolicyStateValuesEnabled  GettablePolicyStateValues = "ENABLED"
	GettablePolicyStateValuesDisabled GettablePolicyStateValues = "DISABLED"
	GettablePolicyStateValuesError    GettablePolicyStateValues = "ERROR"
)

Enum values for GettablePolicyStateValues

func (GettablePolicyStateValues) MarshalValue

func (enum GettablePolicyStateValues) MarshalValue() (string, error)

func (GettablePolicyStateValues) MarshalValueBuf

func (enum GettablePolicyStateValues) MarshalValueBuf(b []byte) ([]byte, error)

type IntervalUnitValues

type IntervalUnitValues string
const (
	IntervalUnitValuesHours IntervalUnitValues = "HOURS"
)

Enum values for IntervalUnitValues

func (IntervalUnitValues) MarshalValue

func (enum IntervalUnitValues) MarshalValue() (string, error)

func (IntervalUnitValues) MarshalValueBuf

func (enum IntervalUnitValues) MarshalValueBuf(b []byte) ([]byte, error)

type LifecyclePolicy

type LifecyclePolicy struct {

	// The local date and time when the lifecycle policy was created.
	DateCreated *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The local date and time when the lifecycle policy was last modified.
	DateModified *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The description of the lifecycle policy.
	Description *string `type:"string"`

	// The Amazon Resource Name (ARN) of the IAM role used to run the operations
	// specified by the lifecycle policy.
	ExecutionRoleArn *string `type:"string"`

	// The configuration of the lifecycle policy
	PolicyDetails *PolicyDetails `type:"structure"`

	// The identifier of the lifecycle policy.
	PolicyId *string `type:"string"`

	// The activation state of the lifecycle policy.
	State GettablePolicyStateValues `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Detailed information about a lifecycle policy. Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/LifecyclePolicy

func (LifecyclePolicy) GoString

func (s LifecyclePolicy) GoString() string

GoString returns the string representation

func (LifecyclePolicy) MarshalFields

func (s LifecyclePolicy) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (LifecyclePolicy) String

func (s LifecyclePolicy) String() string

String returns the string representation

type LifecyclePolicySummary

type LifecyclePolicySummary struct {

	// The description of the lifecycle policy.
	Description *string `type:"string"`

	// The identifier of the lifecycle policy.
	PolicyId *string `type:"string"`

	// The activation state of the lifecycle policy.
	State GettablePolicyStateValues `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Summary information about a lifecycle policy. Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/LifecyclePolicySummary

func (LifecyclePolicySummary) GoString

func (s LifecyclePolicySummary) GoString() string

GoString returns the string representation

func (LifecyclePolicySummary) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (LifecyclePolicySummary) String

func (s LifecyclePolicySummary) String() string

String returns the string representation

type PolicyDetails

type PolicyDetails struct {

	// The resource type.
	ResourceTypes []ResourceTypeValues `min:"1" type:"list"`

	// The schedule of policy-defined actions.
	Schedules []Schedule `min:"1" type:"list"`

	// The single tag that identifies targeted resources for this policy.
	TargetTags []Tag `min:"1" type:"list"`
	// contains filtered or unexported fields
}

Specifies the configuration of a lifecycle policy. Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/PolicyDetails

func (PolicyDetails) GoString

func (s PolicyDetails) GoString() string

GoString returns the string representation

func (PolicyDetails) MarshalFields

func (s PolicyDetails) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PolicyDetails) String

func (s PolicyDetails) String() string

String returns the string representation

func (*PolicyDetails) Validate

func (s *PolicyDetails) Validate() error

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

type ResourceTypeValues

type ResourceTypeValues string
const (
	ResourceTypeValuesVolume ResourceTypeValues = "VOLUME"
)

Enum values for ResourceTypeValues

func (ResourceTypeValues) MarshalValue

func (enum ResourceTypeValues) MarshalValue() (string, error)

func (ResourceTypeValues) MarshalValueBuf

func (enum ResourceTypeValues) MarshalValueBuf(b []byte) ([]byte, error)

type RetainRule

type RetainRule struct {

	// The number of snapshots to keep for each volume, up to a maximum of 1000.
	//
	// Count is a required field
	Count *int64 `min:"1" type:"integer" required:"true"`
	// contains filtered or unexported fields
}

Specifies the number of snapshots to keep for each EBS volume. Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/RetainRule

func (RetainRule) GoString

func (s RetainRule) GoString() string

GoString returns the string representation

func (RetainRule) MarshalFields

func (s RetainRule) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RetainRule) String

func (s RetainRule) String() string

String returns the string representation

func (*RetainRule) Validate

func (s *RetainRule) Validate() error

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

type Schedule

type Schedule struct {
	CopyTags *bool `type:"boolean"`

	// The create rule.
	CreateRule *CreateRule `type:"structure"`

	// The name of the schedule.
	Name *string `type:"string"`

	// The retain rule.
	RetainRule *RetainRule `type:"structure"`

	// The tags to apply to policy-created resources. These user-defined tags are
	// in addition to the AWS-added lifecycle tags.
	TagsToAdd []Tag `type:"list"`
	// contains filtered or unexported fields
}

Specifies a schedule. Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/Schedule

func (Schedule) GoString

func (s Schedule) GoString() string

GoString returns the string representation

func (Schedule) MarshalFields

func (s Schedule) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Schedule) String

func (s Schedule) String() string

String returns the string representation

func (*Schedule) Validate

func (s *Schedule) Validate() error

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

type SettablePolicyStateValues

type SettablePolicyStateValues string
const (
	SettablePolicyStateValuesEnabled  SettablePolicyStateValues = "ENABLED"
	SettablePolicyStateValuesDisabled SettablePolicyStateValues = "DISABLED"
)

Enum values for SettablePolicyStateValues

func (SettablePolicyStateValues) MarshalValue

func (enum SettablePolicyStateValues) MarshalValue() (string, error)

func (SettablePolicyStateValues) MarshalValueBuf

func (enum SettablePolicyStateValues) MarshalValueBuf(b []byte) ([]byte, error)

type Tag

type Tag struct {

	// The tag key.
	//
	// Key is a required field
	Key *string `type:"string" required:"true"`

	// The tag value.
	//
	// Value is a required field
	Value *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Specifies a tag for a resource. Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/Tag

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation

func (Tag) MarshalFields

func (s Tag) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Tag) String

func (s Tag) String() string

String returns the string representation

func (*Tag) Validate

func (s *Tag) Validate() error

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

type UpdateLifecyclePolicyInput

type UpdateLifecyclePolicyInput struct {

	// A description of the lifecycle policy.
	Description *string `type:"string"`

	// The Amazon Resource Name (ARN) of the IAM role used to run the operations
	// specified by the lifecycle policy.
	ExecutionRoleArn *string `type:"string"`

	// The configuration of the lifecycle policy.
	//
	// Target tags cannot be re-used across policies.
	PolicyDetails *PolicyDetails `type:"structure"`

	// The identifier of the lifecycle policy.
	//
	// PolicyId is a required field
	PolicyId *string `location:"uri" locationName:"policyId" type:"string" required:"true"`

	// The desired activation state of the lifecycle policy after creation.
	State SettablePolicyStateValues `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UpdateLifecyclePolicyRequest

func (UpdateLifecyclePolicyInput) GoString

func (s UpdateLifecyclePolicyInput) GoString() string

GoString returns the string representation

func (UpdateLifecyclePolicyInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UpdateLifecyclePolicyInput) String

String returns the string representation

func (*UpdateLifecyclePolicyInput) Validate

func (s *UpdateLifecyclePolicyInput) Validate() error

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

type UpdateLifecyclePolicyOutput

type UpdateLifecyclePolicyOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UpdateLifecyclePolicyResponse

func (UpdateLifecyclePolicyOutput) GoString

func (s UpdateLifecyclePolicyOutput) GoString() string

GoString returns the string representation

func (UpdateLifecyclePolicyOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UpdateLifecyclePolicyOutput) SDKResponseMetadata

func (s UpdateLifecyclePolicyOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (UpdateLifecyclePolicyOutput) String

String returns the string representation

type UpdateLifecyclePolicyRequest

type UpdateLifecyclePolicyRequest struct {
	*aws.Request
	Input *UpdateLifecyclePolicyInput
	Copy  func(*UpdateLifecyclePolicyInput) UpdateLifecyclePolicyRequest
}

UpdateLifecyclePolicyRequest is a API request type for the UpdateLifecyclePolicy API operation.

func (UpdateLifecyclePolicyRequest) Send

Send marshals and sends the UpdateLifecyclePolicy API request.

Source Files

api.go doc.go errors.go service.go

Directories

PathSynopsis
service/dlm/dlmifacePackage dlmiface provides an interface to enable mocking the Amazon Data Lifecycle Manager service client for testing your code.
Version
v0.6.0
Published
Dec 3, 2018
Platform
linux/amd64
Imports
7 packages
Last checked
28 seconds ago

Tools for package owners.