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.

AddRoleToDBClusterInput

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

type AddRoleToDBClusterInput struct { DBClusterIdentifier *string `type:"string" required:"true"` RoleArn *string `type:"string" required:"true"` }

DBClusterIdentifier

Type: *string

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

DBClusterIdentifier is a required field

RoleArn

Type: *string

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

RoleArn is a required field

Method

GoString

func (s AddRoleToDBClusterInput) GoString() string

GoString returns the string representation

SetDBClusterIdentifier

func (s *AddRoleToDBClusterInput) SetDBClusterIdentifier(v string) *AddRoleToDBClusterInput

SetDBClusterIdentifier sets the DBClusterIdentifier field's value.

SetRoleArn

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

SetRoleArn sets the RoleArn field's value.

String

func (s AddRoleToDBClusterInput) String() string

String returns the string representation

Validate

func (s *AddRoleToDBClusterInput) Validate() error

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

On this page: