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.

CopyOptionGroupInput

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

type CopyOptionGroupInput struct { SourceOptionGroupIdentifier *string `type:"string" required:"true"` Tags []*Tag `locationNameList:"Tag" type:"list"` TargetOptionGroupDescription *string `type:"string" required:"true"` TargetOptionGroupIdentifier *string `type:"string" required:"true"` }

SourceOptionGroupIdentifier

Type: *string

The identifier or ARN for the source option group. For information about creating an ARN, see Constructing an ARN for Amazon RDS (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) in the Amazon RDS User Guide.

Constraints:

  • Must specify a valid option group.

  • If the source option group is in the same AWS Region as the copy, specify a valid option group identifier, for example my-option-group, or a valid ARN.

  • If the source option group is in a different AWS Region than the copy, specify a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options.

SourceOptionGroupIdentifier is a required field

Tags

Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

TargetOptionGroupDescription

Type: *string

The description for the copied option group.

TargetOptionGroupDescription is a required field

TargetOptionGroupIdentifier

Type: *string

The identifier for the copied option group.

Constraints:

  • Can't be null, empty, or blank

  • Must contain from 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

Example: my-option-group

TargetOptionGroupIdentifier is a required field

Method

GoString

func (s CopyOptionGroupInput) GoString() string

GoString returns the string representation

SetSourceOptionGroupIdentifier

func (s *CopyOptionGroupInput) SetSourceOptionGroupIdentifier(v string) *CopyOptionGroupInput

SetSourceOptionGroupIdentifier sets the SourceOptionGroupIdentifier field's value.

SetTags

func (s *CopyOptionGroupInput) SetTags(v []*Tag) *CopyOptionGroupInput

SetTags sets the Tags field's value.

SetTargetOptionGroupDescription

func (s *CopyOptionGroupInput) SetTargetOptionGroupDescription(v string) *CopyOptionGroupInput

SetTargetOptionGroupDescription sets the TargetOptionGroupDescription field's value.

SetTargetOptionGroupIdentifier

func (s *CopyOptionGroupInput) SetTargetOptionGroupIdentifier(v string) *CopyOptionGroupInput

SetTargetOptionGroupIdentifier sets the TargetOptionGroupIdentifier field's value.

String

func (s CopyOptionGroupInput) String() string

String returns the string representation

Validate

func (s *CopyOptionGroupInput) Validate() error

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

On this page: