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.

SshPublicKey

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

type SshPublicKey struct { DateImported *time.Time `type:"timestamp" required:"true"` SshPublicKeyBody *string `type:"string" required:"true"` SshPublicKeyId *string `type:"string" required:"true"` }

Provides information about the public Secure Shell (SSH) key that is associated with a user account for a specific server (as identified by ServerId). The information returned includes the date the key was imported, the public key contents, and the public key ID. A user can store more than one SSH public key associated with their user name on a specific SFTP server.

DateImported

Type: *time.Time

The date that the public key was added to the user account.

DateImported is a required field

SshPublicKeyBody

Type: *string

The content of the SSH public key as specified by the PublicKeyId.

SshPublicKeyBody is a required field

SshPublicKeyId

Type: *string

The SshPublicKeyId parameter contains the identifier of the public key.

SshPublicKeyId is a required field

Method

GoString

func (s SshPublicKey) GoString() string

GoString returns the string representation

SetDateImported

func (s *SshPublicKey) SetDateImported(v time.Time) *SshPublicKey

SetDateImported sets the DateImported field's value.

SetSshPublicKeyBody

func (s *SshPublicKey) SetSshPublicKeyBody(v string) *SshPublicKey

SetSshPublicKeyBody sets the SshPublicKeyBody field's value.

SetSshPublicKeyId

func (s *SshPublicKey) SetSshPublicKeyId(v string) *SshPublicKey

SetSshPublicKeyId sets the SshPublicKeyId field's value.

String

func (s SshPublicKey) String() string

String returns the string representation

On this page: