Documentation ¶
Overview ¶
Package lightsail provides a client for Amazon Lightsail.
Index ¶
- Constants
- type AllocateStaticIpInput
- type AllocateStaticIpOutput
- type AttachStaticIpInput
- type AttachStaticIpOutput
- type AvailabilityZone
- type Blueprint
- func (s Blueprint) GoString() string
- func (s *Blueprint) SetBlueprintId(v string) *Blueprint
- func (s *Blueprint) SetDescription(v string) *Blueprint
- func (s *Blueprint) SetGroup(v string) *Blueprint
- func (s *Blueprint) SetIsActive(v bool) *Blueprint
- func (s *Blueprint) SetLicenseUrl(v string) *Blueprint
- func (s *Blueprint) SetMinPower(v int64) *Blueprint
- func (s *Blueprint) SetName(v string) *Blueprint
- func (s *Blueprint) SetProductUrl(v string) *Blueprint
- func (s *Blueprint) SetType(v string) *Blueprint
- func (s *Blueprint) SetVersion(v string) *Blueprint
- func (s *Blueprint) SetVersionCode(v string) *Blueprint
- func (s Blueprint) String() string
- type Bundle
- func (s Bundle) GoString() string
- func (s *Bundle) SetBundleId(v string) *Bundle
- func (s *Bundle) SetCpuCount(v int64) *Bundle
- func (s *Bundle) SetDiskSizeInGb(v int64) *Bundle
- func (s *Bundle) SetInstanceType(v string) *Bundle
- func (s *Bundle) SetIsActive(v bool) *Bundle
- func (s *Bundle) SetName(v string) *Bundle
- func (s *Bundle) SetPower(v int64) *Bundle
- func (s *Bundle) SetPrice(v float64) *Bundle
- func (s *Bundle) SetRamSizeInGb(v float64) *Bundle
- func (s *Bundle) SetTransferPerMonthInGb(v int64) *Bundle
- func (s Bundle) String() string
- type CloseInstancePublicPortsInput
- func (s CloseInstancePublicPortsInput) GoString() string
- func (s *CloseInstancePublicPortsInput) SetInstanceName(v string) *CloseInstancePublicPortsInput
- func (s *CloseInstancePublicPortsInput) SetPortInfo(v *PortInfo) *CloseInstancePublicPortsInput
- func (s CloseInstancePublicPortsInput) String() string
- func (s *CloseInstancePublicPortsInput) Validate() error
- type CloseInstancePublicPortsOutput
- type CreateDomainEntryInput
- func (s CreateDomainEntryInput) GoString() string
- func (s *CreateDomainEntryInput) SetDomainEntry(v *DomainEntry) *CreateDomainEntryInput
- func (s *CreateDomainEntryInput) SetDomainName(v string) *CreateDomainEntryInput
- func (s CreateDomainEntryInput) String() string
- func (s *CreateDomainEntryInput) Validate() error
- type CreateDomainEntryOutput
- type CreateDomainInput
- type CreateDomainOutput
- type CreateInstanceSnapshotInput
- func (s CreateInstanceSnapshotInput) GoString() string
- func (s *CreateInstanceSnapshotInput) SetInstanceName(v string) *CreateInstanceSnapshotInput
- func (s *CreateInstanceSnapshotInput) SetInstanceSnapshotName(v string) *CreateInstanceSnapshotInput
- func (s CreateInstanceSnapshotInput) String() string
- func (s *CreateInstanceSnapshotInput) Validate() error
- type CreateInstanceSnapshotOutput
- type CreateInstancesFromSnapshotInput
- func (s CreateInstancesFromSnapshotInput) GoString() string
- func (s *CreateInstancesFromSnapshotInput) SetAvailabilityZone(v string) *CreateInstancesFromSnapshotInput
- func (s *CreateInstancesFromSnapshotInput) SetBundleId(v string) *CreateInstancesFromSnapshotInput
- func (s *CreateInstancesFromSnapshotInput) SetInstanceNames(v []*string) *CreateInstancesFromSnapshotInput
- func (s *CreateInstancesFromSnapshotInput) SetInstanceSnapshotName(v string) *CreateInstancesFromSnapshotInput
- func (s *CreateInstancesFromSnapshotInput) SetKeyPairName(v string) *CreateInstancesFromSnapshotInput
- func (s *CreateInstancesFromSnapshotInput) SetUserData(v string) *CreateInstancesFromSnapshotInput
- func (s CreateInstancesFromSnapshotInput) String() string
- func (s *CreateInstancesFromSnapshotInput) Validate() error
- type CreateInstancesFromSnapshotOutput
- type CreateInstancesInput
- func (s CreateInstancesInput) GoString() string
- func (s *CreateInstancesInput) SetAvailabilityZone(v string) *CreateInstancesInput
- func (s *CreateInstancesInput) SetBlueprintId(v string) *CreateInstancesInput
- func (s *CreateInstancesInput) SetBundleId(v string) *CreateInstancesInput
- func (s *CreateInstancesInput) SetCustomImageName(v string) *CreateInstancesInput
- func (s *CreateInstancesInput) SetInstanceNames(v []*string) *CreateInstancesInput
- func (s *CreateInstancesInput) SetKeyPairName(v string) *CreateInstancesInput
- func (s *CreateInstancesInput) SetUserData(v string) *CreateInstancesInput
- func (s CreateInstancesInput) String() string
- func (s *CreateInstancesInput) Validate() error
- type CreateInstancesOutput
- type CreateKeyPairInput
- type CreateKeyPairOutput
- func (s CreateKeyPairOutput) GoString() string
- func (s *CreateKeyPairOutput) SetKeyPair(v *KeyPair) *CreateKeyPairOutput
- func (s *CreateKeyPairOutput) SetOperation(v *Operation) *CreateKeyPairOutput
- func (s *CreateKeyPairOutput) SetPrivateKeyBase64(v string) *CreateKeyPairOutput
- func (s *CreateKeyPairOutput) SetPublicKeyBase64(v string) *CreateKeyPairOutput
- func (s CreateKeyPairOutput) String() string
- type DeleteDomainEntryInput
- func (s DeleteDomainEntryInput) GoString() string
- func (s *DeleteDomainEntryInput) SetDomainEntry(v *DomainEntry) *DeleteDomainEntryInput
- func (s *DeleteDomainEntryInput) SetDomainName(v string) *DeleteDomainEntryInput
- func (s DeleteDomainEntryInput) String() string
- func (s *DeleteDomainEntryInput) Validate() error
- type DeleteDomainEntryOutput
- type DeleteDomainInput
- type DeleteDomainOutput
- type DeleteInstanceInput
- type DeleteInstanceOutput
- type DeleteInstanceSnapshotInput
- type DeleteInstanceSnapshotOutput
- type DeleteKeyPairInput
- type DeleteKeyPairOutput
- type DetachStaticIpInput
- type DetachStaticIpOutput
- type Disk
- func (s Disk) GoString() string
- func (s *Disk) SetArn(v string) *Disk
- func (s *Disk) SetAttachedTo(v string) *Disk
- func (s *Disk) SetAttachmentState(v string) *Disk
- func (s *Disk) SetCreatedAt(v time.Time) *Disk
- func (s *Disk) SetGbInUse(v int64) *Disk
- func (s *Disk) SetIops(v int64) *Disk
- func (s *Disk) SetIsAttached(v bool) *Disk
- func (s *Disk) SetIsSystemDisk(v bool) *Disk
- func (s *Disk) SetLocation(v *ResourceLocation) *Disk
- func (s *Disk) SetName(v string) *Disk
- func (s *Disk) SetPath(v string) *Disk
- func (s *Disk) SetResourceType(v string) *Disk
- func (s *Disk) SetSizeInGb(v int64) *Disk
- func (s *Disk) SetSupportCode(v string) *Disk
- func (s Disk) String() string
- type Domain
- func (s Domain) GoString() string
- func (s *Domain) SetArn(v string) *Domain
- func (s *Domain) SetCreatedAt(v time.Time) *Domain
- func (s *Domain) SetDomainEntries(v []*DomainEntry) *Domain
- func (s *Domain) SetLocation(v *ResourceLocation) *Domain
- func (s *Domain) SetName(v string) *Domain
- func (s *Domain) SetResourceType(v string) *Domain
- func (s *Domain) SetSupportCode(v string) *Domain
- func (s Domain) String() string
- type DomainEntry
- func (s DomainEntry) GoString() string
- func (s *DomainEntry) SetId(v string) *DomainEntry
- func (s *DomainEntry) SetName(v string) *DomainEntry
- func (s *DomainEntry) SetOptions(v map[string]*string) *DomainEntry
- func (s *DomainEntry) SetTarget(v string) *DomainEntry
- func (s *DomainEntry) SetType(v string) *DomainEntry
- func (s DomainEntry) String() string
- type DownloadDefaultKeyPairInput
- type DownloadDefaultKeyPairOutput
- func (s DownloadDefaultKeyPairOutput) GoString() string
- func (s *DownloadDefaultKeyPairOutput) SetPrivateKeyBase64(v string) *DownloadDefaultKeyPairOutput
- func (s *DownloadDefaultKeyPairOutput) SetPublicKeyBase64(v string) *DownloadDefaultKeyPairOutput
- func (s DownloadDefaultKeyPairOutput) String() string
- type GetActiveNamesInput
- type GetActiveNamesOutput
- type GetBlueprintsInput
- type GetBlueprintsOutput
- type GetBundlesInput
- type GetBundlesOutput
- type GetDomainInput
- type GetDomainOutput
- type GetDomainsInput
- type GetDomainsOutput
- type GetInstanceAccessDetailsInput
- func (s GetInstanceAccessDetailsInput) GoString() string
- func (s *GetInstanceAccessDetailsInput) SetInstanceName(v string) *GetInstanceAccessDetailsInput
- func (s *GetInstanceAccessDetailsInput) SetProtocol(v string) *GetInstanceAccessDetailsInput
- func (s GetInstanceAccessDetailsInput) String() string
- func (s *GetInstanceAccessDetailsInput) Validate() error
- type GetInstanceAccessDetailsOutput
- type GetInstanceInput
- type GetInstanceMetricDataInput
- func (s GetInstanceMetricDataInput) GoString() string
- func (s *GetInstanceMetricDataInput) SetEndTime(v time.Time) *GetInstanceMetricDataInput
- func (s *GetInstanceMetricDataInput) SetInstanceName(v string) *GetInstanceMetricDataInput
- func (s *GetInstanceMetricDataInput) SetMetricName(v string) *GetInstanceMetricDataInput
- func (s *GetInstanceMetricDataInput) SetPeriod(v int64) *GetInstanceMetricDataInput
- func (s *GetInstanceMetricDataInput) SetStartTime(v time.Time) *GetInstanceMetricDataInput
- func (s *GetInstanceMetricDataInput) SetStatistics(v []*string) *GetInstanceMetricDataInput
- func (s *GetInstanceMetricDataInput) SetUnit(v string) *GetInstanceMetricDataInput
- func (s GetInstanceMetricDataInput) String() string
- func (s *GetInstanceMetricDataInput) Validate() error
- type GetInstanceMetricDataOutput
- func (s GetInstanceMetricDataOutput) GoString() string
- func (s *GetInstanceMetricDataOutput) SetMetricData(v []*MetricDatapoint) *GetInstanceMetricDataOutput
- func (s *GetInstanceMetricDataOutput) SetMetricName(v string) *GetInstanceMetricDataOutput
- func (s GetInstanceMetricDataOutput) String() string
- type GetInstanceOutput
- type GetInstancePortStatesInput
- type GetInstancePortStatesOutput
- type GetInstanceSnapshotInput
- type GetInstanceSnapshotOutput
- type GetInstanceSnapshotsInput
- type GetInstanceSnapshotsOutput
- func (s GetInstanceSnapshotsOutput) GoString() string
- func (s *GetInstanceSnapshotsOutput) SetInstanceSnapshots(v []*InstanceSnapshot) *GetInstanceSnapshotsOutput
- func (s *GetInstanceSnapshotsOutput) SetNextPageToken(v string) *GetInstanceSnapshotsOutput
- func (s GetInstanceSnapshotsOutput) String() string
- type GetInstanceStateInput
- type GetInstanceStateOutput
- type GetInstancesInput
- type GetInstancesOutput
- type GetKeyPairInput
- type GetKeyPairOutput
- type GetKeyPairsInput
- type GetKeyPairsOutput
- type GetOperationInput
- type GetOperationOutput
- type GetOperationsForResourceInput
- func (s GetOperationsForResourceInput) GoString() string
- func (s *GetOperationsForResourceInput) SetPageToken(v string) *GetOperationsForResourceInput
- func (s *GetOperationsForResourceInput) SetResourceName(v string) *GetOperationsForResourceInput
- func (s GetOperationsForResourceInput) String() string
- func (s *GetOperationsForResourceInput) Validate() error
- type GetOperationsForResourceOutput
- func (s GetOperationsForResourceOutput) GoString() string
- func (s *GetOperationsForResourceOutput) SetNextPageCount(v string) *GetOperationsForResourceOutput
- func (s *GetOperationsForResourceOutput) SetOperations(v []*Operation) *GetOperationsForResourceOutput
- func (s GetOperationsForResourceOutput) String() string
- type GetOperationsInput
- type GetOperationsOutput
- type GetRegionsInput
- type GetRegionsOutput
- type GetStaticIpInput
- type GetStaticIpOutput
- type GetStaticIpsInput
- type GetStaticIpsOutput
- type ImportKeyPairInput
- type ImportKeyPairOutput
- type Instance
- func (s Instance) GoString() string
- func (s *Instance) SetArn(v string) *Instance
- func (s *Instance) SetBlueprintId(v string) *Instance
- func (s *Instance) SetBlueprintName(v string) *Instance
- func (s *Instance) SetBundleId(v string) *Instance
- func (s *Instance) SetCreatedAt(v time.Time) *Instance
- func (s *Instance) SetHardware(v *InstanceHardware) *Instance
- func (s *Instance) SetIpv6Address(v string) *Instance
- func (s *Instance) SetIsStaticIp(v bool) *Instance
- func (s *Instance) SetLocation(v *ResourceLocation) *Instance
- func (s *Instance) SetName(v string) *Instance
- func (s *Instance) SetNetworking(v *InstanceNetworking) *Instance
- func (s *Instance) SetPrivateIpAddress(v string) *Instance
- func (s *Instance) SetPublicIpAddress(v string) *Instance
- func (s *Instance) SetResourceType(v string) *Instance
- func (s *Instance) SetSshKeyName(v string) *Instance
- func (s *Instance) SetState(v *InstanceState) *Instance
- func (s *Instance) SetSupportCode(v string) *Instance
- func (s *Instance) SetUsername(v string) *Instance
- func (s Instance) String() string
- type InstanceAccessDetails
- func (s InstanceAccessDetails) GoString() string
- func (s *InstanceAccessDetails) SetCertKey(v string) *InstanceAccessDetails
- func (s *InstanceAccessDetails) SetExpiresAt(v time.Time) *InstanceAccessDetails
- func (s *InstanceAccessDetails) SetInstanceName(v string) *InstanceAccessDetails
- func (s *InstanceAccessDetails) SetIpAddress(v string) *InstanceAccessDetails
- func (s *InstanceAccessDetails) SetPassword(v string) *InstanceAccessDetails
- func (s *InstanceAccessDetails) SetPrivateKey(v string) *InstanceAccessDetails
- func (s *InstanceAccessDetails) SetProtocol(v string) *InstanceAccessDetails
- func (s *InstanceAccessDetails) SetUsername(v string) *InstanceAccessDetails
- func (s InstanceAccessDetails) String() string
- type InstanceHardware
- type InstanceNetworking
- type InstancePortInfo
- func (s InstancePortInfo) GoString() string
- func (s *InstancePortInfo) SetAccessDirection(v string) *InstancePortInfo
- func (s *InstancePortInfo) SetAccessFrom(v string) *InstancePortInfo
- func (s *InstancePortInfo) SetAccessType(v string) *InstancePortInfo
- func (s *InstancePortInfo) SetCommonName(v string) *InstancePortInfo
- func (s *InstancePortInfo) SetFromPort(v int64) *InstancePortInfo
- func (s *InstancePortInfo) SetProtocol(v string) *InstancePortInfo
- func (s *InstancePortInfo) SetToPort(v int64) *InstancePortInfo
- func (s InstancePortInfo) String() string
- type InstanceSnapshot
- func (s InstanceSnapshot) GoString() string
- func (s *InstanceSnapshot) SetArn(v string) *InstanceSnapshot
- func (s *InstanceSnapshot) SetCreatedAt(v time.Time) *InstanceSnapshot
- func (s *InstanceSnapshot) SetFromBlueprintId(v string) *InstanceSnapshot
- func (s *InstanceSnapshot) SetFromBundleId(v string) *InstanceSnapshot
- func (s *InstanceSnapshot) SetFromInstanceArn(v string) *InstanceSnapshot
- func (s *InstanceSnapshot) SetFromInstanceName(v string) *InstanceSnapshot
- func (s *InstanceSnapshot) SetLocation(v *ResourceLocation) *InstanceSnapshot
- func (s *InstanceSnapshot) SetName(v string) *InstanceSnapshot
- func (s *InstanceSnapshot) SetProgress(v string) *InstanceSnapshot
- func (s *InstanceSnapshot) SetResourceType(v string) *InstanceSnapshot
- func (s *InstanceSnapshot) SetSizeInGb(v int64) *InstanceSnapshot
- func (s *InstanceSnapshot) SetState(v string) *InstanceSnapshot
- func (s *InstanceSnapshot) SetSupportCode(v string) *InstanceSnapshot
- func (s InstanceSnapshot) String() string
- type InstanceState
- type IsVpcPeeredInput
- type IsVpcPeeredOutput
- type KeyPair
- func (s KeyPair) GoString() string
- func (s *KeyPair) SetArn(v string) *KeyPair
- func (s *KeyPair) SetCreatedAt(v time.Time) *KeyPair
- func (s *KeyPair) SetFingerprint(v string) *KeyPair
- func (s *KeyPair) SetLocation(v *ResourceLocation) *KeyPair
- func (s *KeyPair) SetName(v string) *KeyPair
- func (s *KeyPair) SetResourceType(v string) *KeyPair
- func (s *KeyPair) SetSupportCode(v string) *KeyPair
- func (s KeyPair) String() string
- type Lightsail
- func (c *Lightsail) AllocateStaticIp(input *AllocateStaticIpInput) (*AllocateStaticIpOutput, error)
- func (c *Lightsail) AllocateStaticIpRequest(input *AllocateStaticIpInput) (req *request.Request, output *AllocateStaticIpOutput)
- func (c *Lightsail) AllocateStaticIpWithContext(ctx aws.Context, input *AllocateStaticIpInput, opts ...request.Option) (*AllocateStaticIpOutput, error)
- func (c *Lightsail) AttachStaticIp(input *AttachStaticIpInput) (*AttachStaticIpOutput, error)
- func (c *Lightsail) AttachStaticIpRequest(input *AttachStaticIpInput) (req *request.Request, output *AttachStaticIpOutput)
- func (c *Lightsail) AttachStaticIpWithContext(ctx aws.Context, input *AttachStaticIpInput, opts ...request.Option) (*AttachStaticIpOutput, error)
- func (c *Lightsail) CloseInstancePublicPorts(input *CloseInstancePublicPortsInput) (*CloseInstancePublicPortsOutput, error)
- func (c *Lightsail) CloseInstancePublicPortsRequest(input *CloseInstancePublicPortsInput) (req *request.Request, output *CloseInstancePublicPortsOutput)
- func (c *Lightsail) CloseInstancePublicPortsWithContext(ctx aws.Context, input *CloseInstancePublicPortsInput, opts ...request.Option) (*CloseInstancePublicPortsOutput, error)
- func (c *Lightsail) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error)
- func (c *Lightsail) CreateDomainEntry(input *CreateDomainEntryInput) (*CreateDomainEntryOutput, error)
- func (c *Lightsail) CreateDomainEntryRequest(input *CreateDomainEntryInput) (req *request.Request, output *CreateDomainEntryOutput)
- func (c *Lightsail) CreateDomainEntryWithContext(ctx aws.Context, input *CreateDomainEntryInput, opts ...request.Option) (*CreateDomainEntryOutput, error)
- func (c *Lightsail) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput)
- func (c *Lightsail) CreateDomainWithContext(ctx aws.Context, input *CreateDomainInput, opts ...request.Option) (*CreateDomainOutput, error)
- func (c *Lightsail) CreateInstanceSnapshot(input *CreateInstanceSnapshotInput) (*CreateInstanceSnapshotOutput, error)
- func (c *Lightsail) CreateInstanceSnapshotRequest(input *CreateInstanceSnapshotInput) (req *request.Request, output *CreateInstanceSnapshotOutput)
- func (c *Lightsail) CreateInstanceSnapshotWithContext(ctx aws.Context, input *CreateInstanceSnapshotInput, opts ...request.Option) (*CreateInstanceSnapshotOutput, error)
- func (c *Lightsail) CreateInstances(input *CreateInstancesInput) (*CreateInstancesOutput, error)
- func (c *Lightsail) CreateInstancesFromSnapshot(input *CreateInstancesFromSnapshotInput) (*CreateInstancesFromSnapshotOutput, error)
- func (c *Lightsail) CreateInstancesFromSnapshotRequest(input *CreateInstancesFromSnapshotInput) (req *request.Request, output *CreateInstancesFromSnapshotOutput)
- func (c *Lightsail) CreateInstancesFromSnapshotWithContext(ctx aws.Context, input *CreateInstancesFromSnapshotInput, ...) (*CreateInstancesFromSnapshotOutput, error)
- func (c *Lightsail) CreateInstancesRequest(input *CreateInstancesInput) (req *request.Request, output *CreateInstancesOutput)
- func (c *Lightsail) CreateInstancesWithContext(ctx aws.Context, input *CreateInstancesInput, opts ...request.Option) (*CreateInstancesOutput, error)
- func (c *Lightsail) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, error)
- func (c *Lightsail) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Request, output *CreateKeyPairOutput)
- func (c *Lightsail) CreateKeyPairWithContext(ctx aws.Context, input *CreateKeyPairInput, opts ...request.Option) (*CreateKeyPairOutput, error)
- func (c *Lightsail) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error)
- func (c *Lightsail) DeleteDomainEntry(input *DeleteDomainEntryInput) (*DeleteDomainEntryOutput, error)
- func (c *Lightsail) DeleteDomainEntryRequest(input *DeleteDomainEntryInput) (req *request.Request, output *DeleteDomainEntryOutput)
- func (c *Lightsail) DeleteDomainEntryWithContext(ctx aws.Context, input *DeleteDomainEntryInput, opts ...request.Option) (*DeleteDomainEntryOutput, error)
- func (c *Lightsail) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput)
- func (c *Lightsail) DeleteDomainWithContext(ctx aws.Context, input *DeleteDomainInput, opts ...request.Option) (*DeleteDomainOutput, error)
- func (c *Lightsail) DeleteInstance(input *DeleteInstanceInput) (*DeleteInstanceOutput, error)
- func (c *Lightsail) DeleteInstanceRequest(input *DeleteInstanceInput) (req *request.Request, output *DeleteInstanceOutput)
- func (c *Lightsail) DeleteInstanceSnapshot(input *DeleteInstanceSnapshotInput) (*DeleteInstanceSnapshotOutput, error)
- func (c *Lightsail) DeleteInstanceSnapshotRequest(input *DeleteInstanceSnapshotInput) (req *request.Request, output *DeleteInstanceSnapshotOutput)
- func (c *Lightsail) DeleteInstanceSnapshotWithContext(ctx aws.Context, input *DeleteInstanceSnapshotInput, opts ...request.Option) (*DeleteInstanceSnapshotOutput, error)
- func (c *Lightsail) DeleteInstanceWithContext(ctx aws.Context, input *DeleteInstanceInput, opts ...request.Option) (*DeleteInstanceOutput, error)
- func (c *Lightsail) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, error)
- func (c *Lightsail) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Request, output *DeleteKeyPairOutput)
- func (c *Lightsail) DeleteKeyPairWithContext(ctx aws.Context, input *DeleteKeyPairInput, opts ...request.Option) (*DeleteKeyPairOutput, error)
- func (c *Lightsail) DetachStaticIp(input *DetachStaticIpInput) (*DetachStaticIpOutput, error)
- func (c *Lightsail) DetachStaticIpRequest(input *DetachStaticIpInput) (req *request.Request, output *DetachStaticIpOutput)
- func (c *Lightsail) DetachStaticIpWithContext(ctx aws.Context, input *DetachStaticIpInput, opts ...request.Option) (*DetachStaticIpOutput, error)
- func (c *Lightsail) DownloadDefaultKeyPair(input *DownloadDefaultKeyPairInput) (*DownloadDefaultKeyPairOutput, error)
- func (c *Lightsail) DownloadDefaultKeyPairRequest(input *DownloadDefaultKeyPairInput) (req *request.Request, output *DownloadDefaultKeyPairOutput)
- func (c *Lightsail) DownloadDefaultKeyPairWithContext(ctx aws.Context, input *DownloadDefaultKeyPairInput, opts ...request.Option) (*DownloadDefaultKeyPairOutput, error)
- func (c *Lightsail) GetActiveNames(input *GetActiveNamesInput) (*GetActiveNamesOutput, error)
- func (c *Lightsail) GetActiveNamesRequest(input *GetActiveNamesInput) (req *request.Request, output *GetActiveNamesOutput)
- func (c *Lightsail) GetActiveNamesWithContext(ctx aws.Context, input *GetActiveNamesInput, opts ...request.Option) (*GetActiveNamesOutput, error)
- func (c *Lightsail) GetBlueprints(input *GetBlueprintsInput) (*GetBlueprintsOutput, error)
- func (c *Lightsail) GetBlueprintsRequest(input *GetBlueprintsInput) (req *request.Request, output *GetBlueprintsOutput)
- func (c *Lightsail) GetBlueprintsWithContext(ctx aws.Context, input *GetBlueprintsInput, opts ...request.Option) (*GetBlueprintsOutput, error)
- func (c *Lightsail) GetBundles(input *GetBundlesInput) (*GetBundlesOutput, error)
- func (c *Lightsail) GetBundlesRequest(input *GetBundlesInput) (req *request.Request, output *GetBundlesOutput)
- func (c *Lightsail) GetBundlesWithContext(ctx aws.Context, input *GetBundlesInput, opts ...request.Option) (*GetBundlesOutput, error)
- func (c *Lightsail) GetDomain(input *GetDomainInput) (*GetDomainOutput, error)
- func (c *Lightsail) GetDomainRequest(input *GetDomainInput) (req *request.Request, output *GetDomainOutput)
- func (c *Lightsail) GetDomainWithContext(ctx aws.Context, input *GetDomainInput, opts ...request.Option) (*GetDomainOutput, error)
- func (c *Lightsail) GetDomains(input *GetDomainsInput) (*GetDomainsOutput, error)
- func (c *Lightsail) GetDomainsRequest(input *GetDomainsInput) (req *request.Request, output *GetDomainsOutput)
- func (c *Lightsail) GetDomainsWithContext(ctx aws.Context, input *GetDomainsInput, opts ...request.Option) (*GetDomainsOutput, error)
- func (c *Lightsail) GetInstance(input *GetInstanceInput) (*GetInstanceOutput, error)
- func (c *Lightsail) GetInstanceAccessDetails(input *GetInstanceAccessDetailsInput) (*GetInstanceAccessDetailsOutput, error)
- func (c *Lightsail) GetInstanceAccessDetailsRequest(input *GetInstanceAccessDetailsInput) (req *request.Request, output *GetInstanceAccessDetailsOutput)
- func (c *Lightsail) GetInstanceAccessDetailsWithContext(ctx aws.Context, input *GetInstanceAccessDetailsInput, opts ...request.Option) (*GetInstanceAccessDetailsOutput, error)
- func (c *Lightsail) GetInstanceMetricData(input *GetInstanceMetricDataInput) (*GetInstanceMetricDataOutput, error)
- func (c *Lightsail) GetInstanceMetricDataRequest(input *GetInstanceMetricDataInput) (req *request.Request, output *GetInstanceMetricDataOutput)
- func (c *Lightsail) GetInstanceMetricDataWithContext(ctx aws.Context, input *GetInstanceMetricDataInput, opts ...request.Option) (*GetInstanceMetricDataOutput, error)
- func (c *Lightsail) GetInstancePortStates(input *GetInstancePortStatesInput) (*GetInstancePortStatesOutput, error)
- func (c *Lightsail) GetInstancePortStatesRequest(input *GetInstancePortStatesInput) (req *request.Request, output *GetInstancePortStatesOutput)
- func (c *Lightsail) GetInstancePortStatesWithContext(ctx aws.Context, input *GetInstancePortStatesInput, opts ...request.Option) (*GetInstancePortStatesOutput, error)
- func (c *Lightsail) GetInstanceRequest(input *GetInstanceInput) (req *request.Request, output *GetInstanceOutput)
- func (c *Lightsail) GetInstanceSnapshot(input *GetInstanceSnapshotInput) (*GetInstanceSnapshotOutput, error)
- func (c *Lightsail) GetInstanceSnapshotRequest(input *GetInstanceSnapshotInput) (req *request.Request, output *GetInstanceSnapshotOutput)
- func (c *Lightsail) GetInstanceSnapshotWithContext(ctx aws.Context, input *GetInstanceSnapshotInput, opts ...request.Option) (*GetInstanceSnapshotOutput, error)
- func (c *Lightsail) GetInstanceSnapshots(input *GetInstanceSnapshotsInput) (*GetInstanceSnapshotsOutput, error)
- func (c *Lightsail) GetInstanceSnapshotsRequest(input *GetInstanceSnapshotsInput) (req *request.Request, output *GetInstanceSnapshotsOutput)
- func (c *Lightsail) GetInstanceSnapshotsWithContext(ctx aws.Context, input *GetInstanceSnapshotsInput, opts ...request.Option) (*GetInstanceSnapshotsOutput, error)
- func (c *Lightsail) GetInstanceState(input *GetInstanceStateInput) (*GetInstanceStateOutput, error)
- func (c *Lightsail) GetInstanceStateRequest(input *GetInstanceStateInput) (req *request.Request, output *GetInstanceStateOutput)
- func (c *Lightsail) GetInstanceStateWithContext(ctx aws.Context, input *GetInstanceStateInput, opts ...request.Option) (*GetInstanceStateOutput, error)
- func (c *Lightsail) GetInstanceWithContext(ctx aws.Context, input *GetInstanceInput, opts ...request.Option) (*GetInstanceOutput, error)
- func (c *Lightsail) GetInstances(input *GetInstancesInput) (*GetInstancesOutput, error)
- func (c *Lightsail) GetInstancesRequest(input *GetInstancesInput) (req *request.Request, output *GetInstancesOutput)
- func (c *Lightsail) GetInstancesWithContext(ctx aws.Context, input *GetInstancesInput, opts ...request.Option) (*GetInstancesOutput, error)
- func (c *Lightsail) GetKeyPair(input *GetKeyPairInput) (*GetKeyPairOutput, error)
- func (c *Lightsail) GetKeyPairRequest(input *GetKeyPairInput) (req *request.Request, output *GetKeyPairOutput)
- func (c *Lightsail) GetKeyPairWithContext(ctx aws.Context, input *GetKeyPairInput, opts ...request.Option) (*GetKeyPairOutput, error)
- func (c *Lightsail) GetKeyPairs(input *GetKeyPairsInput) (*GetKeyPairsOutput, error)
- func (c *Lightsail) GetKeyPairsRequest(input *GetKeyPairsInput) (req *request.Request, output *GetKeyPairsOutput)
- func (c *Lightsail) GetKeyPairsWithContext(ctx aws.Context, input *GetKeyPairsInput, opts ...request.Option) (*GetKeyPairsOutput, error)
- func (c *Lightsail) GetOperation(input *GetOperationInput) (*GetOperationOutput, error)
- func (c *Lightsail) GetOperationRequest(input *GetOperationInput) (req *request.Request, output *GetOperationOutput)
- func (c *Lightsail) GetOperationWithContext(ctx aws.Context, input *GetOperationInput, opts ...request.Option) (*GetOperationOutput, error)
- func (c *Lightsail) GetOperations(input *GetOperationsInput) (*GetOperationsOutput, error)
- func (c *Lightsail) GetOperationsForResource(input *GetOperationsForResourceInput) (*GetOperationsForResourceOutput, error)
- func (c *Lightsail) GetOperationsForResourceRequest(input *GetOperationsForResourceInput) (req *request.Request, output *GetOperationsForResourceOutput)
- func (c *Lightsail) GetOperationsForResourceWithContext(ctx aws.Context, input *GetOperationsForResourceInput, opts ...request.Option) (*GetOperationsForResourceOutput, error)
- func (c *Lightsail) GetOperationsRequest(input *GetOperationsInput) (req *request.Request, output *GetOperationsOutput)
- func (c *Lightsail) GetOperationsWithContext(ctx aws.Context, input *GetOperationsInput, opts ...request.Option) (*GetOperationsOutput, error)
- func (c *Lightsail) GetRegions(input *GetRegionsInput) (*GetRegionsOutput, error)
- func (c *Lightsail) GetRegionsRequest(input *GetRegionsInput) (req *request.Request, output *GetRegionsOutput)
- func (c *Lightsail) GetRegionsWithContext(ctx aws.Context, input *GetRegionsInput, opts ...request.Option) (*GetRegionsOutput, error)
- func (c *Lightsail) GetStaticIp(input *GetStaticIpInput) (*GetStaticIpOutput, error)
- func (c *Lightsail) GetStaticIpRequest(input *GetStaticIpInput) (req *request.Request, output *GetStaticIpOutput)
- func (c *Lightsail) GetStaticIpWithContext(ctx aws.Context, input *GetStaticIpInput, opts ...request.Option) (*GetStaticIpOutput, error)
- func (c *Lightsail) GetStaticIps(input *GetStaticIpsInput) (*GetStaticIpsOutput, error)
- func (c *Lightsail) GetStaticIpsRequest(input *GetStaticIpsInput) (req *request.Request, output *GetStaticIpsOutput)
- func (c *Lightsail) GetStaticIpsWithContext(ctx aws.Context, input *GetStaticIpsInput, opts ...request.Option) (*GetStaticIpsOutput, error)
- func (c *Lightsail) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error)
- func (c *Lightsail) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Request, output *ImportKeyPairOutput)
- func (c *Lightsail) ImportKeyPairWithContext(ctx aws.Context, input *ImportKeyPairInput, opts ...request.Option) (*ImportKeyPairOutput, error)
- func (c *Lightsail) IsVpcPeered(input *IsVpcPeeredInput) (*IsVpcPeeredOutput, error)
- func (c *Lightsail) IsVpcPeeredRequest(input *IsVpcPeeredInput) (req *request.Request, output *IsVpcPeeredOutput)
- func (c *Lightsail) IsVpcPeeredWithContext(ctx aws.Context, input *IsVpcPeeredInput, opts ...request.Option) (*IsVpcPeeredOutput, error)
- func (c *Lightsail) OpenInstancePublicPorts(input *OpenInstancePublicPortsInput) (*OpenInstancePublicPortsOutput, error)
- func (c *Lightsail) OpenInstancePublicPortsRequest(input *OpenInstancePublicPortsInput) (req *request.Request, output *OpenInstancePublicPortsOutput)
- func (c *Lightsail) OpenInstancePublicPortsWithContext(ctx aws.Context, input *OpenInstancePublicPortsInput, opts ...request.Option) (*OpenInstancePublicPortsOutput, error)
- func (c *Lightsail) PeerVpc(input *PeerVpcInput) (*PeerVpcOutput, error)
- func (c *Lightsail) PeerVpcRequest(input *PeerVpcInput) (req *request.Request, output *PeerVpcOutput)
- func (c *Lightsail) PeerVpcWithContext(ctx aws.Context, input *PeerVpcInput, opts ...request.Option) (*PeerVpcOutput, error)
- func (c *Lightsail) RebootInstance(input *RebootInstanceInput) (*RebootInstanceOutput, error)
- func (c *Lightsail) RebootInstanceRequest(input *RebootInstanceInput) (req *request.Request, output *RebootInstanceOutput)
- func (c *Lightsail) RebootInstanceWithContext(ctx aws.Context, input *RebootInstanceInput, opts ...request.Option) (*RebootInstanceOutput, error)
- func (c *Lightsail) ReleaseStaticIp(input *ReleaseStaticIpInput) (*ReleaseStaticIpOutput, error)
- func (c *Lightsail) ReleaseStaticIpRequest(input *ReleaseStaticIpInput) (req *request.Request, output *ReleaseStaticIpOutput)
- func (c *Lightsail) ReleaseStaticIpWithContext(ctx aws.Context, input *ReleaseStaticIpInput, opts ...request.Option) (*ReleaseStaticIpOutput, error)
- func (c *Lightsail) StartInstance(input *StartInstanceInput) (*StartInstanceOutput, error)
- func (c *Lightsail) StartInstanceRequest(input *StartInstanceInput) (req *request.Request, output *StartInstanceOutput)
- func (c *Lightsail) StartInstanceWithContext(ctx aws.Context, input *StartInstanceInput, opts ...request.Option) (*StartInstanceOutput, error)
- func (c *Lightsail) StopInstance(input *StopInstanceInput) (*StopInstanceOutput, error)
- func (c *Lightsail) StopInstanceRequest(input *StopInstanceInput) (req *request.Request, output *StopInstanceOutput)
- func (c *Lightsail) StopInstanceWithContext(ctx aws.Context, input *StopInstanceInput, opts ...request.Option) (*StopInstanceOutput, error)
- func (c *Lightsail) UnpeerVpc(input *UnpeerVpcInput) (*UnpeerVpcOutput, error)
- func (c *Lightsail) UnpeerVpcRequest(input *UnpeerVpcInput) (req *request.Request, output *UnpeerVpcOutput)
- func (c *Lightsail) UnpeerVpcWithContext(ctx aws.Context, input *UnpeerVpcInput, opts ...request.Option) (*UnpeerVpcOutput, error)
- func (c *Lightsail) UpdateDomainEntry(input *UpdateDomainEntryInput) (*UpdateDomainEntryOutput, error)
- func (c *Lightsail) UpdateDomainEntryRequest(input *UpdateDomainEntryInput) (req *request.Request, output *UpdateDomainEntryOutput)
- func (c *Lightsail) UpdateDomainEntryWithContext(ctx aws.Context, input *UpdateDomainEntryInput, opts ...request.Option) (*UpdateDomainEntryOutput, error)
- type MetricDatapoint
- func (s MetricDatapoint) GoString() string
- func (s *MetricDatapoint) SetAverage(v float64) *MetricDatapoint
- func (s *MetricDatapoint) SetMaximum(v float64) *MetricDatapoint
- func (s *MetricDatapoint) SetMinimum(v float64) *MetricDatapoint
- func (s *MetricDatapoint) SetSampleCount(v float64) *MetricDatapoint
- func (s *MetricDatapoint) SetSum(v float64) *MetricDatapoint
- func (s *MetricDatapoint) SetTimestamp(v time.Time) *MetricDatapoint
- func (s *MetricDatapoint) SetUnit(v string) *MetricDatapoint
- func (s MetricDatapoint) String() string
- type MonthlyTransfer
- type OpenInstancePublicPortsInput
- func (s OpenInstancePublicPortsInput) GoString() string
- func (s *OpenInstancePublicPortsInput) SetInstanceName(v string) *OpenInstancePublicPortsInput
- func (s *OpenInstancePublicPortsInput) SetPortInfo(v *PortInfo) *OpenInstancePublicPortsInput
- func (s OpenInstancePublicPortsInput) String() string
- func (s *OpenInstancePublicPortsInput) Validate() error
- type OpenInstancePublicPortsOutput
- type Operation
- func (s Operation) GoString() string
- func (s *Operation) SetCreatedAt(v time.Time) *Operation
- func (s *Operation) SetErrorCode(v string) *Operation
- func (s *Operation) SetErrorDetails(v string) *Operation
- func (s *Operation) SetId(v string) *Operation
- func (s *Operation) SetIsTerminal(v bool) *Operation
- func (s *Operation) SetLocation(v *ResourceLocation) *Operation
- func (s *Operation) SetOperationDetails(v string) *Operation
- func (s *Operation) SetOperationType(v string) *Operation
- func (s *Operation) SetResourceName(v string) *Operation
- func (s *Operation) SetResourceType(v string) *Operation
- func (s *Operation) SetStatus(v string) *Operation
- func (s *Operation) SetStatusChangedAt(v time.Time) *Operation
- func (s Operation) String() string
- type PeerVpcInput
- type PeerVpcOutput
- type PortInfo
- type RebootInstanceInput
- type RebootInstanceOutput
- type Region
- func (s Region) GoString() string
- func (s *Region) SetAvailabilityZones(v []*AvailabilityZone) *Region
- func (s *Region) SetContinentCode(v string) *Region
- func (s *Region) SetDescription(v string) *Region
- func (s *Region) SetDisplayName(v string) *Region
- func (s *Region) SetName(v string) *Region
- func (s Region) String() string
- type ReleaseStaticIpInput
- type ReleaseStaticIpOutput
- type ResourceLocation
- type StartInstanceInput
- type StartInstanceOutput
- type StaticIp
- func (s StaticIp) GoString() string
- func (s *StaticIp) SetArn(v string) *StaticIp
- func (s *StaticIp) SetAttachedTo(v string) *StaticIp
- func (s *StaticIp) SetCreatedAt(v time.Time) *StaticIp
- func (s *StaticIp) SetIpAddress(v string) *StaticIp
- func (s *StaticIp) SetIsAttached(v bool) *StaticIp
- func (s *StaticIp) SetLocation(v *ResourceLocation) *StaticIp
- func (s *StaticIp) SetName(v string) *StaticIp
- func (s *StaticIp) SetResourceType(v string) *StaticIp
- func (s *StaticIp) SetSupportCode(v string) *StaticIp
- func (s StaticIp) String() string
- type StopInstanceInput
- type StopInstanceOutput
- type UnpeerVpcInput
- type UnpeerVpcOutput
- type UpdateDomainEntryInput
- func (s UpdateDomainEntryInput) GoString() string
- func (s *UpdateDomainEntryInput) SetDomainEntry(v *DomainEntry) *UpdateDomainEntryInput
- func (s *UpdateDomainEntryInput) SetDomainName(v string) *UpdateDomainEntryInput
- func (s UpdateDomainEntryInput) String() string
- func (s *UpdateDomainEntryInput) Validate() error
- type UpdateDomainEntryOutput
Examples ¶
- Lightsail.AllocateStaticIp
- Lightsail.AttachStaticIp
- Lightsail.CloseInstancePublicPorts
- Lightsail.CreateDomain
- Lightsail.CreateDomainEntry
- Lightsail.CreateInstanceSnapshot
- Lightsail.CreateInstances
- Lightsail.CreateInstancesFromSnapshot
- Lightsail.CreateKeyPair
- Lightsail.DeleteDomain
- Lightsail.DeleteDomainEntry
- Lightsail.DeleteInstance
- Lightsail.DeleteInstanceSnapshot
- Lightsail.DeleteKeyPair
- Lightsail.DetachStaticIp
- Lightsail.DownloadDefaultKeyPair
- Lightsail.GetActiveNames
- Lightsail.GetBlueprints
- Lightsail.GetBundles
- Lightsail.GetDomain
- Lightsail.GetDomains
- Lightsail.GetInstance
- Lightsail.GetInstanceAccessDetails
- Lightsail.GetInstanceMetricData
- Lightsail.GetInstancePortStates
- Lightsail.GetInstanceSnapshot
- Lightsail.GetInstanceSnapshots
- Lightsail.GetInstanceState
- Lightsail.GetInstances
- Lightsail.GetKeyPair
- Lightsail.GetKeyPairs
- Lightsail.GetOperation
- Lightsail.GetOperations
- Lightsail.GetOperationsForResource
- Lightsail.GetRegions
- Lightsail.GetStaticIp
- Lightsail.GetStaticIps
- Lightsail.ImportKeyPair
- Lightsail.IsVpcPeered
- Lightsail.OpenInstancePublicPorts
- Lightsail.PeerVpc
- Lightsail.RebootInstance
- Lightsail.ReleaseStaticIp
- Lightsail.StartInstance
- Lightsail.StopInstance
- Lightsail.UnpeerVpc
- Lightsail.UpdateDomainEntry
Constants ¶
const ( // AccessDirectionInbound is a AccessDirection enum value AccessDirectionInbound = "inbound" // AccessDirectionOutbound is a AccessDirection enum value AccessDirectionOutbound = "outbound" )
const ( // BlueprintTypeOs is a BlueprintType enum value BlueprintTypeOs = "os" // BlueprintTypeApp is a BlueprintType enum value BlueprintTypeApp = "app" )
const ( // InstanceAccessProtocolSsh is a InstanceAccessProtocol enum value InstanceAccessProtocolSsh = "ssh" // InstanceAccessProtocolRdp is a InstanceAccessProtocol enum value InstanceAccessProtocolRdp = "rdp" )
const ( // InstanceMetricNameCpuutilization is a InstanceMetricName enum value InstanceMetricNameCpuutilization = "CPUUtilization" // InstanceMetricNameNetworkIn is a InstanceMetricName enum value InstanceMetricNameNetworkIn = "NetworkIn" // InstanceMetricNameNetworkOut is a InstanceMetricName enum value InstanceMetricNameNetworkOut = "NetworkOut" // InstanceMetricNameStatusCheckFailed is a InstanceMetricName enum value InstanceMetricNameStatusCheckFailed = "StatusCheckFailed" // InstanceMetricNameStatusCheckFailedInstance is a InstanceMetricName enum value InstanceMetricNameStatusCheckFailedInstance = "StatusCheckFailed_Instance" // InstanceMetricNameStatusCheckFailedSystem is a InstanceMetricName enum value InstanceMetricNameStatusCheckFailedSystem = "StatusCheckFailed_System" )
const ( // InstanceSnapshotStatePending is a InstanceSnapshotState enum value InstanceSnapshotStatePending = "pending" // InstanceSnapshotStateError is a InstanceSnapshotState enum value InstanceSnapshotStateError = "error" // InstanceSnapshotStateAvailable is a InstanceSnapshotState enum value InstanceSnapshotStateAvailable = "available" )
const ( // MetricStatisticMinimum is a MetricStatistic enum value MetricStatisticMinimum = "Minimum" // MetricStatisticMaximum is a MetricStatistic enum value MetricStatisticMaximum = "Maximum" // MetricStatisticSum is a MetricStatistic enum value MetricStatisticSum = "Sum" // MetricStatisticAverage is a MetricStatistic enum value MetricStatisticAverage = "Average" // MetricStatisticSampleCount is a MetricStatistic enum value MetricStatisticSampleCount = "SampleCount" )
const ( // MetricUnitSeconds is a MetricUnit enum value MetricUnitSeconds = "Seconds" // MetricUnitMicroseconds is a MetricUnit enum value MetricUnitMicroseconds = "Microseconds" // MetricUnitMilliseconds is a MetricUnit enum value MetricUnitMilliseconds = "Milliseconds" // MetricUnitBytes is a MetricUnit enum value MetricUnitBytes = "Bytes" // MetricUnitKilobytes is a MetricUnit enum value MetricUnitKilobytes = "Kilobytes" // MetricUnitMegabytes is a MetricUnit enum value MetricUnitMegabytes = "Megabytes" // MetricUnitGigabytes is a MetricUnit enum value MetricUnitGigabytes = "Gigabytes" // MetricUnitTerabytes is a MetricUnit enum value MetricUnitTerabytes = "Terabytes" // MetricUnitBits is a MetricUnit enum value MetricUnitBits = "Bits" // MetricUnitKilobits is a MetricUnit enum value MetricUnitKilobits = "Kilobits" // MetricUnitMegabits is a MetricUnit enum value MetricUnitMegabits = "Megabits" // MetricUnitGigabits is a MetricUnit enum value MetricUnitGigabits = "Gigabits" // MetricUnitTerabits is a MetricUnit enum value MetricUnitTerabits = "Terabits" // MetricUnitPercent is a MetricUnit enum value MetricUnitPercent = "Percent" // MetricUnitCount is a MetricUnit enum value MetricUnitCount = "Count" // MetricUnitBytesSecond is a MetricUnit enum value MetricUnitBytesSecond = "Bytes/Second" // MetricUnitKilobytesSecond is a MetricUnit enum value MetricUnitKilobytesSecond = "Kilobytes/Second" // MetricUnitMegabytesSecond is a MetricUnit enum value MetricUnitMegabytesSecond = "Megabytes/Second" // MetricUnitGigabytesSecond is a MetricUnit enum value MetricUnitGigabytesSecond = "Gigabytes/Second" // MetricUnitTerabytesSecond is a MetricUnit enum value MetricUnitTerabytesSecond = "Terabytes/Second" // MetricUnitBitsSecond is a MetricUnit enum value MetricUnitBitsSecond = "Bits/Second" // MetricUnitKilobitsSecond is a MetricUnit enum value MetricUnitKilobitsSecond = "Kilobits/Second" // MetricUnitMegabitsSecond is a MetricUnit enum value MetricUnitMegabitsSecond = "Megabits/Second" // MetricUnitGigabitsSecond is a MetricUnit enum value MetricUnitGigabitsSecond = "Gigabits/Second" // MetricUnitTerabitsSecond is a MetricUnit enum value MetricUnitTerabitsSecond = "Terabits/Second" // MetricUnitCountSecond is a MetricUnit enum value MetricUnitCountSecond = "Count/Second" // MetricUnitNone is a MetricUnit enum value MetricUnitNone = "None" )
const ( // NetworkProtocolTcp is a NetworkProtocol enum value NetworkProtocolTcp = "tcp" // NetworkProtocolAll is a NetworkProtocol enum value NetworkProtocolAll = "all" // NetworkProtocolUdp is a NetworkProtocol enum value NetworkProtocolUdp = "udp" )
const ( // OperationStatusNotStarted is a OperationStatus enum value OperationStatusNotStarted = "NotStarted" // OperationStatusStarted is a OperationStatus enum value OperationStatusStarted = "Started" // OperationStatusFailed is a OperationStatus enum value OperationStatusFailed = "Failed" // OperationStatusCompleted is a OperationStatus enum value OperationStatusCompleted = "Completed" )
const ( // OperationTypeDeleteInstance is a OperationType enum value OperationTypeDeleteInstance = "DeleteInstance" // OperationTypeCreateInstance is a OperationType enum value OperationTypeCreateInstance = "CreateInstance" // OperationTypeStopInstance is a OperationType enum value OperationTypeStopInstance = "StopInstance" // OperationTypeStartInstance is a OperationType enum value OperationTypeStartInstance = "StartInstance" // OperationTypeRebootInstance is a OperationType enum value OperationTypeRebootInstance = "RebootInstance" // OperationTypeOpenInstancePublicPorts is a OperationType enum value OperationTypeOpenInstancePublicPorts = "OpenInstancePublicPorts" // OperationTypeCloseInstancePublicPorts is a OperationType enum value OperationTypeCloseInstancePublicPorts = "CloseInstancePublicPorts" // OperationTypeAllocateStaticIp is a OperationType enum value OperationTypeAllocateStaticIp = "AllocateStaticIp" // OperationTypeReleaseStaticIp is a OperationType enum value OperationTypeReleaseStaticIp = "ReleaseStaticIp" // OperationTypeAttachStaticIp is a OperationType enum value OperationTypeAttachStaticIp = "AttachStaticIp" // OperationTypeDetachStaticIp is a OperationType enum value OperationTypeDetachStaticIp = "DetachStaticIp" // OperationTypeUpdateDomainEntry is a OperationType enum value OperationTypeUpdateDomainEntry = "UpdateDomainEntry" // OperationTypeDeleteDomainEntry is a OperationType enum value OperationTypeDeleteDomainEntry = "DeleteDomainEntry" // OperationTypeCreateDomain is a OperationType enum value OperationTypeCreateDomain = "CreateDomain" // OperationTypeDeleteDomain is a OperationType enum value OperationTypeDeleteDomain = "DeleteDomain" // OperationTypeCreateInstanceSnapshot is a OperationType enum value OperationTypeCreateInstanceSnapshot = "CreateInstanceSnapshot" // OperationTypeDeleteInstanceSnapshot is a OperationType enum value OperationTypeDeleteInstanceSnapshot = "DeleteInstanceSnapshot" // OperationTypeCreateInstancesFromSnapshot is a OperationType enum value OperationTypeCreateInstancesFromSnapshot = "CreateInstancesFromSnapshot" )
const ( // PortAccessTypePublic is a PortAccessType enum value PortAccessTypePublic = "Public" // PortAccessTypePrivate is a PortAccessType enum value PortAccessTypePrivate = "Private" )
const ( // PortStateOpen is a PortState enum value PortStateOpen = "open" // PortStateClosed is a PortState enum value PortStateClosed = "closed" )
const ( // RegionNameUsEast1 is a RegionName enum value RegionNameUsEast1 = "us-east-1" // RegionNameUsWest1 is a RegionName enum value RegionNameUsWest1 = "us-west-1" // RegionNameUsWest2 is a RegionName enum value RegionNameUsWest2 = "us-west-2" // RegionNameEuWest1 is a RegionName enum value RegionNameEuWest1 = "eu-west-1" // RegionNameEuCentral1 is a RegionName enum value RegionNameEuCentral1 = "eu-central-1" // RegionNameApSouth1 is a RegionName enum value RegionNameApSouth1 = "ap-south-1" // RegionNameApSoutheast1 is a RegionName enum value RegionNameApSoutheast1 = "ap-southeast-1" // RegionNameApSoutheast2 is a RegionName enum value RegionNameApSoutheast2 = "ap-southeast-2" // RegionNameApNortheast1 is a RegionName enum value RegionNameApNortheast1 = "ap-northeast-1" // RegionNameApNortheast2 is a RegionName enum value RegionNameApNortheast2 = "ap-northeast-2" )
const ( // ResourceTypeInstance is a ResourceType enum value ResourceTypeInstance = "Instance" // ResourceTypeStaticIp is a ResourceType enum value ResourceTypeStaticIp = "StaticIp" // ResourceTypeKeyPair is a ResourceType enum value ResourceTypeKeyPair = "KeyPair" // ResourceTypeInstanceSnapshot is a ResourceType enum value ResourceTypeInstanceSnapshot = "InstanceSnapshot" // ResourceTypeDomain is a ResourceType enum value ResourceTypeDomain = "Domain" // ResourceTypePeeredVpc is a ResourceType enum value ResourceTypePeeredVpc = "PeeredVpc" )
const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeAccountSetupInProgressException for service response error code // "AccountSetupInProgressException". // // Lightsail throws this exception when an account is still in the setup in // progress state. ErrCodeAccountSetupInProgressException = "AccountSetupInProgressException" // ErrCodeInvalidInputException for service response error code // "InvalidInputException". // // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. ErrCodeInvalidInputException = "InvalidInputException" // ErrCodeNotFoundException for service response error code // "NotFoundException". // // Lightsail throws this exception when it cannot find a resource. ErrCodeNotFoundException = "NotFoundException" // ErrCodeOperationFailureException for service response error code // "OperationFailureException". // // Lightsail throws this exception when an operation fails to execute. ErrCodeOperationFailureException = "OperationFailureException" // ErrCodeServiceException for service response error code // "ServiceException". // // A general service exception. ErrCodeServiceException = "ServiceException" // ErrCodeUnauthenticatedException for service response error code // "UnauthenticatedException". // // Lightsail throws this exception when the user has not been authenticated. ErrCodeUnauthenticatedException = "UnauthenticatedException" )
const ( ServiceName = "lightsail" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocateStaticIpInput ¶
type AllocateStaticIpInput struct { // The name of the static IP address. // // StaticIpName is a required field StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AllocateStaticIpRequest
func (AllocateStaticIpInput) GoString ¶
func (s AllocateStaticIpInput) GoString() string
GoString returns the string representation
func (*AllocateStaticIpInput) SetStaticIpName ¶
func (s *AllocateStaticIpInput) SetStaticIpName(v string) *AllocateStaticIpInput
SetStaticIpName sets the StaticIpName field's value.
func (AllocateStaticIpInput) String ¶
func (s AllocateStaticIpInput) String() string
String returns the string representation
func (*AllocateStaticIpInput) Validate ¶
func (s *AllocateStaticIpInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AllocateStaticIpOutput ¶
type AllocateStaticIpOutput struct { // An array of key-value pairs containing information about the static IP address // you allocated. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AllocateStaticIpResult
func (AllocateStaticIpOutput) GoString ¶
func (s AllocateStaticIpOutput) GoString() string
GoString returns the string representation
func (*AllocateStaticIpOutput) SetOperations ¶
func (s *AllocateStaticIpOutput) SetOperations(v []*Operation) *AllocateStaticIpOutput
SetOperations sets the Operations field's value.
func (AllocateStaticIpOutput) String ¶
func (s AllocateStaticIpOutput) String() string
String returns the string representation
type AttachStaticIpInput ¶
type AttachStaticIpInput struct { // The instance name to which you want to attach the static IP address. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // The name of the static IP. // // StaticIpName is a required field StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachStaticIpRequest
func (AttachStaticIpInput) GoString ¶
func (s AttachStaticIpInput) GoString() string
GoString returns the string representation
func (*AttachStaticIpInput) SetInstanceName ¶
func (s *AttachStaticIpInput) SetInstanceName(v string) *AttachStaticIpInput
SetInstanceName sets the InstanceName field's value.
func (*AttachStaticIpInput) SetStaticIpName ¶
func (s *AttachStaticIpInput) SetStaticIpName(v string) *AttachStaticIpInput
SetStaticIpName sets the StaticIpName field's value.
func (AttachStaticIpInput) String ¶
func (s AttachStaticIpInput) String() string
String returns the string representation
func (*AttachStaticIpInput) Validate ¶
func (s *AttachStaticIpInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AttachStaticIpOutput ¶
type AttachStaticIpOutput struct { // An array of key-value pairs containing information about your API operations. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachStaticIpResult
func (AttachStaticIpOutput) GoString ¶
func (s AttachStaticIpOutput) GoString() string
GoString returns the string representation
func (*AttachStaticIpOutput) SetOperations ¶
func (s *AttachStaticIpOutput) SetOperations(v []*Operation) *AttachStaticIpOutput
SetOperations sets the Operations field's value.
func (AttachStaticIpOutput) String ¶
func (s AttachStaticIpOutput) String() string
String returns the string representation
type AvailabilityZone ¶
type AvailabilityZone struct { // The state of the Availability Zone. State *string `locationName:"state" type:"string"` // The name of the Availability Zone. ZoneName *string `locationName:"zoneName" type:"string"` // contains filtered or unexported fields }
Describes an Availability Zone. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AvailabilityZone
func (AvailabilityZone) GoString ¶
func (s AvailabilityZone) GoString() string
GoString returns the string representation
func (*AvailabilityZone) SetState ¶
func (s *AvailabilityZone) SetState(v string) *AvailabilityZone
SetState sets the State field's value.
func (*AvailabilityZone) SetZoneName ¶
func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone
SetZoneName sets the ZoneName field's value.
func (AvailabilityZone) String ¶
func (s AvailabilityZone) String() string
String returns the string representation
type Blueprint ¶
type Blueprint struct { // The ID for the virtual private server image (e.g., app_wordpress_4_4 or app_lamp_7_0). BlueprintId *string `locationName:"blueprintId" type:"string"` // The description of the blueprint. Description *string `locationName:"description" type:"string"` // The group name of the blueprint (e.g., amazon-linux). Group *string `locationName:"group" type:"string"` // A Boolean value indicating whether the blueprint is active. When you update // your blueprints, you will inactivate old blueprints and keep the most recent // versions active. IsActive *bool `locationName:"isActive" type:"boolean"` // The end-user license agreement URL for the image or blueprint. LicenseUrl *string `locationName:"licenseUrl" type:"string"` // The minimum machine size required to run this blueprint. 0 indicates that // the blueprint runs on all instances. MinPower *int64 `locationName:"minPower" type:"integer"` // The friendly name of the blueprint (e.g., Amazon Linux). Name *string `locationName:"name" type:"string"` // The product URL to learn more about the image or blueprint. ProductUrl *string `locationName:"productUrl" type:"string"` // The type of the blueprint (e.g., os or app). Type *string `locationName:"type" type:"string" enum:"BlueprintType"` // The version number of the operating system, application, or stack (e.g., // 2016.03.0). Version *string `locationName:"version" type:"string"` // The version code. VersionCode *string `locationName:"versionCode" type:"string"` // contains filtered or unexported fields }
Describes a blueprint (a virtual private server image). Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Blueprint
func (*Blueprint) SetBlueprintId ¶
SetBlueprintId sets the BlueprintId field's value.
func (*Blueprint) SetDescription ¶
SetDescription sets the Description field's value.
func (*Blueprint) SetIsActive ¶
SetIsActive sets the IsActive field's value.
func (*Blueprint) SetLicenseUrl ¶
SetLicenseUrl sets the LicenseUrl field's value.
func (*Blueprint) SetMinPower ¶
SetMinPower sets the MinPower field's value.
func (*Blueprint) SetProductUrl ¶
SetProductUrl sets the ProductUrl field's value.
func (*Blueprint) SetVersion ¶
SetVersion sets the Version field's value.
func (*Blueprint) SetVersionCode ¶
SetVersionCode sets the VersionCode field's value.
type Bundle ¶
type Bundle struct { // The bundle ID (e.g., micro_1_0). BundleId *string `locationName:"bundleId" type:"string"` // The number of vCPUs included in the bundle (e.g., 2). CpuCount *int64 `locationName:"cpuCount" type:"integer"` // The size of the SSD (e.g., 30). DiskSizeInGb *int64 `locationName:"diskSizeInGb" type:"integer"` // The Amazon EC2 instance type (e.g., t2.micro). InstanceType *string `locationName:"instanceType" type:"string"` // A Boolean value indicating whether the bundle is active. IsActive *bool `locationName:"isActive" type:"boolean"` // A friendly name for the bundle (e.g., Micro). Name *string `locationName:"name" type:"string"` // The power of the bundle (e.g., 500). Power *int64 `locationName:"power" type:"integer"` // The price in US dollars (e.g., 5.0). Price *float64 `locationName:"price" type:"float"` // The amount of RAM in GB (e.g., 2.0). RamSizeInGb *float64 `locationName:"ramSizeInGb" type:"float"` // The data transfer rate per month in GB (e.g., 2000). TransferPerMonthInGb *int64 `locationName:"transferPerMonthInGb" type:"integer"` // contains filtered or unexported fields }
Describes a bundle, which is a set of specs describing your virtual private server (or instance). Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Bundle
func (*Bundle) SetBundleId ¶
SetBundleId sets the BundleId field's value.
func (*Bundle) SetCpuCount ¶
SetCpuCount sets the CpuCount field's value.
func (*Bundle) SetDiskSizeInGb ¶
SetDiskSizeInGb sets the DiskSizeInGb field's value.
func (*Bundle) SetInstanceType ¶
SetInstanceType sets the InstanceType field's value.
func (*Bundle) SetIsActive ¶
SetIsActive sets the IsActive field's value.
func (*Bundle) SetRamSizeInGb ¶
SetRamSizeInGb sets the RamSizeInGb field's value.
func (*Bundle) SetTransferPerMonthInGb ¶
SetTransferPerMonthInGb sets the TransferPerMonthInGb field's value.
type CloseInstancePublicPortsInput ¶
type CloseInstancePublicPortsInput struct { // The name of the instance on which you're attempting to close the public ports. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // Information about the public port you are trying to close. // // PortInfo is a required field PortInfo *PortInfo `locationName:"portInfo" type:"structure" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CloseInstancePublicPortsRequest
func (CloseInstancePublicPortsInput) GoString ¶
func (s CloseInstancePublicPortsInput) GoString() string
GoString returns the string representation
func (*CloseInstancePublicPortsInput) SetInstanceName ¶
func (s *CloseInstancePublicPortsInput) SetInstanceName(v string) *CloseInstancePublicPortsInput
SetInstanceName sets the InstanceName field's value.
func (*CloseInstancePublicPortsInput) SetPortInfo ¶
func (s *CloseInstancePublicPortsInput) SetPortInfo(v *PortInfo) *CloseInstancePublicPortsInput
SetPortInfo sets the PortInfo field's value.
func (CloseInstancePublicPortsInput) String ¶
func (s CloseInstancePublicPortsInput) String() string
String returns the string representation
func (*CloseInstancePublicPortsInput) Validate ¶
func (s *CloseInstancePublicPortsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CloseInstancePublicPortsOutput ¶
type CloseInstancePublicPortsOutput struct { // An array of key-value pairs that contains information about the operation. Operation *Operation `locationName:"operation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CloseInstancePublicPortsResult
func (CloseInstancePublicPortsOutput) GoString ¶
func (s CloseInstancePublicPortsOutput) GoString() string
GoString returns the string representation
func (*CloseInstancePublicPortsOutput) SetOperation ¶
func (s *CloseInstancePublicPortsOutput) SetOperation(v *Operation) *CloseInstancePublicPortsOutput
SetOperation sets the Operation field's value.
func (CloseInstancePublicPortsOutput) String ¶
func (s CloseInstancePublicPortsOutput) String() string
String returns the string representation
type CreateDomainEntryInput ¶
type CreateDomainEntryInput struct { // An array of key-value pairs containing information about the domain entry // request. // // DomainEntry is a required field DomainEntry *DomainEntry `locationName:"domainEntry" type:"structure" required:"true"` // The domain name (e.g., example.com) for which you want to create the domain // entry. // // DomainName is a required field DomainName *string `locationName:"domainName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainEntryRequest
func (CreateDomainEntryInput) GoString ¶
func (s CreateDomainEntryInput) GoString() string
GoString returns the string representation
func (*CreateDomainEntryInput) SetDomainEntry ¶
func (s *CreateDomainEntryInput) SetDomainEntry(v *DomainEntry) *CreateDomainEntryInput
SetDomainEntry sets the DomainEntry field's value.
func (*CreateDomainEntryInput) SetDomainName ¶
func (s *CreateDomainEntryInput) SetDomainName(v string) *CreateDomainEntryInput
SetDomainName sets the DomainName field's value.
func (CreateDomainEntryInput) String ¶
func (s CreateDomainEntryInput) String() string
String returns the string representation
func (*CreateDomainEntryInput) Validate ¶
func (s *CreateDomainEntryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateDomainEntryOutput ¶
type CreateDomainEntryOutput struct { // An array of key-value pairs containing information about the operation. Operation *Operation `locationName:"operation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainEntryResult
func (CreateDomainEntryOutput) GoString ¶
func (s CreateDomainEntryOutput) GoString() string
GoString returns the string representation
func (*CreateDomainEntryOutput) SetOperation ¶
func (s *CreateDomainEntryOutput) SetOperation(v *Operation) *CreateDomainEntryOutput
SetOperation sets the Operation field's value.
func (CreateDomainEntryOutput) String ¶
func (s CreateDomainEntryOutput) String() string
String returns the string representation
type CreateDomainInput ¶
type CreateDomainInput struct { // The domain name to manage (e.g., example.com). // // You cannot register a new domain name using Lightsail. You must register // a domain name using Amazon Route 53 or another domain name registrar. If // you have already registered your domain, you can enter its name in this parameter // to manage the DNS records for that domain. // // DomainName is a required field DomainName *string `locationName:"domainName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainRequest
func (CreateDomainInput) GoString ¶
func (s CreateDomainInput) GoString() string
GoString returns the string representation
func (*CreateDomainInput) SetDomainName ¶
func (s *CreateDomainInput) SetDomainName(v string) *CreateDomainInput
SetDomainName sets the DomainName field's value.
func (CreateDomainInput) String ¶
func (s CreateDomainInput) String() string
String returns the string representation
func (*CreateDomainInput) Validate ¶
func (s *CreateDomainInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateDomainOutput ¶
type CreateDomainOutput struct { // An array of key-value pairs containing information about the domain resource // you created. Operation *Operation `locationName:"operation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainResult
func (CreateDomainOutput) GoString ¶
func (s CreateDomainOutput) GoString() string
GoString returns the string representation
func (*CreateDomainOutput) SetOperation ¶
func (s *CreateDomainOutput) SetOperation(v *Operation) *CreateDomainOutput
SetOperation sets the Operation field's value.
func (CreateDomainOutput) String ¶
func (s CreateDomainOutput) String() string
String returns the string representation
type CreateInstanceSnapshotInput ¶
type CreateInstanceSnapshotInput struct { // The Lightsail instance on which to base your snapshot. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // The name for your new snapshot. // // InstanceSnapshotName is a required field InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstanceSnapshotRequest
func (CreateInstanceSnapshotInput) GoString ¶
func (s CreateInstanceSnapshotInput) GoString() string
GoString returns the string representation
func (*CreateInstanceSnapshotInput) SetInstanceName ¶
func (s *CreateInstanceSnapshotInput) SetInstanceName(v string) *CreateInstanceSnapshotInput
SetInstanceName sets the InstanceName field's value.
func (*CreateInstanceSnapshotInput) SetInstanceSnapshotName ¶
func (s *CreateInstanceSnapshotInput) SetInstanceSnapshotName(v string) *CreateInstanceSnapshotInput
SetInstanceSnapshotName sets the InstanceSnapshotName field's value.
func (CreateInstanceSnapshotInput) String ¶
func (s CreateInstanceSnapshotInput) String() string
String returns the string representation
func (*CreateInstanceSnapshotInput) Validate ¶
func (s *CreateInstanceSnapshotInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateInstanceSnapshotOutput ¶
type CreateInstanceSnapshotOutput struct { // An array of key-value pairs containing information about the results of your // create instances snapshot request. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstanceSnapshotResult
func (CreateInstanceSnapshotOutput) GoString ¶
func (s CreateInstanceSnapshotOutput) GoString() string
GoString returns the string representation
func (*CreateInstanceSnapshotOutput) SetOperations ¶
func (s *CreateInstanceSnapshotOutput) SetOperations(v []*Operation) *CreateInstanceSnapshotOutput
SetOperations sets the Operations field's value.
func (CreateInstanceSnapshotOutput) String ¶
func (s CreateInstanceSnapshotOutput) String() string
String returns the string representation
type CreateInstancesFromSnapshotInput ¶
type CreateInstancesFromSnapshotInput struct { // The Availability Zone where you want to create your instances. Use the following // formatting: us-east-1a (case sensitive). // // AvailabilityZone is a required field AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` // The bundle of specification information for your virtual private server (or // instance), including the pricing plan (e.g., micro_1_0). // // BundleId is a required field BundleId *string `locationName:"bundleId" type:"string" required:"true"` // The names for your new instances. // // InstanceNames is a required field InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` // The name of the instance snapshot on which you are basing your new instances. // Use the get instance snapshots operation to return information about your // existing snapshots. // // InstanceSnapshotName is a required field InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` // The name for your key pair. KeyPairName *string `locationName:"keyPairName" type:"string"` // You can create a launch script that configures a server with additional user // data. For example, apt-get –y update. // // Depending on the machine image you choose, the command to get software on // your instance varies. Amazon Linux and CentOS use yum, Debian and Ubuntu // use apt-get, and FreeBSD uses pkg. For a complete list, see the Dev Guide // (http://lightsail.aws.amazon.com/ls/docs/getting-started/articles/pre-installed-apps). UserData *string `locationName:"userData" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesFromSnapshotRequest
func (CreateInstancesFromSnapshotInput) GoString ¶
func (s CreateInstancesFromSnapshotInput) GoString() string
GoString returns the string representation
func (*CreateInstancesFromSnapshotInput) SetAvailabilityZone ¶
func (s *CreateInstancesFromSnapshotInput) SetAvailabilityZone(v string) *CreateInstancesFromSnapshotInput
SetAvailabilityZone sets the AvailabilityZone field's value.
func (*CreateInstancesFromSnapshotInput) SetBundleId ¶
func (s *CreateInstancesFromSnapshotInput) SetBundleId(v string) *CreateInstancesFromSnapshotInput
SetBundleId sets the BundleId field's value.
func (*CreateInstancesFromSnapshotInput) SetInstanceNames ¶
func (s *CreateInstancesFromSnapshotInput) SetInstanceNames(v []*string) *CreateInstancesFromSnapshotInput
SetInstanceNames sets the InstanceNames field's value.
func (*CreateInstancesFromSnapshotInput) SetInstanceSnapshotName ¶
func (s *CreateInstancesFromSnapshotInput) SetInstanceSnapshotName(v string) *CreateInstancesFromSnapshotInput
SetInstanceSnapshotName sets the InstanceSnapshotName field's value.
func (*CreateInstancesFromSnapshotInput) SetKeyPairName ¶
func (s *CreateInstancesFromSnapshotInput) SetKeyPairName(v string) *CreateInstancesFromSnapshotInput
SetKeyPairName sets the KeyPairName field's value.
func (*CreateInstancesFromSnapshotInput) SetUserData ¶
func (s *CreateInstancesFromSnapshotInput) SetUserData(v string) *CreateInstancesFromSnapshotInput
SetUserData sets the UserData field's value.
func (CreateInstancesFromSnapshotInput) String ¶
func (s CreateInstancesFromSnapshotInput) String() string
String returns the string representation
func (*CreateInstancesFromSnapshotInput) Validate ¶
func (s *CreateInstancesFromSnapshotInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateInstancesFromSnapshotOutput ¶
type CreateInstancesFromSnapshotOutput struct { // An array of key-value pairs containing information about the results of your // create instances from snapshot request. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesFromSnapshotResult
func (CreateInstancesFromSnapshotOutput) GoString ¶
func (s CreateInstancesFromSnapshotOutput) GoString() string
GoString returns the string representation
func (*CreateInstancesFromSnapshotOutput) SetOperations ¶
func (s *CreateInstancesFromSnapshotOutput) SetOperations(v []*Operation) *CreateInstancesFromSnapshotOutput
SetOperations sets the Operations field's value.
func (CreateInstancesFromSnapshotOutput) String ¶
func (s CreateInstancesFromSnapshotOutput) String() string
String returns the string representation
type CreateInstancesInput ¶
type CreateInstancesInput struct { // The Availability Zone in which to create your instance. Use the following // format: us-east-1a (case sensitive). // // AvailabilityZone is a required field AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` // The ID for a virtual private server image (e.g., app_wordpress_4_4 or app_lamp_7_0). // Use the get blueprints operation to return a list of available images (or // blueprints). // // BlueprintId is a required field BlueprintId *string `locationName:"blueprintId" type:"string" required:"true"` // The bundle of specification information for your virtual private server (or // instance), including the pricing plan (e.g., micro_1_0). // // BundleId is a required field BundleId *string `locationName:"bundleId" type:"string" required:"true"` // The name for your custom image. CustomImageName *string `locationName:"customImageName" type:"string"` // The names to use for your new Lightsail instances. Separate multiple values // using quotation marks and commas, for example: ["MyFirstInstance","MySecondInstance"] // // InstanceNames is a required field InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` // The name of your key pair. KeyPairName *string `locationName:"keyPairName" type:"string"` // A launch script you can create that configures a server with additional user // data. For example, you might want to run apt-get –y update. // // Depending on the machine image you choose, the command to get software on // your instance varies. Amazon Linux and CentOS use yum, Debian and Ubuntu // use apt-get, and FreeBSD uses pkg. For a complete list, see the Dev Guide // (http://lightsail.aws.amazon.com/ls/docs/getting-started/articles/pre-installed-apps). UserData *string `locationName:"userData" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesRequest
func (CreateInstancesInput) GoString ¶
func (s CreateInstancesInput) GoString() string
GoString returns the string representation
func (*CreateInstancesInput) SetAvailabilityZone ¶
func (s *CreateInstancesInput) SetAvailabilityZone(v string) *CreateInstancesInput
SetAvailabilityZone sets the AvailabilityZone field's value.
func (*CreateInstancesInput) SetBlueprintId ¶
func (s *CreateInstancesInput) SetBlueprintId(v string) *CreateInstancesInput
SetBlueprintId sets the BlueprintId field's value.
func (*CreateInstancesInput) SetBundleId ¶
func (s *CreateInstancesInput) SetBundleId(v string) *CreateInstancesInput
SetBundleId sets the BundleId field's value.
func (*CreateInstancesInput) SetCustomImageName ¶
func (s *CreateInstancesInput) SetCustomImageName(v string) *CreateInstancesInput
SetCustomImageName sets the CustomImageName field's value.
func (*CreateInstancesInput) SetInstanceNames ¶
func (s *CreateInstancesInput) SetInstanceNames(v []*string) *CreateInstancesInput
SetInstanceNames sets the InstanceNames field's value.
func (*CreateInstancesInput) SetKeyPairName ¶
func (s *CreateInstancesInput) SetKeyPairName(v string) *CreateInstancesInput
SetKeyPairName sets the KeyPairName field's value.
func (*CreateInstancesInput) SetUserData ¶
func (s *CreateInstancesInput) SetUserData(v string) *CreateInstancesInput
SetUserData sets the UserData field's value.
func (CreateInstancesInput) String ¶
func (s CreateInstancesInput) String() string
String returns the string representation
func (*CreateInstancesInput) Validate ¶
func (s *CreateInstancesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateInstancesOutput ¶
type CreateInstancesOutput struct { // An array of key-value pairs containing information about the results of your // create instances request. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesResult
func (CreateInstancesOutput) GoString ¶
func (s CreateInstancesOutput) GoString() string
GoString returns the string representation
func (*CreateInstancesOutput) SetOperations ¶
func (s *CreateInstancesOutput) SetOperations(v []*Operation) *CreateInstancesOutput
SetOperations sets the Operations field's value.
func (CreateInstancesOutput) String ¶
func (s CreateInstancesOutput) String() string
String returns the string representation
type CreateKeyPairInput ¶
type CreateKeyPairInput struct { // The name for your new key pair. // // KeyPairName is a required field KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateKeyPairRequest
func (CreateKeyPairInput) GoString ¶
func (s CreateKeyPairInput) GoString() string
GoString returns the string representation
func (*CreateKeyPairInput) SetKeyPairName ¶
func (s *CreateKeyPairInput) SetKeyPairName(v string) *CreateKeyPairInput
SetKeyPairName sets the KeyPairName field's value.
func (CreateKeyPairInput) String ¶
func (s CreateKeyPairInput) String() string
String returns the string representation
func (*CreateKeyPairInput) Validate ¶
func (s *CreateKeyPairInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateKeyPairOutput ¶
type CreateKeyPairOutput struct { // An array of key-value pairs containing information about the new key pair // you just created. KeyPair *KeyPair `locationName:"keyPair" type:"structure"` // An array of key-value pairs containing information about the results of your // create key pair request. Operation *Operation `locationName:"operation" type:"structure"` // A base64-encoded RSA private key. PrivateKeyBase64 *string `locationName:"privateKeyBase64" type:"string"` // A base64-encoded public key of the ssh-rsa type. PublicKeyBase64 *string `locationName:"publicKeyBase64" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateKeyPairResult
func (CreateKeyPairOutput) GoString ¶
func (s CreateKeyPairOutput) GoString() string
GoString returns the string representation
func (*CreateKeyPairOutput) SetKeyPair ¶
func (s *CreateKeyPairOutput) SetKeyPair(v *KeyPair) *CreateKeyPairOutput
SetKeyPair sets the KeyPair field's value.
func (*CreateKeyPairOutput) SetOperation ¶
func (s *CreateKeyPairOutput) SetOperation(v *Operation) *CreateKeyPairOutput
SetOperation sets the Operation field's value.
func (*CreateKeyPairOutput) SetPrivateKeyBase64 ¶
func (s *CreateKeyPairOutput) SetPrivateKeyBase64(v string) *CreateKeyPairOutput
SetPrivateKeyBase64 sets the PrivateKeyBase64 field's value.
func (*CreateKeyPairOutput) SetPublicKeyBase64 ¶
func (s *CreateKeyPairOutput) SetPublicKeyBase64(v string) *CreateKeyPairOutput
SetPublicKeyBase64 sets the PublicKeyBase64 field's value.
func (CreateKeyPairOutput) String ¶
func (s CreateKeyPairOutput) String() string
String returns the string representation
type DeleteDomainEntryInput ¶
type DeleteDomainEntryInput struct { // An array of key-value pairs containing information about your domain entries. // // DomainEntry is a required field DomainEntry *DomainEntry `locationName:"domainEntry" type:"structure" required:"true"` // The name of the domain entry to delete. // // DomainName is a required field DomainName *string `locationName:"domainName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainEntryRequest
func (DeleteDomainEntryInput) GoString ¶
func (s DeleteDomainEntryInput) GoString() string
GoString returns the string representation
func (*DeleteDomainEntryInput) SetDomainEntry ¶
func (s *DeleteDomainEntryInput) SetDomainEntry(v *DomainEntry) *DeleteDomainEntryInput
SetDomainEntry sets the DomainEntry field's value.
func (*DeleteDomainEntryInput) SetDomainName ¶
func (s *DeleteDomainEntryInput) SetDomainName(v string) *DeleteDomainEntryInput
SetDomainName sets the DomainName field's value.
func (DeleteDomainEntryInput) String ¶
func (s DeleteDomainEntryInput) String() string
String returns the string representation
func (*DeleteDomainEntryInput) Validate ¶
func (s *DeleteDomainEntryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteDomainEntryOutput ¶
type DeleteDomainEntryOutput struct { // An array of key-value pairs containing information about the results of your // delete domain entry request. Operation *Operation `locationName:"operation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainEntryResult
func (DeleteDomainEntryOutput) GoString ¶
func (s DeleteDomainEntryOutput) GoString() string
GoString returns the string representation
func (*DeleteDomainEntryOutput) SetOperation ¶
func (s *DeleteDomainEntryOutput) SetOperation(v *Operation) *DeleteDomainEntryOutput
SetOperation sets the Operation field's value.
func (DeleteDomainEntryOutput) String ¶
func (s DeleteDomainEntryOutput) String() string
String returns the string representation
type DeleteDomainInput ¶
type DeleteDomainInput struct { // The specific domain name to delete. // // DomainName is a required field DomainName *string `locationName:"domainName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainRequest
func (DeleteDomainInput) GoString ¶
func (s DeleteDomainInput) GoString() string
GoString returns the string representation
func (*DeleteDomainInput) SetDomainName ¶
func (s *DeleteDomainInput) SetDomainName(v string) *DeleteDomainInput
SetDomainName sets the DomainName field's value.
func (DeleteDomainInput) String ¶
func (s DeleteDomainInput) String() string
String returns the string representation
func (*DeleteDomainInput) Validate ¶
func (s *DeleteDomainInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteDomainOutput ¶
type DeleteDomainOutput struct { // An array of key-value pairs containing information about the results of your // delete domain request. Operation *Operation `locationName:"operation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainResult
func (DeleteDomainOutput) GoString ¶
func (s DeleteDomainOutput) GoString() string
GoString returns the string representation
func (*DeleteDomainOutput) SetOperation ¶
func (s *DeleteDomainOutput) SetOperation(v *Operation) *DeleteDomainOutput
SetOperation sets the Operation field's value.
func (DeleteDomainOutput) String ¶
func (s DeleteDomainOutput) String() string
String returns the string representation
type DeleteInstanceInput ¶
type DeleteInstanceInput struct { // The name of the instance to delete. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceRequest
func (DeleteInstanceInput) GoString ¶
func (s DeleteInstanceInput) GoString() string
GoString returns the string representation
func (*DeleteInstanceInput) SetInstanceName ¶
func (s *DeleteInstanceInput) SetInstanceName(v string) *DeleteInstanceInput
SetInstanceName sets the InstanceName field's value.
func (DeleteInstanceInput) String ¶
func (s DeleteInstanceInput) String() string
String returns the string representation
func (*DeleteInstanceInput) Validate ¶
func (s *DeleteInstanceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteInstanceOutput ¶
type DeleteInstanceOutput struct { // An array of key-value pairs containing information about the results of your // delete instance request. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceResult
func (DeleteInstanceOutput) GoString ¶
func (s DeleteInstanceOutput) GoString() string
GoString returns the string representation
func (*DeleteInstanceOutput) SetOperations ¶
func (s *DeleteInstanceOutput) SetOperations(v []*Operation) *DeleteInstanceOutput
SetOperations sets the Operations field's value.
func (DeleteInstanceOutput) String ¶
func (s DeleteInstanceOutput) String() string
String returns the string representation
type DeleteInstanceSnapshotInput ¶
type DeleteInstanceSnapshotInput struct { // The name of the snapshot to delete. // // InstanceSnapshotName is a required field InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceSnapshotRequest
func (DeleteInstanceSnapshotInput) GoString ¶
func (s DeleteInstanceSnapshotInput) GoString() string
GoString returns the string representation
func (*DeleteInstanceSnapshotInput) SetInstanceSnapshotName ¶
func (s *DeleteInstanceSnapshotInput) SetInstanceSnapshotName(v string) *DeleteInstanceSnapshotInput
SetInstanceSnapshotName sets the InstanceSnapshotName field's value.
func (DeleteInstanceSnapshotInput) String ¶
func (s DeleteInstanceSnapshotInput) String() string
String returns the string representation
func (*DeleteInstanceSnapshotInput) Validate ¶
func (s *DeleteInstanceSnapshotInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteInstanceSnapshotOutput ¶
type DeleteInstanceSnapshotOutput struct { // An array of key-value pairs containing information about the results of your // delete instance snapshot request. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceSnapshotResult
func (DeleteInstanceSnapshotOutput) GoString ¶
func (s DeleteInstanceSnapshotOutput) GoString() string
GoString returns the string representation
func (*DeleteInstanceSnapshotOutput) SetOperations ¶
func (s *DeleteInstanceSnapshotOutput) SetOperations(v []*Operation) *DeleteInstanceSnapshotOutput
SetOperations sets the Operations field's value.
func (DeleteInstanceSnapshotOutput) String ¶
func (s DeleteInstanceSnapshotOutput) String() string
String returns the string representation
type DeleteKeyPairInput ¶
type DeleteKeyPairInput struct { // The name of the key pair to delete. // // KeyPairName is a required field KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKeyPairRequest
func (DeleteKeyPairInput) GoString ¶
func (s DeleteKeyPairInput) GoString() string
GoString returns the string representation
func (*DeleteKeyPairInput) SetKeyPairName ¶
func (s *DeleteKeyPairInput) SetKeyPairName(v string) *DeleteKeyPairInput
SetKeyPairName sets the KeyPairName field's value.
func (DeleteKeyPairInput) String ¶
func (s DeleteKeyPairInput) String() string
String returns the string representation
func (*DeleteKeyPairInput) Validate ¶
func (s *DeleteKeyPairInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteKeyPairOutput ¶
type DeleteKeyPairOutput struct { // An array of key-value pairs containing information about the results of your // delete key pair request. Operation *Operation `locationName:"operation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKeyPairResult
func (DeleteKeyPairOutput) GoString ¶
func (s DeleteKeyPairOutput) GoString() string
GoString returns the string representation
func (*DeleteKeyPairOutput) SetOperation ¶
func (s *DeleteKeyPairOutput) SetOperation(v *Operation) *DeleteKeyPairOutput
SetOperation sets the Operation field's value.
func (DeleteKeyPairOutput) String ¶
func (s DeleteKeyPairOutput) String() string
String returns the string representation
type DetachStaticIpInput ¶
type DetachStaticIpInput struct { // The name of the static IP to detach from the instance. // // StaticIpName is a required field StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachStaticIpRequest
func (DetachStaticIpInput) GoString ¶
func (s DetachStaticIpInput) GoString() string
GoString returns the string representation
func (*DetachStaticIpInput) SetStaticIpName ¶
func (s *DetachStaticIpInput) SetStaticIpName(v string) *DetachStaticIpInput
SetStaticIpName sets the StaticIpName field's value.
func (DetachStaticIpInput) String ¶
func (s DetachStaticIpInput) String() string
String returns the string representation
func (*DetachStaticIpInput) Validate ¶
func (s *DetachStaticIpInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DetachStaticIpOutput ¶
type DetachStaticIpOutput struct { // An array of key-value pairs containing information about the results of your // detach static IP request. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachStaticIpResult
func (DetachStaticIpOutput) GoString ¶
func (s DetachStaticIpOutput) GoString() string
GoString returns the string representation
func (*DetachStaticIpOutput) SetOperations ¶
func (s *DetachStaticIpOutput) SetOperations(v []*Operation) *DetachStaticIpOutput
SetOperations sets the Operations field's value.
func (DetachStaticIpOutput) String ¶
func (s DetachStaticIpOutput) String() string
String returns the string representation
type Disk ¶
type Disk struct { // The Amazon Resource Name (ARN) of the disk. Arn *string `locationName:"arn" type:"string"` // The resources to which the disk is attached. AttachedTo *string `locationName:"attachedTo" type:"string"` // The attachment state of the disk. AttachmentState *string `locationName:"attachmentState" type:"string"` // The date when the disk was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` // The number of GB in use by the disk. GbInUse *int64 `locationName:"gbInUse" type:"integer"` // The input/output operations per second (IOPS) of the disk. Iops *int64 `locationName:"iops" type:"integer"` // A Boolean value indicating whether the disk is attached. IsAttached *bool `locationName:"isAttached" type:"boolean"` // A Boolean value indicating whether this disk is a system disk (has an operating // system loaded on it). IsSystemDisk *bool `locationName:"isSystemDisk" type:"boolean"` // The region and Availability Zone where the disk is located. Location *ResourceLocation `locationName:"location" type:"structure"` // The name of the disk. Name *string `locationName:"name" type:"string"` // The disk path. Path *string `locationName:"path" type:"string"` // The resource type of the disk. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` // The size of the disk in GB. SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` // The support code. Include this code in your email to support when you have // questions about an instance or another resource in Lightsail. This code enables // our support team to look up your Lightsail information more easily. SupportCode *string `locationName:"supportCode" type:"string"` // contains filtered or unexported fields }
Describes the hard disk (an SSD). Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Disk
func (*Disk) SetAttachedTo ¶
SetAttachedTo sets the AttachedTo field's value.
func (*Disk) SetAttachmentState ¶
SetAttachmentState sets the AttachmentState field's value.
func (*Disk) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field's value.
func (*Disk) SetGbInUse ¶
SetGbInUse sets the GbInUse field's value.
func (*Disk) SetIsAttached ¶
SetIsAttached sets the IsAttached field's value.
func (*Disk) SetIsSystemDisk ¶
SetIsSystemDisk sets the IsSystemDisk field's value.
func (*Disk) SetLocation ¶
func (s *Disk) SetLocation(v *ResourceLocation) *Disk
SetLocation sets the Location field's value.
func (*Disk) SetResourceType ¶
SetResourceType sets the ResourceType field's value.
func (*Disk) SetSizeInGb ¶
SetSizeInGb sets the SizeInGb field's value.
func (*Disk) SetSupportCode ¶
SetSupportCode sets the SupportCode field's value.
type Domain ¶
type Domain struct { // The Amazon Resource Name (ARN) of the domain recordset (e.g., arn:aws:lightsail:global:123456789101:Domain/824cede0-abc7-4f84-8dbc-12345EXAMPLE). Arn *string `locationName:"arn" type:"string"` // The date when the domain recordset was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` // An array of key-value pairs containing information about the domain entries. DomainEntries []*DomainEntry `locationName:"domainEntries" type:"list"` // The AWS Region and Availability Zones where the domain recordset was created. Location *ResourceLocation `locationName:"location" type:"structure"` // The name of the domain. Name *string `locationName:"name" type:"string"` // The resource type. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` // The support code. Include this code in your email to support when you have // questions about an instance or another resource in Lightsail. This code enables // our support team to look up your Lightsail information more easily. SupportCode *string `locationName:"supportCode" type:"string"` // contains filtered or unexported fields }
Describes a domain where you are storing recordsets in Lightsail. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Domain
func (*Domain) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field's value.
func (*Domain) SetDomainEntries ¶
func (s *Domain) SetDomainEntries(v []*DomainEntry) *Domain
SetDomainEntries sets the DomainEntries field's value.
func (*Domain) SetLocation ¶
func (s *Domain) SetLocation(v *ResourceLocation) *Domain
SetLocation sets the Location field's value.
func (*Domain) SetResourceType ¶
SetResourceType sets the ResourceType field's value.
func (*Domain) SetSupportCode ¶
SetSupportCode sets the SupportCode field's value.
type DomainEntry ¶
type DomainEntry struct { // The ID of the domain recordset entry. Id *string `locationName:"id" type:"string"` // The name of the domain. Name *string `locationName:"name" type:"string"` // The options for the domain entry. Options map[string]*string `locationName:"options" type:"map"` // The target AWS name server (e.g., ns-111.awsdns-22.com.). Target *string `locationName:"target" type:"string"` // The type of domain entry (e.g., SOA or NS). Type *string `locationName:"type" type:"string"` // contains filtered or unexported fields }
Describes a domain recordset entry. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DomainEntry
func (DomainEntry) GoString ¶
func (s DomainEntry) GoString() string
GoString returns the string representation
func (*DomainEntry) SetId ¶
func (s *DomainEntry) SetId(v string) *DomainEntry
SetId sets the Id field's value.
func (*DomainEntry) SetName ¶
func (s *DomainEntry) SetName(v string) *DomainEntry
SetName sets the Name field's value.
func (*DomainEntry) SetOptions ¶
func (s *DomainEntry) SetOptions(v map[string]*string) *DomainEntry
SetOptions sets the Options field's value.
func (*DomainEntry) SetTarget ¶
func (s *DomainEntry) SetTarget(v string) *DomainEntry
SetTarget sets the Target field's value.
func (*DomainEntry) SetType ¶
func (s *DomainEntry) SetType(v string) *DomainEntry
SetType sets the Type field's value.
func (DomainEntry) String ¶
func (s DomainEntry) String() string
String returns the string representation
type DownloadDefaultKeyPairInput ¶
type DownloadDefaultKeyPairInput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DownloadDefaultKeyPairRequest
func (DownloadDefaultKeyPairInput) GoString ¶
func (s DownloadDefaultKeyPairInput) GoString() string
GoString returns the string representation
func (DownloadDefaultKeyPairInput) String ¶
func (s DownloadDefaultKeyPairInput) String() string
String returns the string representation
type DownloadDefaultKeyPairOutput ¶
type DownloadDefaultKeyPairOutput struct { // A base64-encoded RSA private key. PrivateKeyBase64 *string `locationName:"privateKeyBase64" type:"string"` // A base64-encoded public key of the ssh-rsa type. PublicKeyBase64 *string `locationName:"publicKeyBase64" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DownloadDefaultKeyPairResult
func (DownloadDefaultKeyPairOutput) GoString ¶
func (s DownloadDefaultKeyPairOutput) GoString() string
GoString returns the string representation
func (*DownloadDefaultKeyPairOutput) SetPrivateKeyBase64 ¶
func (s *DownloadDefaultKeyPairOutput) SetPrivateKeyBase64(v string) *DownloadDefaultKeyPairOutput
SetPrivateKeyBase64 sets the PrivateKeyBase64 field's value.
func (*DownloadDefaultKeyPairOutput) SetPublicKeyBase64 ¶
func (s *DownloadDefaultKeyPairOutput) SetPublicKeyBase64(v string) *DownloadDefaultKeyPairOutput
SetPublicKeyBase64 sets the PublicKeyBase64 field's value.
func (DownloadDefaultKeyPairOutput) String ¶
func (s DownloadDefaultKeyPairOutput) String() string
String returns the string representation
type GetActiveNamesInput ¶
type GetActiveNamesInput struct { // A token used for paginating results from your get active names request. PageToken *string `locationName:"pageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetActiveNamesRequest
func (GetActiveNamesInput) GoString ¶
func (s GetActiveNamesInput) GoString() string
GoString returns the string representation
func (*GetActiveNamesInput) SetPageToken ¶
func (s *GetActiveNamesInput) SetPageToken(v string) *GetActiveNamesInput
SetPageToken sets the PageToken field's value.
func (GetActiveNamesInput) String ¶
func (s GetActiveNamesInput) String() string
String returns the string representation
type GetActiveNamesOutput ¶
type GetActiveNamesOutput struct { // The list of active names returned by the get active names request. ActiveNames []*string `locationName:"activeNames" type:"list"` // A token used for advancing to the next page of results from your get active // names request. NextPageToken *string `locationName:"nextPageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetActiveNamesResult
func (GetActiveNamesOutput) GoString ¶
func (s GetActiveNamesOutput) GoString() string
GoString returns the string representation
func (*GetActiveNamesOutput) SetActiveNames ¶
func (s *GetActiveNamesOutput) SetActiveNames(v []*string) *GetActiveNamesOutput
SetActiveNames sets the ActiveNames field's value.
func (*GetActiveNamesOutput) SetNextPageToken ¶
func (s *GetActiveNamesOutput) SetNextPageToken(v string) *GetActiveNamesOutput
SetNextPageToken sets the NextPageToken field's value.
func (GetActiveNamesOutput) String ¶
func (s GetActiveNamesOutput) String() string
String returns the string representation
type GetBlueprintsInput ¶
type GetBlueprintsInput struct { // A Boolean value indicating whether to include inactive results in your request. IncludeInactive *bool `locationName:"includeInactive" type:"boolean"` // A token used for advancing to the next page of results from your get blueprints // request. PageToken *string `locationName:"pageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprintsRequest
func (GetBlueprintsInput) GoString ¶
func (s GetBlueprintsInput) GoString() string
GoString returns the string representation
func (*GetBlueprintsInput) SetIncludeInactive ¶
func (s *GetBlueprintsInput) SetIncludeInactive(v bool) *GetBlueprintsInput
SetIncludeInactive sets the IncludeInactive field's value.
func (*GetBlueprintsInput) SetPageToken ¶
func (s *GetBlueprintsInput) SetPageToken(v string) *GetBlueprintsInput
SetPageToken sets the PageToken field's value.
func (GetBlueprintsInput) String ¶
func (s GetBlueprintsInput) String() string
String returns the string representation
type GetBlueprintsOutput ¶
type GetBlueprintsOutput struct { // An array of key-value pairs that contains information about the available // blueprints. Blueprints []*Blueprint `locationName:"blueprints" type:"list"` // A token used for advancing to the next page of results from your get blueprints // request. NextPageToken *string `locationName:"nextPageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprintsResult
func (GetBlueprintsOutput) GoString ¶
func (s GetBlueprintsOutput) GoString() string
GoString returns the string representation
func (*GetBlueprintsOutput) SetBlueprints ¶
func (s *GetBlueprintsOutput) SetBlueprints(v []*Blueprint) *GetBlueprintsOutput
SetBlueprints sets the Blueprints field's value.
func (*GetBlueprintsOutput) SetNextPageToken ¶
func (s *GetBlueprintsOutput) SetNextPageToken(v string) *GetBlueprintsOutput
SetNextPageToken sets the NextPageToken field's value.
func (GetBlueprintsOutput) String ¶
func (s GetBlueprintsOutput) String() string
String returns the string representation
type GetBundlesInput ¶
type GetBundlesInput struct { // A Boolean value that indicates whether to include inactive bundle results // in your request. IncludeInactive *bool `locationName:"includeInactive" type:"boolean"` // A token used for advancing to the next page of results from your get bundles // request. PageToken *string `locationName:"pageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBundlesRequest
func (GetBundlesInput) GoString ¶
func (s GetBundlesInput) GoString() string
GoString returns the string representation
func (*GetBundlesInput) SetIncludeInactive ¶
func (s *GetBundlesInput) SetIncludeInactive(v bool) *GetBundlesInput
SetIncludeInactive sets the IncludeInactive field's value.
func (*GetBundlesInput) SetPageToken ¶
func (s *GetBundlesInput) SetPageToken(v string) *GetBundlesInput
SetPageToken sets the PageToken field's value.
func (GetBundlesInput) String ¶
func (s GetBundlesInput) String() string
String returns the string representation
type GetBundlesOutput ¶
type GetBundlesOutput struct { // An array of key-value pairs that contains information about the available // bundles. Bundles []*Bundle `locationName:"bundles" type:"list"` // A token used for advancing to the next page of results from your get active // names request. NextPageToken *string `locationName:"nextPageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBundlesResult
func (GetBundlesOutput) GoString ¶
func (s GetBundlesOutput) GoString() string
GoString returns the string representation
func (*GetBundlesOutput) SetBundles ¶
func (s *GetBundlesOutput) SetBundles(v []*Bundle) *GetBundlesOutput
SetBundles sets the Bundles field's value.
func (*GetBundlesOutput) SetNextPageToken ¶
func (s *GetBundlesOutput) SetNextPageToken(v string) *GetBundlesOutput
SetNextPageToken sets the NextPageToken field's value.
func (GetBundlesOutput) String ¶
func (s GetBundlesOutput) String() string
String returns the string representation
type GetDomainInput ¶
type GetDomainInput struct { // The domain name for which your want to return information about. // // DomainName is a required field DomainName *string `locationName:"domainName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomainRequest
func (GetDomainInput) GoString ¶
func (s GetDomainInput) GoString() string
GoString returns the string representation
func (*GetDomainInput) SetDomainName ¶
func (s *GetDomainInput) SetDomainName(v string) *GetDomainInput
SetDomainName sets the DomainName field's value.
func (GetDomainInput) String ¶
func (s GetDomainInput) String() string
String returns the string representation
func (*GetDomainInput) Validate ¶
func (s *GetDomainInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetDomainOutput ¶
type GetDomainOutput struct { // An array of key-value pairs containing information about your get domain // request. Domain *Domain `locationName:"domain" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomainResult
func (GetDomainOutput) GoString ¶
func (s GetDomainOutput) GoString() string
GoString returns the string representation
func (*GetDomainOutput) SetDomain ¶
func (s *GetDomainOutput) SetDomain(v *Domain) *GetDomainOutput
SetDomain sets the Domain field's value.
func (GetDomainOutput) String ¶
func (s GetDomainOutput) String() string
String returns the string representation
type GetDomainsInput ¶
type GetDomainsInput struct { // A token used for advancing to the next page of results from your get domains // request. PageToken *string `locationName:"pageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomainsRequest
func (GetDomainsInput) GoString ¶
func (s GetDomainsInput) GoString() string
GoString returns the string representation
func (*GetDomainsInput) SetPageToken ¶
func (s *GetDomainsInput) SetPageToken(v string) *GetDomainsInput
SetPageToken sets the PageToken field's value.
func (GetDomainsInput) String ¶
func (s GetDomainsInput) String() string
String returns the string representation
type GetDomainsOutput ¶
type GetDomainsOutput struct { // An array of key-value pairs containing information about each of the domain // entries in the user's account. Domains []*Domain `locationName:"domains" type:"list"` // A token used for advancing to the next page of results from your get active // names request. NextPageToken *string `locationName:"nextPageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomainsResult
func (GetDomainsOutput) GoString ¶
func (s GetDomainsOutput) GoString() string
GoString returns the string representation
func (*GetDomainsOutput) SetDomains ¶
func (s *GetDomainsOutput) SetDomains(v []*Domain) *GetDomainsOutput
SetDomains sets the Domains field's value.
func (*GetDomainsOutput) SetNextPageToken ¶
func (s *GetDomainsOutput) SetNextPageToken(v string) *GetDomainsOutput
SetNextPageToken sets the NextPageToken field's value.
func (GetDomainsOutput) String ¶
func (s GetDomainsOutput) String() string
String returns the string representation
type GetInstanceAccessDetailsInput ¶
type GetInstanceAccessDetailsInput struct { // The name of the instance to access. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // The protocol to use to connect to your instance. Defaults to ssh. Protocol *string `locationName:"protocol" type:"string" enum:"InstanceAccessProtocol"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceAccessDetailsRequest
func (GetInstanceAccessDetailsInput) GoString ¶
func (s GetInstanceAccessDetailsInput) GoString() string
GoString returns the string representation
func (*GetInstanceAccessDetailsInput) SetInstanceName ¶
func (s *GetInstanceAccessDetailsInput) SetInstanceName(v string) *GetInstanceAccessDetailsInput
SetInstanceName sets the InstanceName field's value.
func (*GetInstanceAccessDetailsInput) SetProtocol ¶
func (s *GetInstanceAccessDetailsInput) SetProtocol(v string) *GetInstanceAccessDetailsInput
SetProtocol sets the Protocol field's value.
func (GetInstanceAccessDetailsInput) String ¶
func (s GetInstanceAccessDetailsInput) String() string
String returns the string representation
func (*GetInstanceAccessDetailsInput) Validate ¶
func (s *GetInstanceAccessDetailsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetInstanceAccessDetailsOutput ¶
type GetInstanceAccessDetailsOutput struct { // An array of key-value pairs containing information about a get instance access // request. AccessDetails *InstanceAccessDetails `locationName:"accessDetails" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceAccessDetailsResult
func (GetInstanceAccessDetailsOutput) GoString ¶
func (s GetInstanceAccessDetailsOutput) GoString() string
GoString returns the string representation
func (*GetInstanceAccessDetailsOutput) SetAccessDetails ¶
func (s *GetInstanceAccessDetailsOutput) SetAccessDetails(v *InstanceAccessDetails) *GetInstanceAccessDetailsOutput
SetAccessDetails sets the AccessDetails field's value.
func (GetInstanceAccessDetailsOutput) String ¶
func (s GetInstanceAccessDetailsOutput) String() string
String returns the string representation
type GetInstanceInput ¶
type GetInstanceInput struct { // The name of the instance. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceRequest
func (GetInstanceInput) GoString ¶
func (s GetInstanceInput) GoString() string
GoString returns the string representation
func (*GetInstanceInput) SetInstanceName ¶
func (s *GetInstanceInput) SetInstanceName(v string) *GetInstanceInput
SetInstanceName sets the InstanceName field's value.
func (GetInstanceInput) String ¶
func (s GetInstanceInput) String() string
String returns the string representation
func (*GetInstanceInput) Validate ¶
func (s *GetInstanceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetInstanceMetricDataInput ¶
type GetInstanceMetricDataInput struct { // The end time of the time period. // // EndTime is a required field EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix" required:"true"` // The name of the instance for which you want to get metrics data. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // The metric name to get data about. // // MetricName is a required field MetricName *string `locationName:"metricName" type:"string" required:"true" enum:"InstanceMetricName"` // The time period for which you are requesting data. // // Period is a required field Period *int64 `locationName:"period" min:"60" type:"integer" required:"true"` // The start time of the time period. // // StartTime is a required field StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix" required:"true"` // The instance statistics. // // Statistics is a required field Statistics []*string `locationName:"statistics" type:"list" required:"true"` // The unit. The list of valid values is below. // // Unit is a required field Unit *string `locationName:"unit" type:"string" required:"true" enum:"MetricUnit"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceMetricDataRequest
func (GetInstanceMetricDataInput) GoString ¶
func (s GetInstanceMetricDataInput) GoString() string
GoString returns the string representation
func (*GetInstanceMetricDataInput) SetEndTime ¶
func (s *GetInstanceMetricDataInput) SetEndTime(v time.Time) *GetInstanceMetricDataInput
SetEndTime sets the EndTime field's value.
func (*GetInstanceMetricDataInput) SetInstanceName ¶
func (s *GetInstanceMetricDataInput) SetInstanceName(v string) *GetInstanceMetricDataInput
SetInstanceName sets the InstanceName field's value.
func (*GetInstanceMetricDataInput) SetMetricName ¶
func (s *GetInstanceMetricDataInput) SetMetricName(v string) *GetInstanceMetricDataInput
SetMetricName sets the MetricName field's value.
func (*GetInstanceMetricDataInput) SetPeriod ¶
func (s *GetInstanceMetricDataInput) SetPeriod(v int64) *GetInstanceMetricDataInput
SetPeriod sets the Period field's value.
func (*GetInstanceMetricDataInput) SetStartTime ¶
func (s *GetInstanceMetricDataInput) SetStartTime(v time.Time) *GetInstanceMetricDataInput
SetStartTime sets the StartTime field's value.
func (*GetInstanceMetricDataInput) SetStatistics ¶
func (s *GetInstanceMetricDataInput) SetStatistics(v []*string) *GetInstanceMetricDataInput
SetStatistics sets the Statistics field's value.
func (*GetInstanceMetricDataInput) SetUnit ¶
func (s *GetInstanceMetricDataInput) SetUnit(v string) *GetInstanceMetricDataInput
SetUnit sets the Unit field's value.
func (GetInstanceMetricDataInput) String ¶
func (s GetInstanceMetricDataInput) String() string
String returns the string representation
func (*GetInstanceMetricDataInput) Validate ¶
func (s *GetInstanceMetricDataInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetInstanceMetricDataOutput ¶
type GetInstanceMetricDataOutput struct { // An array of key-value pairs containing information about the results of your // get instance metric data request. MetricData []*MetricDatapoint `locationName:"metricData" type:"list"` // The metric name to return data for. MetricName *string `locationName:"metricName" type:"string" enum:"InstanceMetricName"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceMetricDataResult
func (GetInstanceMetricDataOutput) GoString ¶
func (s GetInstanceMetricDataOutput) GoString() string
GoString returns the string representation
func (*GetInstanceMetricDataOutput) SetMetricData ¶
func (s *GetInstanceMetricDataOutput) SetMetricData(v []*MetricDatapoint) *GetInstanceMetricDataOutput
SetMetricData sets the MetricData field's value.
func (*GetInstanceMetricDataOutput) SetMetricName ¶
func (s *GetInstanceMetricDataOutput) SetMetricName(v string) *GetInstanceMetricDataOutput
SetMetricName sets the MetricName field's value.
func (GetInstanceMetricDataOutput) String ¶
func (s GetInstanceMetricDataOutput) String() string
String returns the string representation
type GetInstanceOutput ¶
type GetInstanceOutput struct { // An array of key-value pairs containing information about the specified instance. Instance *Instance `locationName:"instance" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceResult
func (GetInstanceOutput) GoString ¶
func (s GetInstanceOutput) GoString() string
GoString returns the string representation
func (*GetInstanceOutput) SetInstance ¶
func (s *GetInstanceOutput) SetInstance(v *Instance) *GetInstanceOutput
SetInstance sets the Instance field's value.
func (GetInstanceOutput) String ¶
func (s GetInstanceOutput) String() string
String returns the string representation
type GetInstancePortStatesInput ¶
type GetInstancePortStatesInput struct { // The name of the instance. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancePortStatesRequest
func (GetInstancePortStatesInput) GoString ¶
func (s GetInstancePortStatesInput) GoString() string
GoString returns the string representation
func (*GetInstancePortStatesInput) SetInstanceName ¶
func (s *GetInstancePortStatesInput) SetInstanceName(v string) *GetInstancePortStatesInput
SetInstanceName sets the InstanceName field's value.
func (GetInstancePortStatesInput) String ¶
func (s GetInstancePortStatesInput) String() string
String returns the string representation
func (*GetInstancePortStatesInput) Validate ¶
func (s *GetInstancePortStatesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetInstancePortStatesOutput ¶
type GetInstancePortStatesOutput struct { // Information about the port states resulting from your request. PortStates []*string `locationName:"portStates" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancePortStatesResult
func (GetInstancePortStatesOutput) GoString ¶
func (s GetInstancePortStatesOutput) GoString() string
GoString returns the string representation
func (*GetInstancePortStatesOutput) SetPortStates ¶
func (s *GetInstancePortStatesOutput) SetPortStates(v []*string) *GetInstancePortStatesOutput
SetPortStates sets the PortStates field's value.
func (GetInstancePortStatesOutput) String ¶
func (s GetInstancePortStatesOutput) String() string
String returns the string representation
type GetInstanceSnapshotInput ¶
type GetInstanceSnapshotInput struct { // The name of the snapshot for which you are requesting information. // // InstanceSnapshotName is a required field InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshotRequest
func (GetInstanceSnapshotInput) GoString ¶
func (s GetInstanceSnapshotInput) GoString() string
GoString returns the string representation
func (*GetInstanceSnapshotInput) SetInstanceSnapshotName ¶
func (s *GetInstanceSnapshotInput) SetInstanceSnapshotName(v string) *GetInstanceSnapshotInput
SetInstanceSnapshotName sets the InstanceSnapshotName field's value.
func (GetInstanceSnapshotInput) String ¶
func (s GetInstanceSnapshotInput) String() string
String returns the string representation
func (*GetInstanceSnapshotInput) Validate ¶
func (s *GetInstanceSnapshotInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetInstanceSnapshotOutput ¶
type GetInstanceSnapshotOutput struct { // An array of key-value pairs containing information about the results of your // get instance snapshot request. InstanceSnapshot *InstanceSnapshot `locationName:"instanceSnapshot" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshotResult
func (GetInstanceSnapshotOutput) GoString ¶
func (s GetInstanceSnapshotOutput) GoString() string
GoString returns the string representation
func (*GetInstanceSnapshotOutput) SetInstanceSnapshot ¶
func (s *GetInstanceSnapshotOutput) SetInstanceSnapshot(v *InstanceSnapshot) *GetInstanceSnapshotOutput
SetInstanceSnapshot sets the InstanceSnapshot field's value.
func (GetInstanceSnapshotOutput) String ¶
func (s GetInstanceSnapshotOutput) String() string
String returns the string representation
type GetInstanceSnapshotsInput ¶
type GetInstanceSnapshotsInput struct { // A token used for advancing to the next page of results from your get instance // snapshots request. PageToken *string `locationName:"pageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshotsRequest
func (GetInstanceSnapshotsInput) GoString ¶
func (s GetInstanceSnapshotsInput) GoString() string
GoString returns the string representation
func (*GetInstanceSnapshotsInput) SetPageToken ¶
func (s *GetInstanceSnapshotsInput) SetPageToken(v string) *GetInstanceSnapshotsInput
SetPageToken sets the PageToken field's value.
func (GetInstanceSnapshotsInput) String ¶
func (s GetInstanceSnapshotsInput) String() string
String returns the string representation
type GetInstanceSnapshotsOutput ¶
type GetInstanceSnapshotsOutput struct { // An array of key-value pairs containing information about the results of your // get instance snapshots request. InstanceSnapshots []*InstanceSnapshot `locationName:"instanceSnapshots" type:"list"` // A token used for advancing to the next page of results from your get instance // snapshots request. NextPageToken *string `locationName:"nextPageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshotsResult
func (GetInstanceSnapshotsOutput) GoString ¶
func (s GetInstanceSnapshotsOutput) GoString() string
GoString returns the string representation
func (*GetInstanceSnapshotsOutput) SetInstanceSnapshots ¶
func (s *GetInstanceSnapshotsOutput) SetInstanceSnapshots(v []*InstanceSnapshot) *GetInstanceSnapshotsOutput
SetInstanceSnapshots sets the InstanceSnapshots field's value.
func (*GetInstanceSnapshotsOutput) SetNextPageToken ¶
func (s *GetInstanceSnapshotsOutput) SetNextPageToken(v string) *GetInstanceSnapshotsOutput
SetNextPageToken sets the NextPageToken field's value.
func (GetInstanceSnapshotsOutput) String ¶
func (s GetInstanceSnapshotsOutput) String() string
String returns the string representation
type GetInstanceStateInput ¶
type GetInstanceStateInput struct { // The name of the instance to get state information about. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceStateRequest
func (GetInstanceStateInput) GoString ¶
func (s GetInstanceStateInput) GoString() string
GoString returns the string representation
func (*GetInstanceStateInput) SetInstanceName ¶
func (s *GetInstanceStateInput) SetInstanceName(v string) *GetInstanceStateInput
SetInstanceName sets the InstanceName field's value.
func (GetInstanceStateInput) String ¶
func (s GetInstanceStateInput) String() string
String returns the string representation
func (*GetInstanceStateInput) Validate ¶
func (s *GetInstanceStateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetInstanceStateOutput ¶
type GetInstanceStateOutput struct { // The state of the instance. State *InstanceState `locationName:"state" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceStateResult
func (GetInstanceStateOutput) GoString ¶
func (s GetInstanceStateOutput) GoString() string
GoString returns the string representation
func (*GetInstanceStateOutput) SetState ¶
func (s *GetInstanceStateOutput) SetState(v *InstanceState) *GetInstanceStateOutput
SetState sets the State field's value.
func (GetInstanceStateOutput) String ¶
func (s GetInstanceStateOutput) String() string
String returns the string representation
type GetInstancesInput ¶
type GetInstancesInput struct { // A token used for advancing to the next page of results from your get instances // request. PageToken *string `locationName:"pageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancesRequest
func (GetInstancesInput) GoString ¶
func (s GetInstancesInput) GoString() string
GoString returns the string representation
func (*GetInstancesInput) SetPageToken ¶
func (s *GetInstancesInput) SetPageToken(v string) *GetInstancesInput
SetPageToken sets the PageToken field's value.
func (GetInstancesInput) String ¶
func (s GetInstancesInput) String() string
String returns the string representation
type GetInstancesOutput ¶
type GetInstancesOutput struct { // An array of key-value pairs containing information about your instances. Instances []*Instance `locationName:"instances" type:"list"` // A token used for advancing to the next page of results from your get instances // request. NextPageToken *string `locationName:"nextPageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancesResult
func (GetInstancesOutput) GoString ¶
func (s GetInstancesOutput) GoString() string
GoString returns the string representation
func (*GetInstancesOutput) SetInstances ¶
func (s *GetInstancesOutput) SetInstances(v []*Instance) *GetInstancesOutput
SetInstances sets the Instances field's value.
func (*GetInstancesOutput) SetNextPageToken ¶
func (s *GetInstancesOutput) SetNextPageToken(v string) *GetInstancesOutput
SetNextPageToken sets the NextPageToken field's value.
func (GetInstancesOutput) String ¶
func (s GetInstancesOutput) String() string
String returns the string representation
type GetKeyPairInput ¶
type GetKeyPairInput struct { // The name of the key pair for which you are requesting information. // // KeyPairName is a required field KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairRequest
func (GetKeyPairInput) GoString ¶
func (s GetKeyPairInput) GoString() string
GoString returns the string representation
func (*GetKeyPairInput) SetKeyPairName ¶
func (s *GetKeyPairInput) SetKeyPairName(v string) *GetKeyPairInput
SetKeyPairName sets the KeyPairName field's value.
func (GetKeyPairInput) String ¶
func (s GetKeyPairInput) String() string
String returns the string representation
func (*GetKeyPairInput) Validate ¶
func (s *GetKeyPairInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetKeyPairOutput ¶
type GetKeyPairOutput struct { // An array of key-value pairs containing information about the key pair. KeyPair *KeyPair `locationName:"keyPair" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairResult
func (GetKeyPairOutput) GoString ¶
func (s GetKeyPairOutput) GoString() string
GoString returns the string representation
func (*GetKeyPairOutput) SetKeyPair ¶
func (s *GetKeyPairOutput) SetKeyPair(v *KeyPair) *GetKeyPairOutput
SetKeyPair sets the KeyPair field's value.
func (GetKeyPairOutput) String ¶
func (s GetKeyPairOutput) String() string
String returns the string representation
type GetKeyPairsInput ¶
type GetKeyPairsInput struct { // A token used for advancing to the next page of results from your get key // pairs request. PageToken *string `locationName:"pageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairsRequest
func (GetKeyPairsInput) GoString ¶
func (s GetKeyPairsInput) GoString() string
GoString returns the string representation
func (*GetKeyPairsInput) SetPageToken ¶
func (s *GetKeyPairsInput) SetPageToken(v string) *GetKeyPairsInput
SetPageToken sets the PageToken field's value.
func (GetKeyPairsInput) String ¶
func (s GetKeyPairsInput) String() string
String returns the string representation
type GetKeyPairsOutput ¶
type GetKeyPairsOutput struct { // An array of key-value pairs containing information about the key pairs. KeyPairs []*KeyPair `locationName:"keyPairs" type:"list"` // A token used for advancing to the next page of results from your get key // pairs request. NextPageToken *string `locationName:"nextPageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairsResult
func (GetKeyPairsOutput) GoString ¶
func (s GetKeyPairsOutput) GoString() string
GoString returns the string representation
func (*GetKeyPairsOutput) SetKeyPairs ¶
func (s *GetKeyPairsOutput) SetKeyPairs(v []*KeyPair) *GetKeyPairsOutput
SetKeyPairs sets the KeyPairs field's value.
func (*GetKeyPairsOutput) SetNextPageToken ¶
func (s *GetKeyPairsOutput) SetNextPageToken(v string) *GetKeyPairsOutput
SetNextPageToken sets the NextPageToken field's value.
func (GetKeyPairsOutput) String ¶
func (s GetKeyPairsOutput) String() string
String returns the string representation
type GetOperationInput ¶
type GetOperationInput struct { // A GUID used to identify the operation. // // OperationId is a required field OperationId *string `locationName:"operationId" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationRequest
func (GetOperationInput) GoString ¶
func (s GetOperationInput) GoString() string
GoString returns the string representation
func (*GetOperationInput) SetOperationId ¶
func (s *GetOperationInput) SetOperationId(v string) *GetOperationInput
SetOperationId sets the OperationId field's value.
func (GetOperationInput) String ¶
func (s GetOperationInput) String() string
String returns the string representation
func (*GetOperationInput) Validate ¶
func (s *GetOperationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetOperationOutput ¶
type GetOperationOutput struct { // An array of key-value pairs containing information about the results of your // get operation request. Operation *Operation `locationName:"operation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationResult
func (GetOperationOutput) GoString ¶
func (s GetOperationOutput) GoString() string
GoString returns the string representation
func (*GetOperationOutput) SetOperation ¶
func (s *GetOperationOutput) SetOperation(v *Operation) *GetOperationOutput
SetOperation sets the Operation field's value.
func (GetOperationOutput) String ¶
func (s GetOperationOutput) String() string
String returns the string representation
type GetOperationsForResourceInput ¶
type GetOperationsForResourceInput struct { // A token used for advancing to the next page of results from your get operations // for resource request. PageToken *string `locationName:"pageToken" type:"string"` // The name of the resource for which you are requesting information. // // ResourceName is a required field ResourceName *string `locationName:"resourceName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsForResourceRequest
func (GetOperationsForResourceInput) GoString ¶
func (s GetOperationsForResourceInput) GoString() string
GoString returns the string representation
func (*GetOperationsForResourceInput) SetPageToken ¶
func (s *GetOperationsForResourceInput) SetPageToken(v string) *GetOperationsForResourceInput
SetPageToken sets the PageToken field's value.
func (*GetOperationsForResourceInput) SetResourceName ¶
func (s *GetOperationsForResourceInput) SetResourceName(v string) *GetOperationsForResourceInput
SetResourceName sets the ResourceName field's value.
func (GetOperationsForResourceInput) String ¶
func (s GetOperationsForResourceInput) String() string
String returns the string representation
func (*GetOperationsForResourceInput) Validate ¶
func (s *GetOperationsForResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetOperationsForResourceOutput ¶
type GetOperationsForResourceOutput struct { // Returns the number of pages of results that remain. NextPageCount *string `locationName:"nextPageCount" type:"string"` // An array of key-value pairs containing information about the results of your // get operations for resource request. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsForResourceResult
func (GetOperationsForResourceOutput) GoString ¶
func (s GetOperationsForResourceOutput) GoString() string
GoString returns the string representation
func (*GetOperationsForResourceOutput) SetNextPageCount ¶
func (s *GetOperationsForResourceOutput) SetNextPageCount(v string) *GetOperationsForResourceOutput
SetNextPageCount sets the NextPageCount field's value.
func (*GetOperationsForResourceOutput) SetOperations ¶
func (s *GetOperationsForResourceOutput) SetOperations(v []*Operation) *GetOperationsForResourceOutput
SetOperations sets the Operations field's value.
func (GetOperationsForResourceOutput) String ¶
func (s GetOperationsForResourceOutput) String() string
String returns the string representation
type GetOperationsInput ¶
type GetOperationsInput struct { // A token used for advancing to the next page of results from your get operations // request. PageToken *string `locationName:"pageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsRequest
func (GetOperationsInput) GoString ¶
func (s GetOperationsInput) GoString() string
GoString returns the string representation
func (*GetOperationsInput) SetPageToken ¶
func (s *GetOperationsInput) SetPageToken(v string) *GetOperationsInput
SetPageToken sets the PageToken field's value.
func (GetOperationsInput) String ¶
func (s GetOperationsInput) String() string
String returns the string representation
type GetOperationsOutput ¶
type GetOperationsOutput struct { // A token used for advancing to the next page of results from your get operations // request. NextPageToken *string `locationName:"nextPageToken" type:"string"` // An array of key-value pairs containing information about the results of your // get operations request. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsResult
func (GetOperationsOutput) GoString ¶
func (s GetOperationsOutput) GoString() string
GoString returns the string representation
func (*GetOperationsOutput) SetNextPageToken ¶
func (s *GetOperationsOutput) SetNextPageToken(v string) *GetOperationsOutput
SetNextPageToken sets the NextPageToken field's value.
func (*GetOperationsOutput) SetOperations ¶
func (s *GetOperationsOutput) SetOperations(v []*Operation) *GetOperationsOutput
SetOperations sets the Operations field's value.
func (GetOperationsOutput) String ¶
func (s GetOperationsOutput) String() string
String returns the string representation
type GetRegionsInput ¶
type GetRegionsInput struct { // A Boolean value indicating whether to also include Availability Zones in // your get regions request. Availability Zones are indicated with a letter: // e.g., us-east-1a. IncludeAvailabilityZones *bool `locationName:"includeAvailabilityZones" type:"boolean"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRegionsRequest
func (GetRegionsInput) GoString ¶
func (s GetRegionsInput) GoString() string
GoString returns the string representation
func (*GetRegionsInput) SetIncludeAvailabilityZones ¶
func (s *GetRegionsInput) SetIncludeAvailabilityZones(v bool) *GetRegionsInput
SetIncludeAvailabilityZones sets the IncludeAvailabilityZones field's value.
func (GetRegionsInput) String ¶
func (s GetRegionsInput) String() string
String returns the string representation
type GetRegionsOutput ¶
type GetRegionsOutput struct { // An array of key-value pairs containing information about your get regions // request. Regions []*Region `locationName:"regions" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRegionsResult
func (GetRegionsOutput) GoString ¶
func (s GetRegionsOutput) GoString() string
GoString returns the string representation
func (*GetRegionsOutput) SetRegions ¶
func (s *GetRegionsOutput) SetRegions(v []*Region) *GetRegionsOutput
SetRegions sets the Regions field's value.
func (GetRegionsOutput) String ¶
func (s GetRegionsOutput) String() string
String returns the string representation
type GetStaticIpInput ¶
type GetStaticIpInput struct { // The name of the static IP in Lightsail. // // StaticIpName is a required field StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIpRequest
func (GetStaticIpInput) GoString ¶
func (s GetStaticIpInput) GoString() string
GoString returns the string representation
func (*GetStaticIpInput) SetStaticIpName ¶
func (s *GetStaticIpInput) SetStaticIpName(v string) *GetStaticIpInput
SetStaticIpName sets the StaticIpName field's value.
func (GetStaticIpInput) String ¶
func (s GetStaticIpInput) String() string
String returns the string representation
func (*GetStaticIpInput) Validate ¶
func (s *GetStaticIpInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetStaticIpOutput ¶
type GetStaticIpOutput struct { // An array of key-value pairs containing information about the requested static // IP. StaticIp *StaticIp `locationName:"staticIp" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIpResult
func (GetStaticIpOutput) GoString ¶
func (s GetStaticIpOutput) GoString() string
GoString returns the string representation
func (*GetStaticIpOutput) SetStaticIp ¶
func (s *GetStaticIpOutput) SetStaticIp(v *StaticIp) *GetStaticIpOutput
SetStaticIp sets the StaticIp field's value.
func (GetStaticIpOutput) String ¶
func (s GetStaticIpOutput) String() string
String returns the string representation
type GetStaticIpsInput ¶
type GetStaticIpsInput struct { // A token used for advancing to the next page of results from your get static // IPs request. PageToken *string `locationName:"pageToken" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIpsRequest
func (GetStaticIpsInput) GoString ¶
func (s GetStaticIpsInput) GoString() string
GoString returns the string representation
func (*GetStaticIpsInput) SetPageToken ¶
func (s *GetStaticIpsInput) SetPageToken(v string) *GetStaticIpsInput
SetPageToken sets the PageToken field's value.
func (GetStaticIpsInput) String ¶
func (s GetStaticIpsInput) String() string
String returns the string representation
type GetStaticIpsOutput ¶
type GetStaticIpsOutput struct { // A token used for advancing to the next page of results from your get static // IPs request. NextPageToken *string `locationName:"nextPageToken" type:"string"` // An array of key-value pairs containing information about your get static // IPs request. StaticIps []*StaticIp `locationName:"staticIps" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIpsResult
func (GetStaticIpsOutput) GoString ¶
func (s GetStaticIpsOutput) GoString() string
GoString returns the string representation
func (*GetStaticIpsOutput) SetNextPageToken ¶
func (s *GetStaticIpsOutput) SetNextPageToken(v string) *GetStaticIpsOutput
SetNextPageToken sets the NextPageToken field's value.
func (*GetStaticIpsOutput) SetStaticIps ¶
func (s *GetStaticIpsOutput) SetStaticIps(v []*StaticIp) *GetStaticIpsOutput
SetStaticIps sets the StaticIps field's value.
func (GetStaticIpsOutput) String ¶
func (s GetStaticIpsOutput) String() string
String returns the string representation
type ImportKeyPairInput ¶
type ImportKeyPairInput struct { // The name of the key pair for which you want to import the public key. // // KeyPairName is a required field KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` // A base64-encoded public key of the ssh-rsa type. // // PublicKeyBase64 is a required field PublicKeyBase64 *string `locationName:"publicKeyBase64" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ImportKeyPairRequest
func (ImportKeyPairInput) GoString ¶
func (s ImportKeyPairInput) GoString() string
GoString returns the string representation
func (*ImportKeyPairInput) SetKeyPairName ¶
func (s *ImportKeyPairInput) SetKeyPairName(v string) *ImportKeyPairInput
SetKeyPairName sets the KeyPairName field's value.
func (*ImportKeyPairInput) SetPublicKeyBase64 ¶
func (s *ImportKeyPairInput) SetPublicKeyBase64(v string) *ImportKeyPairInput
SetPublicKeyBase64 sets the PublicKeyBase64 field's value.
func (ImportKeyPairInput) String ¶
func (s ImportKeyPairInput) String() string
String returns the string representation
func (*ImportKeyPairInput) Validate ¶
func (s *ImportKeyPairInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ImportKeyPairOutput ¶
type ImportKeyPairOutput struct { // An array of key-value pairs containing information about the request operation. Operation *Operation `locationName:"operation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ImportKeyPairResult
func (ImportKeyPairOutput) GoString ¶
func (s ImportKeyPairOutput) GoString() string
GoString returns the string representation
func (*ImportKeyPairOutput) SetOperation ¶
func (s *ImportKeyPairOutput) SetOperation(v *Operation) *ImportKeyPairOutput
SetOperation sets the Operation field's value.
func (ImportKeyPairOutput) String ¶
func (s ImportKeyPairOutput) String() string
String returns the string representation
type Instance ¶
type Instance struct { // The Amazon Resource Name (ARN) of the instance (e.g., arn:aws:lightsail:us-east-1:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE). Arn *string `locationName:"arn" type:"string"` // The blueprint ID (e.g., os_amlinux_2016_03). BlueprintId *string `locationName:"blueprintId" type:"string"` // The friendly name of the blueprint (e.g., Amazon Linux). BlueprintName *string `locationName:"blueprintName" type:"string"` // The bundle for the instance (e.g., micro_1_0). BundleId *string `locationName:"bundleId" type:"string"` // The timestamp when the instance was created (e.g., 1479734909.17). CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` // The size of the vCPU and the amount of RAM for the instance. Hardware *InstanceHardware `locationName:"hardware" type:"structure"` // The IPv6 address of the instance. Ipv6Address *string `locationName:"ipv6Address" type:"string"` // A Boolean value indicating whether this instance has a static IP assigned // to it. IsStaticIp *bool `locationName:"isStaticIp" type:"boolean"` // The region name and availability zone where the instance is located. Location *ResourceLocation `locationName:"location" type:"structure"` // The name the user gave the instance (e.g., Amazon_Linux-1GB-Virginia-1). Name *string `locationName:"name" type:"string"` // Information about the public ports and monthly data transfer rates for the // instance. Networking *InstanceNetworking `locationName:"networking" type:"structure"` // The private IP address of the instance. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` // The public IP address of the instance. PublicIpAddress *string `locationName:"publicIpAddress" type:"string"` // The type of resource (usually Instance). ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` // The name of the SSH key being used to connect to the instance (e.g., LightsailDefaultKeyPair). SshKeyName *string `locationName:"sshKeyName" type:"string"` // The status code and the state (e.g., running) for the instance. State *InstanceState `locationName:"state" type:"structure"` // The support code. Include this code in your email to support when you have // questions about an instance or another resource in Lightsail. This code enables // our support team to look up your Lightsail information more easily. SupportCode *string `locationName:"supportCode" type:"string"` // The user name for connecting to the instance (e.g., ec2-user). Username *string `locationName:"username" type:"string"` // contains filtered or unexported fields }
Describes an instance (a virtual private server). Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Instance
func (*Instance) SetBlueprintId ¶
SetBlueprintId sets the BlueprintId field's value.
func (*Instance) SetBlueprintName ¶
SetBlueprintName sets the BlueprintName field's value.
func (*Instance) SetBundleId ¶
SetBundleId sets the BundleId field's value.
func (*Instance) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field's value.
func (*Instance) SetHardware ¶
func (s *Instance) SetHardware(v *InstanceHardware) *Instance
SetHardware sets the Hardware field's value.
func (*Instance) SetIpv6Address ¶
SetIpv6Address sets the Ipv6Address field's value.
func (*Instance) SetIsStaticIp ¶
SetIsStaticIp sets the IsStaticIp field's value.
func (*Instance) SetLocation ¶
func (s *Instance) SetLocation(v *ResourceLocation) *Instance
SetLocation sets the Location field's value.
func (*Instance) SetNetworking ¶
func (s *Instance) SetNetworking(v *InstanceNetworking) *Instance
SetNetworking sets the Networking field's value.
func (*Instance) SetPrivateIpAddress ¶
SetPrivateIpAddress sets the PrivateIpAddress field's value.
func (*Instance) SetPublicIpAddress ¶
SetPublicIpAddress sets the PublicIpAddress field's value.
func (*Instance) SetResourceType ¶
SetResourceType sets the ResourceType field's value.
func (*Instance) SetSshKeyName ¶
SetSshKeyName sets the SshKeyName field's value.
func (*Instance) SetState ¶
func (s *Instance) SetState(v *InstanceState) *Instance
SetState sets the State field's value.
func (*Instance) SetSupportCode ¶
SetSupportCode sets the SupportCode field's value.
func (*Instance) SetUsername ¶
SetUsername sets the Username field's value.
type InstanceAccessDetails ¶
type InstanceAccessDetails struct { // For SSH access, the public key to use when accessing your instance For OpenSSH // clients (e.g., command line SSH), you should save this value to tempkey-cert.pub. CertKey *string `locationName:"certKey" type:"string"` // For SSH access, the date on which the temporary keys expire. ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp" timestampFormat:"unix"` // The name of this Amazon Lightsail instance. InstanceName *string `locationName:"instanceName" type:"string"` // The public IP address of the Amazon Lightsail instance. IpAddress *string `locationName:"ipAddress" type:"string"` // For RDP access, the temporary password of the Amazon EC2 instance. Password *string `locationName:"password" type:"string"` // For SSH access, the temporary private key. For OpenSSH clients (e.g., command // line SSH), you should save this value to tempkey). PrivateKey *string `locationName:"privateKey" type:"string"` // The protocol for these Amazon Lightsail instance access details. Protocol *string `locationName:"protocol" type:"string" enum:"InstanceAccessProtocol"` // The user name to use when logging in to the Amazon Lightsail instance. Username *string `locationName:"username" type:"string"` // contains filtered or unexported fields }
The parameters for gaining temporary access to one of your Amazon Lightsail instances. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceAccessDetails
func (InstanceAccessDetails) GoString ¶
func (s InstanceAccessDetails) GoString() string
GoString returns the string representation
func (*InstanceAccessDetails) SetCertKey ¶
func (s *InstanceAccessDetails) SetCertKey(v string) *InstanceAccessDetails
SetCertKey sets the CertKey field's value.
func (*InstanceAccessDetails) SetExpiresAt ¶
func (s *InstanceAccessDetails) SetExpiresAt(v time.Time) *InstanceAccessDetails
SetExpiresAt sets the ExpiresAt field's value.
func (*InstanceAccessDetails) SetInstanceName ¶
func (s *InstanceAccessDetails) SetInstanceName(v string) *InstanceAccessDetails
SetInstanceName sets the InstanceName field's value.
func (*InstanceAccessDetails) SetIpAddress ¶
func (s *InstanceAccessDetails) SetIpAddress(v string) *InstanceAccessDetails
SetIpAddress sets the IpAddress field's value.
func (*InstanceAccessDetails) SetPassword ¶
func (s *InstanceAccessDetails) SetPassword(v string) *InstanceAccessDetails
SetPassword sets the Password field's value.
func (*InstanceAccessDetails) SetPrivateKey ¶
func (s *InstanceAccessDetails) SetPrivateKey(v string) *InstanceAccessDetails
SetPrivateKey sets the PrivateKey field's value.
func (*InstanceAccessDetails) SetProtocol ¶
func (s *InstanceAccessDetails) SetProtocol(v string) *InstanceAccessDetails
SetProtocol sets the Protocol field's value.
func (*InstanceAccessDetails) SetUsername ¶
func (s *InstanceAccessDetails) SetUsername(v string) *InstanceAccessDetails
SetUsername sets the Username field's value.
func (InstanceAccessDetails) String ¶
func (s InstanceAccessDetails) String() string
String returns the string representation
type InstanceHardware ¶
type InstanceHardware struct { // The number of vCPUs the instance has. CpuCount *int64 `locationName:"cpuCount" type:"integer"` // The disks attached to the instance. Disks []*Disk `locationName:"disks" type:"list"` // The amount of RAM in GB on the instance (e.g., 1.0). RamSizeInGb *float64 `locationName:"ramSizeInGb" type:"float"` // contains filtered or unexported fields }
Describes the hardware for the instance. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceHardware
func (InstanceHardware) GoString ¶
func (s InstanceHardware) GoString() string
GoString returns the string representation
func (*InstanceHardware) SetCpuCount ¶
func (s *InstanceHardware) SetCpuCount(v int64) *InstanceHardware
SetCpuCount sets the CpuCount field's value.
func (*InstanceHardware) SetDisks ¶
func (s *InstanceHardware) SetDisks(v []*Disk) *InstanceHardware
SetDisks sets the Disks field's value.
func (*InstanceHardware) SetRamSizeInGb ¶
func (s *InstanceHardware) SetRamSizeInGb(v float64) *InstanceHardware
SetRamSizeInGb sets the RamSizeInGb field's value.
func (InstanceHardware) String ¶
func (s InstanceHardware) String() string
String returns the string representation
type InstanceNetworking ¶
type InstanceNetworking struct { // The amount of data in GB allocated for monthly data transfers. MonthlyTransfer *MonthlyTransfer `locationName:"monthlyTransfer" type:"structure"` // An array of key-value pairs containing information about the ports on the // instance. Ports []*InstancePortInfo `locationName:"ports" type:"list"` // contains filtered or unexported fields }
Describes monthly data transfer rates and port information for an instance. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceNetworking
func (InstanceNetworking) GoString ¶
func (s InstanceNetworking) GoString() string
GoString returns the string representation
func (*InstanceNetworking) SetMonthlyTransfer ¶
func (s *InstanceNetworking) SetMonthlyTransfer(v *MonthlyTransfer) *InstanceNetworking
SetMonthlyTransfer sets the MonthlyTransfer field's value.
func (*InstanceNetworking) SetPorts ¶
func (s *InstanceNetworking) SetPorts(v []*InstancePortInfo) *InstanceNetworking
SetPorts sets the Ports field's value.
func (InstanceNetworking) String ¶
func (s InstanceNetworking) String() string
String returns the string representation
type InstancePortInfo ¶
type InstancePortInfo struct { // The access direction (inbound or outbound). AccessDirection *string `locationName:"accessDirection" type:"string" enum:"AccessDirection"` // The location from which access is allowed (e.g., Anywhere (0.0.0.0/0)). AccessFrom *string `locationName:"accessFrom" type:"string"` // The type of access (Public or Private). AccessType *string `locationName:"accessType" type:"string" enum:"PortAccessType"` // The common name. CommonName *string `locationName:"commonName" type:"string"` // The first port in the range. FromPort *int64 `locationName:"fromPort" type:"integer"` // The protocol. Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"` // The last port in the range. ToPort *int64 `locationName:"toPort" type:"integer"` // contains filtered or unexported fields }
Describes information about the instance ports. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstancePortInfo
func (InstancePortInfo) GoString ¶
func (s InstancePortInfo) GoString() string
GoString returns the string representation
func (*InstancePortInfo) SetAccessDirection ¶
func (s *InstancePortInfo) SetAccessDirection(v string) *InstancePortInfo
SetAccessDirection sets the AccessDirection field's value.
func (*InstancePortInfo) SetAccessFrom ¶
func (s *InstancePortInfo) SetAccessFrom(v string) *InstancePortInfo
SetAccessFrom sets the AccessFrom field's value.
func (*InstancePortInfo) SetAccessType ¶
func (s *InstancePortInfo) SetAccessType(v string) *InstancePortInfo
SetAccessType sets the AccessType field's value.
func (*InstancePortInfo) SetCommonName ¶
func (s *InstancePortInfo) SetCommonName(v string) *InstancePortInfo
SetCommonName sets the CommonName field's value.
func (*InstancePortInfo) SetFromPort ¶
func (s *InstancePortInfo) SetFromPort(v int64) *InstancePortInfo
SetFromPort sets the FromPort field's value.
func (*InstancePortInfo) SetProtocol ¶
func (s *InstancePortInfo) SetProtocol(v string) *InstancePortInfo
SetProtocol sets the Protocol field's value.
func (*InstancePortInfo) SetToPort ¶
func (s *InstancePortInfo) SetToPort(v int64) *InstancePortInfo
SetToPort sets the ToPort field's value.
func (InstancePortInfo) String ¶
func (s InstancePortInfo) String() string
String returns the string representation
type InstanceSnapshot ¶
type InstanceSnapshot struct { // The Amazon Resource Name (ARN) of the snapshot (e.g., arn:aws:lightsail:us-east-1:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE). Arn *string `locationName:"arn" type:"string"` // The timestamp when the snapshot was created (e.g., 1479907467.024). CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` // The blueprint ID from which you created the snapshot (e.g., os_debian_8_3). // A blueprint is a virtual private server (or instance) image used to create // instances quickly. FromBlueprintId *string `locationName:"fromBlueprintId" type:"string"` // The bundle ID from which you created the snapshot (e.g., micro_1_0). FromBundleId *string `locationName:"fromBundleId" type:"string"` // The Amazon Resource Name (ARN) of the instance from which the snapshot was // created (e.g., arn:aws:lightsail:us-east-1:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE). FromInstanceArn *string `locationName:"fromInstanceArn" type:"string"` // The instance from which the snapshot was created. FromInstanceName *string `locationName:"fromInstanceName" type:"string"` // The region name and availability zone where you created the snapshot. Location *ResourceLocation `locationName:"location" type:"structure"` // The name of the snapshot. Name *string `locationName:"name" type:"string"` // The progress of the snapshot. Progress *string `locationName:"progress" type:"string"` // The type of resource (usually InstanceSnapshot). ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` // The size in GB of the SSD. SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` // The state the snapshot is in. State *string `locationName:"state" type:"string" enum:"InstanceSnapshotState"` // The support code. Include this code in your email to support when you have // questions about an instance or another resource in Lightsail. This code enables // our support team to look up your Lightsail information more easily. SupportCode *string `locationName:"supportCode" type:"string"` // contains filtered or unexported fields }
Describes the snapshot of the virtual private server, or instance. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceSnapshot
func (InstanceSnapshot) GoString ¶
func (s InstanceSnapshot) GoString() string
GoString returns the string representation
func (*InstanceSnapshot) SetArn ¶
func (s *InstanceSnapshot) SetArn(v string) *InstanceSnapshot
SetArn sets the Arn field's value.
func (*InstanceSnapshot) SetCreatedAt ¶
func (s *InstanceSnapshot) SetCreatedAt(v time.Time) *InstanceSnapshot
SetCreatedAt sets the CreatedAt field's value.
func (*InstanceSnapshot) SetFromBlueprintId ¶
func (s *InstanceSnapshot) SetFromBlueprintId(v string) *InstanceSnapshot
SetFromBlueprintId sets the FromBlueprintId field's value.
func (*InstanceSnapshot) SetFromBundleId ¶
func (s *InstanceSnapshot) SetFromBundleId(v string) *InstanceSnapshot
SetFromBundleId sets the FromBundleId field's value.
func (*InstanceSnapshot) SetFromInstanceArn ¶
func (s *InstanceSnapshot) SetFromInstanceArn(v string) *InstanceSnapshot
SetFromInstanceArn sets the FromInstanceArn field's value.
func (*InstanceSnapshot) SetFromInstanceName ¶
func (s *InstanceSnapshot) SetFromInstanceName(v string) *InstanceSnapshot
SetFromInstanceName sets the FromInstanceName field's value.
func (*InstanceSnapshot) SetLocation ¶
func (s *InstanceSnapshot) SetLocation(v *ResourceLocation) *InstanceSnapshot
SetLocation sets the Location field's value.
func (*InstanceSnapshot) SetName ¶
func (s *InstanceSnapshot) SetName(v string) *InstanceSnapshot
SetName sets the Name field's value.
func (*InstanceSnapshot) SetProgress ¶
func (s *InstanceSnapshot) SetProgress(v string) *InstanceSnapshot
SetProgress sets the Progress field's value.
func (*InstanceSnapshot) SetResourceType ¶
func (s *InstanceSnapshot) SetResourceType(v string) *InstanceSnapshot
SetResourceType sets the ResourceType field's value.
func (*InstanceSnapshot) SetSizeInGb ¶
func (s *InstanceSnapshot) SetSizeInGb(v int64) *InstanceSnapshot
SetSizeInGb sets the SizeInGb field's value.
func (*InstanceSnapshot) SetState ¶
func (s *InstanceSnapshot) SetState(v string) *InstanceSnapshot
SetState sets the State field's value.
func (*InstanceSnapshot) SetSupportCode ¶
func (s *InstanceSnapshot) SetSupportCode(v string) *InstanceSnapshot
SetSupportCode sets the SupportCode field's value.
func (InstanceSnapshot) String ¶
func (s InstanceSnapshot) String() string
String returns the string representation
type InstanceState ¶
type InstanceState struct { // The status code for the instance. Code *int64 `locationName:"code" type:"integer"` // The state of the instance (e.g., running or pending). Name *string `locationName:"name" type:"string"` // contains filtered or unexported fields }
Describes the virtual private server (or instance) status. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/InstanceState
func (InstanceState) GoString ¶
func (s InstanceState) GoString() string
GoString returns the string representation
func (*InstanceState) SetCode ¶
func (s *InstanceState) SetCode(v int64) *InstanceState
SetCode sets the Code field's value.
func (*InstanceState) SetName ¶
func (s *InstanceState) SetName(v string) *InstanceState
SetName sets the Name field's value.
func (InstanceState) String ¶
func (s InstanceState) String() string
String returns the string representation
type IsVpcPeeredInput ¶
type IsVpcPeeredInput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/IsVpcPeeredRequest
func (IsVpcPeeredInput) GoString ¶
func (s IsVpcPeeredInput) GoString() string
GoString returns the string representation
func (IsVpcPeeredInput) String ¶
func (s IsVpcPeeredInput) String() string
String returns the string representation
type IsVpcPeeredOutput ¶
type IsVpcPeeredOutput struct { // Returns true if the Lightsail VPC is peered; otherwise, false. IsPeered *bool `locationName:"isPeered" type:"boolean"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/IsVpcPeeredResult
func (IsVpcPeeredOutput) GoString ¶
func (s IsVpcPeeredOutput) GoString() string
GoString returns the string representation
func (*IsVpcPeeredOutput) SetIsPeered ¶
func (s *IsVpcPeeredOutput) SetIsPeered(v bool) *IsVpcPeeredOutput
SetIsPeered sets the IsPeered field's value.
func (IsVpcPeeredOutput) String ¶
func (s IsVpcPeeredOutput) String() string
String returns the string representation
type KeyPair ¶
type KeyPair struct { // The Amazon Resource Name (ARN) of the key pair (e.g., arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE). Arn *string `locationName:"arn" type:"string"` // The timestamp when the key pair was created (e.g., 1479816991.349). CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` // The RSA fingerprint of the key pair. Fingerprint *string `locationName:"fingerprint" type:"string"` // The region name and Availability Zone where the key pair was created. Location *ResourceLocation `locationName:"location" type:"structure"` // The friendly name of the SSH key pair. Name *string `locationName:"name" type:"string"` // The resource type (usually KeyPair). ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` // The support code. Include this code in your email to support when you have // questions about an instance or another resource in Lightsail. This code enables // our support team to look up your Lightsail information more easily. SupportCode *string `locationName:"supportCode" type:"string"` // contains filtered or unexported fields }
Describes the SSH key pair. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/KeyPair
func (*KeyPair) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field's value.
func (*KeyPair) SetFingerprint ¶
SetFingerprint sets the Fingerprint field's value.
func (*KeyPair) SetLocation ¶
func (s *KeyPair) SetLocation(v *ResourceLocation) *KeyPair
SetLocation sets the Location field's value.
func (*KeyPair) SetResourceType ¶
SetResourceType sets the ResourceType field's value.
func (*KeyPair) SetSupportCode ¶
SetSupportCode sets the SupportCode field's value.
type Lightsail ¶
Amazon Lightsail is the easiest way to get started with AWS for developers who just need virtual private servers. Lightsail includes everything you need to launch your project quickly - a virtual machine, SSD-based storage, data transfer, DNS management, and a static IP - for a low, predictable price. You manage those Lightsail servers through the Lightsail console or by using the API or command-line interface (CLI).
For more information about Lightsail concepts and tasks, see the Lightsail Dev Guide (http://lightsail.aws.amazon.com/ls/docs).
To use the Lightsail API or the CLI, you will need to use AWS Identity and Access Management (IAM) to generate access keys. For details about how to set this up, see the Lightsail Dev Guide (http://lightsail.aws.amazon.com/ls/docs/how-to/articles/lightsail-how-to-set-up-access-keys-to-use-sdk-api-cli). The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Lightsail
New creates a new instance of the Lightsail client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
// Create a Lightsail client from just a session. svc := lightsail.New(mySession) // Create a Lightsail client with additional configuration svc := lightsail.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*Lightsail) AllocateStaticIp ¶
func (c *Lightsail) AllocateStaticIp(input *AllocateStaticIpInput) (*AllocateStaticIpOutput, error)
AllocateStaticIp API operation for Amazon Lightsail.
Allocates a static IP address.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation AllocateStaticIp for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AllocateStaticIp
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.AllocateStaticIpInput{ StaticIpName: aws.String("ResourceName"), // Required } resp, err := svc.AllocateStaticIp(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) AllocateStaticIpRequest ¶
func (c *Lightsail) AllocateStaticIpRequest(input *AllocateStaticIpInput) (req *request.Request, output *AllocateStaticIpOutput)
AllocateStaticIpRequest generates a "aws/request.Request" representing the client's request for the AllocateStaticIp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See AllocateStaticIp for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the AllocateStaticIp method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the AllocateStaticIpRequest method. req, resp := client.AllocateStaticIpRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AllocateStaticIp
func (*Lightsail) AllocateStaticIpWithContext ¶ added in v1.8.0
func (c *Lightsail) AllocateStaticIpWithContext(ctx aws.Context, input *AllocateStaticIpInput, opts ...request.Option) (*AllocateStaticIpOutput, error)
AllocateStaticIpWithContext is the same as AllocateStaticIp with the addition of the ability to pass a context and additional request options.
See AllocateStaticIp for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) AttachStaticIp ¶
func (c *Lightsail) AttachStaticIp(input *AttachStaticIpInput) (*AttachStaticIpOutput, error)
AttachStaticIp API operation for Amazon Lightsail.
Attaches a static IP address to a specific Amazon Lightsail instance.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation AttachStaticIp for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachStaticIp
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.AttachStaticIpInput{ InstanceName: aws.String("ResourceName"), // Required StaticIpName: aws.String("ResourceName"), // Required } resp, err := svc.AttachStaticIp(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) AttachStaticIpRequest ¶
func (c *Lightsail) AttachStaticIpRequest(input *AttachStaticIpInput) (req *request.Request, output *AttachStaticIpOutput)
AttachStaticIpRequest generates a "aws/request.Request" representing the client's request for the AttachStaticIp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See AttachStaticIp for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the AttachStaticIp method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the AttachStaticIpRequest method. req, resp := client.AttachStaticIpRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachStaticIp
func (*Lightsail) AttachStaticIpWithContext ¶ added in v1.8.0
func (c *Lightsail) AttachStaticIpWithContext(ctx aws.Context, input *AttachStaticIpInput, opts ...request.Option) (*AttachStaticIpOutput, error)
AttachStaticIpWithContext is the same as AttachStaticIp with the addition of the ability to pass a context and additional request options.
See AttachStaticIp for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) CloseInstancePublicPorts ¶
func (c *Lightsail) CloseInstancePublicPorts(input *CloseInstancePublicPortsInput) (*CloseInstancePublicPortsOutput, error)
CloseInstancePublicPorts API operation for Amazon Lightsail.
Closes the public ports on a specific Amazon Lightsail instance.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation CloseInstancePublicPorts for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CloseInstancePublicPorts
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.CloseInstancePublicPortsInput{ InstanceName: aws.String("ResourceName"), // Required PortInfo: &lightsail.PortInfo{ // Required FromPort: aws.Int64(1), Protocol: aws.String("NetworkProtocol"), ToPort: aws.Int64(1), }, } resp, err := svc.CloseInstancePublicPorts(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) CloseInstancePublicPortsRequest ¶
func (c *Lightsail) CloseInstancePublicPortsRequest(input *CloseInstancePublicPortsInput) (req *request.Request, output *CloseInstancePublicPortsOutput)
CloseInstancePublicPortsRequest generates a "aws/request.Request" representing the client's request for the CloseInstancePublicPorts operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CloseInstancePublicPorts for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CloseInstancePublicPorts method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CloseInstancePublicPortsRequest method. req, resp := client.CloseInstancePublicPortsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CloseInstancePublicPorts
func (*Lightsail) CloseInstancePublicPortsWithContext ¶ added in v1.8.0
func (c *Lightsail) CloseInstancePublicPortsWithContext(ctx aws.Context, input *CloseInstancePublicPortsInput, opts ...request.Option) (*CloseInstancePublicPortsOutput, error)
CloseInstancePublicPortsWithContext is the same as CloseInstancePublicPorts with the addition of the ability to pass a context and additional request options.
See CloseInstancePublicPorts for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) CreateDomain ¶
func (c *Lightsail) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error)
CreateDomain API operation for Amazon Lightsail.
Creates a domain resource for the specified domain (e.g., example.com).
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation CreateDomain for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomain
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.CreateDomainInput{ DomainName: aws.String("DomainName"), // Required } resp, err := svc.CreateDomain(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) CreateDomainEntry ¶
func (c *Lightsail) CreateDomainEntry(input *CreateDomainEntryInput) (*CreateDomainEntryOutput, error)
CreateDomainEntry API operation for Amazon Lightsail.
Creates one of the following entry records associated with the domain: A record, CNAME record, TXT record, or MX record.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation CreateDomainEntry for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainEntry
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.CreateDomainEntryInput{ DomainEntry: &lightsail.DomainEntry{ // Required Id: aws.String("NonEmptyString"), Name: aws.String("DomainName"), Options: map[string]*string{ "Key": aws.String("string"), // Required // More values... }, Target: aws.String("string"), Type: aws.String("DomainEntryType"), }, DomainName: aws.String("DomainName"), // Required } resp, err := svc.CreateDomainEntry(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) CreateDomainEntryRequest ¶
func (c *Lightsail) CreateDomainEntryRequest(input *CreateDomainEntryInput) (req *request.Request, output *CreateDomainEntryOutput)
CreateDomainEntryRequest generates a "aws/request.Request" representing the client's request for the CreateDomainEntry operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateDomainEntry for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateDomainEntry method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CreateDomainEntryRequest method. req, resp := client.CreateDomainEntryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainEntry
func (*Lightsail) CreateDomainEntryWithContext ¶ added in v1.8.0
func (c *Lightsail) CreateDomainEntryWithContext(ctx aws.Context, input *CreateDomainEntryInput, opts ...request.Option) (*CreateDomainEntryOutput, error)
CreateDomainEntryWithContext is the same as CreateDomainEntry with the addition of the ability to pass a context and additional request options.
See CreateDomainEntry for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) CreateDomainRequest ¶
func (c *Lightsail) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput)
CreateDomainRequest generates a "aws/request.Request" representing the client's request for the CreateDomain operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateDomain for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateDomain method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CreateDomainRequest method. req, resp := client.CreateDomainRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomain
func (*Lightsail) CreateDomainWithContext ¶ added in v1.8.0
func (c *Lightsail) CreateDomainWithContext(ctx aws.Context, input *CreateDomainInput, opts ...request.Option) (*CreateDomainOutput, error)
CreateDomainWithContext is the same as CreateDomain with the addition of the ability to pass a context and additional request options.
See CreateDomain for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) CreateInstanceSnapshot ¶
func (c *Lightsail) CreateInstanceSnapshot(input *CreateInstanceSnapshotInput) (*CreateInstanceSnapshotOutput, error)
CreateInstanceSnapshot API operation for Amazon Lightsail.
Creates a snapshot of a specific virtual private server, or instance. You can use a snapshot to create a new instance that is based on that snapshot.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation CreateInstanceSnapshot for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstanceSnapshot
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.CreateInstanceSnapshotInput{ InstanceName: aws.String("ResourceName"), // Required InstanceSnapshotName: aws.String("ResourceName"), // Required } resp, err := svc.CreateInstanceSnapshot(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) CreateInstanceSnapshotRequest ¶
func (c *Lightsail) CreateInstanceSnapshotRequest(input *CreateInstanceSnapshotInput) (req *request.Request, output *CreateInstanceSnapshotOutput)
CreateInstanceSnapshotRequest generates a "aws/request.Request" representing the client's request for the CreateInstanceSnapshot operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateInstanceSnapshot for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateInstanceSnapshot method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CreateInstanceSnapshotRequest method. req, resp := client.CreateInstanceSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstanceSnapshot
func (*Lightsail) CreateInstanceSnapshotWithContext ¶ added in v1.8.0
func (c *Lightsail) CreateInstanceSnapshotWithContext(ctx aws.Context, input *CreateInstanceSnapshotInput, opts ...request.Option) (*CreateInstanceSnapshotOutput, error)
CreateInstanceSnapshotWithContext is the same as CreateInstanceSnapshot with the addition of the ability to pass a context and additional request options.
See CreateInstanceSnapshot for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) CreateInstances ¶
func (c *Lightsail) CreateInstances(input *CreateInstancesInput) (*CreateInstancesOutput, error)
CreateInstances API operation for Amazon Lightsail.
Creates one or more Amazon Lightsail virtual private servers, or instances.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation CreateInstances for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstances
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.CreateInstancesInput{ AvailabilityZone: aws.String("string"), // Required BlueprintId: aws.String("NonEmptyString"), // Required BundleId: aws.String("NonEmptyString"), // Required InstanceNames: []*string{ // Required aws.String("string"), // Required // More values... }, CustomImageName: aws.String("ResourceName"), KeyPairName: aws.String("ResourceName"), UserData: aws.String("string"), } resp, err := svc.CreateInstances(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) CreateInstancesFromSnapshot ¶
func (c *Lightsail) CreateInstancesFromSnapshot(input *CreateInstancesFromSnapshotInput) (*CreateInstancesFromSnapshotOutput, error)
CreateInstancesFromSnapshot API operation for Amazon Lightsail.
Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation CreateInstancesFromSnapshot for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesFromSnapshot
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.CreateInstancesFromSnapshotInput{ AvailabilityZone: aws.String("string"), // Required BundleId: aws.String("NonEmptyString"), // Required InstanceNames: []*string{ // Required aws.String("string"), // Required // More values... }, InstanceSnapshotName: aws.String("ResourceName"), // Required KeyPairName: aws.String("ResourceName"), UserData: aws.String("string"), } resp, err := svc.CreateInstancesFromSnapshot(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) CreateInstancesFromSnapshotRequest ¶
func (c *Lightsail) CreateInstancesFromSnapshotRequest(input *CreateInstancesFromSnapshotInput) (req *request.Request, output *CreateInstancesFromSnapshotOutput)
CreateInstancesFromSnapshotRequest generates a "aws/request.Request" representing the client's request for the CreateInstancesFromSnapshot operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateInstancesFromSnapshot for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateInstancesFromSnapshot method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CreateInstancesFromSnapshotRequest method. req, resp := client.CreateInstancesFromSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesFromSnapshot
func (*Lightsail) CreateInstancesFromSnapshotWithContext ¶ added in v1.8.0
func (c *Lightsail) CreateInstancesFromSnapshotWithContext(ctx aws.Context, input *CreateInstancesFromSnapshotInput, opts ...request.Option) (*CreateInstancesFromSnapshotOutput, error)
CreateInstancesFromSnapshotWithContext is the same as CreateInstancesFromSnapshot with the addition of the ability to pass a context and additional request options.
See CreateInstancesFromSnapshot for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) CreateInstancesRequest ¶
func (c *Lightsail) CreateInstancesRequest(input *CreateInstancesInput) (req *request.Request, output *CreateInstancesOutput)
CreateInstancesRequest generates a "aws/request.Request" representing the client's request for the CreateInstances operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateInstances for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateInstances method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CreateInstancesRequest method. req, resp := client.CreateInstancesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstances
func (*Lightsail) CreateInstancesWithContext ¶ added in v1.8.0
func (c *Lightsail) CreateInstancesWithContext(ctx aws.Context, input *CreateInstancesInput, opts ...request.Option) (*CreateInstancesOutput, error)
CreateInstancesWithContext is the same as CreateInstances with the addition of the ability to pass a context and additional request options.
See CreateInstances for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) CreateKeyPair ¶
func (c *Lightsail) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, error)
CreateKeyPair API operation for Amazon Lightsail.
Creates sn SSH key pair.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation CreateKeyPair for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateKeyPair
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.CreateKeyPairInput{ KeyPairName: aws.String("ResourceName"), // Required } resp, err := svc.CreateKeyPair(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) CreateKeyPairRequest ¶
func (c *Lightsail) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Request, output *CreateKeyPairOutput)
CreateKeyPairRequest generates a "aws/request.Request" representing the client's request for the CreateKeyPair operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateKeyPair for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateKeyPair method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CreateKeyPairRequest method. req, resp := client.CreateKeyPairRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateKeyPair
func (*Lightsail) CreateKeyPairWithContext ¶ added in v1.8.0
func (c *Lightsail) CreateKeyPairWithContext(ctx aws.Context, input *CreateKeyPairInput, opts ...request.Option) (*CreateKeyPairOutput, error)
CreateKeyPairWithContext is the same as CreateKeyPair with the addition of the ability to pass a context and additional request options.
See CreateKeyPair for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) DeleteDomain ¶
func (c *Lightsail) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error)
DeleteDomain API operation for Amazon Lightsail.
Deletes the specified domain recordset and all of its domain records.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation DeleteDomain for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomain
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.DeleteDomainInput{ DomainName: aws.String("DomainName"), // Required } resp, err := svc.DeleteDomain(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) DeleteDomainEntry ¶
func (c *Lightsail) DeleteDomainEntry(input *DeleteDomainEntryInput) (*DeleteDomainEntryOutput, error)
DeleteDomainEntry API operation for Amazon Lightsail.
Deletes a specific domain entry.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation DeleteDomainEntry for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainEntry
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.DeleteDomainEntryInput{ DomainEntry: &lightsail.DomainEntry{ // Required Id: aws.String("NonEmptyString"), Name: aws.String("DomainName"), Options: map[string]*string{ "Key": aws.String("string"), // Required // More values... }, Target: aws.String("string"), Type: aws.String("DomainEntryType"), }, DomainName: aws.String("DomainName"), // Required } resp, err := svc.DeleteDomainEntry(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) DeleteDomainEntryRequest ¶
func (c *Lightsail) DeleteDomainEntryRequest(input *DeleteDomainEntryInput) (req *request.Request, output *DeleteDomainEntryOutput)
DeleteDomainEntryRequest generates a "aws/request.Request" representing the client's request for the DeleteDomainEntry operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DeleteDomainEntry for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteDomainEntry method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DeleteDomainEntryRequest method. req, resp := client.DeleteDomainEntryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainEntry
func (*Lightsail) DeleteDomainEntryWithContext ¶ added in v1.8.0
func (c *Lightsail) DeleteDomainEntryWithContext(ctx aws.Context, input *DeleteDomainEntryInput, opts ...request.Option) (*DeleteDomainEntryOutput, error)
DeleteDomainEntryWithContext is the same as DeleteDomainEntry with the addition of the ability to pass a context and additional request options.
See DeleteDomainEntry for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) DeleteDomainRequest ¶
func (c *Lightsail) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput)
DeleteDomainRequest generates a "aws/request.Request" representing the client's request for the DeleteDomain operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DeleteDomain for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteDomain method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DeleteDomainRequest method. req, resp := client.DeleteDomainRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomain
func (*Lightsail) DeleteDomainWithContext ¶ added in v1.8.0
func (c *Lightsail) DeleteDomainWithContext(ctx aws.Context, input *DeleteDomainInput, opts ...request.Option) (*DeleteDomainOutput, error)
DeleteDomainWithContext is the same as DeleteDomain with the addition of the ability to pass a context and additional request options.
See DeleteDomain for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) DeleteInstance ¶
func (c *Lightsail) DeleteInstance(input *DeleteInstanceInput) (*DeleteInstanceOutput, error)
DeleteInstance API operation for Amazon Lightsail.
Deletes a specific Amazon Lightsail virtual private server, or instance.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation DeleteInstance for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstance
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.DeleteInstanceInput{ InstanceName: aws.String("ResourceName"), // Required } resp, err := svc.DeleteInstance(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) DeleteInstanceRequest ¶
func (c *Lightsail) DeleteInstanceRequest(input *DeleteInstanceInput) (req *request.Request, output *DeleteInstanceOutput)
DeleteInstanceRequest generates a "aws/request.Request" representing the client's request for the DeleteInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DeleteInstance for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteInstance method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DeleteInstanceRequest method. req, resp := client.DeleteInstanceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstance
func (*Lightsail) DeleteInstanceSnapshot ¶
func (c *Lightsail) DeleteInstanceSnapshot(input *DeleteInstanceSnapshotInput) (*DeleteInstanceSnapshotOutput, error)
DeleteInstanceSnapshot API operation for Amazon Lightsail.
Deletes a specific snapshot of a virtual private server (or instance).
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation DeleteInstanceSnapshot for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceSnapshot
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.DeleteInstanceSnapshotInput{ InstanceSnapshotName: aws.String("ResourceName"), // Required } resp, err := svc.DeleteInstanceSnapshot(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) DeleteInstanceSnapshotRequest ¶
func (c *Lightsail) DeleteInstanceSnapshotRequest(input *DeleteInstanceSnapshotInput) (req *request.Request, output *DeleteInstanceSnapshotOutput)
DeleteInstanceSnapshotRequest generates a "aws/request.Request" representing the client's request for the DeleteInstanceSnapshot operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DeleteInstanceSnapshot for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteInstanceSnapshot method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DeleteInstanceSnapshotRequest method. req, resp := client.DeleteInstanceSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceSnapshot
func (*Lightsail) DeleteInstanceSnapshotWithContext ¶ added in v1.8.0
func (c *Lightsail) DeleteInstanceSnapshotWithContext(ctx aws.Context, input *DeleteInstanceSnapshotInput, opts ...request.Option) (*DeleteInstanceSnapshotOutput, error)
DeleteInstanceSnapshotWithContext is the same as DeleteInstanceSnapshot with the addition of the ability to pass a context and additional request options.
See DeleteInstanceSnapshot for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) DeleteInstanceWithContext ¶ added in v1.8.0
func (c *Lightsail) DeleteInstanceWithContext(ctx aws.Context, input *DeleteInstanceInput, opts ...request.Option) (*DeleteInstanceOutput, error)
DeleteInstanceWithContext is the same as DeleteInstance with the addition of the ability to pass a context and additional request options.
See DeleteInstance for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) DeleteKeyPair ¶
func (c *Lightsail) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, error)
DeleteKeyPair API operation for Amazon Lightsail.
Deletes a specific SSH key pair.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation DeleteKeyPair for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKeyPair
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.DeleteKeyPairInput{ KeyPairName: aws.String("ResourceName"), // Required } resp, err := svc.DeleteKeyPair(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) DeleteKeyPairRequest ¶
func (c *Lightsail) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Request, output *DeleteKeyPairOutput)
DeleteKeyPairRequest generates a "aws/request.Request" representing the client's request for the DeleteKeyPair operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DeleteKeyPair for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteKeyPair method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DeleteKeyPairRequest method. req, resp := client.DeleteKeyPairRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKeyPair
func (*Lightsail) DeleteKeyPairWithContext ¶ added in v1.8.0
func (c *Lightsail) DeleteKeyPairWithContext(ctx aws.Context, input *DeleteKeyPairInput, opts ...request.Option) (*DeleteKeyPairOutput, error)
DeleteKeyPairWithContext is the same as DeleteKeyPair with the addition of the ability to pass a context and additional request options.
See DeleteKeyPair for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) DetachStaticIp ¶
func (c *Lightsail) DetachStaticIp(input *DetachStaticIpInput) (*DetachStaticIpOutput, error)
DetachStaticIp API operation for Amazon Lightsail.
Detaches a static IP from the Amazon Lightsail instance to which it is attached.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation DetachStaticIp for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachStaticIp
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.DetachStaticIpInput{ StaticIpName: aws.String("ResourceName"), // Required } resp, err := svc.DetachStaticIp(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) DetachStaticIpRequest ¶
func (c *Lightsail) DetachStaticIpRequest(input *DetachStaticIpInput) (req *request.Request, output *DetachStaticIpOutput)
DetachStaticIpRequest generates a "aws/request.Request" representing the client's request for the DetachStaticIp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DetachStaticIp for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DetachStaticIp method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DetachStaticIpRequest method. req, resp := client.DetachStaticIpRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachStaticIp
func (*Lightsail) DetachStaticIpWithContext ¶ added in v1.8.0
func (c *Lightsail) DetachStaticIpWithContext(ctx aws.Context, input *DetachStaticIpInput, opts ...request.Option) (*DetachStaticIpOutput, error)
DetachStaticIpWithContext is the same as DetachStaticIp with the addition of the ability to pass a context and additional request options.
See DetachStaticIp for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) DownloadDefaultKeyPair ¶
func (c *Lightsail) DownloadDefaultKeyPair(input *DownloadDefaultKeyPairInput) (*DownloadDefaultKeyPairOutput, error)
DownloadDefaultKeyPair API operation for Amazon Lightsail.
Downloads the default SSH key pair from the user's account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation DownloadDefaultKeyPair for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DownloadDefaultKeyPair
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) var params *lightsail.DownloadDefaultKeyPairInput resp, err := svc.DownloadDefaultKeyPair(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) DownloadDefaultKeyPairRequest ¶
func (c *Lightsail) DownloadDefaultKeyPairRequest(input *DownloadDefaultKeyPairInput) (req *request.Request, output *DownloadDefaultKeyPairOutput)
DownloadDefaultKeyPairRequest generates a "aws/request.Request" representing the client's request for the DownloadDefaultKeyPair operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DownloadDefaultKeyPair for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DownloadDefaultKeyPair method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DownloadDefaultKeyPairRequest method. req, resp := client.DownloadDefaultKeyPairRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DownloadDefaultKeyPair
func (*Lightsail) DownloadDefaultKeyPairWithContext ¶ added in v1.8.0
func (c *Lightsail) DownloadDefaultKeyPairWithContext(ctx aws.Context, input *DownloadDefaultKeyPairInput, opts ...request.Option) (*DownloadDefaultKeyPairOutput, error)
DownloadDefaultKeyPairWithContext is the same as DownloadDefaultKeyPair with the addition of the ability to pass a context and additional request options.
See DownloadDefaultKeyPair for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetActiveNames ¶
func (c *Lightsail) GetActiveNames(input *GetActiveNamesInput) (*GetActiveNamesOutput, error)
GetActiveNames API operation for Amazon Lightsail.
Returns the names of all active (not deleted) resources.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetActiveNames for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetActiveNames
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetActiveNamesInput{ PageToken: aws.String("string"), } resp, err := svc.GetActiveNames(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetActiveNamesRequest ¶
func (c *Lightsail) GetActiveNamesRequest(input *GetActiveNamesInput) (req *request.Request, output *GetActiveNamesOutput)
GetActiveNamesRequest generates a "aws/request.Request" representing the client's request for the GetActiveNames operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetActiveNames for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetActiveNames method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetActiveNamesRequest method. req, resp := client.GetActiveNamesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetActiveNames
func (*Lightsail) GetActiveNamesWithContext ¶ added in v1.8.0
func (c *Lightsail) GetActiveNamesWithContext(ctx aws.Context, input *GetActiveNamesInput, opts ...request.Option) (*GetActiveNamesOutput, error)
GetActiveNamesWithContext is the same as GetActiveNames with the addition of the ability to pass a context and additional request options.
See GetActiveNames for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetBlueprints ¶
func (c *Lightsail) GetBlueprints(input *GetBlueprintsInput) (*GetBlueprintsOutput, error)
GetBlueprints API operation for Amazon Lightsail.
Returns the list of available instance images, or blueprints. You can use a blueprint to create a new virtual private server already running a specific operating system, as well as a preinstalled app or development stack. The software each instance is running depends on the blueprint image you choose.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetBlueprints for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprints
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetBlueprintsInput{ IncludeInactive: aws.Bool(true), PageToken: aws.String("string"), } resp, err := svc.GetBlueprints(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetBlueprintsRequest ¶
func (c *Lightsail) GetBlueprintsRequest(input *GetBlueprintsInput) (req *request.Request, output *GetBlueprintsOutput)
GetBlueprintsRequest generates a "aws/request.Request" representing the client's request for the GetBlueprints operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetBlueprints for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetBlueprints method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetBlueprintsRequest method. req, resp := client.GetBlueprintsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprints
func (*Lightsail) GetBlueprintsWithContext ¶ added in v1.8.0
func (c *Lightsail) GetBlueprintsWithContext(ctx aws.Context, input *GetBlueprintsInput, opts ...request.Option) (*GetBlueprintsOutput, error)
GetBlueprintsWithContext is the same as GetBlueprints with the addition of the ability to pass a context and additional request options.
See GetBlueprints for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetBundles ¶
func (c *Lightsail) GetBundles(input *GetBundlesInput) (*GetBundlesOutput, error)
GetBundles API operation for Amazon Lightsail.
Returns the list of bundles that are available for purchase. A bundle describes the specs for your virtual private server (or instance).
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetBundles for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBundles
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetBundlesInput{ IncludeInactive: aws.Bool(true), PageToken: aws.String("string"), } resp, err := svc.GetBundles(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetBundlesRequest ¶
func (c *Lightsail) GetBundlesRequest(input *GetBundlesInput) (req *request.Request, output *GetBundlesOutput)
GetBundlesRequest generates a "aws/request.Request" representing the client's request for the GetBundles operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetBundles for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetBundles method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetBundlesRequest method. req, resp := client.GetBundlesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBundles
func (*Lightsail) GetBundlesWithContext ¶ added in v1.8.0
func (c *Lightsail) GetBundlesWithContext(ctx aws.Context, input *GetBundlesInput, opts ...request.Option) (*GetBundlesOutput, error)
GetBundlesWithContext is the same as GetBundles with the addition of the ability to pass a context and additional request options.
See GetBundles for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetDomain ¶
func (c *Lightsail) GetDomain(input *GetDomainInput) (*GetDomainOutput, error)
GetDomain API operation for Amazon Lightsail.
Returns information about a specific domain recordset.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetDomain for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomain
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetDomainInput{ DomainName: aws.String("DomainName"), // Required } resp, err := svc.GetDomain(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetDomainRequest ¶
func (c *Lightsail) GetDomainRequest(input *GetDomainInput) (req *request.Request, output *GetDomainOutput)
GetDomainRequest generates a "aws/request.Request" representing the client's request for the GetDomain operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetDomain for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetDomain method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetDomainRequest method. req, resp := client.GetDomainRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomain
func (*Lightsail) GetDomainWithContext ¶ added in v1.8.0
func (c *Lightsail) GetDomainWithContext(ctx aws.Context, input *GetDomainInput, opts ...request.Option) (*GetDomainOutput, error)
GetDomainWithContext is the same as GetDomain with the addition of the ability to pass a context and additional request options.
See GetDomain for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetDomains ¶
func (c *Lightsail) GetDomains(input *GetDomainsInput) (*GetDomainsOutput, error)
GetDomains API operation for Amazon Lightsail.
Returns a list of all domains in the user's account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetDomains for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomains
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetDomainsInput{ PageToken: aws.String("string"), } resp, err := svc.GetDomains(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetDomainsRequest ¶
func (c *Lightsail) GetDomainsRequest(input *GetDomainsInput) (req *request.Request, output *GetDomainsOutput)
GetDomainsRequest generates a "aws/request.Request" representing the client's request for the GetDomains operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetDomains for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetDomains method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetDomainsRequest method. req, resp := client.GetDomainsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomains
func (*Lightsail) GetDomainsWithContext ¶ added in v1.8.0
func (c *Lightsail) GetDomainsWithContext(ctx aws.Context, input *GetDomainsInput, opts ...request.Option) (*GetDomainsOutput, error)
GetDomainsWithContext is the same as GetDomains with the addition of the ability to pass a context and additional request options.
See GetDomains for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetInstance ¶
func (c *Lightsail) GetInstance(input *GetInstanceInput) (*GetInstanceOutput, error)
GetInstance API operation for Amazon Lightsail.
Returns information about a specific Amazon Lightsail instance, which is a virtual private server.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetInstance for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstance
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetInstanceInput{ InstanceName: aws.String("ResourceName"), // Required } resp, err := svc.GetInstance(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetInstanceAccessDetails ¶
func (c *Lightsail) GetInstanceAccessDetails(input *GetInstanceAccessDetailsInput) (*GetInstanceAccessDetailsOutput, error)
GetInstanceAccessDetails API operation for Amazon Lightsail.
Returns temporary SSH keys you can use to connect to a specific virtual private server, or instance.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetInstanceAccessDetails for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceAccessDetails
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetInstanceAccessDetailsInput{ InstanceName: aws.String("ResourceName"), // Required Protocol: aws.String("InstanceAccessProtocol"), } resp, err := svc.GetInstanceAccessDetails(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetInstanceAccessDetailsRequest ¶
func (c *Lightsail) GetInstanceAccessDetailsRequest(input *GetInstanceAccessDetailsInput) (req *request.Request, output *GetInstanceAccessDetailsOutput)
GetInstanceAccessDetailsRequest generates a "aws/request.Request" representing the client's request for the GetInstanceAccessDetails operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetInstanceAccessDetails for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetInstanceAccessDetails method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetInstanceAccessDetailsRequest method. req, resp := client.GetInstanceAccessDetailsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceAccessDetails
func (*Lightsail) GetInstanceAccessDetailsWithContext ¶ added in v1.8.0
func (c *Lightsail) GetInstanceAccessDetailsWithContext(ctx aws.Context, input *GetInstanceAccessDetailsInput, opts ...request.Option) (*GetInstanceAccessDetailsOutput, error)
GetInstanceAccessDetailsWithContext is the same as GetInstanceAccessDetails with the addition of the ability to pass a context and additional request options.
See GetInstanceAccessDetails for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetInstanceMetricData ¶
func (c *Lightsail) GetInstanceMetricData(input *GetInstanceMetricDataInput) (*GetInstanceMetricDataOutput, error)
GetInstanceMetricData API operation for Amazon Lightsail.
Returns the data points for the specified Amazon Lightsail instance metric, given an instance name.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetInstanceMetricData for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceMetricData
Example ¶
package main import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetInstanceMetricDataInput{ EndTime: aws.Time(time.Now()), // Required InstanceName: aws.String("ResourceName"), // Required MetricName: aws.String("InstanceMetricName"), // Required Period: aws.Int64(1), // Required StartTime: aws.Time(time.Now()), // Required Statistics: []*string{ // Required aws.String("MetricStatistic"), // Required // More values... }, Unit: aws.String("MetricUnit"), // Required } resp, err := svc.GetInstanceMetricData(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetInstanceMetricDataRequest ¶
func (c *Lightsail) GetInstanceMetricDataRequest(input *GetInstanceMetricDataInput) (req *request.Request, output *GetInstanceMetricDataOutput)
GetInstanceMetricDataRequest generates a "aws/request.Request" representing the client's request for the GetInstanceMetricData operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetInstanceMetricData for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetInstanceMetricData method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetInstanceMetricDataRequest method. req, resp := client.GetInstanceMetricDataRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceMetricData
func (*Lightsail) GetInstanceMetricDataWithContext ¶ added in v1.8.0
func (c *Lightsail) GetInstanceMetricDataWithContext(ctx aws.Context, input *GetInstanceMetricDataInput, opts ...request.Option) (*GetInstanceMetricDataOutput, error)
GetInstanceMetricDataWithContext is the same as GetInstanceMetricData with the addition of the ability to pass a context and additional request options.
See GetInstanceMetricData for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetInstancePortStates ¶
func (c *Lightsail) GetInstancePortStates(input *GetInstancePortStatesInput) (*GetInstancePortStatesOutput, error)
GetInstancePortStates API operation for Amazon Lightsail.
Returns the port states for a specific virtual private server, or instance.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetInstancePortStates for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancePortStates
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetInstancePortStatesInput{ InstanceName: aws.String("ResourceName"), // Required } resp, err := svc.GetInstancePortStates(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetInstancePortStatesRequest ¶
func (c *Lightsail) GetInstancePortStatesRequest(input *GetInstancePortStatesInput) (req *request.Request, output *GetInstancePortStatesOutput)
GetInstancePortStatesRequest generates a "aws/request.Request" representing the client's request for the GetInstancePortStates operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetInstancePortStates for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetInstancePortStates method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetInstancePortStatesRequest method. req, resp := client.GetInstancePortStatesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancePortStates
func (*Lightsail) GetInstancePortStatesWithContext ¶ added in v1.8.0
func (c *Lightsail) GetInstancePortStatesWithContext(ctx aws.Context, input *GetInstancePortStatesInput, opts ...request.Option) (*GetInstancePortStatesOutput, error)
GetInstancePortStatesWithContext is the same as GetInstancePortStates with the addition of the ability to pass a context and additional request options.
See GetInstancePortStates for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetInstanceRequest ¶
func (c *Lightsail) GetInstanceRequest(input *GetInstanceInput) (req *request.Request, output *GetInstanceOutput)
GetInstanceRequest generates a "aws/request.Request" representing the client's request for the GetInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetInstance for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetInstance method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetInstanceRequest method. req, resp := client.GetInstanceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstance
func (*Lightsail) GetInstanceSnapshot ¶
func (c *Lightsail) GetInstanceSnapshot(input *GetInstanceSnapshotInput) (*GetInstanceSnapshotOutput, error)
GetInstanceSnapshot API operation for Amazon Lightsail.
Returns information about a specific instance snapshot.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetInstanceSnapshot for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshot
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetInstanceSnapshotInput{ InstanceSnapshotName: aws.String("ResourceName"), // Required } resp, err := svc.GetInstanceSnapshot(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetInstanceSnapshotRequest ¶
func (c *Lightsail) GetInstanceSnapshotRequest(input *GetInstanceSnapshotInput) (req *request.Request, output *GetInstanceSnapshotOutput)
GetInstanceSnapshotRequest generates a "aws/request.Request" representing the client's request for the GetInstanceSnapshot operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetInstanceSnapshot for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetInstanceSnapshot method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetInstanceSnapshotRequest method. req, resp := client.GetInstanceSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshot
func (*Lightsail) GetInstanceSnapshotWithContext ¶ added in v1.8.0
func (c *Lightsail) GetInstanceSnapshotWithContext(ctx aws.Context, input *GetInstanceSnapshotInput, opts ...request.Option) (*GetInstanceSnapshotOutput, error)
GetInstanceSnapshotWithContext is the same as GetInstanceSnapshot with the addition of the ability to pass a context and additional request options.
See GetInstanceSnapshot for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetInstanceSnapshots ¶
func (c *Lightsail) GetInstanceSnapshots(input *GetInstanceSnapshotsInput) (*GetInstanceSnapshotsOutput, error)
GetInstanceSnapshots API operation for Amazon Lightsail.
Returns all instance snapshots for the user's account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetInstanceSnapshots for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshots
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetInstanceSnapshotsInput{ PageToken: aws.String("string"), } resp, err := svc.GetInstanceSnapshots(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetInstanceSnapshotsRequest ¶
func (c *Lightsail) GetInstanceSnapshotsRequest(input *GetInstanceSnapshotsInput) (req *request.Request, output *GetInstanceSnapshotsOutput)
GetInstanceSnapshotsRequest generates a "aws/request.Request" representing the client's request for the GetInstanceSnapshots operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetInstanceSnapshots for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetInstanceSnapshots method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetInstanceSnapshotsRequest method. req, resp := client.GetInstanceSnapshotsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshots
func (*Lightsail) GetInstanceSnapshotsWithContext ¶ added in v1.8.0
func (c *Lightsail) GetInstanceSnapshotsWithContext(ctx aws.Context, input *GetInstanceSnapshotsInput, opts ...request.Option) (*GetInstanceSnapshotsOutput, error)
GetInstanceSnapshotsWithContext is the same as GetInstanceSnapshots with the addition of the ability to pass a context and additional request options.
See GetInstanceSnapshots for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetInstanceState ¶
func (c *Lightsail) GetInstanceState(input *GetInstanceStateInput) (*GetInstanceStateOutput, error)
GetInstanceState API operation for Amazon Lightsail.
Returns the state of a specific instance. Works on one instance at a time.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetInstanceState for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceState
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetInstanceStateInput{ InstanceName: aws.String("ResourceName"), // Required } resp, err := svc.GetInstanceState(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetInstanceStateRequest ¶
func (c *Lightsail) GetInstanceStateRequest(input *GetInstanceStateInput) (req *request.Request, output *GetInstanceStateOutput)
GetInstanceStateRequest generates a "aws/request.Request" representing the client's request for the GetInstanceState operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetInstanceState for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetInstanceState method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetInstanceStateRequest method. req, resp := client.GetInstanceStateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceState
func (*Lightsail) GetInstanceStateWithContext ¶ added in v1.8.0
func (c *Lightsail) GetInstanceStateWithContext(ctx aws.Context, input *GetInstanceStateInput, opts ...request.Option) (*GetInstanceStateOutput, error)
GetInstanceStateWithContext is the same as GetInstanceState with the addition of the ability to pass a context and additional request options.
See GetInstanceState for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetInstanceWithContext ¶ added in v1.8.0
func (c *Lightsail) GetInstanceWithContext(ctx aws.Context, input *GetInstanceInput, opts ...request.Option) (*GetInstanceOutput, error)
GetInstanceWithContext is the same as GetInstance with the addition of the ability to pass a context and additional request options.
See GetInstance for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetInstances ¶
func (c *Lightsail) GetInstances(input *GetInstancesInput) (*GetInstancesOutput, error)
GetInstances API operation for Amazon Lightsail.
Returns information about all Amazon Lightsail virtual private servers, or instances.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetInstances for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstances
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetInstancesInput{ PageToken: aws.String("string"), } resp, err := svc.GetInstances(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetInstancesRequest ¶
func (c *Lightsail) GetInstancesRequest(input *GetInstancesInput) (req *request.Request, output *GetInstancesOutput)
GetInstancesRequest generates a "aws/request.Request" representing the client's request for the GetInstances operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetInstances for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetInstances method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetInstancesRequest method. req, resp := client.GetInstancesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstances
func (*Lightsail) GetInstancesWithContext ¶ added in v1.8.0
func (c *Lightsail) GetInstancesWithContext(ctx aws.Context, input *GetInstancesInput, opts ...request.Option) (*GetInstancesOutput, error)
GetInstancesWithContext is the same as GetInstances with the addition of the ability to pass a context and additional request options.
See GetInstances for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetKeyPair ¶
func (c *Lightsail) GetKeyPair(input *GetKeyPairInput) (*GetKeyPairOutput, error)
GetKeyPair API operation for Amazon Lightsail.
Returns information about a specific key pair.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetKeyPair for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPair
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetKeyPairInput{ KeyPairName: aws.String("ResourceName"), // Required } resp, err := svc.GetKeyPair(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetKeyPairRequest ¶
func (c *Lightsail) GetKeyPairRequest(input *GetKeyPairInput) (req *request.Request, output *GetKeyPairOutput)
GetKeyPairRequest generates a "aws/request.Request" representing the client's request for the GetKeyPair operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetKeyPair for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetKeyPair method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetKeyPairRequest method. req, resp := client.GetKeyPairRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPair
func (*Lightsail) GetKeyPairWithContext ¶ added in v1.8.0
func (c *Lightsail) GetKeyPairWithContext(ctx aws.Context, input *GetKeyPairInput, opts ...request.Option) (*GetKeyPairOutput, error)
GetKeyPairWithContext is the same as GetKeyPair with the addition of the ability to pass a context and additional request options.
See GetKeyPair for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetKeyPairs ¶
func (c *Lightsail) GetKeyPairs(input *GetKeyPairsInput) (*GetKeyPairsOutput, error)
GetKeyPairs API operation for Amazon Lightsail.
Returns information about all key pairs in the user's account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetKeyPairs for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairs
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetKeyPairsInput{ PageToken: aws.String("string"), } resp, err := svc.GetKeyPairs(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetKeyPairsRequest ¶
func (c *Lightsail) GetKeyPairsRequest(input *GetKeyPairsInput) (req *request.Request, output *GetKeyPairsOutput)
GetKeyPairsRequest generates a "aws/request.Request" representing the client's request for the GetKeyPairs operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetKeyPairs for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetKeyPairs method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetKeyPairsRequest method. req, resp := client.GetKeyPairsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairs
func (*Lightsail) GetKeyPairsWithContext ¶ added in v1.8.0
func (c *Lightsail) GetKeyPairsWithContext(ctx aws.Context, input *GetKeyPairsInput, opts ...request.Option) (*GetKeyPairsOutput, error)
GetKeyPairsWithContext is the same as GetKeyPairs with the addition of the ability to pass a context and additional request options.
See GetKeyPairs for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetOperation ¶
func (c *Lightsail) GetOperation(input *GetOperationInput) (*GetOperationOutput, error)
GetOperation API operation for Amazon Lightsail.
Returns information about a specific operation. Operations include events such as when you create an instance, allocate a static IP, attach a static IP, and so on.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetOperation for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperation
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetOperationInput{ OperationId: aws.String("NonEmptyString"), // Required } resp, err := svc.GetOperation(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetOperationRequest ¶
func (c *Lightsail) GetOperationRequest(input *GetOperationInput) (req *request.Request, output *GetOperationOutput)
GetOperationRequest generates a "aws/request.Request" representing the client's request for the GetOperation operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetOperation for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetOperation method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetOperationRequest method. req, resp := client.GetOperationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperation
func (*Lightsail) GetOperationWithContext ¶ added in v1.8.0
func (c *Lightsail) GetOperationWithContext(ctx aws.Context, input *GetOperationInput, opts ...request.Option) (*GetOperationOutput, error)
GetOperationWithContext is the same as GetOperation with the addition of the ability to pass a context and additional request options.
See GetOperation for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetOperations ¶
func (c *Lightsail) GetOperations(input *GetOperationsInput) (*GetOperationsOutput, error)
GetOperations API operation for Amazon Lightsail.
Returns information about all operations.
Results are returned from oldest to newest, up to a maximum of 200. Results can be paged by making each subsequent call to GetOperations use the maximum (last) statusChangedAt value from the previous request.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetOperations for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperations
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetOperationsInput{ PageToken: aws.String("string"), } resp, err := svc.GetOperations(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetOperationsForResource ¶
func (c *Lightsail) GetOperationsForResource(input *GetOperationsForResourceInput) (*GetOperationsForResourceOutput, error)
GetOperationsForResource API operation for Amazon Lightsail.
Gets operations for a specific resource (e.g., an instance or a static IP).
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetOperationsForResource for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsForResource
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetOperationsForResourceInput{ ResourceName: aws.String("ResourceName"), // Required PageToken: aws.String("string"), } resp, err := svc.GetOperationsForResource(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetOperationsForResourceRequest ¶
func (c *Lightsail) GetOperationsForResourceRequest(input *GetOperationsForResourceInput) (req *request.Request, output *GetOperationsForResourceOutput)
GetOperationsForResourceRequest generates a "aws/request.Request" representing the client's request for the GetOperationsForResource operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetOperationsForResource for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetOperationsForResource method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetOperationsForResourceRequest method. req, resp := client.GetOperationsForResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsForResource
func (*Lightsail) GetOperationsForResourceWithContext ¶ added in v1.8.0
func (c *Lightsail) GetOperationsForResourceWithContext(ctx aws.Context, input *GetOperationsForResourceInput, opts ...request.Option) (*GetOperationsForResourceOutput, error)
GetOperationsForResourceWithContext is the same as GetOperationsForResource with the addition of the ability to pass a context and additional request options.
See GetOperationsForResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetOperationsRequest ¶
func (c *Lightsail) GetOperationsRequest(input *GetOperationsInput) (req *request.Request, output *GetOperationsOutput)
GetOperationsRequest generates a "aws/request.Request" representing the client's request for the GetOperations operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetOperations for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetOperations method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetOperationsRequest method. req, resp := client.GetOperationsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperations
func (*Lightsail) GetOperationsWithContext ¶ added in v1.8.0
func (c *Lightsail) GetOperationsWithContext(ctx aws.Context, input *GetOperationsInput, opts ...request.Option) (*GetOperationsOutput, error)
GetOperationsWithContext is the same as GetOperations with the addition of the ability to pass a context and additional request options.
See GetOperations for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetRegions ¶
func (c *Lightsail) GetRegions(input *GetRegionsInput) (*GetRegionsOutput, error)
GetRegions API operation for Amazon Lightsail.
Returns a list of all valid regions for Amazon Lightsail.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetRegions for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRegions
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetRegionsInput{ IncludeAvailabilityZones: aws.Bool(true), } resp, err := svc.GetRegions(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetRegionsRequest ¶
func (c *Lightsail) GetRegionsRequest(input *GetRegionsInput) (req *request.Request, output *GetRegionsOutput)
GetRegionsRequest generates a "aws/request.Request" representing the client's request for the GetRegions operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetRegions for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetRegions method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetRegionsRequest method. req, resp := client.GetRegionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRegions
func (*Lightsail) GetRegionsWithContext ¶ added in v1.8.0
func (c *Lightsail) GetRegionsWithContext(ctx aws.Context, input *GetRegionsInput, opts ...request.Option) (*GetRegionsOutput, error)
GetRegionsWithContext is the same as GetRegions with the addition of the ability to pass a context and additional request options.
See GetRegions for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetStaticIp ¶
func (c *Lightsail) GetStaticIp(input *GetStaticIpInput) (*GetStaticIpOutput, error)
GetStaticIp API operation for Amazon Lightsail.
Returns information about a specific static IP.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetStaticIp for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIp
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetStaticIpInput{ StaticIpName: aws.String("ResourceName"), // Required } resp, err := svc.GetStaticIp(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetStaticIpRequest ¶
func (c *Lightsail) GetStaticIpRequest(input *GetStaticIpInput) (req *request.Request, output *GetStaticIpOutput)
GetStaticIpRequest generates a "aws/request.Request" representing the client's request for the GetStaticIp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetStaticIp for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetStaticIp method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetStaticIpRequest method. req, resp := client.GetStaticIpRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIp
func (*Lightsail) GetStaticIpWithContext ¶ added in v1.8.0
func (c *Lightsail) GetStaticIpWithContext(ctx aws.Context, input *GetStaticIpInput, opts ...request.Option) (*GetStaticIpOutput, error)
GetStaticIpWithContext is the same as GetStaticIp with the addition of the ability to pass a context and additional request options.
See GetStaticIp for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) GetStaticIps ¶
func (c *Lightsail) GetStaticIps(input *GetStaticIpsInput) (*GetStaticIpsOutput, error)
GetStaticIps API operation for Amazon Lightsail.
Returns information about all static IPs in the user's account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation GetStaticIps for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIps
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.GetStaticIpsInput{ PageToken: aws.String("string"), } resp, err := svc.GetStaticIps(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) GetStaticIpsRequest ¶
func (c *Lightsail) GetStaticIpsRequest(input *GetStaticIpsInput) (req *request.Request, output *GetStaticIpsOutput)
GetStaticIpsRequest generates a "aws/request.Request" representing the client's request for the GetStaticIps operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetStaticIps for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetStaticIps method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetStaticIpsRequest method. req, resp := client.GetStaticIpsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIps
func (*Lightsail) GetStaticIpsWithContext ¶ added in v1.8.0
func (c *Lightsail) GetStaticIpsWithContext(ctx aws.Context, input *GetStaticIpsInput, opts ...request.Option) (*GetStaticIpsOutput, error)
GetStaticIpsWithContext is the same as GetStaticIps with the addition of the ability to pass a context and additional request options.
See GetStaticIps for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) ImportKeyPair ¶
func (c *Lightsail) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error)
ImportKeyPair API operation for Amazon Lightsail.
Imports a public SSH key from a specific key pair.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation ImportKeyPair for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ImportKeyPair
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.ImportKeyPairInput{ KeyPairName: aws.String("ResourceName"), // Required PublicKeyBase64: aws.String("Base64"), // Required } resp, err := svc.ImportKeyPair(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) ImportKeyPairRequest ¶
func (c *Lightsail) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Request, output *ImportKeyPairOutput)
ImportKeyPairRequest generates a "aws/request.Request" representing the client's request for the ImportKeyPair operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See ImportKeyPair for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ImportKeyPair method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the ImportKeyPairRequest method. req, resp := client.ImportKeyPairRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ImportKeyPair
func (*Lightsail) ImportKeyPairWithContext ¶ added in v1.8.0
func (c *Lightsail) ImportKeyPairWithContext(ctx aws.Context, input *ImportKeyPairInput, opts ...request.Option) (*ImportKeyPairOutput, error)
ImportKeyPairWithContext is the same as ImportKeyPair with the addition of the ability to pass a context and additional request options.
See ImportKeyPair for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) IsVpcPeered ¶
func (c *Lightsail) IsVpcPeered(input *IsVpcPeeredInput) (*IsVpcPeeredOutput, error)
IsVpcPeered API operation for Amazon Lightsail.
Returns a Boolean value indicating whether your Lightsail VPC is peered.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation IsVpcPeered for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/IsVpcPeered
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) var params *lightsail.IsVpcPeeredInput resp, err := svc.IsVpcPeered(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) IsVpcPeeredRequest ¶
func (c *Lightsail) IsVpcPeeredRequest(input *IsVpcPeeredInput) (req *request.Request, output *IsVpcPeeredOutput)
IsVpcPeeredRequest generates a "aws/request.Request" representing the client's request for the IsVpcPeered operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See IsVpcPeered for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the IsVpcPeered method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the IsVpcPeeredRequest method. req, resp := client.IsVpcPeeredRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/IsVpcPeered
func (*Lightsail) IsVpcPeeredWithContext ¶ added in v1.8.0
func (c *Lightsail) IsVpcPeeredWithContext(ctx aws.Context, input *IsVpcPeeredInput, opts ...request.Option) (*IsVpcPeeredOutput, error)
IsVpcPeeredWithContext is the same as IsVpcPeered with the addition of the ability to pass a context and additional request options.
See IsVpcPeered for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) OpenInstancePublicPorts ¶
func (c *Lightsail) OpenInstancePublicPorts(input *OpenInstancePublicPortsInput) (*OpenInstancePublicPortsOutput, error)
OpenInstancePublicPorts API operation for Amazon Lightsail.
Adds public ports to an Amazon Lightsail instance.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation OpenInstancePublicPorts for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/OpenInstancePublicPorts
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.OpenInstancePublicPortsInput{ InstanceName: aws.String("ResourceName"), // Required PortInfo: &lightsail.PortInfo{ // Required FromPort: aws.Int64(1), Protocol: aws.String("NetworkProtocol"), ToPort: aws.Int64(1), }, } resp, err := svc.OpenInstancePublicPorts(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) OpenInstancePublicPortsRequest ¶
func (c *Lightsail) OpenInstancePublicPortsRequest(input *OpenInstancePublicPortsInput) (req *request.Request, output *OpenInstancePublicPortsOutput)
OpenInstancePublicPortsRequest generates a "aws/request.Request" representing the client's request for the OpenInstancePublicPorts operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See OpenInstancePublicPorts for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the OpenInstancePublicPorts method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the OpenInstancePublicPortsRequest method. req, resp := client.OpenInstancePublicPortsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/OpenInstancePublicPorts
func (*Lightsail) OpenInstancePublicPortsWithContext ¶ added in v1.8.0
func (c *Lightsail) OpenInstancePublicPortsWithContext(ctx aws.Context, input *OpenInstancePublicPortsInput, opts ...request.Option) (*OpenInstancePublicPortsOutput, error)
OpenInstancePublicPortsWithContext is the same as OpenInstancePublicPorts with the addition of the ability to pass a context and additional request options.
See OpenInstancePublicPorts for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) PeerVpc ¶
func (c *Lightsail) PeerVpc(input *PeerVpcInput) (*PeerVpcOutput, error)
PeerVpc API operation for Amazon Lightsail.
Tries to peer the Lightsail VPC with the user's default VPC.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation PeerVpc for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PeerVpc
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) var params *lightsail.PeerVpcInput resp, err := svc.PeerVpc(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) PeerVpcRequest ¶
func (c *Lightsail) PeerVpcRequest(input *PeerVpcInput) (req *request.Request, output *PeerVpcOutput)
PeerVpcRequest generates a "aws/request.Request" representing the client's request for the PeerVpc operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See PeerVpc for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the PeerVpc method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the PeerVpcRequest method. req, resp := client.PeerVpcRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PeerVpc
func (*Lightsail) PeerVpcWithContext ¶ added in v1.8.0
func (c *Lightsail) PeerVpcWithContext(ctx aws.Context, input *PeerVpcInput, opts ...request.Option) (*PeerVpcOutput, error)
PeerVpcWithContext is the same as PeerVpc with the addition of the ability to pass a context and additional request options.
See PeerVpc for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) RebootInstance ¶
func (c *Lightsail) RebootInstance(input *RebootInstanceInput) (*RebootInstanceOutput, error)
RebootInstance API operation for Amazon Lightsail.
Restarts a specific instance. When your Amazon Lightsail instance is finished rebooting, Lightsail assigns a new public IP address. To use the same IP address after restarting, create a static IP address and attach it to the instance.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation RebootInstance for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootInstance
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.RebootInstanceInput{ InstanceName: aws.String("ResourceName"), // Required } resp, err := svc.RebootInstance(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) RebootInstanceRequest ¶
func (c *Lightsail) RebootInstanceRequest(input *RebootInstanceInput) (req *request.Request, output *RebootInstanceOutput)
RebootInstanceRequest generates a "aws/request.Request" representing the client's request for the RebootInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See RebootInstance for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RebootInstance method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the RebootInstanceRequest method. req, resp := client.RebootInstanceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootInstance
func (*Lightsail) RebootInstanceWithContext ¶ added in v1.8.0
func (c *Lightsail) RebootInstanceWithContext(ctx aws.Context, input *RebootInstanceInput, opts ...request.Option) (*RebootInstanceOutput, error)
RebootInstanceWithContext is the same as RebootInstance with the addition of the ability to pass a context and additional request options.
See RebootInstance for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) ReleaseStaticIp ¶
func (c *Lightsail) ReleaseStaticIp(input *ReleaseStaticIpInput) (*ReleaseStaticIpOutput, error)
ReleaseStaticIp API operation for Amazon Lightsail.
Deletes a specific static IP from your account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation ReleaseStaticIp for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ReleaseStaticIp
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.ReleaseStaticIpInput{ StaticIpName: aws.String("ResourceName"), // Required } resp, err := svc.ReleaseStaticIp(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) ReleaseStaticIpRequest ¶
func (c *Lightsail) ReleaseStaticIpRequest(input *ReleaseStaticIpInput) (req *request.Request, output *ReleaseStaticIpOutput)
ReleaseStaticIpRequest generates a "aws/request.Request" representing the client's request for the ReleaseStaticIp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See ReleaseStaticIp for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ReleaseStaticIp method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the ReleaseStaticIpRequest method. req, resp := client.ReleaseStaticIpRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ReleaseStaticIp
func (*Lightsail) ReleaseStaticIpWithContext ¶ added in v1.8.0
func (c *Lightsail) ReleaseStaticIpWithContext(ctx aws.Context, input *ReleaseStaticIpInput, opts ...request.Option) (*ReleaseStaticIpOutput, error)
ReleaseStaticIpWithContext is the same as ReleaseStaticIp with the addition of the ability to pass a context and additional request options.
See ReleaseStaticIp for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) StartInstance ¶
func (c *Lightsail) StartInstance(input *StartInstanceInput) (*StartInstanceOutput, error)
StartInstance API operation for Amazon Lightsail.
Starts a specific Amazon Lightsail instance from a stopped state. To restart an instance, use the reboot instance operation.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation StartInstance for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartInstance
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.StartInstanceInput{ InstanceName: aws.String("ResourceName"), // Required } resp, err := svc.StartInstance(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) StartInstanceRequest ¶
func (c *Lightsail) StartInstanceRequest(input *StartInstanceInput) (req *request.Request, output *StartInstanceOutput)
StartInstanceRequest generates a "aws/request.Request" representing the client's request for the StartInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See StartInstance for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the StartInstance method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the StartInstanceRequest method. req, resp := client.StartInstanceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartInstance
func (*Lightsail) StartInstanceWithContext ¶ added in v1.8.0
func (c *Lightsail) StartInstanceWithContext(ctx aws.Context, input *StartInstanceInput, opts ...request.Option) (*StartInstanceOutput, error)
StartInstanceWithContext is the same as StartInstance with the addition of the ability to pass a context and additional request options.
See StartInstance for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) StopInstance ¶
func (c *Lightsail) StopInstance(input *StopInstanceInput) (*StopInstanceOutput, error)
StopInstance API operation for Amazon Lightsail.
Stops a specific Amazon Lightsail instance that is currently running.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation StopInstance for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopInstance
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.StopInstanceInput{ InstanceName: aws.String("ResourceName"), // Required } resp, err := svc.StopInstance(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) StopInstanceRequest ¶
func (c *Lightsail) StopInstanceRequest(input *StopInstanceInput) (req *request.Request, output *StopInstanceOutput)
StopInstanceRequest generates a "aws/request.Request" representing the client's request for the StopInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See StopInstance for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the StopInstance method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the StopInstanceRequest method. req, resp := client.StopInstanceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopInstance
func (*Lightsail) StopInstanceWithContext ¶ added in v1.8.0
func (c *Lightsail) StopInstanceWithContext(ctx aws.Context, input *StopInstanceInput, opts ...request.Option) (*StopInstanceOutput, error)
StopInstanceWithContext is the same as StopInstance with the addition of the ability to pass a context and additional request options.
See StopInstance for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) UnpeerVpc ¶
func (c *Lightsail) UnpeerVpc(input *UnpeerVpcInput) (*UnpeerVpcOutput, error)
UnpeerVpc API operation for Amazon Lightsail.
Attempts to unpeer the Lightsail VPC from the user's default VPC.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation UnpeerVpc for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UnpeerVpc
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) var params *lightsail.UnpeerVpcInput resp, err := svc.UnpeerVpc(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) UnpeerVpcRequest ¶
func (c *Lightsail) UnpeerVpcRequest(input *UnpeerVpcInput) (req *request.Request, output *UnpeerVpcOutput)
UnpeerVpcRequest generates a "aws/request.Request" representing the client's request for the UnpeerVpc operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See UnpeerVpc for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UnpeerVpc method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the UnpeerVpcRequest method. req, resp := client.UnpeerVpcRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UnpeerVpc
func (*Lightsail) UnpeerVpcWithContext ¶ added in v1.8.0
func (c *Lightsail) UnpeerVpcWithContext(ctx aws.Context, input *UnpeerVpcInput, opts ...request.Option) (*UnpeerVpcOutput, error)
UnpeerVpcWithContext is the same as UnpeerVpc with the addition of the ability to pass a context and additional request options.
See UnpeerVpc for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*Lightsail) UpdateDomainEntry ¶
func (c *Lightsail) UpdateDomainEntry(input *UpdateDomainEntryInput) (*UpdateDomainEntryOutput, error)
UpdateDomainEntry API operation for Amazon Lightsail.
Updates a domain recordset after it is created.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Lightsail's API operation UpdateDomainEntry for usage and error information.
Returned Error Codes:
ErrCodeServiceException "ServiceException" A general service exception.
ErrCodeInvalidInputException "InvalidInputException" Lightsail throws this exception when user input does not conform to the validation rules of an input field.
ErrCodeNotFoundException "NotFoundException" Lightsail throws this exception when it cannot find a resource.
ErrCodeOperationFailureException "OperationFailureException" Lightsail throws this exception when an operation fails to execute.
ErrCodeAccessDeniedException "AccessDeniedException" Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" Lightsail throws this exception when an account is still in the setup in progress state.
ErrCodeUnauthenticatedException "UnauthenticatedException" Lightsail throws this exception when the user has not been authenticated.
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDomainEntry
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" ) func main() { sess := session.Must(session.NewSession()) svc := lightsail.New(sess) params := &lightsail.UpdateDomainEntryInput{ DomainEntry: &lightsail.DomainEntry{ // Required Id: aws.String("NonEmptyString"), Name: aws.String("DomainName"), Options: map[string]*string{ "Key": aws.String("string"), // Required // More values... }, Target: aws.String("string"), Type: aws.String("DomainEntryType"), }, DomainName: aws.String("DomainName"), // Required } resp, err := svc.UpdateDomainEntry(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lightsail) UpdateDomainEntryRequest ¶
func (c *Lightsail) UpdateDomainEntryRequest(input *UpdateDomainEntryInput) (req *request.Request, output *UpdateDomainEntryOutput)
UpdateDomainEntryRequest generates a "aws/request.Request" representing the client's request for the UpdateDomainEntry operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See UpdateDomainEntry for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateDomainEntry method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the UpdateDomainEntryRequest method. req, resp := client.UpdateDomainEntryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDomainEntry
func (*Lightsail) UpdateDomainEntryWithContext ¶ added in v1.8.0
func (c *Lightsail) UpdateDomainEntryWithContext(ctx aws.Context, input *UpdateDomainEntryInput, opts ...request.Option) (*UpdateDomainEntryOutput, error)
UpdateDomainEntryWithContext is the same as UpdateDomainEntry with the addition of the ability to pass a context and additional request options.
See UpdateDomainEntry for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type MetricDatapoint ¶
type MetricDatapoint struct { // The average. Average *float64 `locationName:"average" type:"double"` // The maximum. Maximum *float64 `locationName:"maximum" type:"double"` // The minimum. Minimum *float64 `locationName:"minimum" type:"double"` // The sample count. SampleCount *float64 `locationName:"sampleCount" type:"double"` // The sum. Sum *float64 `locationName:"sum" type:"double"` // The timestamp (e.g., 1479816991.349). Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"unix"` // The unit. Unit *string `locationName:"unit" type:"string" enum:"MetricUnit"` // contains filtered or unexported fields }
Describes the metric data point. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/MetricDatapoint
func (MetricDatapoint) GoString ¶
func (s MetricDatapoint) GoString() string
GoString returns the string representation
func (*MetricDatapoint) SetAverage ¶
func (s *MetricDatapoint) SetAverage(v float64) *MetricDatapoint
SetAverage sets the Average field's value.
func (*MetricDatapoint) SetMaximum ¶
func (s *MetricDatapoint) SetMaximum(v float64) *MetricDatapoint
SetMaximum sets the Maximum field's value.
func (*MetricDatapoint) SetMinimum ¶
func (s *MetricDatapoint) SetMinimum(v float64) *MetricDatapoint
SetMinimum sets the Minimum field's value.
func (*MetricDatapoint) SetSampleCount ¶
func (s *MetricDatapoint) SetSampleCount(v float64) *MetricDatapoint
SetSampleCount sets the SampleCount field's value.
func (*MetricDatapoint) SetSum ¶
func (s *MetricDatapoint) SetSum(v float64) *MetricDatapoint
SetSum sets the Sum field's value.
func (*MetricDatapoint) SetTimestamp ¶
func (s *MetricDatapoint) SetTimestamp(v time.Time) *MetricDatapoint
SetTimestamp sets the Timestamp field's value.
func (*MetricDatapoint) SetUnit ¶
func (s *MetricDatapoint) SetUnit(v string) *MetricDatapoint
SetUnit sets the Unit field's value.
func (MetricDatapoint) String ¶
func (s MetricDatapoint) String() string
String returns the string representation
type MonthlyTransfer ¶
type MonthlyTransfer struct { // The amount allocated per month (in GB). GbPerMonthAllocated *int64 `locationName:"gbPerMonthAllocated" type:"integer"` // contains filtered or unexported fields }
Describes the monthly data transfer in and out of your virtual private server (or instance). Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/MonthlyTransfer
func (MonthlyTransfer) GoString ¶
func (s MonthlyTransfer) GoString() string
GoString returns the string representation
func (*MonthlyTransfer) SetGbPerMonthAllocated ¶
func (s *MonthlyTransfer) SetGbPerMonthAllocated(v int64) *MonthlyTransfer
SetGbPerMonthAllocated sets the GbPerMonthAllocated field's value.
func (MonthlyTransfer) String ¶
func (s MonthlyTransfer) String() string
String returns the string representation
type OpenInstancePublicPortsInput ¶
type OpenInstancePublicPortsInput struct { // The name of the instance for which you want to open the public ports. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // An array of key-value pairs containing information about the port mappings. // // PortInfo is a required field PortInfo *PortInfo `locationName:"portInfo" type:"structure" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/OpenInstancePublicPortsRequest
func (OpenInstancePublicPortsInput) GoString ¶
func (s OpenInstancePublicPortsInput) GoString() string
GoString returns the string representation
func (*OpenInstancePublicPortsInput) SetInstanceName ¶
func (s *OpenInstancePublicPortsInput) SetInstanceName(v string) *OpenInstancePublicPortsInput
SetInstanceName sets the InstanceName field's value.
func (*OpenInstancePublicPortsInput) SetPortInfo ¶
func (s *OpenInstancePublicPortsInput) SetPortInfo(v *PortInfo) *OpenInstancePublicPortsInput
SetPortInfo sets the PortInfo field's value.
func (OpenInstancePublicPortsInput) String ¶
func (s OpenInstancePublicPortsInput) String() string
String returns the string representation
func (*OpenInstancePublicPortsInput) Validate ¶
func (s *OpenInstancePublicPortsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type OpenInstancePublicPortsOutput ¶
type OpenInstancePublicPortsOutput struct { // An array of key-value pairs containing information about the request operation. Operation *Operation `locationName:"operation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/OpenInstancePublicPortsResult
func (OpenInstancePublicPortsOutput) GoString ¶
func (s OpenInstancePublicPortsOutput) GoString() string
GoString returns the string representation
func (*OpenInstancePublicPortsOutput) SetOperation ¶
func (s *OpenInstancePublicPortsOutput) SetOperation(v *Operation) *OpenInstancePublicPortsOutput
SetOperation sets the Operation field's value.
func (OpenInstancePublicPortsOutput) String ¶
func (s OpenInstancePublicPortsOutput) String() string
String returns the string representation
type Operation ¶
type Operation struct { // The timestamp when the operation was initialized (e.g., 1479816991.349). CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` // The error code. ErrorCode *string `locationName:"errorCode" type:"string"` // The error details. ErrorDetails *string `locationName:"errorDetails" type:"string"` // The ID of the operation. Id *string `locationName:"id" type:"string"` // A Boolean value indicating whether the operation is terminal. IsTerminal *bool `locationName:"isTerminal" type:"boolean"` // The region and Availability Zone. Location *ResourceLocation `locationName:"location" type:"structure"` // Details about the operation (e.g., Debian-1GB-Virginia-1). OperationDetails *string `locationName:"operationDetails" type:"string"` // The type of operation. OperationType *string `locationName:"operationType" type:"string" enum:"OperationType"` // The resource name. ResourceName *string `locationName:"resourceName" type:"string"` // The resource type. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` // The status of the operation. Status *string `locationName:"status" type:"string" enum:"OperationStatus"` // The timestamp when the status was changed (e.g., 1479816991.349). StatusChangedAt *time.Time `locationName:"statusChangedAt" type:"timestamp" timestampFormat:"unix"` // contains filtered or unexported fields }
Describes the API operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Operation
func (*Operation) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field's value.
func (*Operation) SetErrorCode ¶
SetErrorCode sets the ErrorCode field's value.
func (*Operation) SetErrorDetails ¶
SetErrorDetails sets the ErrorDetails field's value.
func (*Operation) SetIsTerminal ¶
SetIsTerminal sets the IsTerminal field's value.
func (*Operation) SetLocation ¶
func (s *Operation) SetLocation(v *ResourceLocation) *Operation
SetLocation sets the Location field's value.
func (*Operation) SetOperationDetails ¶
SetOperationDetails sets the OperationDetails field's value.
func (*Operation) SetOperationType ¶
SetOperationType sets the OperationType field's value.
func (*Operation) SetResourceName ¶
SetResourceName sets the ResourceName field's value.
func (*Operation) SetResourceType ¶
SetResourceType sets the ResourceType field's value.
func (*Operation) SetStatusChangedAt ¶
SetStatusChangedAt sets the StatusChangedAt field's value.
type PeerVpcInput ¶
type PeerVpcInput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PeerVpcRequest
func (PeerVpcInput) GoString ¶
func (s PeerVpcInput) GoString() string
GoString returns the string representation
func (PeerVpcInput) String ¶
func (s PeerVpcInput) String() string
String returns the string representation
type PeerVpcOutput ¶
type PeerVpcOutput struct { // An array of key-value pairs containing information about the request operation. Operation *Operation `locationName:"operation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PeerVpcResult
func (PeerVpcOutput) GoString ¶
func (s PeerVpcOutput) GoString() string
GoString returns the string representation
func (*PeerVpcOutput) SetOperation ¶
func (s *PeerVpcOutput) SetOperation(v *Operation) *PeerVpcOutput
SetOperation sets the Operation field's value.
func (PeerVpcOutput) String ¶
func (s PeerVpcOutput) String() string
String returns the string representation
type PortInfo ¶
type PortInfo struct { // The first port in the range. FromPort *int64 `locationName:"fromPort" type:"integer"` // The protocol. Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"` // The last port in the range. ToPort *int64 `locationName:"toPort" type:"integer"` // contains filtered or unexported fields }
Describes information about the ports on your virtual private server (or instance). Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PortInfo
func (*PortInfo) SetFromPort ¶
SetFromPort sets the FromPort field's value.
func (*PortInfo) SetProtocol ¶
SetProtocol sets the Protocol field's value.
type RebootInstanceInput ¶
type RebootInstanceInput struct { // The name of the instance to reboot. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootInstanceRequest
func (RebootInstanceInput) GoString ¶
func (s RebootInstanceInput) GoString() string
GoString returns the string representation
func (*RebootInstanceInput) SetInstanceName ¶
func (s *RebootInstanceInput) SetInstanceName(v string) *RebootInstanceInput
SetInstanceName sets the InstanceName field's value.
func (RebootInstanceInput) String ¶
func (s RebootInstanceInput) String() string
String returns the string representation
func (*RebootInstanceInput) Validate ¶
func (s *RebootInstanceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RebootInstanceOutput ¶
type RebootInstanceOutput struct { // An array of key-value pairs containing information about the request operation. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootInstanceResult
func (RebootInstanceOutput) GoString ¶
func (s RebootInstanceOutput) GoString() string
GoString returns the string representation
func (*RebootInstanceOutput) SetOperations ¶
func (s *RebootInstanceOutput) SetOperations(v []*Operation) *RebootInstanceOutput
SetOperations sets the Operations field's value.
func (RebootInstanceOutput) String ¶
func (s RebootInstanceOutput) String() string
String returns the string representation
type Region ¶
type Region struct { // The Availability Zones. AvailabilityZones []*AvailabilityZone `locationName:"availabilityZones" type:"list"` // The continent code (e.g., NA, meaning North America). ContinentCode *string `locationName:"continentCode" type:"string"` // The description of the AWS Region (e.g., This region is recommended to serve // users in the eastern United States and eastern Canada). Description *string `locationName:"description" type:"string"` // The display name (e.g., Virginia). DisplayName *string `locationName:"displayName" type:"string"` // The region name (e.g., us-east-1). Name *string `locationName:"name" type:"string" enum:"RegionName"` // contains filtered or unexported fields }
Describes the AWS Region. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Region
func (*Region) SetAvailabilityZones ¶
func (s *Region) SetAvailabilityZones(v []*AvailabilityZone) *Region
SetAvailabilityZones sets the AvailabilityZones field's value.
func (*Region) SetContinentCode ¶
SetContinentCode sets the ContinentCode field's value.
func (*Region) SetDescription ¶
SetDescription sets the Description field's value.
func (*Region) SetDisplayName ¶
SetDisplayName sets the DisplayName field's value.
type ReleaseStaticIpInput ¶
type ReleaseStaticIpInput struct { // The name of the static IP to delete. // // StaticIpName is a required field StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ReleaseStaticIpRequest
func (ReleaseStaticIpInput) GoString ¶
func (s ReleaseStaticIpInput) GoString() string
GoString returns the string representation
func (*ReleaseStaticIpInput) SetStaticIpName ¶
func (s *ReleaseStaticIpInput) SetStaticIpName(v string) *ReleaseStaticIpInput
SetStaticIpName sets the StaticIpName field's value.
func (ReleaseStaticIpInput) String ¶
func (s ReleaseStaticIpInput) String() string
String returns the string representation
func (*ReleaseStaticIpInput) Validate ¶
func (s *ReleaseStaticIpInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ReleaseStaticIpOutput ¶
type ReleaseStaticIpOutput struct { // An array of key-value pairs containing information about the request operation. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ReleaseStaticIpResult
func (ReleaseStaticIpOutput) GoString ¶
func (s ReleaseStaticIpOutput) GoString() string
GoString returns the string representation
func (*ReleaseStaticIpOutput) SetOperations ¶
func (s *ReleaseStaticIpOutput) SetOperations(v []*Operation) *ReleaseStaticIpOutput
SetOperations sets the Operations field's value.
func (ReleaseStaticIpOutput) String ¶
func (s ReleaseStaticIpOutput) String() string
String returns the string representation
type ResourceLocation ¶
type ResourceLocation struct { // The Availability Zone. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` // The AWS Region name. RegionName *string `locationName:"regionName" type:"string" enum:"RegionName"` // contains filtered or unexported fields }
Describes the resource location. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ResourceLocation
func (ResourceLocation) GoString ¶
func (s ResourceLocation) GoString() string
GoString returns the string representation
func (*ResourceLocation) SetAvailabilityZone ¶
func (s *ResourceLocation) SetAvailabilityZone(v string) *ResourceLocation
SetAvailabilityZone sets the AvailabilityZone field's value.
func (*ResourceLocation) SetRegionName ¶
func (s *ResourceLocation) SetRegionName(v string) *ResourceLocation
SetRegionName sets the RegionName field's value.
func (ResourceLocation) String ¶
func (s ResourceLocation) String() string
String returns the string representation
type StartInstanceInput ¶
type StartInstanceInput struct { // The name of the instance (a virtual private server) to start. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartInstanceRequest
func (StartInstanceInput) GoString ¶
func (s StartInstanceInput) GoString() string
GoString returns the string representation
func (*StartInstanceInput) SetInstanceName ¶
func (s *StartInstanceInput) SetInstanceName(v string) *StartInstanceInput
SetInstanceName sets the InstanceName field's value.
func (StartInstanceInput) String ¶
func (s StartInstanceInput) String() string
String returns the string representation
func (*StartInstanceInput) Validate ¶
func (s *StartInstanceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartInstanceOutput ¶
type StartInstanceOutput struct { // An array of key-value pairs containing information about the request operation. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartInstanceResult
func (StartInstanceOutput) GoString ¶
func (s StartInstanceOutput) GoString() string
GoString returns the string representation
func (*StartInstanceOutput) SetOperations ¶
func (s *StartInstanceOutput) SetOperations(v []*Operation) *StartInstanceOutput
SetOperations sets the Operations field's value.
func (StartInstanceOutput) String ¶
func (s StartInstanceOutput) String() string
String returns the string representation
type StaticIp ¶
type StaticIp struct { // The Amazon Resource Name (ARN) of the static IP (e.g., arn:aws:lightsail:us-east-1:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE). Arn *string `locationName:"arn" type:"string"` // The instance where the static IP is attached (e.g., Amazon_Linux-1GB-Virginia-1). AttachedTo *string `locationName:"attachedTo" type:"string"` // The timestamp when the static IP was created (e.g., 1479735304.222). CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` // The static IP address. IpAddress *string `locationName:"ipAddress" type:"string"` // A Boolean value indicating whether the static IP is attached. IsAttached *bool `locationName:"isAttached" type:"boolean"` // The region and Availability Zone where the static IP was created. Location *ResourceLocation `locationName:"location" type:"structure"` // The name of the static IP (e.g., StaticIP-Virginia-EXAMPLE). Name *string `locationName:"name" type:"string"` // The resource type (usually StaticIp). ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` // The support code. Include this code in your email to support when you have // questions about an instance or another resource in Lightsail. This code enables // our support team to look up your Lightsail information more easily. SupportCode *string `locationName:"supportCode" type:"string"` // contains filtered or unexported fields }
Describes the static IP. Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StaticIp
func (*StaticIp) SetAttachedTo ¶
SetAttachedTo sets the AttachedTo field's value.
func (*StaticIp) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field's value.
func (*StaticIp) SetIpAddress ¶
SetIpAddress sets the IpAddress field's value.
func (*StaticIp) SetIsAttached ¶
SetIsAttached sets the IsAttached field's value.
func (*StaticIp) SetLocation ¶
func (s *StaticIp) SetLocation(v *ResourceLocation) *StaticIp
SetLocation sets the Location field's value.
func (*StaticIp) SetResourceType ¶
SetResourceType sets the ResourceType field's value.
func (*StaticIp) SetSupportCode ¶
SetSupportCode sets the SupportCode field's value.
type StopInstanceInput ¶
type StopInstanceInput struct { // The name of the instance (a virtual private server) to stop. // // InstanceName is a required field InstanceName *string `locationName:"instanceName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopInstanceRequest
func (StopInstanceInput) GoString ¶
func (s StopInstanceInput) GoString() string
GoString returns the string representation
func (*StopInstanceInput) SetInstanceName ¶
func (s *StopInstanceInput) SetInstanceName(v string) *StopInstanceInput
SetInstanceName sets the InstanceName field's value.
func (StopInstanceInput) String ¶
func (s StopInstanceInput) String() string
String returns the string representation
func (*StopInstanceInput) Validate ¶
func (s *StopInstanceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StopInstanceOutput ¶
type StopInstanceOutput struct { // An array of key-value pairs containing information about the request operation. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopInstanceResult
func (StopInstanceOutput) GoString ¶
func (s StopInstanceOutput) GoString() string
GoString returns the string representation
func (*StopInstanceOutput) SetOperations ¶
func (s *StopInstanceOutput) SetOperations(v []*Operation) *StopInstanceOutput
SetOperations sets the Operations field's value.
func (StopInstanceOutput) String ¶
func (s StopInstanceOutput) String() string
String returns the string representation
type UnpeerVpcInput ¶
type UnpeerVpcInput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UnpeerVpcRequest
func (UnpeerVpcInput) GoString ¶
func (s UnpeerVpcInput) GoString() string
GoString returns the string representation
func (UnpeerVpcInput) String ¶
func (s UnpeerVpcInput) String() string
String returns the string representation
type UnpeerVpcOutput ¶
type UnpeerVpcOutput struct { // An array of key-value pairs containing information about the request operation. Operation *Operation `locationName:"operation" type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UnpeerVpcResult
func (UnpeerVpcOutput) GoString ¶
func (s UnpeerVpcOutput) GoString() string
GoString returns the string representation
func (*UnpeerVpcOutput) SetOperation ¶
func (s *UnpeerVpcOutput) SetOperation(v *Operation) *UnpeerVpcOutput
SetOperation sets the Operation field's value.
func (UnpeerVpcOutput) String ¶
func (s UnpeerVpcOutput) String() string
String returns the string representation
type UpdateDomainEntryInput ¶
type UpdateDomainEntryInput struct { // An array of key-value pairs containing information about the domain entry. // // DomainEntry is a required field DomainEntry *DomainEntry `locationName:"domainEntry" type:"structure" required:"true"` // The name of the domain recordset to update. // // DomainName is a required field DomainName *string `locationName:"domainName" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDomainEntryRequest
func (UpdateDomainEntryInput) GoString ¶
func (s UpdateDomainEntryInput) GoString() string
GoString returns the string representation
func (*UpdateDomainEntryInput) SetDomainEntry ¶
func (s *UpdateDomainEntryInput) SetDomainEntry(v *DomainEntry) *UpdateDomainEntryInput
SetDomainEntry sets the DomainEntry field's value.
func (*UpdateDomainEntryInput) SetDomainName ¶
func (s *UpdateDomainEntryInput) SetDomainName(v string) *UpdateDomainEntryInput
SetDomainName sets the DomainName field's value.
func (UpdateDomainEntryInput) String ¶
func (s UpdateDomainEntryInput) String() string
String returns the string representation
func (*UpdateDomainEntryInput) Validate ¶
func (s *UpdateDomainEntryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateDomainEntryOutput ¶
type UpdateDomainEntryOutput struct { // An array of key-value pairs containing information about the request operation. Operations []*Operation `locationName:"operations" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDomainEntryResult
func (UpdateDomainEntryOutput) GoString ¶
func (s UpdateDomainEntryOutput) GoString() string
GoString returns the string representation
func (*UpdateDomainEntryOutput) SetOperations ¶
func (s *UpdateDomainEntryOutput) SetOperations(v []*Operation) *UpdateDomainEntryOutput
SetOperations sets the Operations field's value.
func (UpdateDomainEntryOutput) String ¶
func (s UpdateDomainEntryOutput) String() string
String returns the string representation
Directories ¶
Path | Synopsis |
---|---|
Package lightsailiface provides an interface to enable mocking the Amazon Lightsail service client for testing your code.
|
Package lightsailiface provides an interface to enable mocking the Amazon Lightsail service client for testing your code. |