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.

AddRoleToDBInstanceInput

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

type AddRoleToDBInstanceInput struct { DBInstanceIdentifier *string `type:"string" required:"true"` FeatureName *string `type:"string" required:"true"` RoleArn *string `type:"string" required:"true"` }

DBInstanceIdentifier

Type: *string

The name of the DB instance to associate the IAM role with.

DBInstanceIdentifier is a required field

FeatureName

Type: *string

The name of the feature for the DB instance that the IAM role is to be associated with. For the list of supported feature names, see DBEngineVersion.

FeatureName is a required field

RoleArn

Type: *string

The Amazon Resource Name (ARN) of the IAM role to associate with the DB instance, for example arn:aws:iam::123456789012:role/AccessRole.

RoleArn is a required field

Method

GoString

func (s AddRoleToDBInstanceInput) GoString() string

GoString returns the string representation

SetDBInstanceIdentifier

func (s *AddRoleToDBInstanceInput) SetDBInstanceIdentifier(v string) *AddRoleToDBInstanceInput

SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.

SetFeatureName

func (s *AddRoleToDBInstanceInput) SetFeatureName(v string) *AddRoleToDBInstanceInput

SetFeatureName sets the FeatureName field's value.

SetRoleArn

func (s *AddRoleToDBInstanceInput) SetRoleArn(v string) *AddRoleToDBInstanceInput

SetRoleArn sets the RoleArn field's value.

String

func (s AddRoleToDBInstanceInput) String() string

String returns the string representation

Validate

func (s *AddRoleToDBInstanceInput) Validate() error

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

On this page: