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.

ImportSshPublicKeyInput

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

type ImportSshPublicKeyInput struct { ServerId *string `type:"string" required:"true"` SshPublicKeyBody *string `type:"string" required:"true"` UserName *string `type:"string" required:"true"` }

ServerId

Type: *string

A system-assigned unique identifier for an SFTP server.

ServerId is a required field

SshPublicKeyBody

Type: *string

The public key portion of an SSH key pair.

SshPublicKeyBody is a required field

UserName

Type: *string

The name of the user account that is assigned to one or more servers.

UserName is a required field

Method

GoString

func (s ImportSshPublicKeyInput) GoString() string

GoString returns the string representation

SetServerId

func (s *ImportSshPublicKeyInput) SetServerId(v string) *ImportSshPublicKeyInput

SetServerId sets the ServerId field's value.

SetSshPublicKeyBody

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

SetSshPublicKeyBody sets the SshPublicKeyBody field's value.

SetUserName

func (s *ImportSshPublicKeyInput) SetUserName(v string) *ImportSshPublicKeyInput

SetUserName sets the UserName field's value.

String

func (s ImportSshPublicKeyInput) String() string

String returns the string representation

Validate

func (s *ImportSshPublicKeyInput) Validate() error

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

On this page: