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.

GetClusterCredentialsOutput

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

type GetClusterCredentialsOutput struct { DbPassword *string `type:"string" sensitive:"true"` DbUser *string `type:"string"` Expiration *time.Time `type:"timestamp"` }

Temporary credentials with authorization to log on to an Amazon Redshift database.

DbPassword

Type: *string

A temporary password that authorizes the user name returned by DbUser to log on to the database DbName.

DbUser

Type: *string

A database user name that is authorized to log on to the database DbName using the password DbPassword. If the specified DbUser exists in the database, the new user name has the same database privileges as the the user named in DbUser. By default, the user is added to PUBLIC. If the DbGroups parameter is specifed, DbUser is added to the listed groups for any sessions created using these credentials.

Expiration

Type: *time.Time

The date and time the password in DbPassword expires.

Method

GoString

func (s GetClusterCredentialsOutput) GoString() string

GoString returns the string representation

SetDbPassword

func (s *GetClusterCredentialsOutput) SetDbPassword(v string) *GetClusterCredentialsOutput

SetDbPassword sets the DbPassword field's value.

SetDbUser

func (s *GetClusterCredentialsOutput) SetDbUser(v string) *GetClusterCredentialsOutput

SetDbUser sets the DbUser field's value.

SetExpiration

func (s *GetClusterCredentialsOutput) SetExpiration(v time.Time) *GetClusterCredentialsOutput

SetExpiration sets the Expiration field's value.

String

func (s GetClusterCredentialsOutput) String() string

String returns the string representation

On this page: