ec2

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 9 Imported by: 1,033

Documentation

Overview

Package ec2 provides the client and types for making API requests to Amazon EC2.

Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster.

To learn more, see the following resources:

See https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15 for more information on this service.

See ec2 package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/

Using the Client

To use Amazon EC2 with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon EC2 client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#New

Index

Examples

Constants

View Source
const (
	ServiceName = "Amazon EC2" // Service's name
	ServiceID   = "EC2"        // Service's identifier
	EndpointsID = "ec2"        // Service's Endpoint identifier
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptReservedInstancesExchangeQuoteInput

type AcceptReservedInstancesExchangeQuoteInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of the Convertible Reserved Instances to exchange for another Convertible
	// Reserved Instance of the same or higher value.
	//
	// ReservedInstanceIds is a required field
	ReservedInstanceIds []string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`

	// The configuration of the target Convertible Reserved Instance to exchange
	// for your current Convertible Reserved Instances.
	TargetConfigurations []TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for accepting the quote.

func (AcceptReservedInstancesExchangeQuoteInput) String

String returns the string representation

func (*AcceptReservedInstancesExchangeQuoteInput) Validate

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

type AcceptReservedInstancesExchangeQuoteOutput

type AcceptReservedInstancesExchangeQuoteOutput struct {

	// The ID of the successful exchange.
	ExchangeId *string `locationName:"exchangeId" type:"string"`
	// contains filtered or unexported fields
}

The result of the exchange and whether it was successful.

func (AcceptReservedInstancesExchangeQuoteOutput) String

String returns the string representation

type AcceptReservedInstancesExchangeQuoteRequest

AcceptReservedInstancesExchangeQuoteRequest is the request type for the AcceptReservedInstancesExchangeQuote API operation.

func (AcceptReservedInstancesExchangeQuoteRequest) Send

Send marshals and sends the AcceptReservedInstancesExchangeQuote API request.

type AcceptReservedInstancesExchangeQuoteResponse added in v0.9.0

type AcceptReservedInstancesExchangeQuoteResponse struct {
	*AcceptReservedInstancesExchangeQuoteOutput
	// contains filtered or unexported fields
}

AcceptReservedInstancesExchangeQuoteResponse is the response type for the AcceptReservedInstancesExchangeQuote API operation.

func (*AcceptReservedInstancesExchangeQuoteResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the AcceptReservedInstancesExchangeQuote request.

type AcceptTransitGatewayPeeringAttachmentInput added in v0.18.0

type AcceptTransitGatewayPeeringAttachmentInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the transit gateway attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AcceptTransitGatewayPeeringAttachmentInput) String added in v0.18.0

String returns the string representation

func (*AcceptTransitGatewayPeeringAttachmentInput) Validate added in v0.18.0

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

type AcceptTransitGatewayPeeringAttachmentOutput added in v0.18.0

type AcceptTransitGatewayPeeringAttachmentOutput struct {

	// The transit gateway peering attachment.
	TransitGatewayPeeringAttachment *TransitGatewayPeeringAttachment `locationName:"transitGatewayPeeringAttachment" type:"structure"`
	// contains filtered or unexported fields
}

func (AcceptTransitGatewayPeeringAttachmentOutput) String added in v0.18.0

String returns the string representation

type AcceptTransitGatewayPeeringAttachmentRequest added in v0.18.0

AcceptTransitGatewayPeeringAttachmentRequest is the request type for the AcceptTransitGatewayPeeringAttachment API operation.

func (AcceptTransitGatewayPeeringAttachmentRequest) Send added in v0.18.0

Send marshals and sends the AcceptTransitGatewayPeeringAttachment API request.

type AcceptTransitGatewayPeeringAttachmentResponse added in v0.18.0

type AcceptTransitGatewayPeeringAttachmentResponse struct {
	*AcceptTransitGatewayPeeringAttachmentOutput
	// contains filtered or unexported fields
}

AcceptTransitGatewayPeeringAttachmentResponse is the response type for the AcceptTransitGatewayPeeringAttachment API operation.

func (*AcceptTransitGatewayPeeringAttachmentResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the AcceptTransitGatewayPeeringAttachment request.

type AcceptTransitGatewayVpcAttachmentInput added in v0.6.0

type AcceptTransitGatewayVpcAttachmentInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AcceptTransitGatewayVpcAttachmentInput) String added in v0.6.0

String returns the string representation

func (*AcceptTransitGatewayVpcAttachmentInput) Validate added in v0.6.0

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

type AcceptTransitGatewayVpcAttachmentOutput added in v0.6.0

type AcceptTransitGatewayVpcAttachmentOutput struct {

	// The VPC attachment.
	TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
	// contains filtered or unexported fields
}

func (AcceptTransitGatewayVpcAttachmentOutput) String added in v0.6.0

String returns the string representation

type AcceptTransitGatewayVpcAttachmentRequest added in v0.6.0

AcceptTransitGatewayVpcAttachmentRequest is the request type for the AcceptTransitGatewayVpcAttachment API operation.

func (AcceptTransitGatewayVpcAttachmentRequest) Send added in v0.6.0

Send marshals and sends the AcceptTransitGatewayVpcAttachment API request.

type AcceptTransitGatewayVpcAttachmentResponse added in v0.9.0

type AcceptTransitGatewayVpcAttachmentResponse struct {
	*AcceptTransitGatewayVpcAttachmentOutput
	// contains filtered or unexported fields
}

AcceptTransitGatewayVpcAttachmentResponse is the response type for the AcceptTransitGatewayVpcAttachment API operation.

func (*AcceptTransitGatewayVpcAttachmentResponse) SDKResponseMetdata added in v0.9.0

func (r *AcceptTransitGatewayVpcAttachmentResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AcceptTransitGatewayVpcAttachment request.

type AcceptVpcEndpointConnectionsInput added in v0.2.0

type AcceptVpcEndpointConnectionsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the VPC endpoint service.
	//
	// ServiceId is a required field
	ServiceId *string `type:"string" required:"true"`

	// The IDs of one or more interface VPC endpoints.
	//
	// VpcEndpointIds is a required field
	VpcEndpointIds []string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (AcceptVpcEndpointConnectionsInput) String added in v0.2.0

String returns the string representation

func (*AcceptVpcEndpointConnectionsInput) Validate added in v0.2.0

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

type AcceptVpcEndpointConnectionsOutput added in v0.2.0

type AcceptVpcEndpointConnectionsOutput struct {

	// Information about the interface endpoints that were not accepted, if applicable.
	Unsuccessful []UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (AcceptVpcEndpointConnectionsOutput) String added in v0.2.0

String returns the string representation

type AcceptVpcEndpointConnectionsRequest added in v0.2.0

type AcceptVpcEndpointConnectionsRequest struct {
	*aws.Request
	Input *AcceptVpcEndpointConnectionsInput
	Copy  func(*AcceptVpcEndpointConnectionsInput) AcceptVpcEndpointConnectionsRequest
}

AcceptVpcEndpointConnectionsRequest is the request type for the AcceptVpcEndpointConnections API operation.

func (AcceptVpcEndpointConnectionsRequest) Send added in v0.2.0

Send marshals and sends the AcceptVpcEndpointConnections API request.

type AcceptVpcEndpointConnectionsResponse added in v0.9.0

type AcceptVpcEndpointConnectionsResponse struct {
	*AcceptVpcEndpointConnectionsOutput
	// contains filtered or unexported fields
}

AcceptVpcEndpointConnectionsResponse is the response type for the AcceptVpcEndpointConnections API operation.

func (*AcceptVpcEndpointConnectionsResponse) SDKResponseMetdata added in v0.9.0

func (r *AcceptVpcEndpointConnectionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AcceptVpcEndpointConnections request.

type AcceptVpcPeeringConnectionInput

type AcceptVpcPeeringConnectionInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the VPC peering connection. You must specify this parameter in
	// the request.
	VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
	// contains filtered or unexported fields
}

func (AcceptVpcPeeringConnectionInput) String

String returns the string representation

type AcceptVpcPeeringConnectionOutput

type AcceptVpcPeeringConnectionOutput struct {

	// Information about the VPC peering connection.
	VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
	// contains filtered or unexported fields
}

func (AcceptVpcPeeringConnectionOutput) String

String returns the string representation

type AcceptVpcPeeringConnectionRequest

type AcceptVpcPeeringConnectionRequest struct {
	*aws.Request
	Input *AcceptVpcPeeringConnectionInput
	Copy  func(*AcceptVpcPeeringConnectionInput) AcceptVpcPeeringConnectionRequest
}

AcceptVpcPeeringConnectionRequest is the request type for the AcceptVpcPeeringConnection API operation.

func (AcceptVpcPeeringConnectionRequest) Send

Send marshals and sends the AcceptVpcPeeringConnection API request.

type AcceptVpcPeeringConnectionResponse added in v0.9.0

type AcceptVpcPeeringConnectionResponse struct {
	*AcceptVpcPeeringConnectionOutput
	// contains filtered or unexported fields
}

AcceptVpcPeeringConnectionResponse is the response type for the AcceptVpcPeeringConnection API operation.

func (*AcceptVpcPeeringConnectionResponse) SDKResponseMetdata added in v0.9.0

func (r *AcceptVpcPeeringConnectionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AcceptVpcPeeringConnection request.

type AccountAttribute

type AccountAttribute struct {

	// The name of the account attribute.
	AttributeName *string `locationName:"attributeName" type:"string"`

	// The values for the account attribute.
	AttributeValues []AccountAttributeValue `locationName:"attributeValueSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an account attribute.

func (AccountAttribute) String

func (s AccountAttribute) String() string

String returns the string representation

type AccountAttributeName

type AccountAttributeName string
const (
	AccountAttributeNameSupportedPlatforms AccountAttributeName = "supported-platforms"
	AccountAttributeNameDefaultVpc         AccountAttributeName = "default-vpc"
)

Enum values for AccountAttributeName

func (AccountAttributeName) MarshalValue added in v0.3.0

func (enum AccountAttributeName) MarshalValue() (string, error)

func (AccountAttributeName) MarshalValueBuf added in v0.3.0

func (enum AccountAttributeName) MarshalValueBuf(b []byte) ([]byte, error)

type AccountAttributeValue

type AccountAttributeValue struct {

	// The value of the attribute.
	AttributeValue *string `locationName:"attributeValue" type:"string"`
	// contains filtered or unexported fields
}

Describes a value of an account attribute.

func (AccountAttributeValue) String

func (s AccountAttributeValue) String() string

String returns the string representation

type ActiveInstance

type ActiveInstance struct {

	// The health status of the instance. If the status of either the instance status
	// check or the system status check is impaired, the health status of the instance
	// is unhealthy. Otherwise, the health status is healthy.
	InstanceHealth InstanceHealthStatus `locationName:"instanceHealth" type:"string" enum:"true"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The instance type.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// The ID of the Spot Instance request.
	SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
	// contains filtered or unexported fields
}

Describes a running instance in a Spot Fleet.

func (ActiveInstance) String

func (s ActiveInstance) String() string

String returns the string representation

type ActivityStatus

type ActivityStatus string
const (
	ActivityStatusError              ActivityStatus = "error"
	ActivityStatusPendingFulfillment ActivityStatus = "pending_fulfillment"
	ActivityStatusPendingTermination ActivityStatus = "pending_termination"
	ActivityStatusFulfilled          ActivityStatus = "fulfilled"
)

Enum values for ActivityStatus

func (ActivityStatus) MarshalValue added in v0.3.0

func (enum ActivityStatus) MarshalValue() (string, error)

func (ActivityStatus) MarshalValueBuf added in v0.3.0

func (enum ActivityStatus) MarshalValueBuf(b []byte) ([]byte, error)

type AddPrefixListEntry added in v0.24.0

type AddPrefixListEntry struct {

	// The CIDR block.
	//
	// Cidr is a required field
	Cidr *string `type:"string" required:"true"`

	// A description for the entry.
	//
	// Constraints: Up to 255 characters in length.
	Description *string `type:"string"`
	// contains filtered or unexported fields
}

An entry for a prefix list.

func (AddPrefixListEntry) String added in v0.24.0

func (s AddPrefixListEntry) String() string

String returns the string representation

func (*AddPrefixListEntry) Validate added in v0.24.0

func (s *AddPrefixListEntry) Validate() error

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

type Address

type Address struct {

	// The ID representing the allocation of the address for use with EC2-VPC.
	AllocationId *string `locationName:"allocationId" type:"string"`

	// The ID representing the association of the address with an instance in a
	// VPC.
	AssociationId *string `locationName:"associationId" type:"string"`

	// The customer-owned IP address.
	CustomerOwnedIp *string `locationName:"customerOwnedIp" type:"string"`

	// The ID of the customer-owned address pool.
	CustomerOwnedIpv4Pool *string `locationName:"customerOwnedIpv4Pool" type:"string"`

	// Indicates whether this Elastic IP address is for use with instances in EC2-Classic
	// (standard) or instances in a VPC (vpc).
	Domain DomainType `locationName:"domain" type:"string" enum:"true"`

	// The ID of the instance that the address is associated with (if any).
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The name of the location from which the IP address is advertised.
	NetworkBorderGroup *string `locationName:"networkBorderGroup" type:"string"`

	// The ID of the network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The ID of the AWS account that owns the network interface.
	NetworkInterfaceOwnerId *string `locationName:"networkInterfaceOwnerId" type:"string"`

	// The private IP address associated with the Elastic IP address.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`

	// The Elastic IP address.
	PublicIp *string `locationName:"publicIp" type:"string"`

	// The ID of an address pool.
	PublicIpv4Pool *string `locationName:"publicIpv4Pool" type:"string"`

	// Any tags assigned to the Elastic IP address.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an Elastic IP address.

func (Address) String

func (s Address) String() string

String returns the string representation

type AdvertiseByoipCidrInput added in v0.6.0

type AdvertiseByoipCidrInput struct {

	// The address range, in CIDR notation. This must be the exact range that you
	// provisioned. You can't advertise only a portion of the provisioned range.
	//
	// Cidr is a required field
	Cidr *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (AdvertiseByoipCidrInput) String added in v0.6.0

func (s AdvertiseByoipCidrInput) String() string

String returns the string representation

func (*AdvertiseByoipCidrInput) Validate added in v0.6.0

func (s *AdvertiseByoipCidrInput) Validate() error

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

type AdvertiseByoipCidrOutput added in v0.6.0

type AdvertiseByoipCidrOutput struct {

	// Information about the address range.
	ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
	// contains filtered or unexported fields
}

func (AdvertiseByoipCidrOutput) String added in v0.6.0

func (s AdvertiseByoipCidrOutput) String() string

String returns the string representation

type AdvertiseByoipCidrRequest added in v0.6.0

type AdvertiseByoipCidrRequest struct {
	*aws.Request
	Input *AdvertiseByoipCidrInput
	Copy  func(*AdvertiseByoipCidrInput) AdvertiseByoipCidrRequest
}

AdvertiseByoipCidrRequest is the request type for the AdvertiseByoipCidr API operation.

func (AdvertiseByoipCidrRequest) Send added in v0.6.0

Send marshals and sends the AdvertiseByoipCidr API request.

type AdvertiseByoipCidrResponse added in v0.9.0

type AdvertiseByoipCidrResponse struct {
	*AdvertiseByoipCidrOutput
	// contains filtered or unexported fields
}

AdvertiseByoipCidrResponse is the response type for the AdvertiseByoipCidr API operation.

func (*AdvertiseByoipCidrResponse) SDKResponseMetdata added in v0.9.0

func (r *AdvertiseByoipCidrResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AdvertiseByoipCidr request.

type Affinity

type Affinity string
const (
	AffinityDefault Affinity = "default"
	AffinityHost    Affinity = "host"
)

Enum values for Affinity

func (Affinity) MarshalValue added in v0.3.0

func (enum Affinity) MarshalValue() (string, error)

func (Affinity) MarshalValueBuf added in v0.3.0

func (enum Affinity) MarshalValueBuf(b []byte) ([]byte, error)

type AllocateAddressInput

type AllocateAddressInput struct {

	// [EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address
	// pool.
	Address *string `type:"string"`

	// The ID of a customer-owned address pool. Use this parameter to let Amazon
	// EC2 select an address from the address pool. Alternatively, specify a specific
	// address from the address pool.
	CustomerOwnedIpv4Pool *string `type:"string"`

	// Indicates whether the Elastic IP address is for use with instances in a VPC
	// or instances in EC2-Classic.
	//
	// Default: If the Region supports EC2-Classic, the default is standard. Otherwise,
	// the default is vpc.
	Domain DomainType `type:"string" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The location from which the IP address is advertised. Use this parameter
	// to limit the address to this location.
	//
	// A network border group is a unique set of Availability Zones or Local Zones
	// from where AWS advertises IP addresses and limits the addresses to the group.
	// IP addresses cannot move between network border groups.
	//
	// Use DescribeAvailabilityZones (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html)
	// to view the network border groups.
	//
	// You cannot use a network border group with EC2 Classic. If you attempt this
	// operation on EC2 classic, you will receive an InvalidParameterCombination
	// error. For more information, see Error Codes (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).
	NetworkBorderGroup *string `type:"string"`

	// The ID of an address pool that you own. Use this parameter to let Amazon
	// EC2 select an address from the address pool. To specify a specific address
	// from the address pool, use the Address parameter instead.
	PublicIpv4Pool *string `type:"string"`
	// contains filtered or unexported fields
}

func (AllocateAddressInput) String

func (s AllocateAddressInput) String() string

String returns the string representation

type AllocateAddressOutput

type AllocateAddressOutput struct {

	// [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic
	// IP address for use with instances in a VPC.
	AllocationId *string `locationName:"allocationId" type:"string"`

	// The customer-owned IP address.
	CustomerOwnedIp *string `locationName:"customerOwnedIp" type:"string"`

	// The ID of the customer-owned address pool.
	CustomerOwnedIpv4Pool *string `locationName:"customerOwnedIpv4Pool" type:"string"`

	// Indicates whether the Elastic IP address is for use with instances in a VPC
	// (vpc) or instances in EC2-Classic (standard).
	Domain DomainType `locationName:"domain" type:"string" enum:"true"`

	// The location from which the IP address is advertised.
	NetworkBorderGroup *string `locationName:"networkBorderGroup" type:"string"`

	// The Elastic IP address.
	PublicIp *string `locationName:"publicIp" type:"string"`

	// The ID of an address pool.
	PublicIpv4Pool *string `locationName:"publicIpv4Pool" type:"string"`
	// contains filtered or unexported fields
}

func (AllocateAddressOutput) String

func (s AllocateAddressOutput) String() string

String returns the string representation

type AllocateAddressRequest

type AllocateAddressRequest struct {
	*aws.Request
	Input *AllocateAddressInput
	Copy  func(*AllocateAddressInput) AllocateAddressRequest
}

AllocateAddressRequest is the request type for the AllocateAddress API operation.

func (AllocateAddressRequest) Send

Send marshals and sends the AllocateAddress API request.

type AllocateAddressResponse added in v0.9.0

type AllocateAddressResponse struct {
	*AllocateAddressOutput
	// contains filtered or unexported fields
}

AllocateAddressResponse is the response type for the AllocateAddress API operation.

func (*AllocateAddressResponse) SDKResponseMetdata added in v0.9.0

func (r *AllocateAddressResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AllocateAddress request.

type AllocateHostsInput

type AllocateHostsInput struct {

	// Indicates whether the host accepts any untargeted instance launches that
	// match its instance type configuration, or if it only accepts Host tenancy
	// instance launches that specify its unique host ID. For more information,
	// see Understanding Instance Placement and Host Affinity (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding)
	// in the Amazon EC2 User Guide for Linux Instances.
	//
	// Default: on
	AutoPlacement AutoPlacement `locationName:"autoPlacement" type:"string" enum:"true"`

	// The Availability Zone in which to allocate the Dedicated Host.
	//
	// AvailabilityZone is a required field
	AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `locationName:"clientToken" type:"string"`

	// Indicates whether to enable or disable host recovery for the Dedicated Host.
	// Host recovery is disabled by default. For more information, see Host Recovery
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// Default: off
	HostRecovery HostRecovery `type:"string" enum:"true"`

	// Specifies the instance family to be supported by the Dedicated Hosts. If
	// you specify an instance family, the Dedicated Hosts support multiple instance
	// types within that instance family.
	//
	// If you want the Dedicated Hosts to support a specific instance type only,
	// omit this parameter and specify InstanceType instead. You cannot specify
	// InstanceFamily and InstanceType in the same request.
	InstanceFamily *string `type:"string"`

	// Specifies the instance type to be supported by the Dedicated Hosts. If you
	// specify an instance type, the Dedicated Hosts support instances of the specified
	// instance type only.
	//
	// If you want the Dedicated Hosts to support multiple instance types in a specific
	// instance family, omit this parameter and specify InstanceFamily instead.
	// You cannot specify InstanceType and InstanceFamily in the same request.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// The number of Dedicated Hosts to allocate to your account with these parameters.
	//
	// Quantity is a required field
	Quantity *int64 `locationName:"quantity" type:"integer" required:"true"`

	// The tags to apply to the Dedicated Host during creation.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (AllocateHostsInput) String

func (s AllocateHostsInput) String() string

String returns the string representation

func (*AllocateHostsInput) Validate

func (s *AllocateHostsInput) Validate() error

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

type AllocateHostsOutput

type AllocateHostsOutput struct {

	// The ID of the allocated Dedicated Host. This is used to launch an instance
	// onto a specific host.
	HostIds []string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of AllocateHosts.

func (AllocateHostsOutput) String

func (s AllocateHostsOutput) String() string

String returns the string representation

type AllocateHostsRequest

type AllocateHostsRequest struct {
	*aws.Request
	Input *AllocateHostsInput
	Copy  func(*AllocateHostsInput) AllocateHostsRequest
}

AllocateHostsRequest is the request type for the AllocateHosts API operation.

func (AllocateHostsRequest) Send

Send marshals and sends the AllocateHosts API request.

type AllocateHostsResponse added in v0.9.0

type AllocateHostsResponse struct {
	*AllocateHostsOutput
	// contains filtered or unexported fields
}

AllocateHostsResponse is the response type for the AllocateHosts API operation.

func (*AllocateHostsResponse) SDKResponseMetdata added in v0.9.0

func (r *AllocateHostsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AllocateHosts request.

type AllocationState

type AllocationState string
const (
	AllocationStateAvailable                AllocationState = "available"
	AllocationStateUnderAssessment          AllocationState = "under-assessment"
	AllocationStatePermanentFailure         AllocationState = "permanent-failure"
	AllocationStateReleased                 AllocationState = "released"
	AllocationStateReleasedPermanentFailure AllocationState = "released-permanent-failure"
	AllocationStatePending                  AllocationState = "pending"
)

Enum values for AllocationState

func (AllocationState) MarshalValue added in v0.3.0

func (enum AllocationState) MarshalValue() (string, error)

func (AllocationState) MarshalValueBuf added in v0.3.0

func (enum AllocationState) MarshalValueBuf(b []byte) ([]byte, error)

type AllocationStrategy

type AllocationStrategy string
const (
	AllocationStrategyLowestPrice       AllocationStrategy = "lowestPrice"
	AllocationStrategyDiversified       AllocationStrategy = "diversified"
	AllocationStrategyCapacityOptimized AllocationStrategy = "capacityOptimized"
)

Enum values for AllocationStrategy

func (AllocationStrategy) MarshalValue added in v0.3.0

func (enum AllocationStrategy) MarshalValue() (string, error)

func (AllocationStrategy) MarshalValueBuf added in v0.3.0

func (enum AllocationStrategy) MarshalValueBuf(b []byte) ([]byte, error)

type AllowedPrincipal added in v0.2.0

type AllowedPrincipal struct {

	// The Amazon Resource Name (ARN) of the principal.
	Principal *string `locationName:"principal" type:"string"`

	// The type of principal.
	PrincipalType PrincipalType `locationName:"principalType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a principal.

func (AllowedPrincipal) String added in v0.2.0

func (s AllowedPrincipal) String() string

String returns the string representation

type AllowsMultipleInstanceTypes added in v0.18.0

type AllowsMultipleInstanceTypes string
const (
	AllowsMultipleInstanceTypesOn  AllowsMultipleInstanceTypes = "on"
	AllowsMultipleInstanceTypesOff AllowsMultipleInstanceTypes = "off"
)

Enum values for AllowsMultipleInstanceTypes

func (AllowsMultipleInstanceTypes) MarshalValue added in v0.18.0

func (enum AllowsMultipleInstanceTypes) MarshalValue() (string, error)

func (AllowsMultipleInstanceTypes) MarshalValueBuf added in v0.18.0

func (enum AllowsMultipleInstanceTypes) MarshalValueBuf(b []byte) ([]byte, error)

type ApplySecurityGroupsToClientVpnTargetNetworkInput added in v0.7.0

type ApplySecurityGroupsToClientVpnTargetNetworkInput struct {

	// The ID of the Client VPN endpoint.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of the security groups to apply to the associated target network.
	// Up to 5 security groups can be applied to an associated target network.
	//
	// SecurityGroupIds is a required field
	SecurityGroupIds []string `locationName:"SecurityGroupId" locationNameList:"item" type:"list" required:"true"`

	// The ID of the VPC in which the associated target network is located.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ApplySecurityGroupsToClientVpnTargetNetworkInput) String added in v0.7.0

String returns the string representation

func (*ApplySecurityGroupsToClientVpnTargetNetworkInput) Validate added in v0.7.0

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

type ApplySecurityGroupsToClientVpnTargetNetworkOutput added in v0.7.0

type ApplySecurityGroupsToClientVpnTargetNetworkOutput struct {

	// The IDs of the applied security groups.
	SecurityGroupIds []string `locationName:"securityGroupIds" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (ApplySecurityGroupsToClientVpnTargetNetworkOutput) String added in v0.7.0

String returns the string representation

type ApplySecurityGroupsToClientVpnTargetNetworkRequest added in v0.7.0

ApplySecurityGroupsToClientVpnTargetNetworkRequest is the request type for the ApplySecurityGroupsToClientVpnTargetNetwork API operation.

func (ApplySecurityGroupsToClientVpnTargetNetworkRequest) Send added in v0.7.0

Send marshals and sends the ApplySecurityGroupsToClientVpnTargetNetwork API request.

type ApplySecurityGroupsToClientVpnTargetNetworkResponse added in v0.9.0

type ApplySecurityGroupsToClientVpnTargetNetworkResponse struct {
	*ApplySecurityGroupsToClientVpnTargetNetworkOutput
	// contains filtered or unexported fields
}

ApplySecurityGroupsToClientVpnTargetNetworkResponse is the response type for the ApplySecurityGroupsToClientVpnTargetNetwork API operation.

func (*ApplySecurityGroupsToClientVpnTargetNetworkResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the ApplySecurityGroupsToClientVpnTargetNetwork request.

type ArchitectureType added in v0.18.0

type ArchitectureType string
const (
	ArchitectureTypeI386  ArchitectureType = "i386"
	ArchitectureTypeX8664 ArchitectureType = "x86_64"
	ArchitectureTypeArm64 ArchitectureType = "arm64"
)

Enum values for ArchitectureType

func (ArchitectureType) MarshalValue added in v0.18.0

func (enum ArchitectureType) MarshalValue() (string, error)

func (ArchitectureType) MarshalValueBuf added in v0.18.0

func (enum ArchitectureType) MarshalValueBuf(b []byte) ([]byte, error)

type ArchitectureValues

type ArchitectureValues string
const (
	ArchitectureValuesI386  ArchitectureValues = "i386"
	ArchitectureValuesX8664 ArchitectureValues = "x86_64"
	ArchitectureValuesArm64 ArchitectureValues = "arm64"
)

Enum values for ArchitectureValues

func (ArchitectureValues) MarshalValue added in v0.3.0

func (enum ArchitectureValues) MarshalValue() (string, error)

func (ArchitectureValues) MarshalValueBuf added in v0.3.0

func (enum ArchitectureValues) MarshalValueBuf(b []byte) ([]byte, error)

type AssignIpv6AddressesInput

type AssignIpv6AddressesInput struct {

	// The number of IPv6 addresses to assign to the network interface. Amazon EC2
	// automatically selects the IPv6 addresses from the subnet range. You can't
	// use this option if specifying specific IPv6 addresses.
	Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`

	// One or more specific IPv6 addresses to be assigned to the network interface.
	// You can't use this option if you're specifying a number of IPv6 addresses.
	Ipv6Addresses []string `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`

	// The ID of the network interface.
	//
	// NetworkInterfaceId is a required field
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AssignIpv6AddressesInput) String

func (s AssignIpv6AddressesInput) String() string

String returns the string representation

func (*AssignIpv6AddressesInput) Validate

func (s *AssignIpv6AddressesInput) Validate() error

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

type AssignIpv6AddressesOutput

type AssignIpv6AddressesOutput struct {

	// The IPv6 addresses assigned to the network interface.
	AssignedIpv6Addresses []string `locationName:"assignedIpv6Addresses" locationNameList:"item" type:"list"`

	// The ID of the network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
	// contains filtered or unexported fields
}

func (AssignIpv6AddressesOutput) String

func (s AssignIpv6AddressesOutput) String() string

String returns the string representation

type AssignIpv6AddressesRequest

type AssignIpv6AddressesRequest struct {
	*aws.Request
	Input *AssignIpv6AddressesInput
	Copy  func(*AssignIpv6AddressesInput) AssignIpv6AddressesRequest
}

AssignIpv6AddressesRequest is the request type for the AssignIpv6Addresses API operation.

func (AssignIpv6AddressesRequest) Send

Send marshals and sends the AssignIpv6Addresses API request.

type AssignIpv6AddressesResponse added in v0.9.0

type AssignIpv6AddressesResponse struct {
	*AssignIpv6AddressesOutput
	// contains filtered or unexported fields
}

AssignIpv6AddressesResponse is the response type for the AssignIpv6Addresses API operation.

func (*AssignIpv6AddressesResponse) SDKResponseMetdata added in v0.9.0

func (r *AssignIpv6AddressesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssignIpv6Addresses request.

type AssignPrivateIpAddressesInput

type AssignPrivateIpAddressesInput struct {

	// Indicates whether to allow an IP address that is already assigned to another
	// network interface or instance to be reassigned to the specified network interface.
	AllowReassignment *bool `locationName:"allowReassignment" type:"boolean"`

	// The ID of the network interface.
	//
	// NetworkInterfaceId is a required field
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`

	// One or more IP addresses to be assigned as a secondary private IP address
	// to the network interface. You can't specify this parameter when also specifying
	// a number of secondary IP addresses.
	//
	// If you don't specify an IP address, Amazon EC2 automatically selects an IP
	// address within the subnet range.
	PrivateIpAddresses []string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list"`

	// The number of secondary IP addresses to assign to the network interface.
	// You can't specify this parameter when also specifying private IP addresses.
	SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
	// contains filtered or unexported fields
}

Contains the parameters for AssignPrivateIpAddresses.

func (AssignPrivateIpAddressesInput) String

String returns the string representation

func (*AssignPrivateIpAddressesInput) Validate

func (s *AssignPrivateIpAddressesInput) Validate() error

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

type AssignPrivateIpAddressesOutput

type AssignPrivateIpAddressesOutput struct {

	// The private IP addresses assigned to the network interface.
	AssignedPrivateIpAddresses []AssignedPrivateIpAddress `locationName:"assignedPrivateIpAddressesSet" locationNameList:"item" type:"list"`

	// The ID of the network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
	// contains filtered or unexported fields
}

func (AssignPrivateIpAddressesOutput) String

String returns the string representation

type AssignPrivateIpAddressesRequest

type AssignPrivateIpAddressesRequest struct {
	*aws.Request
	Input *AssignPrivateIpAddressesInput
	Copy  func(*AssignPrivateIpAddressesInput) AssignPrivateIpAddressesRequest
}

AssignPrivateIpAddressesRequest is the request type for the AssignPrivateIpAddresses API operation.

func (AssignPrivateIpAddressesRequest) Send

Send marshals and sends the AssignPrivateIpAddresses API request.

type AssignPrivateIpAddressesResponse added in v0.9.0

type AssignPrivateIpAddressesResponse struct {
	*AssignPrivateIpAddressesOutput
	// contains filtered or unexported fields
}

AssignPrivateIpAddressesResponse is the response type for the AssignPrivateIpAddresses API operation.

func (*AssignPrivateIpAddressesResponse) SDKResponseMetdata added in v0.9.0

func (r *AssignPrivateIpAddressesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssignPrivateIpAddresses request.

type AssignedPrivateIpAddress added in v0.10.0

type AssignedPrivateIpAddress struct {

	// The private IP address assigned to the network interface.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
	// contains filtered or unexported fields
}

Describes the private IP addresses assigned to a network interface.

func (AssignedPrivateIpAddress) String added in v0.10.0

func (s AssignedPrivateIpAddress) String() string

String returns the string representation

type AssociateAddressInput

type AssociateAddressInput struct {

	// [EC2-VPC] The allocation ID. This is required for EC2-VPC.
	AllocationId *string `type:"string"`

	// [EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic
	// IP address that is already associated with an instance or network interface
	// to be reassociated with the specified instance or network interface. Otherwise,
	// the operation fails. In a VPC in an EC2-VPC-only account, reassociation is
	// automatic, therefore you can specify false to ensure the operation fails
	// if the Elastic IP address is already associated with another resource.
	AllowReassociation *bool `locationName:"allowReassociation" type:"boolean"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you
	// can specify either the instance ID or the network interface ID, but not both.
	// The operation fails if you specify an instance ID unless exactly one network
	// interface is attached.
	InstanceId *string `type:"string"`

	// [EC2-VPC] The ID of the network interface. If the instance has more than
	// one network interface, you must specify a network interface ID.
	//
	// For EC2-VPC, you can specify either the instance ID or the network interface
	// ID, but not both.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// [EC2-VPC] The primary or secondary private IP address to associate with the
	// Elastic IP address. If no private IP address is specified, the Elastic IP
	// address is associated with the primary private IP address.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`

	// The Elastic IP address to associate with the instance. This is required for
	// EC2-Classic.
	PublicIp *string `type:"string"`
	// contains filtered or unexported fields
}

func (AssociateAddressInput) String

func (s AssociateAddressInput) String() string

String returns the string representation

type AssociateAddressOutput

type AssociateAddressOutput struct {

	// [EC2-VPC] The ID that represents the association of the Elastic IP address
	// with an instance.
	AssociationId *string `locationName:"associationId" type:"string"`
	// contains filtered or unexported fields
}

func (AssociateAddressOutput) String

func (s AssociateAddressOutput) String() string

String returns the string representation

type AssociateAddressRequest

type AssociateAddressRequest struct {
	*aws.Request
	Input *AssociateAddressInput
	Copy  func(*AssociateAddressInput) AssociateAddressRequest
}

AssociateAddressRequest is the request type for the AssociateAddress API operation.

func (AssociateAddressRequest) Send

Send marshals and sends the AssociateAddress API request.

type AssociateAddressResponse added in v0.9.0

type AssociateAddressResponse struct {
	*AssociateAddressOutput
	// contains filtered or unexported fields
}

AssociateAddressResponse is the response type for the AssociateAddress API operation.

func (*AssociateAddressResponse) SDKResponseMetdata added in v0.9.0

func (r *AssociateAddressResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssociateAddress request.

type AssociateClientVpnTargetNetworkInput added in v0.7.0

type AssociateClientVpnTargetNetworkInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// The ID of the Client VPN endpoint.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the subnet to associate with the Client VPN endpoint.
	//
	// SubnetId is a required field
	SubnetId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AssociateClientVpnTargetNetworkInput) String added in v0.7.0

String returns the string representation

func (*AssociateClientVpnTargetNetworkInput) Validate added in v0.7.0

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

type AssociateClientVpnTargetNetworkOutput added in v0.7.0

type AssociateClientVpnTargetNetworkOutput struct {

	// The unique ID of the target network association.
	AssociationId *string `locationName:"associationId" type:"string"`

	// The current state of the target network association.
	Status *AssociationStatus `locationName:"status" type:"structure"`
	// contains filtered or unexported fields
}

func (AssociateClientVpnTargetNetworkOutput) String added in v0.7.0

String returns the string representation

type AssociateClientVpnTargetNetworkRequest added in v0.7.0

type AssociateClientVpnTargetNetworkRequest struct {
	*aws.Request
	Input *AssociateClientVpnTargetNetworkInput
	Copy  func(*AssociateClientVpnTargetNetworkInput) AssociateClientVpnTargetNetworkRequest
}

AssociateClientVpnTargetNetworkRequest is the request type for the AssociateClientVpnTargetNetwork API operation.

func (AssociateClientVpnTargetNetworkRequest) Send added in v0.7.0

Send marshals and sends the AssociateClientVpnTargetNetwork API request.

type AssociateClientVpnTargetNetworkResponse added in v0.9.0

type AssociateClientVpnTargetNetworkResponse struct {
	*AssociateClientVpnTargetNetworkOutput
	// contains filtered or unexported fields
}

AssociateClientVpnTargetNetworkResponse is the response type for the AssociateClientVpnTargetNetwork API operation.

func (*AssociateClientVpnTargetNetworkResponse) SDKResponseMetdata added in v0.9.0

func (r *AssociateClientVpnTargetNetworkResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssociateClientVpnTargetNetwork request.

type AssociateDhcpOptionsInput

type AssociateDhcpOptionsInput struct {

	// The ID of the DHCP options set, or default to associate no DHCP options with
	// the VPC.
	//
	// DhcpOptionsId is a required field
	DhcpOptionsId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AssociateDhcpOptionsInput) String

func (s AssociateDhcpOptionsInput) String() string

String returns the string representation

func (*AssociateDhcpOptionsInput) Validate

func (s *AssociateDhcpOptionsInput) Validate() error

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

type AssociateDhcpOptionsOutput

type AssociateDhcpOptionsOutput struct {
	// contains filtered or unexported fields
}

func (AssociateDhcpOptionsOutput) String

String returns the string representation

type AssociateDhcpOptionsRequest

type AssociateDhcpOptionsRequest struct {
	*aws.Request
	Input *AssociateDhcpOptionsInput
	Copy  func(*AssociateDhcpOptionsInput) AssociateDhcpOptionsRequest
}

AssociateDhcpOptionsRequest is the request type for the AssociateDhcpOptions API operation.

func (AssociateDhcpOptionsRequest) Send

Send marshals and sends the AssociateDhcpOptions API request.

type AssociateDhcpOptionsResponse added in v0.9.0

type AssociateDhcpOptionsResponse struct {
	*AssociateDhcpOptionsOutput
	// contains filtered or unexported fields
}

AssociateDhcpOptionsResponse is the response type for the AssociateDhcpOptions API operation.

func (*AssociateDhcpOptionsResponse) SDKResponseMetdata added in v0.9.0

func (r *AssociateDhcpOptionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssociateDhcpOptions request.

type AssociateIamInstanceProfileInput

type AssociateIamInstanceProfileInput struct {

	// The IAM instance profile.
	//
	// IamInstanceProfile is a required field
	IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AssociateIamInstanceProfileInput) String

String returns the string representation

func (*AssociateIamInstanceProfileInput) Validate

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

type AssociateIamInstanceProfileOutput

type AssociateIamInstanceProfileOutput struct {

	// Information about the IAM instance profile association.
	IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
	// contains filtered or unexported fields
}

func (AssociateIamInstanceProfileOutput) String

String returns the string representation

type AssociateIamInstanceProfileRequest

type AssociateIamInstanceProfileRequest struct {
	*aws.Request
	Input *AssociateIamInstanceProfileInput
	Copy  func(*AssociateIamInstanceProfileInput) AssociateIamInstanceProfileRequest
}

AssociateIamInstanceProfileRequest is the request type for the AssociateIamInstanceProfile API operation.

func (AssociateIamInstanceProfileRequest) Send

Send marshals and sends the AssociateIamInstanceProfile API request.

type AssociateIamInstanceProfileResponse added in v0.9.0

type AssociateIamInstanceProfileResponse struct {
	*AssociateIamInstanceProfileOutput
	// contains filtered or unexported fields
}

AssociateIamInstanceProfileResponse is the response type for the AssociateIamInstanceProfile API operation.

func (*AssociateIamInstanceProfileResponse) SDKResponseMetdata added in v0.9.0

func (r *AssociateIamInstanceProfileResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssociateIamInstanceProfile request.

type AssociateRouteTableInput

type AssociateRouteTableInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the internet gateway or virtual private gateway.
	GatewayId *string `type:"string"`

	// The ID of the route table.
	//
	// RouteTableId is a required field
	RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`

	// The ID of the subnet.
	SubnetId *string `locationName:"subnetId" type:"string"`
	// contains filtered or unexported fields
}

func (AssociateRouteTableInput) String

func (s AssociateRouteTableInput) String() string

String returns the string representation

func (*AssociateRouteTableInput) Validate

func (s *AssociateRouteTableInput) Validate() error

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

type AssociateRouteTableOutput

type AssociateRouteTableOutput struct {

	// The route table association ID. This ID is required for disassociating the
	// route table.
	AssociationId *string `locationName:"associationId" type:"string"`

	// The state of the association.
	AssociationState *RouteTableAssociationState `locationName:"associationState" type:"structure"`
	// contains filtered or unexported fields
}

func (AssociateRouteTableOutput) String

func (s AssociateRouteTableOutput) String() string

String returns the string representation

type AssociateRouteTableRequest

type AssociateRouteTableRequest struct {
	*aws.Request
	Input *AssociateRouteTableInput
	Copy  func(*AssociateRouteTableInput) AssociateRouteTableRequest
}

AssociateRouteTableRequest is the request type for the AssociateRouteTable API operation.

func (AssociateRouteTableRequest) Send

Send marshals and sends the AssociateRouteTable API request.

type AssociateRouteTableResponse added in v0.9.0

type AssociateRouteTableResponse struct {
	*AssociateRouteTableOutput
	// contains filtered or unexported fields
}

AssociateRouteTableResponse is the response type for the AssociateRouteTable API operation.

func (*AssociateRouteTableResponse) SDKResponseMetdata added in v0.9.0

func (r *AssociateRouteTableResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssociateRouteTable request.

type AssociateSubnetCidrBlockInput

type AssociateSubnetCidrBlockInput struct {

	// The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix length.
	//
	// Ipv6CidrBlock is a required field
	Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string" required:"true"`

	// The ID of your subnet.
	//
	// SubnetId is a required field
	SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AssociateSubnetCidrBlockInput) String

String returns the string representation

func (*AssociateSubnetCidrBlockInput) Validate

func (s *AssociateSubnetCidrBlockInput) Validate() error

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

type AssociateSubnetCidrBlockOutput

type AssociateSubnetCidrBlockOutput struct {

	// Information about the IPv6 CIDR block association.
	Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`

	// The ID of the subnet.
	SubnetId *string `locationName:"subnetId" type:"string"`
	// contains filtered or unexported fields
}

func (AssociateSubnetCidrBlockOutput) String

String returns the string representation

type AssociateSubnetCidrBlockRequest

type AssociateSubnetCidrBlockRequest struct {
	*aws.Request
	Input *AssociateSubnetCidrBlockInput
	Copy  func(*AssociateSubnetCidrBlockInput) AssociateSubnetCidrBlockRequest
}

AssociateSubnetCidrBlockRequest is the request type for the AssociateSubnetCidrBlock API operation.

func (AssociateSubnetCidrBlockRequest) Send

Send marshals and sends the AssociateSubnetCidrBlock API request.

type AssociateSubnetCidrBlockResponse added in v0.9.0

type AssociateSubnetCidrBlockResponse struct {
	*AssociateSubnetCidrBlockOutput
	// contains filtered or unexported fields
}

AssociateSubnetCidrBlockResponse is the response type for the AssociateSubnetCidrBlock API operation.

func (*AssociateSubnetCidrBlockResponse) SDKResponseMetdata added in v0.9.0

func (r *AssociateSubnetCidrBlockResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssociateSubnetCidrBlock request.

type AssociateTransitGatewayMulticastDomainInput added in v0.18.0

type AssociateTransitGatewayMulticastDomainInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of the subnets to associate with the transit gateway multicast domain.
	SubnetIds []string `locationNameList:"item" type:"list"`

	// The ID of the transit gateway attachment to associate with the transit gateway
	// multicast domain.
	TransitGatewayAttachmentId *string `type:"string"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `type:"string"`
	// contains filtered or unexported fields
}

func (AssociateTransitGatewayMulticastDomainInput) String added in v0.18.0

String returns the string representation

type AssociateTransitGatewayMulticastDomainOutput added in v0.18.0

type AssociateTransitGatewayMulticastDomainOutput struct {

	// Information about the transit gateway multicast domain associations.
	Associations *TransitGatewayMulticastDomainAssociations `locationName:"associations" type:"structure"`
	// contains filtered or unexported fields
}

func (AssociateTransitGatewayMulticastDomainOutput) String added in v0.18.0

String returns the string representation

type AssociateTransitGatewayMulticastDomainRequest added in v0.18.0

AssociateTransitGatewayMulticastDomainRequest is the request type for the AssociateTransitGatewayMulticastDomain API operation.

func (AssociateTransitGatewayMulticastDomainRequest) Send added in v0.18.0

Send marshals and sends the AssociateTransitGatewayMulticastDomain API request.

type AssociateTransitGatewayMulticastDomainResponse added in v0.18.0

type AssociateTransitGatewayMulticastDomainResponse struct {
	*AssociateTransitGatewayMulticastDomainOutput
	// contains filtered or unexported fields
}

AssociateTransitGatewayMulticastDomainResponse is the response type for the AssociateTransitGatewayMulticastDomain API operation.

func (*AssociateTransitGatewayMulticastDomainResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the AssociateTransitGatewayMulticastDomain request.

type AssociateTransitGatewayRouteTableInput added in v0.6.0

type AssociateTransitGatewayRouteTableInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`

	// The ID of the transit gateway route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AssociateTransitGatewayRouteTableInput) String added in v0.6.0

String returns the string representation

func (*AssociateTransitGatewayRouteTableInput) Validate added in v0.6.0

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

type AssociateTransitGatewayRouteTableOutput added in v0.6.0

type AssociateTransitGatewayRouteTableOutput struct {

	// The ID of the association.
	Association *TransitGatewayAssociation `locationName:"association" type:"structure"`
	// contains filtered or unexported fields
}

func (AssociateTransitGatewayRouteTableOutput) String added in v0.6.0

String returns the string representation

type AssociateTransitGatewayRouteTableRequest added in v0.6.0

AssociateTransitGatewayRouteTableRequest is the request type for the AssociateTransitGatewayRouteTable API operation.

func (AssociateTransitGatewayRouteTableRequest) Send added in v0.6.0

Send marshals and sends the AssociateTransitGatewayRouteTable API request.

type AssociateTransitGatewayRouteTableResponse added in v0.9.0

type AssociateTransitGatewayRouteTableResponse struct {
	*AssociateTransitGatewayRouteTableOutput
	// contains filtered or unexported fields
}

AssociateTransitGatewayRouteTableResponse is the response type for the AssociateTransitGatewayRouteTable API operation.

func (*AssociateTransitGatewayRouteTableResponse) SDKResponseMetdata added in v0.9.0

func (r *AssociateTransitGatewayRouteTableResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssociateTransitGatewayRouteTable request.

type AssociateVpcCidrBlockInput

type AssociateVpcCidrBlockInput struct {

	// Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
	// the VPC. You cannot specify the range of IPv6 addresses, or the size of the
	// CIDR block.
	AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`

	// An IPv4 CIDR block to associate with the VPC.
	CidrBlock *string `type:"string"`

	// An IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool
	// in the request.
	//
	// To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
	Ipv6CidrBlock *string `type:"string"`

	// The name of the location from which we advertise the IPV6 CIDR block. Use
	// this parameter to limit the CiDR block to this location.
	//
	// You must set AmazonProvidedIpv6CidrBlock to true to use this parameter.
	//
	// You can have one IPv6 CIDR block association per network border group.
	Ipv6CidrBlockNetworkBorderGroup *string `type:"string"`

	// The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
	Ipv6Pool *string `type:"string"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `locationName:"vpcId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AssociateVpcCidrBlockInput) String

String returns the string representation

func (*AssociateVpcCidrBlockInput) Validate

func (s *AssociateVpcCidrBlockInput) Validate() error

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

type AssociateVpcCidrBlockOutput

type AssociateVpcCidrBlockOutput struct {

	// Information about the IPv4 CIDR block association.
	CidrBlockAssociation *VpcCidrBlockAssociation `locationName:"cidrBlockAssociation" type:"structure"`

	// Information about the IPv6 CIDR block association.
	Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

func (AssociateVpcCidrBlockOutput) String

String returns the string representation

type AssociateVpcCidrBlockRequest

type AssociateVpcCidrBlockRequest struct {
	*aws.Request
	Input *AssociateVpcCidrBlockInput
	Copy  func(*AssociateVpcCidrBlockInput) AssociateVpcCidrBlockRequest
}

AssociateVpcCidrBlockRequest is the request type for the AssociateVpcCidrBlock API operation.

func (AssociateVpcCidrBlockRequest) Send

Send marshals and sends the AssociateVpcCidrBlock API request.

type AssociateVpcCidrBlockResponse added in v0.9.0

type AssociateVpcCidrBlockResponse struct {
	*AssociateVpcCidrBlockOutput
	// contains filtered or unexported fields
}

AssociateVpcCidrBlockResponse is the response type for the AssociateVpcCidrBlock API operation.

func (*AssociateVpcCidrBlockResponse) SDKResponseMetdata added in v0.9.0

func (r *AssociateVpcCidrBlockResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssociateVpcCidrBlock request.

type AssociatedNetworkType added in v0.7.0

type AssociatedNetworkType string
const (
	AssociatedNetworkTypeVpc AssociatedNetworkType = "vpc"
)

Enum values for AssociatedNetworkType

func (AssociatedNetworkType) MarshalValue added in v0.7.0

func (enum AssociatedNetworkType) MarshalValue() (string, error)

func (AssociatedNetworkType) MarshalValueBuf added in v0.7.0

func (enum AssociatedNetworkType) MarshalValueBuf(b []byte) ([]byte, error)

type AssociatedTargetNetwork added in v0.7.0

type AssociatedTargetNetwork struct {

	// The ID of the subnet.
	NetworkId *string `locationName:"networkId" type:"string"`

	// The target network type.
	NetworkType AssociatedNetworkType `locationName:"networkType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a target network that is associated with a Client VPN endpoint. A target network is a subnet in a VPC.

func (AssociatedTargetNetwork) String added in v0.7.0

func (s AssociatedTargetNetwork) String() string

String returns the string representation

type AssociationStatus added in v0.7.0

type AssociationStatus struct {

	// The state of the target network association.
	Code AssociationStatusCode `locationName:"code" type:"string" enum:"true"`

	// A message about the status of the target network association, if applicable.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes the state of a target network association.

func (AssociationStatus) String added in v0.7.0

func (s AssociationStatus) String() string

String returns the string representation

type AssociationStatusCode added in v0.7.0

type AssociationStatusCode string
const (
	AssociationStatusCodeAssociating       AssociationStatusCode = "associating"
	AssociationStatusCodeAssociated        AssociationStatusCode = "associated"
	AssociationStatusCodeAssociationFailed AssociationStatusCode = "association-failed"
	AssociationStatusCodeDisassociating    AssociationStatusCode = "disassociating"
	AssociationStatusCodeDisassociated     AssociationStatusCode = "disassociated"
)

Enum values for AssociationStatusCode

func (AssociationStatusCode) MarshalValue added in v0.7.0

func (enum AssociationStatusCode) MarshalValue() (string, error)

func (AssociationStatusCode) MarshalValueBuf added in v0.7.0

func (enum AssociationStatusCode) MarshalValueBuf(b []byte) ([]byte, error)

type AttachClassicLinkVpcInput

type AttachClassicLinkVpcInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of one or more of the VPC's security groups. You cannot specify security
	// groups from a different VPC.
	//
	// Groups is a required field
	Groups []string `locationName:"SecurityGroupId" locationNameList:"groupId" type:"list" required:"true"`

	// The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
	//
	// InstanceId is a required field
	InstanceId *string `locationName:"instanceId" type:"string" required:"true"`

	// The ID of a ClassicLink-enabled VPC.
	//
	// VpcId is a required field
	VpcId *string `locationName:"vpcId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AttachClassicLinkVpcInput) String

func (s AttachClassicLinkVpcInput) String() string

String returns the string representation

func (*AttachClassicLinkVpcInput) Validate

func (s *AttachClassicLinkVpcInput) Validate() error

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

type AttachClassicLinkVpcOutput

type AttachClassicLinkVpcOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (AttachClassicLinkVpcOutput) String

String returns the string representation

type AttachClassicLinkVpcRequest

type AttachClassicLinkVpcRequest struct {
	*aws.Request
	Input *AttachClassicLinkVpcInput
	Copy  func(*AttachClassicLinkVpcInput) AttachClassicLinkVpcRequest
}

AttachClassicLinkVpcRequest is the request type for the AttachClassicLinkVpc API operation.

func (AttachClassicLinkVpcRequest) Send

Send marshals and sends the AttachClassicLinkVpc API request.

type AttachClassicLinkVpcResponse added in v0.9.0

type AttachClassicLinkVpcResponse struct {
	*AttachClassicLinkVpcOutput
	// contains filtered or unexported fields
}

AttachClassicLinkVpcResponse is the response type for the AttachClassicLinkVpc API operation.

func (*AttachClassicLinkVpcResponse) SDKResponseMetdata added in v0.9.0

func (r *AttachClassicLinkVpcResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AttachClassicLinkVpc request.

type AttachInternetGatewayInput

type AttachInternetGatewayInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the internet gateway.
	//
	// InternetGatewayId is a required field
	InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `locationName:"vpcId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AttachInternetGatewayInput) String

String returns the string representation

func (*AttachInternetGatewayInput) Validate

func (s *AttachInternetGatewayInput) Validate() error

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

type AttachInternetGatewayOutput

type AttachInternetGatewayOutput struct {
	// contains filtered or unexported fields
}

func (AttachInternetGatewayOutput) String

String returns the string representation

type AttachInternetGatewayRequest

type AttachInternetGatewayRequest struct {
	*aws.Request
	Input *AttachInternetGatewayInput
	Copy  func(*AttachInternetGatewayInput) AttachInternetGatewayRequest
}

AttachInternetGatewayRequest is the request type for the AttachInternetGateway API operation.

func (AttachInternetGatewayRequest) Send

Send marshals and sends the AttachInternetGateway API request.

type AttachInternetGatewayResponse added in v0.9.0

type AttachInternetGatewayResponse struct {
	*AttachInternetGatewayOutput
	// contains filtered or unexported fields
}

AttachInternetGatewayResponse is the response type for the AttachInternetGateway API operation.

func (*AttachInternetGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *AttachInternetGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AttachInternetGateway request.

type AttachNetworkInterfaceInput

type AttachNetworkInterfaceInput struct {

	// The index of the device for the network interface attachment.
	//
	// DeviceIndex is a required field
	DeviceIndex *int64 `locationName:"deviceIndex" type:"integer" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `locationName:"instanceId" type:"string" required:"true"`

	// The ID of the network interface.
	//
	// NetworkInterfaceId is a required field
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for AttachNetworkInterface.

func (AttachNetworkInterfaceInput) String

String returns the string representation

func (*AttachNetworkInterfaceInput) Validate

func (s *AttachNetworkInterfaceInput) Validate() error

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

type AttachNetworkInterfaceOutput

type AttachNetworkInterfaceOutput struct {

	// The ID of the network interface attachment.
	AttachmentId *string `locationName:"attachmentId" type:"string"`
	// contains filtered or unexported fields
}

Contains the output of AttachNetworkInterface.

func (AttachNetworkInterfaceOutput) String

String returns the string representation

type AttachNetworkInterfaceRequest

type AttachNetworkInterfaceRequest struct {
	*aws.Request
	Input *AttachNetworkInterfaceInput
	Copy  func(*AttachNetworkInterfaceInput) AttachNetworkInterfaceRequest
}

AttachNetworkInterfaceRequest is the request type for the AttachNetworkInterface API operation.

func (AttachNetworkInterfaceRequest) Send

Send marshals and sends the AttachNetworkInterface API request.

type AttachNetworkInterfaceResponse added in v0.9.0

type AttachNetworkInterfaceResponse struct {
	*AttachNetworkInterfaceOutput
	// contains filtered or unexported fields
}

AttachNetworkInterfaceResponse is the response type for the AttachNetworkInterface API operation.

func (*AttachNetworkInterfaceResponse) SDKResponseMetdata added in v0.9.0

func (r *AttachNetworkInterfaceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AttachNetworkInterface request.

type AttachVolumeInput

type AttachVolumeInput struct {

	// The device name (for example, /dev/sdh or xvdh).
	//
	// Device is a required field
	Device *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`

	// The ID of the EBS volume. The volume and instance must be within the same
	// Availability Zone.
	//
	// VolumeId is a required field
	VolumeId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AttachVolumeInput) String

func (s AttachVolumeInput) String() string

String returns the string representation

func (*AttachVolumeInput) Validate

func (s *AttachVolumeInput) Validate() error

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

type AttachVolumeOutput added in v0.9.0

type AttachVolumeOutput struct {

	// The time stamp when the attachment initiated.
	AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`

	// Indicates whether the EBS volume is deleted on instance termination.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`

	// The device name.
	Device *string `locationName:"device" type:"string"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The attachment state of the volume.
	State VolumeAttachmentState `locationName:"status" type:"string" enum:"true"`

	// The ID of the volume.
	VolumeId *string `locationName:"volumeId" type:"string"`
	// contains filtered or unexported fields
}

Describes volume attachment details.

func (AttachVolumeOutput) String added in v0.9.0

func (s AttachVolumeOutput) String() string

String returns the string representation

type AttachVolumeRequest

type AttachVolumeRequest struct {
	*aws.Request
	Input *AttachVolumeInput
	Copy  func(*AttachVolumeInput) AttachVolumeRequest
}

AttachVolumeRequest is the request type for the AttachVolume API operation.

func (AttachVolumeRequest) Send

Send marshals and sends the AttachVolume API request.

type AttachVolumeResponse added in v0.9.0

type AttachVolumeResponse struct {
	*AttachVolumeOutput
	// contains filtered or unexported fields
}

AttachVolumeResponse is the response type for the AttachVolume API operation.

func (*AttachVolumeResponse) SDKResponseMetdata added in v0.9.0

func (r *AttachVolumeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AttachVolume request.

type AttachVpnGatewayInput

type AttachVpnGatewayInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`

	// The ID of the virtual private gateway.
	//
	// VpnGatewayId is a required field
	VpnGatewayId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for AttachVpnGateway.

func (AttachVpnGatewayInput) String

func (s AttachVpnGatewayInput) String() string

String returns the string representation

func (*AttachVpnGatewayInput) Validate

func (s *AttachVpnGatewayInput) Validate() error

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

type AttachVpnGatewayOutput

type AttachVpnGatewayOutput struct {

	// Information about the attachment.
	VpcAttachment *VpcAttachment `locationName:"attachment" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of AttachVpnGateway.

func (AttachVpnGatewayOutput) String

func (s AttachVpnGatewayOutput) String() string

String returns the string representation

type AttachVpnGatewayRequest

type AttachVpnGatewayRequest struct {
	*aws.Request
	Input *AttachVpnGatewayInput
	Copy  func(*AttachVpnGatewayInput) AttachVpnGatewayRequest
}

AttachVpnGatewayRequest is the request type for the AttachVpnGateway API operation.

func (AttachVpnGatewayRequest) Send

Send marshals and sends the AttachVpnGateway API request.

type AttachVpnGatewayResponse added in v0.9.0

type AttachVpnGatewayResponse struct {
	*AttachVpnGatewayOutput
	// contains filtered or unexported fields
}

AttachVpnGatewayResponse is the response type for the AttachVpnGateway API operation.

func (*AttachVpnGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *AttachVpnGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AttachVpnGateway request.

type AttachmentStatus

type AttachmentStatus string
const (
	AttachmentStatusAttaching AttachmentStatus = "attaching"
	AttachmentStatusAttached  AttachmentStatus = "attached"
	AttachmentStatusDetaching AttachmentStatus = "detaching"
	AttachmentStatusDetached  AttachmentStatus = "detached"
)

Enum values for AttachmentStatus

func (AttachmentStatus) MarshalValue added in v0.3.0

func (enum AttachmentStatus) MarshalValue() (string, error)

func (AttachmentStatus) MarshalValueBuf added in v0.3.0

func (enum AttachmentStatus) MarshalValueBuf(b []byte) ([]byte, error)

type AttributeBooleanValue

type AttributeBooleanValue struct {

	// The attribute value. The valid values are true or false.
	Value *bool `locationName:"value" type:"boolean"`
	// contains filtered or unexported fields
}

Describes a value for a resource attribute that is a Boolean value.

func (AttributeBooleanValue) String

func (s AttributeBooleanValue) String() string

String returns the string representation

type AttributeValue

type AttributeValue struct {

	// The attribute value. The value is case-sensitive.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

Describes a value for a resource attribute that is a String.

func (AttributeValue) String

func (s AttributeValue) String() string

String returns the string representation

type AuthorizationRule added in v0.7.0

type AuthorizationRule struct {

	// Indicates whether the authorization rule grants access to all clients.
	AccessAll *bool `locationName:"accessAll" type:"boolean"`

	// The ID of the Client VPN endpoint with which the authorization rule is associated.
	ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`

	// A brief description of the authorization rule.
	Description *string `locationName:"description" type:"string"`

	// The IPv4 address range, in CIDR notation, of the network to which the authorization
	// rule applies.
	DestinationCidr *string `locationName:"destinationCidr" type:"string"`

	// The ID of the Active Directory group to which the authorization rule grants
	// access.
	GroupId *string `locationName:"groupId" type:"string"`

	// The current state of the authorization rule.
	Status *VpnAuthorizationRuleStatus `locationName:"status" type:"structure"`
	// contains filtered or unexported fields
}

Information about an authorization rule.

func (AuthorizationRule) String added in v0.7.0

func (s AuthorizationRule) String() string

String returns the string representation

type AuthorizeClientVpnIngressInput added in v0.7.0

type AuthorizeClientVpnIngressInput struct {

	// The ID of the group to grant access to, for example, the Active Directory
	// group or identity provider (IdP) group. Required if AuthorizeAllGroups is
	// false or not specified.
	AccessGroupId *string `type:"string"`

	// Indicates whether to grant access to all clients. Specify true to grant all
	// clients who successfully establish a VPN connection access to the network.
	// Must be set to true if AccessGroupId is not specified.
	AuthorizeAllGroups *bool `type:"boolean"`

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// The ID of the Client VPN endpoint.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// A brief description of the authorization rule.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IPv4 address range, in CIDR notation, of the network for which access
	// is being authorized.
	//
	// TargetNetworkCidr is a required field
	TargetNetworkCidr *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AuthorizeClientVpnIngressInput) String added in v0.7.0

String returns the string representation

func (*AuthorizeClientVpnIngressInput) Validate added in v0.7.0

func (s *AuthorizeClientVpnIngressInput) Validate() error

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

type AuthorizeClientVpnIngressOutput added in v0.7.0

type AuthorizeClientVpnIngressOutput struct {

	// The current state of the authorization rule.
	Status *VpnAuthorizationRuleStatus `locationName:"status" type:"structure"`
	// contains filtered or unexported fields
}

func (AuthorizeClientVpnIngressOutput) String added in v0.7.0

String returns the string representation

type AuthorizeClientVpnIngressRequest added in v0.7.0

type AuthorizeClientVpnIngressRequest struct {
	*aws.Request
	Input *AuthorizeClientVpnIngressInput
	Copy  func(*AuthorizeClientVpnIngressInput) AuthorizeClientVpnIngressRequest
}

AuthorizeClientVpnIngressRequest is the request type for the AuthorizeClientVpnIngress API operation.

func (AuthorizeClientVpnIngressRequest) Send added in v0.7.0

Send marshals and sends the AuthorizeClientVpnIngress API request.

type AuthorizeClientVpnIngressResponse added in v0.9.0

type AuthorizeClientVpnIngressResponse struct {
	*AuthorizeClientVpnIngressOutput
	// contains filtered or unexported fields
}

AuthorizeClientVpnIngressResponse is the response type for the AuthorizeClientVpnIngress API operation.

func (*AuthorizeClientVpnIngressResponse) SDKResponseMetdata added in v0.9.0

func (r *AuthorizeClientVpnIngressResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AuthorizeClientVpnIngress request.

type AuthorizeSecurityGroupEgressInput

type AuthorizeSecurityGroupEgressInput struct {

	// Not supported. Use a set of IP permissions to specify the CIDR.
	CidrIp *string `locationName:"cidrIp" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Not supported. Use a set of IP permissions to specify the port.
	FromPort *int64 `locationName:"fromPort" type:"integer"`

	// The ID of the security group.
	//
	// GroupId is a required field
	GroupId *string `locationName:"groupId" type:"string" required:"true"`

	// The sets of IP permissions. You can't specify a destination security group
	// and a CIDR IP address range in the same set of permissions.
	IpPermissions []IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`

	// Not supported. Use a set of IP permissions to specify the protocol name or
	// number.
	IpProtocol *string `locationName:"ipProtocol" type:"string"`

	// Not supported. Use a set of IP permissions to specify a destination security
	// group.
	SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`

	// Not supported. Use a set of IP permissions to specify a destination security
	// group.
	SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`

	// Not supported. Use a set of IP permissions to specify the port.
	ToPort *int64 `locationName:"toPort" type:"integer"`
	// contains filtered or unexported fields
}

func (AuthorizeSecurityGroupEgressInput) String

String returns the string representation

func (*AuthorizeSecurityGroupEgressInput) Validate

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

type AuthorizeSecurityGroupEgressOutput

type AuthorizeSecurityGroupEgressOutput struct {
	// contains filtered or unexported fields
}

func (AuthorizeSecurityGroupEgressOutput) String

String returns the string representation

type AuthorizeSecurityGroupEgressRequest

type AuthorizeSecurityGroupEgressRequest struct {
	*aws.Request
	Input *AuthorizeSecurityGroupEgressInput
	Copy  func(*AuthorizeSecurityGroupEgressInput) AuthorizeSecurityGroupEgressRequest
}

AuthorizeSecurityGroupEgressRequest is the request type for the AuthorizeSecurityGroupEgress API operation.

func (AuthorizeSecurityGroupEgressRequest) Send

Send marshals and sends the AuthorizeSecurityGroupEgress API request.

type AuthorizeSecurityGroupEgressResponse added in v0.9.0

type AuthorizeSecurityGroupEgressResponse struct {
	*AuthorizeSecurityGroupEgressOutput
	// contains filtered or unexported fields
}

AuthorizeSecurityGroupEgressResponse is the response type for the AuthorizeSecurityGroupEgress API operation.

func (*AuthorizeSecurityGroupEgressResponse) SDKResponseMetdata added in v0.9.0

func (r *AuthorizeSecurityGroupEgressResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AuthorizeSecurityGroupEgress request.

type AuthorizeSecurityGroupIngressInput

type AuthorizeSecurityGroupIngressInput struct {

	// The IPv4 address range, in CIDR format. You can't specify this parameter
	// when specifying a source security group. To specify an IPv6 address range,
	// use a set of IP permissions.
	//
	// Alternatively, use a set of IP permissions to specify multiple rules and
	// a description for the rule.
	CidrIp *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The start of port range for the TCP and UDP protocols, or an ICMP type number.
	// For the ICMP type number, use -1 to specify all types. If you specify all
	// ICMP types, you must specify all codes.
	//
	// Alternatively, use a set of IP permissions to specify multiple rules and
	// a description for the rule.
	FromPort *int64 `type:"integer"`

	// The ID of the security group. You must specify either the security group
	// ID or the security group name in the request. For security groups in a nondefault
	// VPC, you must specify the security group ID.
	GroupId *string `type:"string"`

	// [EC2-Classic, default VPC] The name of the security group. You must specify
	// either the security group ID or the security group name in the request.
	GroupName *string `type:"string"`

	// The sets of IP permissions.
	IpPermissions []IpPermission `locationNameList:"item" type:"list"`

	// The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
	// To specify icmpv6, use a set of IP permissions.
	//
	// [VPC only] Use -1 to specify all protocols. If you specify -1 or a protocol
	// other than tcp, udp, or icmp, traffic on all ports is allowed, regardless
	// of any ports you specify.
	//
	// Alternatively, use a set of IP permissions to specify multiple rules and
	// a description for the rule.
	IpProtocol *string `type:"string"`

	// [EC2-Classic, default VPC] The name of the source security group. You can't
	// specify this parameter in combination with the following parameters: the
	// CIDR IP address range, the start of the port range, the IP protocol, and
	// the end of the port range. Creates rules that grant full ICMP, UDP, and TCP
	// access. To create a rule with a specific IP protocol and port range, use
	// a set of IP permissions instead. For EC2-VPC, the source security group must
	// be in the same VPC.
	SourceSecurityGroupName *string `type:"string"`

	// [nondefault VPC] The AWS account ID for the source security group, if the
	// source security group is in a different account. You can't specify this parameter
	// in combination with the following parameters: the CIDR IP address range,
	// the IP protocol, the start of the port range, and the end of the port range.
	// Creates rules that grant full ICMP, UDP, and TCP access. To create a rule
	// with a specific IP protocol and port range, use a set of IP permissions instead.
	SourceSecurityGroupOwnerId *string `type:"string"`

	// The end of port range for the TCP and UDP protocols, or an ICMP code number.
	// For the ICMP code number, use -1 to specify all codes. If you specify all
	// ICMP types, you must specify all codes.
	//
	// Alternatively, use a set of IP permissions to specify multiple rules and
	// a description for the rule.
	ToPort *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (AuthorizeSecurityGroupIngressInput) String

String returns the string representation

type AuthorizeSecurityGroupIngressOutput

type AuthorizeSecurityGroupIngressOutput struct {
	// contains filtered or unexported fields
}

func (AuthorizeSecurityGroupIngressOutput) String

String returns the string representation

type AuthorizeSecurityGroupIngressRequest

type AuthorizeSecurityGroupIngressRequest struct {
	*aws.Request
	Input *AuthorizeSecurityGroupIngressInput
	Copy  func(*AuthorizeSecurityGroupIngressInput) AuthorizeSecurityGroupIngressRequest
}

AuthorizeSecurityGroupIngressRequest is the request type for the AuthorizeSecurityGroupIngress API operation.

func (AuthorizeSecurityGroupIngressRequest) Send

Send marshals and sends the AuthorizeSecurityGroupIngress API request.

type AuthorizeSecurityGroupIngressResponse added in v0.9.0

type AuthorizeSecurityGroupIngressResponse struct {
	*AuthorizeSecurityGroupIngressOutput
	// contains filtered or unexported fields
}

AuthorizeSecurityGroupIngressResponse is the response type for the AuthorizeSecurityGroupIngress API operation.

func (*AuthorizeSecurityGroupIngressResponse) SDKResponseMetdata added in v0.9.0

func (r *AuthorizeSecurityGroupIngressResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AuthorizeSecurityGroupIngress request.

type AutoAcceptSharedAttachmentsValue added in v0.6.0

type AutoAcceptSharedAttachmentsValue string
const (
	AutoAcceptSharedAttachmentsValueEnable  AutoAcceptSharedAttachmentsValue = "enable"
	AutoAcceptSharedAttachmentsValueDisable AutoAcceptSharedAttachmentsValue = "disable"
)

Enum values for AutoAcceptSharedAttachmentsValue

func (AutoAcceptSharedAttachmentsValue) MarshalValue added in v0.6.0

func (enum AutoAcceptSharedAttachmentsValue) MarshalValue() (string, error)

func (AutoAcceptSharedAttachmentsValue) MarshalValueBuf added in v0.6.0

func (enum AutoAcceptSharedAttachmentsValue) MarshalValueBuf(b []byte) ([]byte, error)

type AutoPlacement

type AutoPlacement string
const (
	AutoPlacementOn  AutoPlacement = "on"
	AutoPlacementOff AutoPlacement = "off"
)

Enum values for AutoPlacement

func (AutoPlacement) MarshalValue added in v0.3.0

func (enum AutoPlacement) MarshalValue() (string, error)

func (AutoPlacement) MarshalValueBuf added in v0.3.0

func (enum AutoPlacement) MarshalValueBuf(b []byte) ([]byte, error)

type AvailabilityZone

type AvailabilityZone struct {

	// For Availability Zones, this parameter has the same value as the Region name.
	//
	// For Local Zones, the name of the associated group, for example us-west-2-lax-1.
	GroupName *string `locationName:"groupName" type:"string"`

	// Any messages about the Zone.
	Messages []AvailabilityZoneMessage `locationName:"messageSet" locationNameList:"item" type:"list"`

	// The name of the location from which the address is advertised.
	NetworkBorderGroup *string `locationName:"networkBorderGroup" type:"string"`

	// For Availability Zones, this parameter always has the value of opt-in-not-required.
	//
	// For Local Zones, this parameter is the opt in status. The possible values
	// are opted-in, and not-opted-in.
	OptInStatus AvailabilityZoneOptInStatus `locationName:"optInStatus" type:"string" enum:"true"`

	// The ID of the zone that handles some of the Local Zone control plane operations,
	// such as API calls.
	ParentZoneId *string `locationName:"parentZoneId" type:"string"`

	// The name of the zone that handles some of the Local Zone control plane operations,
	// such as API calls.
	ParentZoneName *string `locationName:"parentZoneName" type:"string"`

	// The name of the Region.
	RegionName *string `locationName:"regionName" type:"string"`

	// The state of the Zone.
	State AvailabilityZoneState `locationName:"zoneState" type:"string" enum:"true"`

	// The ID of the Zone.
	ZoneId *string `locationName:"zoneId" type:"string"`

	// The name of the Zone.
	ZoneName *string `locationName:"zoneName" type:"string"`

	// The type of zone. The valid values are availability-zone and local-zone.
	ZoneType *string `locationName:"zoneType" type:"string"`
	// contains filtered or unexported fields
}

Describes a Zone.

func (AvailabilityZone) String

func (s AvailabilityZone) String() string

String returns the string representation

type AvailabilityZoneMessage

type AvailabilityZoneMessage struct {

	// The message about the Zone.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes a message about a Zone.

func (AvailabilityZoneMessage) String

func (s AvailabilityZoneMessage) String() string

String returns the string representation

type AvailabilityZoneOptInStatus added in v0.18.0

type AvailabilityZoneOptInStatus string
const (
	AvailabilityZoneOptInStatusOptInNotRequired AvailabilityZoneOptInStatus = "opt-in-not-required"
	AvailabilityZoneOptInStatusOptedIn          AvailabilityZoneOptInStatus = "opted-in"
	AvailabilityZoneOptInStatusNotOptedIn       AvailabilityZoneOptInStatus = "not-opted-in"
)

Enum values for AvailabilityZoneOptInStatus

func (AvailabilityZoneOptInStatus) MarshalValue added in v0.18.0

func (enum AvailabilityZoneOptInStatus) MarshalValue() (string, error)

func (AvailabilityZoneOptInStatus) MarshalValueBuf added in v0.18.0

func (enum AvailabilityZoneOptInStatus) MarshalValueBuf(b []byte) ([]byte, error)

type AvailabilityZoneState

type AvailabilityZoneState string
const (
	AvailabilityZoneStateAvailable   AvailabilityZoneState = "available"
	AvailabilityZoneStateInformation AvailabilityZoneState = "information"
	AvailabilityZoneStateImpaired    AvailabilityZoneState = "impaired"
	AvailabilityZoneStateUnavailable AvailabilityZoneState = "unavailable"
)

Enum values for AvailabilityZoneState

func (AvailabilityZoneState) MarshalValue added in v0.3.0

func (enum AvailabilityZoneState) MarshalValue() (string, error)

func (AvailabilityZoneState) MarshalValueBuf added in v0.3.0

func (enum AvailabilityZoneState) MarshalValueBuf(b []byte) ([]byte, error)

type AvailableCapacity

type AvailableCapacity struct {

	// The number of instances that can be launched onto the Dedicated Host depending
	// on the host's available capacity. For Dedicated Hosts that support multiple
	// instance types, this parameter represents the number of instances for each
	// instance size that is supported on the host.
	AvailableInstanceCapacity []InstanceCapacity `locationName:"availableInstanceCapacity" locationNameList:"item" type:"list"`

	// The number of vCPUs available for launching instances onto the Dedicated
	// Host.
	AvailableVCpus *int64 `locationName:"availableVCpus" type:"integer"`
	// contains filtered or unexported fields
}

The capacity information for instances that can be launched onto the Dedicated Host.

func (AvailableCapacity) String

func (s AvailableCapacity) String() string

String returns the string representation

type BatchState

type BatchState string
const (
	BatchStateSubmitted            BatchState = "submitted"
	BatchStateActive               BatchState = "active"
	BatchStateCancelled            BatchState = "cancelled"
	BatchStateFailed               BatchState = "failed"
	BatchStateCancelledRunning     BatchState = "cancelled_running"
	BatchStateCancelledTerminating BatchState = "cancelled_terminating"
	BatchStateModifying            BatchState = "modifying"
)

Enum values for BatchState

func (BatchState) MarshalValue added in v0.3.0

func (enum BatchState) MarshalValue() (string, error)

func (BatchState) MarshalValueBuf added in v0.3.0

func (enum BatchState) MarshalValueBuf(b []byte) ([]byte, error)

type BlobAttributeValue

type BlobAttributeValue struct {

	// Value is automatically base64 encoded/decoded by the SDK.
	Value []byte `locationName:"value" type:"blob"`
	// contains filtered or unexported fields
}

func (BlobAttributeValue) String

func (s BlobAttributeValue) String() string

String returns the string representation

type BlockDeviceMapping

type BlockDeviceMapping struct {

	// The device name (for example, /dev/sdh or xvdh).
	DeviceName *string `locationName:"deviceName" type:"string"`

	// Parameters used to automatically set up EBS volumes when the instance is
	// launched.
	Ebs *EbsBlockDevice `locationName:"ebs" type:"structure"`

	// Suppresses the specified device included in the block device mapping of the
	// AMI.
	NoDevice *string `locationName:"noDevice" type:"string"`

	// The virtual device name (ephemeralN). Instance store volumes are numbered
	// starting from 0. An instance type with 2 available instance store volumes
	// can specify mappings for ephemeral0 and ephemeral1. The number of available
	// instance store volumes depends on the instance type. After you connect to
	// the instance, you must mount the volume.
	//
	// NVMe instance store volumes are automatically enumerated and assigned a device
	// name. Including them in your block device mapping has no effect.
	//
	// Constraints: For M3 instances, you must specify instance store volumes in
	// the block device mapping for the instance. When you launch an M3 instance,
	// we ignore any instance store volumes specified in the block device mapping
	// for the AMI.
	VirtualName *string `locationName:"virtualName" type:"string"`
	// contains filtered or unexported fields
}

Describes a block device mapping.

func (BlockDeviceMapping) String

func (s BlockDeviceMapping) String() string

String returns the string representation

type BundleInstanceInput

type BundleInstanceInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the instance to bundle.
	//
	// Type: String
	//
	// Default: None
	//
	// Required: Yes
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`

	// The bucket in which to store the AMI. You can specify a bucket that you already
	// own or a new bucket that Amazon EC2 creates on your behalf. If you specify
	// a bucket that belongs to someone else, Amazon EC2 returns an error.
	//
	// Storage is a required field
	Storage *Storage `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for BundleInstance.

func (BundleInstanceInput) String

func (s BundleInstanceInput) String() string

String returns the string representation

func (*BundleInstanceInput) Validate

func (s *BundleInstanceInput) Validate() error

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

type BundleInstanceOutput

type BundleInstanceOutput struct {

	// Information about the bundle task.
	BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of BundleInstance.

func (BundleInstanceOutput) String

func (s BundleInstanceOutput) String() string

String returns the string representation

type BundleInstanceRequest

type BundleInstanceRequest struct {
	*aws.Request
	Input *BundleInstanceInput
	Copy  func(*BundleInstanceInput) BundleInstanceRequest
}

BundleInstanceRequest is the request type for the BundleInstance API operation.

func (BundleInstanceRequest) Send

Send marshals and sends the BundleInstance API request.

type BundleInstanceResponse added in v0.9.0

type BundleInstanceResponse struct {
	*BundleInstanceOutput
	// contains filtered or unexported fields
}

BundleInstanceResponse is the response type for the BundleInstance API operation.

func (*BundleInstanceResponse) SDKResponseMetdata added in v0.9.0

func (r *BundleInstanceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the BundleInstance request.

type BundleTask

type BundleTask struct {

	// The ID of the bundle task.
	BundleId *string `locationName:"bundleId" type:"string"`

	// If the task fails, a description of the error.
	BundleTaskError *BundleTaskError `locationName:"error" type:"structure"`

	// The ID of the instance associated with this bundle task.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The level of task completion, as a percent (for example, 20%).
	Progress *string `locationName:"progress" type:"string"`

	// The time this task started.
	StartTime *time.Time `locationName:"startTime" type:"timestamp"`

	// The state of the task.
	State BundleTaskState `locationName:"state" type:"string" enum:"true"`

	// The Amazon S3 storage locations.
	Storage *Storage `locationName:"storage" type:"structure"`

	// The time of the most recent update for the task.
	UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes a bundle task.

func (BundleTask) String

func (s BundleTask) String() string

String returns the string representation

type BundleTaskError

type BundleTaskError struct {

	// The error code.
	Code *string `locationName:"code" type:"string"`

	// The error message.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes an error for BundleInstance.

func (BundleTaskError) String

func (s BundleTaskError) String() string

String returns the string representation

type BundleTaskState

type BundleTaskState string
const (
	BundleTaskStatePending            BundleTaskState = "pending"
	BundleTaskStateWaitingForShutdown BundleTaskState = "waiting-for-shutdown"
	BundleTaskStateBundling           BundleTaskState = "bundling"
	BundleTaskStateStoring            BundleTaskState = "storing"
	BundleTaskStateCancelling         BundleTaskState = "cancelling"
	BundleTaskStateComplete           BundleTaskState = "complete"
	BundleTaskStateFailed             BundleTaskState = "failed"
)

Enum values for BundleTaskState

func (BundleTaskState) MarshalValue added in v0.3.0

func (enum BundleTaskState) MarshalValue() (string, error)

func (BundleTaskState) MarshalValueBuf added in v0.3.0

func (enum BundleTaskState) MarshalValueBuf(b []byte) ([]byte, error)

type ByoipCidr added in v0.6.0

type ByoipCidr struct {

	// The address range, in CIDR notation.
	Cidr *string `locationName:"cidr" type:"string"`

	// The description of the address range.
	Description *string `locationName:"description" type:"string"`

	// The state of the address pool.
	State ByoipCidrState `locationName:"state" type:"string" enum:"true"`

	// Upon success, contains the ID of the address pool. Otherwise, contains an
	// error message.
	StatusMessage *string `locationName:"statusMessage" type:"string"`
	// contains filtered or unexported fields
}

Information about an address range that is provisioned for use with your AWS resources through bring your own IP addresses (BYOIP).

func (ByoipCidr) String added in v0.6.0

func (s ByoipCidr) String() string

String returns the string representation

type ByoipCidrState added in v0.6.0

type ByoipCidrState string
const (
	ByoipCidrStateAdvertised                         ByoipCidrState = "advertised"
	ByoipCidrStateDeprovisioned                      ByoipCidrState = "deprovisioned"
	ByoipCidrStateFailedDeprovision                  ByoipCidrState = "failed-deprovision"
	ByoipCidrStateFailedProvision                    ByoipCidrState = "failed-provision"
	ByoipCidrStatePendingDeprovision                 ByoipCidrState = "pending-deprovision"
	ByoipCidrStatePendingProvision                   ByoipCidrState = "pending-provision"
	ByoipCidrStateProvisioned                        ByoipCidrState = "provisioned"
	ByoipCidrStateProvisionedNotPubliclyAdvertisable ByoipCidrState = "provisioned-not-publicly-advertisable"
)

Enum values for ByoipCidrState

func (ByoipCidrState) MarshalValue added in v0.6.0

func (enum ByoipCidrState) MarshalValue() (string, error)

func (ByoipCidrState) MarshalValueBuf added in v0.6.0

func (enum ByoipCidrState) MarshalValueBuf(b []byte) ([]byte, error)

type CancelBatchErrorCode

type CancelBatchErrorCode string
const (
	CancelBatchErrorCodeFleetRequestIdDoesNotExist        CancelBatchErrorCode = "fleetRequestIdDoesNotExist"
	CancelBatchErrorCodeFleetRequestIdMalformed           CancelBatchErrorCode = "fleetRequestIdMalformed"
	CancelBatchErrorCodeFleetRequestNotInCancellableState CancelBatchErrorCode = "fleetRequestNotInCancellableState"
	CancelBatchErrorCodeUnexpectedError                   CancelBatchErrorCode = "unexpectedError"
)

Enum values for CancelBatchErrorCode

func (CancelBatchErrorCode) MarshalValue added in v0.3.0

func (enum CancelBatchErrorCode) MarshalValue() (string, error)

func (CancelBatchErrorCode) MarshalValueBuf added in v0.3.0

func (enum CancelBatchErrorCode) MarshalValueBuf(b []byte) ([]byte, error)

type CancelBundleTaskInput

type CancelBundleTaskInput struct {

	// The ID of the bundle task.
	//
	// BundleId is a required field
	BundleId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`
	// contains filtered or unexported fields
}

Contains the parameters for CancelBundleTask.

func (CancelBundleTaskInput) String

func (s CancelBundleTaskInput) String() string

String returns the string representation

func (*CancelBundleTaskInput) Validate

func (s *CancelBundleTaskInput) Validate() error

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

type CancelBundleTaskOutput

type CancelBundleTaskOutput struct {

	// Information about the bundle task.
	BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of CancelBundleTask.

func (CancelBundleTaskOutput) String

func (s CancelBundleTaskOutput) String() string

String returns the string representation

type CancelBundleTaskRequest

type CancelBundleTaskRequest struct {
	*aws.Request
	Input *CancelBundleTaskInput
	Copy  func(*CancelBundleTaskInput) CancelBundleTaskRequest
}

CancelBundleTaskRequest is the request type for the CancelBundleTask API operation.

func (CancelBundleTaskRequest) Send

Send marshals and sends the CancelBundleTask API request.

type CancelBundleTaskResponse added in v0.9.0

type CancelBundleTaskResponse struct {
	*CancelBundleTaskOutput
	// contains filtered or unexported fields
}

CancelBundleTaskResponse is the response type for the CancelBundleTask API operation.

func (*CancelBundleTaskResponse) SDKResponseMetdata added in v0.9.0

func (r *CancelBundleTaskResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CancelBundleTask request.

type CancelCapacityReservationInput added in v0.6.0

type CancelCapacityReservationInput struct {

	// The ID of the Capacity Reservation to be cancelled.
	//
	// CapacityReservationId is a required field
	CapacityReservationId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (CancelCapacityReservationInput) String added in v0.6.0

String returns the string representation

func (*CancelCapacityReservationInput) Validate added in v0.6.0

func (s *CancelCapacityReservationInput) Validate() error

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

type CancelCapacityReservationOutput added in v0.6.0

type CancelCapacityReservationOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (CancelCapacityReservationOutput) String added in v0.6.0

String returns the string representation

type CancelCapacityReservationRequest added in v0.6.0

type CancelCapacityReservationRequest struct {
	*aws.Request
	Input *CancelCapacityReservationInput
	Copy  func(*CancelCapacityReservationInput) CancelCapacityReservationRequest
}

CancelCapacityReservationRequest is the request type for the CancelCapacityReservation API operation.

func (CancelCapacityReservationRequest) Send added in v0.6.0

Send marshals and sends the CancelCapacityReservation API request.

type CancelCapacityReservationResponse added in v0.9.0

type CancelCapacityReservationResponse struct {
	*CancelCapacityReservationOutput
	// contains filtered or unexported fields
}

CancelCapacityReservationResponse is the response type for the CancelCapacityReservation API operation.

func (*CancelCapacityReservationResponse) SDKResponseMetdata added in v0.9.0

func (r *CancelCapacityReservationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CancelCapacityReservation request.

type CancelConversionTaskInput

type CancelConversionTaskInput struct {

	// The ID of the conversion task.
	//
	// ConversionTaskId is a required field
	ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The reason for canceling the conversion task.
	ReasonMessage *string `locationName:"reasonMessage" type:"string"`
	// contains filtered or unexported fields
}

func (CancelConversionTaskInput) String

func (s CancelConversionTaskInput) String() string

String returns the string representation

func (*CancelConversionTaskInput) Validate

func (s *CancelConversionTaskInput) Validate() error

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

type CancelConversionTaskOutput

type CancelConversionTaskOutput struct {
	// contains filtered or unexported fields
}

func (CancelConversionTaskOutput) String

String returns the string representation

type CancelConversionTaskRequest

type CancelConversionTaskRequest struct {
	*aws.Request
	Input *CancelConversionTaskInput
	Copy  func(*CancelConversionTaskInput) CancelConversionTaskRequest
}

CancelConversionTaskRequest is the request type for the CancelConversionTask API operation.

func (CancelConversionTaskRequest) Send

Send marshals and sends the CancelConversionTask API request.

type CancelConversionTaskResponse added in v0.9.0

type CancelConversionTaskResponse struct {
	*CancelConversionTaskOutput
	// contains filtered or unexported fields
}

CancelConversionTaskResponse is the response type for the CancelConversionTask API operation.

func (*CancelConversionTaskResponse) SDKResponseMetdata added in v0.9.0

func (r *CancelConversionTaskResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CancelConversionTask request.

type CancelExportTaskInput

type CancelExportTaskInput struct {

	// The ID of the export task. This is the ID returned by CreateInstanceExportTask.
	//
	// ExportTaskId is a required field
	ExportTaskId *string `locationName:"exportTaskId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CancelExportTaskInput) String

func (s CancelExportTaskInput) String() string

String returns the string representation

func (*CancelExportTaskInput) Validate

func (s *CancelExportTaskInput) Validate() error

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

type CancelExportTaskOutput

type CancelExportTaskOutput struct {
	// contains filtered or unexported fields
}

func (CancelExportTaskOutput) String

func (s CancelExportTaskOutput) String() string

String returns the string representation

type CancelExportTaskRequest

type CancelExportTaskRequest struct {
	*aws.Request
	Input *CancelExportTaskInput
	Copy  func(*CancelExportTaskInput) CancelExportTaskRequest
}

CancelExportTaskRequest is the request type for the CancelExportTask API operation.

func (CancelExportTaskRequest) Send

Send marshals and sends the CancelExportTask API request.

type CancelExportTaskResponse added in v0.9.0

type CancelExportTaskResponse struct {
	*CancelExportTaskOutput
	// contains filtered or unexported fields
}

CancelExportTaskResponse is the response type for the CancelExportTask API operation.

func (*CancelExportTaskResponse) SDKResponseMetdata added in v0.9.0

func (r *CancelExportTaskResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CancelExportTask request.

type CancelImportTaskInput

type CancelImportTaskInput struct {

	// The reason for canceling the task.
	CancelReason *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the import image or import snapshot task to be canceled.
	ImportTaskId *string `type:"string"`
	// contains filtered or unexported fields
}

func (CancelImportTaskInput) String

func (s CancelImportTaskInput) String() string

String returns the string representation

type CancelImportTaskOutput

type CancelImportTaskOutput struct {

	// The ID of the task being canceled.
	ImportTaskId *string `locationName:"importTaskId" type:"string"`

	// The current state of the task being canceled.
	PreviousState *string `locationName:"previousState" type:"string"`

	// The current state of the task being canceled.
	State *string `locationName:"state" type:"string"`
	// contains filtered or unexported fields
}

func (CancelImportTaskOutput) String

func (s CancelImportTaskOutput) String() string

String returns the string representation

type CancelImportTaskRequest

type CancelImportTaskRequest struct {
	*aws.Request
	Input *CancelImportTaskInput
	Copy  func(*CancelImportTaskInput) CancelImportTaskRequest
}

CancelImportTaskRequest is the request type for the CancelImportTask API operation.

func (CancelImportTaskRequest) Send

Send marshals and sends the CancelImportTask API request.

type CancelImportTaskResponse added in v0.9.0

type CancelImportTaskResponse struct {
	*CancelImportTaskOutput
	// contains filtered or unexported fields
}

CancelImportTaskResponse is the response type for the CancelImportTask API operation.

func (*CancelImportTaskResponse) SDKResponseMetdata added in v0.9.0

func (r *CancelImportTaskResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CancelImportTask request.

type CancelReservedInstancesListingInput

type CancelReservedInstancesListingInput struct {

	// The ID of the Reserved Instance listing.
	//
	// ReservedInstancesListingId is a required field
	ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for CancelReservedInstancesListing.

func (CancelReservedInstancesListingInput) String

String returns the string representation

func (*CancelReservedInstancesListingInput) Validate

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

type CancelReservedInstancesListingOutput

type CancelReservedInstancesListingOutput struct {

	// The Reserved Instance listing.
	ReservedInstancesListings []ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of CancelReservedInstancesListing.

func (CancelReservedInstancesListingOutput) String

String returns the string representation

type CancelReservedInstancesListingRequest

type CancelReservedInstancesListingRequest struct {
	*aws.Request
	Input *CancelReservedInstancesListingInput
	Copy  func(*CancelReservedInstancesListingInput) CancelReservedInstancesListingRequest
}

CancelReservedInstancesListingRequest is the request type for the CancelReservedInstancesListing API operation.

func (CancelReservedInstancesListingRequest) Send

Send marshals and sends the CancelReservedInstancesListing API request.

type CancelReservedInstancesListingResponse added in v0.9.0

type CancelReservedInstancesListingResponse struct {
	*CancelReservedInstancesListingOutput
	// contains filtered or unexported fields
}

CancelReservedInstancesListingResponse is the response type for the CancelReservedInstancesListing API operation.

func (*CancelReservedInstancesListingResponse) SDKResponseMetdata added in v0.9.0

func (r *CancelReservedInstancesListingResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CancelReservedInstancesListing request.

type CancelSpotFleetRequestsError

type CancelSpotFleetRequestsError struct {

	// The error code.
	Code CancelBatchErrorCode `locationName:"code" type:"string" enum:"true"`

	// The description for the error code.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes a Spot Fleet error.

func (CancelSpotFleetRequestsError) String

String returns the string representation

type CancelSpotFleetRequestsErrorItem

type CancelSpotFleetRequestsErrorItem struct {

	// The error.
	Error *CancelSpotFleetRequestsError `locationName:"error" type:"structure"`

	// The ID of the Spot Fleet request.
	SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
	// contains filtered or unexported fields
}

Describes a Spot Fleet request that was not successfully canceled.

func (CancelSpotFleetRequestsErrorItem) String

String returns the string representation

type CancelSpotFleetRequestsInput

type CancelSpotFleetRequestsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The IDs of the Spot Fleet requests.
	//
	// SpotFleetRequestIds is a required field
	SpotFleetRequestIds []string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list" required:"true"`

	// Indicates whether to terminate instances for a Spot Fleet request if it is
	// canceled successfully.
	//
	// TerminateInstances is a required field
	TerminateInstances *bool `locationName:"terminateInstances" type:"boolean" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for CancelSpotFleetRequests.

func (CancelSpotFleetRequestsInput) String

String returns the string representation

func (*CancelSpotFleetRequestsInput) Validate

func (s *CancelSpotFleetRequestsInput) Validate() error

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

type CancelSpotFleetRequestsOutput

type CancelSpotFleetRequestsOutput struct {

	// Information about the Spot Fleet requests that are successfully canceled.
	SuccessfulFleetRequests []CancelSpotFleetRequestsSuccessItem `locationName:"successfulFleetRequestSet" locationNameList:"item" type:"list"`

	// Information about the Spot Fleet requests that are not successfully canceled.
	UnsuccessfulFleetRequests []CancelSpotFleetRequestsErrorItem `locationName:"unsuccessfulFleetRequestSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of CancelSpotFleetRequests.

func (CancelSpotFleetRequestsOutput) String

String returns the string representation

type CancelSpotFleetRequestsRequest

type CancelSpotFleetRequestsRequest struct {
	*aws.Request
	Input *CancelSpotFleetRequestsInput
	Copy  func(*CancelSpotFleetRequestsInput) CancelSpotFleetRequestsRequest
}

CancelSpotFleetRequestsRequest is the request type for the CancelSpotFleetRequests API operation.

func (CancelSpotFleetRequestsRequest) Send

Send marshals and sends the CancelSpotFleetRequests API request.

type CancelSpotFleetRequestsResponse added in v0.9.0

type CancelSpotFleetRequestsResponse struct {
	*CancelSpotFleetRequestsOutput
	// contains filtered or unexported fields
}

CancelSpotFleetRequestsResponse is the response type for the CancelSpotFleetRequests API operation.

func (*CancelSpotFleetRequestsResponse) SDKResponseMetdata added in v0.9.0

func (r *CancelSpotFleetRequestsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CancelSpotFleetRequests request.

type CancelSpotFleetRequestsSuccessItem

type CancelSpotFleetRequestsSuccessItem struct {

	// The current state of the Spot Fleet request.
	CurrentSpotFleetRequestState BatchState `locationName:"currentSpotFleetRequestState" type:"string" enum:"true"`

	// The previous state of the Spot Fleet request.
	PreviousSpotFleetRequestState BatchState `locationName:"previousSpotFleetRequestState" type:"string" enum:"true"`

	// The ID of the Spot Fleet request.
	SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
	// contains filtered or unexported fields
}

Describes a Spot Fleet request that was successfully canceled.

func (CancelSpotFleetRequestsSuccessItem) String

String returns the string representation

type CancelSpotInstanceRequestState

type CancelSpotInstanceRequestState string
const (
	CancelSpotInstanceRequestStateActive    CancelSpotInstanceRequestState = "active"
	CancelSpotInstanceRequestStateOpen      CancelSpotInstanceRequestState = "open"
	CancelSpotInstanceRequestStateClosed    CancelSpotInstanceRequestState = "closed"
	CancelSpotInstanceRequestStateCancelled CancelSpotInstanceRequestState = "cancelled"
	CancelSpotInstanceRequestStateCompleted CancelSpotInstanceRequestState = "completed"
)

Enum values for CancelSpotInstanceRequestState

func (CancelSpotInstanceRequestState) MarshalValue added in v0.3.0

func (enum CancelSpotInstanceRequestState) MarshalValue() (string, error)

func (CancelSpotInstanceRequestState) MarshalValueBuf added in v0.3.0

func (enum CancelSpotInstanceRequestState) MarshalValueBuf(b []byte) ([]byte, error)

type CancelSpotInstanceRequestsInput

type CancelSpotInstanceRequestsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more Spot Instance request IDs.
	//
	// SpotInstanceRequestIds is a required field
	SpotInstanceRequestIds []string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for CancelSpotInstanceRequests.

func (CancelSpotInstanceRequestsInput) String

String returns the string representation

func (*CancelSpotInstanceRequestsInput) Validate

func (s *CancelSpotInstanceRequestsInput) Validate() error

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

type CancelSpotInstanceRequestsOutput

type CancelSpotInstanceRequestsOutput struct {

	// One or more Spot Instance requests.
	CancelledSpotInstanceRequests []CancelledSpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of CancelSpotInstanceRequests.

func (CancelSpotInstanceRequestsOutput) String

String returns the string representation

type CancelSpotInstanceRequestsRequest

type CancelSpotInstanceRequestsRequest struct {
	*aws.Request
	Input *CancelSpotInstanceRequestsInput
	Copy  func(*CancelSpotInstanceRequestsInput) CancelSpotInstanceRequestsRequest
}

CancelSpotInstanceRequestsRequest is the request type for the CancelSpotInstanceRequests API operation.

func (CancelSpotInstanceRequestsRequest) Send

Send marshals and sends the CancelSpotInstanceRequests API request.

type CancelSpotInstanceRequestsResponse added in v0.9.0

type CancelSpotInstanceRequestsResponse struct {
	*CancelSpotInstanceRequestsOutput
	// contains filtered or unexported fields
}

CancelSpotInstanceRequestsResponse is the response type for the CancelSpotInstanceRequests API operation.

func (*CancelSpotInstanceRequestsResponse) SDKResponseMetdata added in v0.9.0

func (r *CancelSpotInstanceRequestsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CancelSpotInstanceRequests request.

type CancelledSpotInstanceRequest

type CancelledSpotInstanceRequest struct {

	// The ID of the Spot Instance request.
	SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`

	// The state of the Spot Instance request.
	State CancelSpotInstanceRequestState `locationName:"state" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a request to cancel a Spot Instance.

func (CancelledSpotInstanceRequest) String

String returns the string representation

type CapacityReservation added in v0.6.0

type CapacityReservation struct {

	// The Availability Zone in which the capacity is reserved.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The Availability Zone ID of the Capacity Reservation.
	AvailabilityZoneId *string `locationName:"availabilityZoneId" type:"string"`

	// The remaining capacity. Indicates the number of instances that can be launched
	// in the Capacity Reservation.
	AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`

	// The Amazon Resource Name (ARN) of the Capacity Reservation.
	CapacityReservationArn *string `locationName:"capacityReservationArn" type:"string"`

	// The ID of the Capacity Reservation.
	CapacityReservationId *string `locationName:"capacityReservationId" type:"string"`

	// The date and time at which the Capacity Reservation was created.
	CreateDate *time.Time `locationName:"createDate" type:"timestamp"`

	// Indicates whether the Capacity Reservation supports EBS-optimized instances.
	// This optimization provides dedicated throughput to Amazon EBS and an optimized
	// configuration stack to provide optimal I/O performance. This optimization
	// isn't available with all instance types. Additional usage charges apply when
	// using an EBS- optimized instance.
	EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`

	// The date and time at which the Capacity Reservation expires. When a Capacity
	// Reservation expires, the reserved capacity is released and you can no longer
	// launch instances into it. The Capacity Reservation's state changes to expired
	// when it reaches its end date and time.
	EndDate *time.Time `locationName:"endDate" type:"timestamp"`

	// Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
	// can have one of the following end types:
	//
	//    * unlimited - The Capacity Reservation remains active until you explicitly
	//    cancel it.
	//
	//    * limited - The Capacity Reservation expires automatically at a specified
	//    date and time.
	EndDateType EndDateType `locationName:"endDateType" type:"string" enum:"true"`

	// Indicates whether the Capacity Reservation supports instances with temporary,
	// block-level storage.
	EphemeralStorage *bool `locationName:"ephemeralStorage" type:"boolean"`

	// Indicates the type of instance launches that the Capacity Reservation accepts.
	// The options include:
	//
	//    * open - The Capacity Reservation accepts all instances that have matching
	//    attributes (instance type, platform, and Availability Zone). Instances
	//    that have matching attributes launch into the Capacity Reservation automatically
	//    without specifying any additional parameters.
	//
	//    * targeted - The Capacity Reservation only accepts instances that have
	//    matching attributes (instance type, platform, and Availability Zone),
	//    and explicitly target the Capacity Reservation. This ensures that only
	//    permitted instances can use the reserved capacity.
	InstanceMatchCriteria InstanceMatchCriteria `locationName:"instanceMatchCriteria" type:"string" enum:"true"`

	// The type of operating system for which the Capacity Reservation reserves
	// capacity.
	InstancePlatform CapacityReservationInstancePlatform `locationName:"instancePlatform" type:"string" enum:"true"`

	// The type of instance for which the Capacity Reservation reserves capacity.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// The ID of the AWS account that owns the Capacity Reservation.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The current state of the Capacity Reservation. A Capacity Reservation can
	// be in one of the following states:
	//
	//    * active - The Capacity Reservation is active and the capacity is available
	//    for your use.
	//
	//    * expired - The Capacity Reservation expired automatically at the date
	//    and time specified in your request. The reserved capacity is no longer
	//    available for your use.
	//
	//    * cancelled - The Capacity Reservation was manually cancelled. The reserved
	//    capacity is no longer available for your use.
	//
	//    * pending - The Capacity Reservation request was successful but the capacity
	//    provisioning is still pending.
	//
	//    * failed - The Capacity Reservation request has failed. A request might
	//    fail due to invalid request parameters, capacity constraints, or instance
	//    limit constraints. Failed requests are retained for 60 minutes.
	State CapacityReservationState `locationName:"state" type:"string" enum:"true"`

	// Any tags assigned to the Capacity Reservation.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// Indicates the tenancy of the Capacity Reservation. A Capacity Reservation
	// can have one of the following tenancy settings:
	//
	//    * default - The Capacity Reservation is created on hardware that is shared
	//    with other AWS accounts.
	//
	//    * dedicated - The Capacity Reservation is created on single-tenant hardware
	//    that is dedicated to a single AWS account.
	Tenancy CapacityReservationTenancy `locationName:"tenancy" type:"string" enum:"true"`

	// The total number of instances for which the Capacity Reservation reserves
	// capacity.
	TotalInstanceCount *int64 `locationName:"totalInstanceCount" type:"integer"`
	// contains filtered or unexported fields
}

Describes a Capacity Reservation.

func (CapacityReservation) String added in v0.6.0

func (s CapacityReservation) String() string

String returns the string representation

type CapacityReservationInstancePlatform added in v0.6.0

type CapacityReservationInstancePlatform string
const (
	CapacityReservationInstancePlatformLinuxUnix                      CapacityReservationInstancePlatform = "Linux/UNIX"
	CapacityReservationInstancePlatformRedHatEnterpriseLinux          CapacityReservationInstancePlatform = "Red Hat Enterprise Linux"
	CapacityReservationInstancePlatformSuselinux                      CapacityReservationInstancePlatform = "SUSE Linux"
	CapacityReservationInstancePlatformWindows                        CapacityReservationInstancePlatform = "Windows"
	CapacityReservationInstancePlatformWindowswithSqlserver           CapacityReservationInstancePlatform = "Windows with SQL Server"
	CapacityReservationInstancePlatformWindowswithSqlserverEnterprise CapacityReservationInstancePlatform = "Windows with SQL Server Enterprise"
	CapacityReservationInstancePlatformWindowswithSqlserverStandard   CapacityReservationInstancePlatform = "Windows with SQL Server Standard"
	CapacityReservationInstancePlatformWindowswithSqlserverWeb        CapacityReservationInstancePlatform = "Windows with SQL Server Web"
	CapacityReservationInstancePlatformLinuxwithSqlserverStandard     CapacityReservationInstancePlatform = "Linux with SQL Server Standard"
	CapacityReservationInstancePlatformLinuxwithSqlserverWeb          CapacityReservationInstancePlatform = "Linux with SQL Server Web"
	CapacityReservationInstancePlatformLinuxwithSqlserverEnterprise   CapacityReservationInstancePlatform = "Linux with SQL Server Enterprise"
)

Enum values for CapacityReservationInstancePlatform

func (CapacityReservationInstancePlatform) MarshalValue added in v0.6.0

func (enum CapacityReservationInstancePlatform) MarshalValue() (string, error)

func (CapacityReservationInstancePlatform) MarshalValueBuf added in v0.6.0

func (enum CapacityReservationInstancePlatform) MarshalValueBuf(b []byte) ([]byte, error)

type CapacityReservationOptions added in v0.19.0

type CapacityReservationOptions struct {

	// Indicates whether to use unused Capacity Reservations for fulfilling On-Demand
	// capacity.
	//
	// If you specify use-capacity-reservations-first, the fleet uses unused Capacity
	// Reservations to fulfill On-Demand capacity up to the target On-Demand capacity.
	// If multiple instance pools have unused Capacity Reservations, the On-Demand
	// allocation strategy (lowest-price or prioritized) is applied. If the number
	// of unused Capacity Reservations is less than the On-Demand target capacity,
	// the remaining On-Demand target capacity is launched according to the On-Demand
	// allocation strategy (lowest-price or prioritized).
	//
	// If you do not specify a value, the fleet fulfils the On-Demand capacity according
	// to the chosen On-Demand allocation strategy.
	UsageStrategy FleetCapacityReservationUsageStrategy `locationName:"usageStrategy" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.

This strategy can only be used if the EC2 Fleet is of type instant.

For more information about Capacity Reservations, see On-Demand Capacity Reservations (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html) in the Amazon Elastic Compute Cloud User Guide. For examples of using Capacity Reservations in an EC2 Fleet, see EC2 Fleet Example Configurations (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-examples.html) in the Amazon Elastic Compute Cloud User Guide.

func (CapacityReservationOptions) String added in v0.19.0

String returns the string representation

type CapacityReservationOptionsRequest added in v0.19.0

type CapacityReservationOptionsRequest struct {

	// Indicates whether to use unused Capacity Reservations for fulfilling On-Demand
	// capacity.
	//
	// If you specify use-capacity-reservations-first, the fleet uses unused Capacity
	// Reservations to fulfill On-Demand capacity up to the target On-Demand capacity.
	// If multiple instance pools have unused Capacity Reservations, the On-Demand
	// allocation strategy (lowest-price or prioritized) is applied. If the number
	// of unused Capacity Reservations is less than the On-Demand target capacity,
	// the remaining On-Demand target capacity is launched according to the On-Demand
	// allocation strategy (lowest-price or prioritized).
	//
	// If you do not specify a value, the fleet fulfils the On-Demand capacity according
	// to the chosen On-Demand allocation strategy.
	UsageStrategy FleetCapacityReservationUsageStrategy `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.

This strategy can only be used if the EC2 Fleet is of type instant.

For more information about Capacity Reservations, see On-Demand Capacity Reservations (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html) in the Amazon Elastic Compute Cloud User Guide. For examples of using Capacity Reservations in an EC2 Fleet, see EC2 Fleet Example Configurations (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-examples.html) in the Amazon Elastic Compute Cloud User Guide.

func (CapacityReservationOptionsRequest) String added in v0.19.0

String returns the string representation

type CapacityReservationPreference added in v0.6.0

type CapacityReservationPreference string
const (
	CapacityReservationPreferenceOpen CapacityReservationPreference = "open"
	CapacityReservationPreferenceNone CapacityReservationPreference = "none"
)

Enum values for CapacityReservationPreference

func (CapacityReservationPreference) MarshalValue added in v0.6.0

func (enum CapacityReservationPreference) MarshalValue() (string, error)

func (CapacityReservationPreference) MarshalValueBuf added in v0.6.0

func (enum CapacityReservationPreference) MarshalValueBuf(b []byte) ([]byte, error)

type CapacityReservationSpecification added in v0.6.0

type CapacityReservationSpecification struct {

	// Indicates the instance's Capacity Reservation preferences. Possible preferences
	// include:
	//
	//    * open - The instance can run in any open Capacity Reservation that has
	//    matching attributes (instance type, platform, Availability Zone).
	//
	//    * none - The instance avoids running in a Capacity Reservation even if
	//    one is available. The instance runs as an On-Demand Instance.
	//
	// When CapacityReservationPreference is not specified, it defaults to open.
	CapacityReservationPreference CapacityReservationPreference `type:"string" enum:"true"`

	// Information about the target Capacity Reservation.
	CapacityReservationTarget *CapacityReservationTarget `type:"structure"`
	// contains filtered or unexported fields
}

Describes an instance's Capacity Reservation targeting option. You can specify only one parameter at a time. If you specify CapacityReservationPreference and CapacityReservationTarget, the request fails.

Use the CapacityReservationPreference parameter to configure the instance to run as an On-Demand Instance or to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). Use the CapacityReservationTarget parameter to explicitly target a specific Capacity Reservation.

func (CapacityReservationSpecification) String added in v0.6.0

String returns the string representation

type CapacityReservationSpecificationResponse added in v0.6.0

type CapacityReservationSpecificationResponse struct {

	// Describes the instance's Capacity Reservation preferences. Possible preferences
	// include:
	//
	//    * open - The instance can run in any open Capacity Reservation that has
	//    matching attributes (instance type, platform, Availability Zone).
	//
	//    * none - The instance avoids running in a Capacity Reservation even if
	//    one is available. The instance runs in On-Demand capacity.
	CapacityReservationPreference CapacityReservationPreference `locationName:"capacityReservationPreference" type:"string" enum:"true"`

	// Information about the targeted Capacity Reservation.
	CapacityReservationTarget *CapacityReservationTargetResponse `locationName:"capacityReservationTarget" type:"structure"`
	// contains filtered or unexported fields
}

Describes the instance's Capacity Reservation targeting preferences. The action returns the capacityReservationPreference response element if the instance is configured to run in On-Demand capacity, or if it is configured in run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). The action returns the capacityReservationTarget response element if the instance explicily targets a specific Capacity Reservation.

func (CapacityReservationSpecificationResponse) String added in v0.6.0

String returns the string representation

type CapacityReservationState added in v0.6.0

type CapacityReservationState string
const (
	CapacityReservationStateActive    CapacityReservationState = "active"
	CapacityReservationStateExpired   CapacityReservationState = "expired"
	CapacityReservationStateCancelled CapacityReservationState = "cancelled"
	CapacityReservationStatePending   CapacityReservationState = "pending"
	CapacityReservationStateFailed    CapacityReservationState = "failed"
)

Enum values for CapacityReservationState

func (CapacityReservationState) MarshalValue added in v0.6.0

func (enum CapacityReservationState) MarshalValue() (string, error)

func (CapacityReservationState) MarshalValueBuf added in v0.6.0

func (enum CapacityReservationState) MarshalValueBuf(b []byte) ([]byte, error)

type CapacityReservationTarget added in v0.6.0

type CapacityReservationTarget struct {

	// The ID of the Capacity Reservation.
	CapacityReservationId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a target Capacity Reservation.

func (CapacityReservationTarget) String added in v0.6.0

func (s CapacityReservationTarget) String() string

String returns the string representation

type CapacityReservationTargetResponse added in v0.6.0

type CapacityReservationTargetResponse struct {

	// The ID of the Capacity Reservation.
	CapacityReservationId *string `locationName:"capacityReservationId" type:"string"`
	// contains filtered or unexported fields
}

Describes a target Capacity Reservation.

func (CapacityReservationTargetResponse) String added in v0.6.0

String returns the string representation

type CapacityReservationTenancy added in v0.6.0

type CapacityReservationTenancy string
const (
	CapacityReservationTenancyDefault   CapacityReservationTenancy = "default"
	CapacityReservationTenancyDedicated CapacityReservationTenancy = "dedicated"
)

Enum values for CapacityReservationTenancy

func (CapacityReservationTenancy) MarshalValue added in v0.6.0

func (enum CapacityReservationTenancy) MarshalValue() (string, error)

func (CapacityReservationTenancy) MarshalValueBuf added in v0.6.0

func (enum CapacityReservationTenancy) MarshalValueBuf(b []byte) ([]byte, error)

type CertificateAuthentication added in v0.7.0

type CertificateAuthentication struct {

	// The ARN of the client certificate.
	ClientRootCertificateChain *string `locationName:"clientRootCertificateChain" type:"string"`
	// contains filtered or unexported fields
}

Information about the client certificate used for authentication.

func (CertificateAuthentication) String added in v0.7.0

func (s CertificateAuthentication) String() string

String returns the string representation

type CertificateAuthenticationRequest added in v0.7.0

type CertificateAuthenticationRequest struct {

	// The ARN of the client certificate. The certificate must be signed by a certificate
	// authority (CA) and it must be provisioned in AWS Certificate Manager (ACM).
	ClientRootCertificateChainArn *string `type:"string"`
	// contains filtered or unexported fields
}

Information about the client certificate to be used for authentication.

func (CertificateAuthenticationRequest) String added in v0.7.0

String returns the string representation

type CertificateRevocationListStatus added in v0.9.0

type CertificateRevocationListStatus struct {

	// The state of the client certificate revocation list.
	Code CertificateRevocationListStatusCode `locationName:"code" type:"string" enum:"true"`

	// A message about the status of the client certificate revocation list, if
	// applicable.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes the state of a client certificate revocation list.

func (CertificateRevocationListStatus) String added in v0.9.0

String returns the string representation

type CertificateRevocationListStatusCode added in v0.9.0

type CertificateRevocationListStatusCode string
const (
	CertificateRevocationListStatusCodePending CertificateRevocationListStatusCode = "pending"
	CertificateRevocationListStatusCodeActive  CertificateRevocationListStatusCode = "active"
)

Enum values for CertificateRevocationListStatusCode

func (CertificateRevocationListStatusCode) MarshalValue added in v0.9.0

func (enum CertificateRevocationListStatusCode) MarshalValue() (string, error)

func (CertificateRevocationListStatusCode) MarshalValueBuf added in v0.9.0

func (enum CertificateRevocationListStatusCode) MarshalValueBuf(b []byte) ([]byte, error)

type CidrAuthorizationContext added in v0.6.0

type CidrAuthorizationContext struct {

	// The plain-text authorization message for the prefix and account.
	//
	// Message is a required field
	Message *string `type:"string" required:"true"`

	// The signed authorization message for the prefix and account.
	//
	// Signature is a required field
	Signature *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Provides authorization for Amazon to bring a specific IP address range to a specific AWS account using bring your own IP addresses (BYOIP). For more information, see Prepare to Bring Your Address Range to Your AWS Account (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#prepare-for-byoip) in the Amazon Elastic Compute Cloud User Guide.

func (CidrAuthorizationContext) String added in v0.6.0

func (s CidrAuthorizationContext) String() string

String returns the string representation

func (*CidrAuthorizationContext) Validate added in v0.6.0

func (s *CidrAuthorizationContext) Validate() error

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

type CidrBlock

type CidrBlock struct {

	// The IPv4 CIDR block.
	CidrBlock *string `locationName:"cidrBlock" type:"string"`
	// contains filtered or unexported fields
}

Describes an IPv4 CIDR block.

func (CidrBlock) String

func (s CidrBlock) String() string

String returns the string representation

type ClassicLinkDnsSupport

type ClassicLinkDnsSupport struct {

	// Indicates whether ClassicLink DNS support is enabled for the VPC.
	ClassicLinkDnsSupported *bool `locationName:"classicLinkDnsSupported" type:"boolean"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes the ClassicLink DNS support status of a VPC.

func (ClassicLinkDnsSupport) String

func (s ClassicLinkDnsSupport) String() string

String returns the string representation

type ClassicLinkInstance

type ClassicLinkInstance struct {

	// A list of security groups.
	Groups []GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// Any tags assigned to the instance.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a linked EC2-Classic instance.

func (ClassicLinkInstance) String

func (s ClassicLinkInstance) String() string

String returns the string representation

type ClassicLoadBalancer added in v0.2.0

type ClassicLoadBalancer struct {

	// The name of the load balancer.
	Name *string `locationName:"name" type:"string"`
	// contains filtered or unexported fields
}

Describes a Classic Load Balancer.

func (ClassicLoadBalancer) String added in v0.2.0

func (s ClassicLoadBalancer) String() string

String returns the string representation

type ClassicLoadBalancersConfig added in v0.2.0

type ClassicLoadBalancersConfig struct {

	// One or more Classic Load Balancers.
	ClassicLoadBalancers []ClassicLoadBalancer `locationName:"classicLoadBalancers" locationNameList:"item" min:"1" type:"list"`
	// contains filtered or unexported fields
}

Describes the Classic Load Balancers to attach to a Spot Fleet. Spot Fleet registers the running Spot Instances with these Classic Load Balancers.

func (ClassicLoadBalancersConfig) String added in v0.2.0

String returns the string representation

func (*ClassicLoadBalancersConfig) Validate added in v0.2.0

func (s *ClassicLoadBalancersConfig) Validate() error

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

type Client added in v0.9.0

type Client struct {
	*aws.Client
}

Client provides the API operation methods for making requests to Amazon EC2. See this package's package overview docs for details on the service.

The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

// Create a client from just a config.
svc := ec2.New(myConfig)

func (*Client) AcceptReservedInstancesExchangeQuoteRequest added in v0.9.0

func (c *Client) AcceptReservedInstancesExchangeQuoteRequest(input *AcceptReservedInstancesExchangeQuoteInput) AcceptReservedInstancesExchangeQuoteRequest

AcceptReservedInstancesExchangeQuoteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.

// Example sending a request using AcceptReservedInstancesExchangeQuoteRequest.
req := client.AcceptReservedInstancesExchangeQuoteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuote

func (*Client) AcceptTransitGatewayPeeringAttachmentRequest added in v0.18.0

func (c *Client) AcceptTransitGatewayPeeringAttachmentRequest(input *AcceptTransitGatewayPeeringAttachmentInput) AcceptTransitGatewayPeeringAttachmentRequest

AcceptTransitGatewayPeeringAttachmentRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Accepts a transit gateway peering attachment request. The peering attachment must be in the pendingAcceptance state.

// Example sending a request using AcceptTransitGatewayPeeringAttachmentRequest.
req := client.AcceptTransitGatewayPeeringAttachmentRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptTransitGatewayPeeringAttachment

func (*Client) AcceptTransitGatewayVpcAttachmentRequest added in v0.9.0

func (c *Client) AcceptTransitGatewayVpcAttachmentRequest(input *AcceptTransitGatewayVpcAttachmentInput) AcceptTransitGatewayVpcAttachmentRequest

AcceptTransitGatewayVpcAttachmentRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Accepts a request to attach a VPC to a transit gateway.

The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment to reject a VPC attachment request.

// Example sending a request using AcceptTransitGatewayVpcAttachmentRequest.
req := client.AcceptTransitGatewayVpcAttachmentRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptTransitGatewayVpcAttachment

func (*Client) AcceptVpcEndpointConnectionsRequest added in v0.9.0

func (c *Client) AcceptVpcEndpointConnectionsRequest(input *AcceptVpcEndpointConnectionsInput) AcceptVpcEndpointConnectionsRequest

AcceptVpcEndpointConnectionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Accepts one or more interface VPC endpoint connection requests to your VPC endpoint service.

// Example sending a request using AcceptVpcEndpointConnectionsRequest.
req := client.AcceptVpcEndpointConnectionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcEndpointConnections

func (*Client) AcceptVpcPeeringConnectionRequest added in v0.9.0

func (c *Client) AcceptVpcPeeringConnectionRequest(input *AcceptVpcPeeringConnectionInput) AcceptVpcPeeringConnectionRequest

AcceptVpcPeeringConnectionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the pending-acceptance state, and you must be the owner of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding VPC peering connection requests.

For an inter-Region VPC peering connection request, you must accept the VPC peering connection in the Region of the accepter VPC.

// Example sending a request using AcceptVpcPeeringConnectionRequest.
req := client.AcceptVpcPeeringConnectionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnection

func (*Client) AdvertiseByoipCidrRequest added in v0.9.0

func (c *Client) AdvertiseByoipCidrRequest(input *AdvertiseByoipCidrInput) AdvertiseByoipCidrRequest

AdvertiseByoipCidrRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Advertises an IPv4 or IPv6 address range that is provisioned for use with your AWS resources through bring your own IP addresses (BYOIP).

You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

We recommend that you stop advertising the BYOIP CIDR from other locations when you advertise it from AWS. To minimize down time, you can configure your AWS resources to use an address from a BYOIP CIDR before it is advertised, and then simultaneously stop advertising it from the current location and start advertising it through AWS.

It can take a few minutes before traffic to the specified addresses starts routing to AWS because of BGP propagation delays.

To stop advertising the BYOIP CIDR, use WithdrawByoipCidr.

// Example sending a request using AdvertiseByoipCidrRequest.
req := client.AdvertiseByoipCidrRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AdvertiseByoipCidr

func (*Client) AllocateAddressRequest added in v0.9.0

func (c *Client) AllocateAddressRequest(input *AllocateAddressInput) AllocateAddressRequest

AllocateAddressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Allocates an Elastic IP address to your AWS account. After you allocate the Elastic IP address you can associate it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address pool and can be allocated to a different AWS account.

You can allocate an Elastic IP address from an address pool owned by AWS or from an address pool created from a public IPv4 address range that you have brought to AWS for use with your AWS resources using bring your own IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) in the Amazon Elastic Compute Cloud User Guide.

[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an Elastic IP address that you released after it is allocated to another AWS account. You cannot recover an Elastic IP address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.

An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate 5 Elastic IP addresses for EC2-Classic per Region and 5 Elastic IP addresses for EC2-VPC per Region.

For more information, see Elastic IP Addresses (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using AllocateAddressRequest.
req := client.AllocateAddressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddress

Example (Shared00)

To allocate an Elastic IP address for EC2-VPC

This example allocates an Elastic IP address to use with an instance in a VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AllocateAddressInput{
		Domain: ec2.DomainTypeVpc,
	}

	req := svc.AllocateAddressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To allocate an Elastic IP address for EC2-Classic

This example allocates an Elastic IP address to use with an instance in EC2-Classic.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AllocateAddressInput{}

	req := svc.AllocateAddressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) AllocateHostsRequest added in v0.9.0

func (c *Client) AllocateHostsRequest(input *AllocateHostsInput) AllocateHostsRequest

AllocateHostsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Allocates a Dedicated Host to your account. At a minimum, specify the supported instance type or instance family, the Availability Zone in which to allocate the host, and the number of hosts to allocate.

// Example sending a request using AllocateHostsRequest.
req := client.AllocateHostsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHosts

func (*Client) ApplySecurityGroupsToClientVpnTargetNetworkRequest added in v0.9.0

func (c *Client) ApplySecurityGroupsToClientVpnTargetNetworkRequest(input *ApplySecurityGroupsToClientVpnTargetNetworkInput) ApplySecurityGroupsToClientVpnTargetNetworkRequest

ApplySecurityGroupsToClientVpnTargetNetworkRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Applies a security group to the association between the target network and the Client VPN endpoint. This action replaces the existing security groups with the specified security groups.

// Example sending a request using ApplySecurityGroupsToClientVpnTargetNetworkRequest.
req := client.ApplySecurityGroupsToClientVpnTargetNetworkRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ApplySecurityGroupsToClientVpnTargetNetwork

func (*Client) AssignIpv6AddressesRequest added in v0.9.0

func (c *Client) AssignIpv6AddressesRequest(input *AssignIpv6AddressesInput) AssignIpv6AddressesRequest

AssignIpv6AddressesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Assigns one or more IPv6 addresses to the specified network interface. You can specify one or more specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet's IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) in the Amazon Elastic Compute Cloud User Guide.

You must specify either the IPv6 addresses or the IPv6 address count in the request.

// Example sending a request using AssignIpv6AddressesRequest.
req := client.AssignIpv6AddressesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6Addresses

func (*Client) AssignPrivateIpAddressesRequest added in v0.9.0

func (c *Client) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInput) AssignPrivateIpAddressesRequest

AssignPrivateIpAddressesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Assigns one or more secondary private IP addresses to the specified network interface.

You can specify one or more specific secondary IP addresses, or you can specify the number of secondary IP addresses to be automatically assigned within the subnet's CIDR block range. The number of secondary IP addresses that you can assign to an instance varies by instance type. For information about instance types, see Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the Amazon Elastic Compute Cloud User Guide. For more information about Elastic IP addresses, see Elastic IP Addresses (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) in the Amazon Elastic Compute Cloud User Guide.

When you move a secondary private IP address to another network interface, any Elastic IP address that is associated with the IP address is also moved.

Remapping an IP address is an asynchronous operation. When you move an IP address from one network interface to another, check network/interfaces/macs/mac/local-ipv4s in the instance metadata to confirm that the remapping is complete.

You must specify either the IP addresses or the IP address count in the request.

// Example sending a request using AssignPrivateIpAddressesRequest.
req := client.AssignPrivateIpAddressesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddresses

Example (Shared00)

To assign a specific secondary private IP address to an interface

This example assigns the specified secondary private IP address to the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AssignPrivateIpAddressesInput{
		NetworkInterfaceId: aws.String("eni-e5aa89a3"),
		PrivateIpAddresses: []string{
			"10.0.0.82",
		},
	}

	req := svc.AssignPrivateIpAddressesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To assign secondary private IP addresses that Amazon EC2 selects to an interface

This example assigns two secondary private IP addresses to the specified network interface. Amazon EC2 automatically assigns these IP addresses from the available IP addresses in the CIDR block range of the subnet the network interface is associated with.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AssignPrivateIpAddressesInput{
		NetworkInterfaceId:             aws.String("eni-e5aa89a3"),
		SecondaryPrivateIpAddressCount: aws.Int64(2),
	}

	req := svc.AssignPrivateIpAddressesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) AssociateAddressRequest added in v0.9.0

func (c *Client) AssociateAddressRequest(input *AssociateAddressInput) AssociateAddressRequest

AssociateAddressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Associates an Elastic IP address with an instance or a network interface. Before you can use an Elastic IP address, you must allocate it to your account.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) in the Amazon Elastic Compute Cloud User Guide.

[EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is already associated with a different instance, it is disassociated from that instance and associated with the specified instance. If you associate an Elastic IP address with an instance that has an existing Elastic IP address, the existing address is disassociated from the instance, but remains allocated to your account.

[VPC in an EC2-Classic account] If you don't specify a private IP address, the Elastic IP address is associated with the primary IP address. If the Elastic IP address is already associated with a different instance or a network interface, you get an error unless you allow reassociation. You cannot associate an Elastic IP address with an instance or network interface that has an existing Elastic IP address.

You cannot associate an Elastic IP address with an interface in a different network border group.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error, and you may be charged for each time the Elastic IP address is remapped to the same instance. For more information, see the Elastic IP Addresses section of Amazon EC2 Pricing (http://aws.amazon.com/ec2/pricing/).

// Example sending a request using AssociateAddressRequest.
req := client.AssociateAddressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddress

Example (Shared00)

To associate an Elastic IP address in EC2-VPC

This example associates the specified Elastic IP address with the specified instance in a VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AssociateAddressInput{
		AllocationId: aws.String("eipalloc-64d5890a"),
		InstanceId:   aws.String("i-0b263919b6498b123"),
	}

	req := svc.AssociateAddressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To associate an Elastic IP address with a network interface

This example associates the specified Elastic IP address with the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AssociateAddressInput{
		AllocationId:       aws.String("eipalloc-64d5890a"),
		NetworkInterfaceId: aws.String("eni-1a2b3c4d"),
	}

	req := svc.AssociateAddressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared02)

To associate an Elastic IP address in EC2-Classic

This example associates an Elastic IP address with an instance in EC2-Classic.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AssociateAddressInput{
		InstanceId: aws.String("i-07ffe74c7330ebf53"),
		PublicIp:   aws.String("198.51.100.0"),
	}

	req := svc.AssociateAddressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) AssociateClientVpnTargetNetworkRequest added in v0.9.0

func (c *Client) AssociateClientVpnTargetNetworkRequest(input *AssociateClientVpnTargetNetworkInput) AssociateClientVpnTargetNetworkRequest

AssociateClientVpnTargetNetworkRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Associates a target network with a Client VPN endpoint. A target network is a subnet in a VPC. You can associate multiple subnets from the same VPC with a Client VPN endpoint. You can associate only one subnet in each Availability Zone. We recommend that you associate at least two subnets to provide Availability Zone redundancy.

If you specified a VPC when you created the Client VPN endpoint or if you have previous subnet associations, the specified subnet must be in the same VPC. To specify a subnet that's in a different VPC, you must first modify the Client VPN endpoint (ModifyClientVpnEndpoint) and change the VPC that's associated with it.

// Example sending a request using AssociateClientVpnTargetNetworkRequest.
req := client.AssociateClientVpnTargetNetworkRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateClientVpnTargetNetwork

func (*Client) AssociateDhcpOptionsRequest added in v0.9.0

func (c *Client) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) AssociateDhcpOptionsRequest

AssociateDhcpOptionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.

After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

For more information, see DHCP Options Sets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using AssociateDhcpOptionsRequest.
req := client.AssociateDhcpOptionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptions

Example (Shared00)

To associate a DHCP options set with a VPC

This example associates the specified DHCP options set with the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AssociateDhcpOptionsInput{
		DhcpOptionsId: aws.String("dopt-d9070ebb"),
		VpcId:         aws.String("vpc-a01106c2"),
	}

	req := svc.AssociateDhcpOptionsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To associate the default DHCP options set with a VPC

This example associates the default DHCP options set with the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AssociateDhcpOptionsInput{
		DhcpOptionsId: aws.String("default"),
		VpcId:         aws.String("vpc-a01106c2"),
	}

	req := svc.AssociateDhcpOptionsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) AssociateIamInstanceProfileRequest added in v0.9.0

func (c *Client) AssociateIamInstanceProfileRequest(input *AssociateIamInstanceProfileInput) AssociateIamInstanceProfileRequest

AssociateIamInstanceProfileRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.

// Example sending a request using AssociateIamInstanceProfileRequest.
req := client.AssociateIamInstanceProfileRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfile

Example (Shared00)

To associate an IAM instance profile with an instance

This example associates an IAM instance profile named admin-role with the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AssociateIamInstanceProfileInput{
		IamInstanceProfile: &ec2.IamInstanceProfileSpecification{
			Name: aws.String("admin-role"),
		},
		InstanceId: aws.String("i-123456789abcde123"),
	}

	req := svc.AssociateIamInstanceProfileRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) AssociateRouteTableRequest added in v0.9.0

func (c *Client) AssociateRouteTableRequest(input *AssociateRouteTableInput) AssociateRouteTableRequest

AssociateRouteTableRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC. This association causes traffic from the subnet or gateway to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table later. A route table can be associated with multiple subnets.

For more information, see Route Tables (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using AssociateRouteTableRequest.
req := client.AssociateRouteTableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTable

Example (Shared00)

To associate a route table with a subnet

This example associates the specified route table with the specified subnet.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AssociateRouteTableInput{
		RouteTableId: aws.String("rtb-22574640"),
		SubnetId:     aws.String("subnet-9d4a7b6"),
	}

	req := svc.AssociateRouteTableRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) AssociateSubnetCidrBlockRequest added in v0.9.0

func (c *Client) AssociateSubnetCidrBlockRequest(input *AssociateSubnetCidrBlockInput) AssociateSubnetCidrBlockRequest

AssociateSubnetCidrBlockRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet. An IPv6 CIDR block must have a prefix length of /64.

// Example sending a request using AssociateSubnetCidrBlockRequest.
req := client.AssociateSubnetCidrBlockRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlock

func (*Client) AssociateTransitGatewayMulticastDomainRequest added in v0.18.0

func (c *Client) AssociateTransitGatewayMulticastDomainRequest(input *AssociateTransitGatewayMulticastDomainInput) AssociateTransitGatewayMulticastDomainRequest

AssociateTransitGatewayMulticastDomainRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain.

The transit gateway attachment must be in the available state before you can add a resource. Use DescribeTransitGatewayAttachments (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayAttachments.html) to see the state of the attachment.

// Example sending a request using AssociateTransitGatewayMulticastDomainRequest.
req := client.AssociateTransitGatewayMulticastDomainRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateTransitGatewayMulticastDomain

func (*Client) AssociateTransitGatewayRouteTableRequest added in v0.9.0

func (c *Client) AssociateTransitGatewayRouteTableRequest(input *AssociateTransitGatewayRouteTableInput) AssociateTransitGatewayRouteTableRequest

AssociateTransitGatewayRouteTableRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Associates the specified attachment with the specified transit gateway route table. You can associate only one route table with an attachment.

// Example sending a request using AssociateTransitGatewayRouteTableRequest.
req := client.AssociateTransitGatewayRouteTableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateTransitGatewayRouteTable

func (*Client) AssociateVpcCidrBlockRequest added in v0.9.0

func (c *Client) AssociateVpcCidrBlockRequest(input *AssociateVpcCidrBlockInput) AssociateVpcCidrBlockRequest

AssociateVpcCidrBlockRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html)). The IPv6 CIDR block size is fixed at /56.

You must specify one of the following in the request: an IPv4 CIDR block, an IPv6 pool, or an Amazon-provided IPv6 CIDR block.

For more information about associating CIDR blocks with your VPC and applicable restrictions, see VPC and Subnet Sizing (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html#VPC_Sizing) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using AssociateVpcCidrBlockRequest.
req := client.AssociateVpcCidrBlockRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlock

func (*Client) AttachClassicLinkVpcRequest added in v0.9.0

func (c *Client) AttachClassicLinkVpcRequest(input *AttachClassicLinkVpcInput) AttachClassicLinkVpcRequest

AttachClassicLinkVpcRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC's security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You can only link an instance that's in the running state. An instance is automatically unlinked from a VPC when it's stopped - you can link it to the VPC again when you restart it.

After you've linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again.

Linking your instance to a VPC is sometimes referred to as attaching your instance.

// Example sending a request using AttachClassicLinkVpcRequest.
req := client.AttachClassicLinkVpcRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpc

func (*Client) AttachInternetGatewayRequest added in v0.9.0

func (c *Client) AttachInternetGatewayRequest(input *AttachInternetGatewayInput) AttachInternetGatewayRequest

AttachInternetGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide (https://docs.aws.amazon.com/vpc/latest/userguide/).

// Example sending a request using AttachInternetGatewayRequest.
req := client.AttachInternetGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGateway

Example (Shared00)

To attach an Internet gateway to a VPC

This example attaches the specified Internet gateway to the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AttachInternetGatewayInput{
		InternetGatewayId: aws.String("igw-c0a643a9"),
		VpcId:             aws.String("vpc-a01106c2"),
	}

	req := svc.AttachInternetGatewayRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) AttachNetworkInterfaceRequest added in v0.9.0

func (c *Client) AttachNetworkInterfaceRequest(input *AttachNetworkInterfaceInput) AttachNetworkInterfaceRequest

AttachNetworkInterfaceRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Attaches a network interface to an instance.

// Example sending a request using AttachNetworkInterfaceRequest.
req := client.AttachNetworkInterfaceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterface

Example (Shared00)

To attach a network interface to an instance

This example attaches the specified network interface to the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AttachNetworkInterfaceInput{
		DeviceIndex:        aws.Int64(1),
		InstanceId:         aws.String("i-1234567890abcdef0"),
		NetworkInterfaceId: aws.String("eni-e5aa89a3"),
	}

	req := svc.AttachNetworkInterfaceRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) AttachVolumeRequest added in v0.9.0

func (c *Client) AttachVolumeRequest(input *AttachVolumeInput) AttachVolumeRequest

AttachVolumeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.

Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For more information, see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the Amazon Elastic Compute Cloud User Guide.

After you attach an EBS volume, you must make it available. For more information, see Making an EBS Volume Available For Use (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html).

If a volume has an AWS Marketplace product code:

  • The volume can be attached only to a stopped instance.

  • AWS Marketplace product codes are copied from the volume to the instance.

  • You must be subscribed to the product.

  • The instance type and operating system of the instance must support the product. For example, you can't detach a volume from a Windows instance and attach it to a Linux instance.

For more information, see Attaching Amazon EBS Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using AttachVolumeRequest.
req := client.AttachVolumeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolume

Example (Shared00)

To attach a volume to an instance

This example attaches a volume (“vol-1234567890abcdef0“) to an instance (“i-01474ef662b89480“) as “/dev/sdf“.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AttachVolumeInput{
		Device:     aws.String("/dev/sdf"),
		InstanceId: aws.String("i-01474ef662b89480"),
		VolumeId:   aws.String("vol-1234567890abcdef0"),
	}

	req := svc.AttachVolumeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) AttachVpnGatewayRequest added in v0.9.0

func (c *Client) AttachVpnGatewayRequest(input *AttachVpnGatewayInput) AttachVpnGatewayRequest

AttachVpnGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.

For more information, see AWS Site-to-Site VPN (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the AWS Site-to-Site VPN User Guide.

// Example sending a request using AttachVpnGatewayRequest.
req := client.AttachVpnGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGateway

func (*Client) AuthorizeClientVpnIngressRequest added in v0.9.0

func (c *Client) AuthorizeClientVpnIngressRequest(input *AuthorizeClientVpnIngressInput) AuthorizeClientVpnIngressRequest

AuthorizeClientVpnIngressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Adds an ingress authorization rule to a Client VPN endpoint. Ingress authorization rules act as firewall rules that grant access to networks. You must configure ingress authorization rules to enable clients to access resources in AWS or on-premises networks.

// Example sending a request using AuthorizeClientVpnIngressRequest.
req := client.AuthorizeClientVpnIngressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeClientVpnIngress

func (*Client) AuthorizeSecurityGroupEgressRequest added in v0.9.0

func (c *Client) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupEgressInput) AuthorizeSecurityGroupEgressRequest

AuthorizeSecurityGroupEgressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

[VPC only] Adds the specified egress rules to a security group for use with a VPC.

An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 CIDR address ranges, or to the instances associated with the specified destination security groups.

You specify a protocol for each rule (for example, TCP). For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 for the type or code to mean all types or all codes.

Rule changes are propagated to affected instances as quickly as possible. However, a small delay might occur.

For more information about VPC security group limits, see Amazon VPC Limits (https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html).

// Example sending a request using AuthorizeSecurityGroupEgressRequest.
req := client.AuthorizeSecurityGroupEgressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgress

Example (Shared00)

To add a rule that allows outbound traffic to a specific address range

This example adds a rule that grants access to the specified address ranges on TCP port 80.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AuthorizeSecurityGroupEgressInput{
		GroupId: aws.String("sg-1a2b3c4d"),
		IpPermissions: []ec2.IpPermission{
			{
				FromPort:   aws.Int64(80),
				IpProtocol: aws.String("tcp"),
				IpRanges: []ec2.IpRange{
					{
						CidrIp: aws.String("10.0.0.0/16"),
					},
				},
				ToPort: aws.Int64(80),
			},
		},
	}

	req := svc.AuthorizeSecurityGroupEgressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To add a rule that allows outbound traffic to a specific security group

This example adds a rule that grants access to the specified security group on TCP port 80.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AuthorizeSecurityGroupEgressInput{
		GroupId: aws.String("sg-1a2b3c4d"),
		IpPermissions: []ec2.IpPermission{
			{
				FromPort:   aws.Int64(80),
				IpProtocol: aws.String("tcp"),
				ToPort:     aws.Int64(80),
				UserIdGroupPairs: []ec2.UserIdGroupPair{
					{
						GroupId: aws.String("sg-4b51a32f"),
					},
				},
			},
		},
	}

	req := svc.AuthorizeSecurityGroupEgressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) AuthorizeSecurityGroupIngressRequest added in v0.9.0

func (c *Client) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroupIngressInput) AuthorizeSecurityGroupIngressRequest

AuthorizeSecurityGroupIngressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Adds the specified ingress rules to a security group.

An inbound rule permits instances to receive traffic from the specified IPv4 or IPv6 CIDR address ranges, or from the instances associated with the specified destination security groups.

You specify a protocol for each rule (for example, TCP). For TCP and UDP, you must also specify the destination port or port range. For ICMP/ICMPv6, you must also specify the ICMP/ICMPv6 type and code. You can use -1 to mean all types or all codes.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

For more information about VPC security group limits, see Amazon VPC Limits (https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html).

// Example sending a request using AuthorizeSecurityGroupIngressRequest.
req := client.AuthorizeSecurityGroupIngressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngress

Example (Shared00)

To add a rule that allows inbound SSH traffic from an IPv4 address range

This example enables inbound traffic on TCP port 22 (SSH). The rule includes a description to help you identify it later.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AuthorizeSecurityGroupIngressInput{
		GroupId: aws.String("sg-903004f8"),
		IpPermissions: []ec2.IpPermission{
			{
				FromPort:   aws.Int64(22),
				IpProtocol: aws.String("tcp"),
				IpRanges: []ec2.IpRange{
					{
						CidrIp:      aws.String("203.0.113.0/24"),
						Description: aws.String("SSH access from the LA office"),
					},
				},
				ToPort: aws.Int64(22),
			},
		},
	}

	req := svc.AuthorizeSecurityGroupIngressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To add a rule that allows inbound HTTP traffic from another security group

This example enables inbound traffic on TCP port 80 from the specified security group. The group must be in the same VPC or a peer VPC. Incoming traffic is allowed based on the private IP addresses of instances that are associated with the specified security group.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AuthorizeSecurityGroupIngressInput{
		GroupId: aws.String("sg-111aaa22"),
		IpPermissions: []ec2.IpPermission{
			{
				FromPort:   aws.Int64(80),
				IpProtocol: aws.String("tcp"),
				ToPort:     aws.Int64(80),
				UserIdGroupPairs: []ec2.UserIdGroupPair{
					{
						Description: aws.String("HTTP access from other instances"),
						GroupId:     aws.String("sg-1a2b3c4d"),
					},
				},
			},
		},
	}

	req := svc.AuthorizeSecurityGroupIngressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared02)

To add a rule that allows inbound RDP traffic from an IPv6 address range

This example adds an inbound rule that allows RDP traffic from the specified IPv6 address range. The rule includes a description to help you identify it later.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.AuthorizeSecurityGroupIngressInput{
		GroupId: aws.String("sg-123abc12 "),
		IpPermissions: []ec2.IpPermission{
			{
				FromPort:   aws.Int64(3389),
				IpProtocol: aws.String("tcp"),
				Ipv6Ranges: []ec2.Ipv6Range{
					{
						CidrIpv6:    aws.String("2001:db8:1234:1a00::/64"),
						Description: aws.String("RDP access from the NY office"),
					},
				},
				ToPort: aws.Int64(3389),
			},
		},
	}

	req := svc.AuthorizeSecurityGroupIngressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) BundleInstanceRequest added in v0.9.0

func (c *Client) BundleInstanceRequest(input *BundleInstanceInput) BundleInstanceRequest

BundleInstanceRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Bundles an Amazon instance store-backed Windows instance.

During bundling, only the root device volume (C:\) is bundled. Data on other instance store volumes is not preserved.

This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.

// Example sending a request using BundleInstanceRequest.
req := client.BundleInstanceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstance

func (*Client) CancelBundleTaskRequest added in v0.9.0

func (c *Client) CancelBundleTaskRequest(input *CancelBundleTaskInput) CancelBundleTaskRequest

CancelBundleTaskRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Cancels a bundling operation for an instance store-backed Windows instance.

// Example sending a request using CancelBundleTaskRequest.
req := client.CancelBundleTaskRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTask

func (*Client) CancelCapacityReservationRequest added in v0.9.0

func (c *Client) CancelCapacityReservationRequest(input *CancelCapacityReservationInput) CancelCapacityReservationRequest

CancelCapacityReservationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation's state to cancelled.

Instances running in the reserved capacity continue running until you stop them. Stopped instances that target the Capacity Reservation can no longer launch. Modify these instances to either target a different Capacity Reservation, launch On-Demand Instance capacity, or run in any open Capacity Reservation that has matching attributes and sufficient capacity.

// Example sending a request using CancelCapacityReservationRequest.
req := client.CancelCapacityReservationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelCapacityReservation

func (*Client) CancelConversionTaskRequest added in v0.9.0

func (c *Client) CancelConversionTaskRequest(input *CancelConversionTaskInput) CancelConversionTaskRequest

CancelConversionTaskRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.

For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI (https://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html).

// Example sending a request using CancelConversionTaskRequest.
req := client.CancelConversionTaskRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTask

func (*Client) CancelExportTaskRequest added in v0.9.0

func (c *Client) CancelExportTaskRequest(input *CancelExportTaskInput) CancelExportTaskRequest

CancelExportTaskRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.

// Example sending a request using CancelExportTaskRequest.
req := client.CancelExportTaskRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTask

func (*Client) CancelImportTaskRequest added in v0.9.0

func (c *Client) CancelImportTaskRequest(input *CancelImportTaskInput) CancelImportTaskRequest

CancelImportTaskRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Cancels an in-process import virtual machine or import snapshot task.

// Example sending a request using CancelImportTaskRequest.
req := client.CancelImportTaskRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTask

func (*Client) CancelReservedInstancesListingRequest added in v0.9.0

func (c *Client) CancelReservedInstancesListingRequest(input *CancelReservedInstancesListingInput) CancelReservedInstancesListingRequest

CancelReservedInstancesListingRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.

For more information, see Reserved Instance Marketplace (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CancelReservedInstancesListingRequest.
req := client.CancelReservedInstancesListingRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListing

func (*Client) CancelSpotFleetRequestsRequest added in v0.9.0

func (c *Client) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput) CancelSpotFleetRequestsRequest

CancelSpotFleetRequestsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Cancels the specified Spot Fleet requests.

After you cancel a Spot Fleet request, the Spot Fleet launches no new Spot Instances. You must specify whether the Spot Fleet should also terminate its Spot Instances. If you terminate the instances, the Spot Fleet request enters the cancelled_terminating state. Otherwise, the Spot Fleet request enters the cancelled_running state and the instances continue to run until they are interrupted or you terminate them manually.

// Example sending a request using CancelSpotFleetRequestsRequest.
req := client.CancelSpotFleetRequestsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequests

Example (Shared00)

To cancel a Spot fleet request

This example cancels the specified Spot fleet request and terminates its associated Spot Instances.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CancelSpotFleetRequestsInput{
		SpotFleetRequestIds: []string{
			"sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE",
		},
		TerminateInstances: aws.Bool(true),
	}

	req := svc.CancelSpotFleetRequestsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To cancel a Spot fleet request without terminating its Spot Instances

This example cancels the specified Spot fleet request without terminating its associated Spot Instances.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CancelSpotFleetRequestsInput{
		SpotFleetRequestIds: []string{
			"sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE",
		},
		TerminateInstances: aws.Bool(false),
	}

	req := svc.CancelSpotFleetRequestsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CancelSpotInstanceRequestsRequest added in v0.9.0

func (c *Client) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequestsInput) CancelSpotInstanceRequestsRequest

CancelSpotInstanceRequestsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Cancels one or more Spot Instance requests.

Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.

// Example sending a request using CancelSpotInstanceRequestsRequest.
req := client.CancelSpotInstanceRequestsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequests

Example (Shared00)

To cancel Spot Instance requests

This example cancels a Spot Instance request.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CancelSpotInstanceRequestsInput{
		SpotInstanceRequestIds: []string{
			"sir-08b93456",
		},
	}

	req := svc.CancelSpotInstanceRequestsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ConfirmProductInstanceRequest added in v0.9.0

func (c *Client) ConfirmProductInstanceRequest(input *ConfirmProductInstanceInput) ConfirmProductInstanceRequest

ConfirmProductInstanceRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner must verify whether another user's instance is eligible for support.

// Example sending a request using ConfirmProductInstanceRequest.
req := client.ConfirmProductInstanceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstance

Example (Shared00)

To confirm the product instance

This example determines whether the specified product code is associated with the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ConfirmProductInstanceInput{
		InstanceId:  aws.String("i-1234567890abcdef0"),
		ProductCode: aws.String("774F4FF8"),
	}

	req := svc.ConfirmProductInstanceRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CopyFpgaImageRequest added in v0.9.0

func (c *Client) CopyFpgaImageRequest(input *CopyFpgaImageInput) CopyFpgaImageRequest

CopyFpgaImageRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Copies the specified Amazon FPGA Image (AFI) to the current Region.

// Example sending a request using CopyFpgaImageRequest.
req := client.CopyFpgaImageRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyFpgaImage

func (*Client) CopyImageRequest added in v0.9.0

func (c *Client) CopyImageRequest(input *CopyImageInput) CopyImageRequest

CopyImageRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Initiates the copy of an AMI from the specified source Region to the current Region. You specify the destination Region by using its endpoint when making the request.

Copies of encrypted backing snapshots for the AMI are encrypted. Copies of unencrypted backing snapshots remain unencrypted, unless you set Encrypted during the copy operation. You cannot create an unencrypted copy of an encrypted backing snapshot.

For more information about the prerequisites and limits when copying an AMI, see Copying an AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CopyImageRequest.
req := client.CopyImageRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImage

Example (Shared00)

To copy an AMI to another region

This example copies the specified AMI from the us-east-1 region to the current region.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CopyImageInput{
		Description:   aws.String(""),
		Name:          aws.String("My server"),
		SourceImageId: aws.String("ami-5731123e"),
		SourceRegion:  aws.String("us-east-1"),
	}

	req := svc.CopyImageRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CopySnapshotRequest added in v0.9.0

func (c *Client) CopySnapshotRequest(input *CopySnapshotInput) CopySnapshotRequest

CopySnapshotRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy the snapshot within the same Region or from one Region to another. You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).

Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless you enable encryption for the snapshot copy operation. By default, encrypted snapshot copies use the default AWS Key Management Service (AWS KMS) customer master key (CMK); however, you can specify a different CMK.

To copy an encrypted snapshot that has been shared from another account, you must have permissions for the CMK used to encrypt the snapshot.

Snapshots created by copying another snapshot have an arbitrary volume ID that should not be used for any purpose.

For more information, see Copying an Amazon EBS Snapshot (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CopySnapshotRequest.
req := client.CopySnapshotRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshot

Example (Shared00)

To copy a snapshot

This example copies a snapshot with the snapshot ID of “snap-066877671789bd71b“ from the “us-west-2“ region to the “us-east-1“ region and adds a short description to identify the snapshot.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CopySnapshotInput{
		Description:       aws.String("This is my copied snapshot."),
		DestinationRegion: aws.String("us-east-1"),
		SourceRegion:      aws.String("us-west-2"),
		SourceSnapshotId:  aws.String("snap-066877671789bd71b"),
	}

	req := svc.CopySnapshotRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateCapacityReservationRequest added in v0.9.0

func (c *Client) CreateCapacityReservationRequest(input *CreateCapacityReservationInput) CreateCapacityReservationRequest

CreateCapacityReservationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a new Capacity Reservation with the specified attributes.

Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. This gives you the flexibility to selectively add capacity reservations and still get the Regional RI discounts for that usage. By creating Capacity Reservations, you ensure that you always have access to Amazon EC2 capacity when you need it, for as long as you need it. For more information, see Capacity Reservations (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html) in the Amazon Elastic Compute Cloud User Guide.

Your request to create a Capacity Reservation could fail if Amazon EC2 does not have sufficient capacity to fulfill the request. If your request fails due to Amazon EC2 capacity constraints, either try again at a later time, try in a different Availability Zone, or request a smaller capacity reservation. If your application is flexible across instance types and sizes, try to create a Capacity Reservation with different instance attributes.

Your request could also fail if the requested quantity exceeds your On-Demand Instance limit for the selected instance type. If your request fails due to limit constraints, increase your On-Demand Instance limit for the required instance type and try again. For more information about increasing your instance limits, see Amazon EC2 Service Limits (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreateCapacityReservationRequest.
req := client.CreateCapacityReservationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservation

func (*Client) CreateClientVpnEndpointRequest added in v0.9.0

func (c *Client) CreateClientVpnEndpointRequest(input *CreateClientVpnEndpointInput) CreateClientVpnEndpointRequest

CreateClientVpnEndpointRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.

// Example sending a request using CreateClientVpnEndpointRequest.
req := client.CreateClientVpnEndpointRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateClientVpnEndpoint

func (*Client) CreateClientVpnRouteRequest added in v0.9.0

func (c *Client) CreateClientVpnRouteRequest(input *CreateClientVpnRouteInput) CreateClientVpnRouteRequest

CreateClientVpnRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint has a route table that describes the available destination network routes. Each route in the route table specifies the path for traffic to specific resources or networks.

// Example sending a request using CreateClientVpnRouteRequest.
req := client.CreateClientVpnRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateClientVpnRoute

func (*Client) CreateCustomerGatewayRequest added in v0.9.0

func (c *Client) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) CreateCustomerGatewayRequest

CreateCustomerGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Provides information to AWS about your VPN customer gateway device. The customer gateway is the appliance at your end of the VPN connection. (The device on the AWS side of the VPN connection is the virtual private gateway.) You must provide the Internet-routable IP address of the customer gateway's external interface. The IP address must be static and can be behind a device performing network address translation (NAT).

For devices that use Border Gateway Protocol (BGP), you can also provide the device's BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534 range).

Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with the exception of 7224, which is reserved in the us-east-1 Region, and 9059, which is reserved in the eu-west-1 Region.

For more information, see AWS Site-to-Site VPN (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the AWS Site-to-Site VPN User Guide.

To create more than one customer gateway with the same VPN type, IP address, and BGP ASN, specify a unique device name for each customer gateway. Identical requests return information about the existing customer gateway and do not create new customer gateways.

// Example sending a request using CreateCustomerGatewayRequest.
req := client.CreateCustomerGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGateway

Example (Shared00)

To create a customer gateway

This example creates a customer gateway with the specified IP address for its outside interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateCustomerGatewayInput{
		BgpAsn:   aws.Int64(65534),
		PublicIp: aws.String("12.1.2.3"),
		Type:     ec2.GatewayTypeIpsec1,
	}

	req := svc.CreateCustomerGatewayRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateDefaultSubnetRequest added in v0.9.0

func (c *Client) CreateDefaultSubnetRequest(input *CreateDefaultSubnetInput) CreateDefaultSubnetRequest

CreateDefaultSubnetRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a default subnet with a size /20 IPv4 CIDR block in the specified Availability Zone in your default VPC. You can have only one default subnet per Availability Zone. For more information, see Creating a Default Subnet (https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html#create-default-subnet) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using CreateDefaultSubnetRequest.
req := client.CreateDefaultSubnetRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultSubnet

func (*Client) CreateDefaultVpcRequest added in v0.9.0

func (c *Client) CreateDefaultVpcRequest(input *CreateDefaultVpcInput) CreateDefaultVpcRequest

CreateDefaultVpcRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPC and Default Subnets (https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html) in the Amazon Virtual Private Cloud User Guide. You cannot specify the components of the default VPC yourself.

If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region.

If your account supports EC2-Classic, you cannot use this action to create a default VPC in a Region that supports EC2-Classic. If you want a default VPC in a Region that supports EC2-Classic, see "I really want a default VPC for my existing EC2 account. Is that possible?" in the Default VPCs FAQ (http://aws.amazon.com/vpc/faqs/#Default_VPCs).

// Example sending a request using CreateDefaultVpcRequest.
req := client.CreateDefaultVpcRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultVpc

func (*Client) CreateDhcpOptionsRequest added in v0.9.0

func (c *Client) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) CreateDhcpOptionsRequest

CreateDhcpOptionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a set of DHCP options for your VPC. After creating the set, you must associate it with the VPC, causing all existing and new instances that you launch in the VPC to use this set of DHCP options. The following are the individual DHCP options you can specify. For more information about the options, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).

  • domain-name-servers - The IP addresses of up to four domain name servers, or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. If specifying more than one domain name server, specify the IP addresses in a single parameter, separated by commas. To have your instance receive a custom DNS hostname as specified in domain-name, you must set domain-name-servers to a custom DNS server.

  • domain-name - If you're using AmazonProvidedDNS in us-east-1, specify ec2.internal. If you're using AmazonProvidedDNS in another Region, specify region.compute.internal (for example, ap-northeast-1.compute.internal). Otherwise, specify a domain name (for example, ExampleCompany.com). This value is used to complete unqualified DNS hostnames. Important: Some Linux operating systems accept multiple domain names separated by spaces. However, Windows and other Linux operating systems treat the value as a single domain, which results in unexpected behavior. If your DHCP options set is associated with a VPC that has instances with multiple operating systems, specify only one domain name.

  • ntp-servers - The IP addresses of up to four Network Time Protocol (NTP) servers.

  • netbios-name-servers - The IP addresses of up to four NetBIOS name servers.

  • netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend that you specify 2 (broadcast and multicast are not currently supported). For more information about these node types, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).

Your VPC automatically starts out with a set of DHCP options that includes only a DNS server that we provide (AmazonProvidedDNS). If you create a set of options, and if your VPC has an internet gateway, make sure to set the domain-name-servers option either to AmazonProvidedDNS or to a domain name server of your choice. For more information, see DHCP Options Sets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using CreateDhcpOptionsRequest.
req := client.CreateDhcpOptionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptions

Example (Shared00)

To create a DHCP options set

This example creates a DHCP options set.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateDhcpOptionsInput{
		DhcpConfigurations: []ec2.NewDhcpConfiguration{
			{
				Key: aws.String("domain-name-servers"),
				Values: []string{
					"10.2.5.1",
					"10.2.5.2",
				},
			},
		},
	}

	req := svc.CreateDhcpOptionsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateEgressOnlyInternetGatewayRequest added in v0.9.0

func (c *Client) CreateEgressOnlyInternetGatewayRequest(input *CreateEgressOnlyInternetGatewayInput) CreateEgressOnlyInternetGatewayRequest

CreateEgressOnlyInternetGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

[IPv6 only] Creates an egress-only internet gateway for your VPC. An egress-only internet gateway is used to enable outbound communication over IPv6 from instances in your VPC to the internet, and prevents hosts outside of your VPC from initiating an IPv6 connection with your instance.

// Example sending a request using CreateEgressOnlyInternetGatewayRequest.
req := client.CreateEgressOnlyInternetGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGateway

func (*Client) CreateFleetRequest added in v0.9.0

func (c *Client) CreateFleetRequest(input *CreateFleetInput) CreateFleetRequest

CreateFleetRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Launches an EC2 Fleet.

You can create a single EC2 Fleet that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

For more information, see Launching an EC2 Fleet (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreateFleetRequest.
req := client.CreateFleetRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFleet

func (*Client) CreateFlowLogsRequest added in v0.9.0

func (c *Client) CreateFlowLogsRequest(input *CreateFlowLogsInput) CreateFlowLogsRequest

CreateFlowLogsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC.

Flow log data for a monitored network interface is recorded as flow log records, which are log events consisting of fields that describe the traffic flow. For more information, see Flow Log Records (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records) in the Amazon Virtual Private Cloud User Guide.

When publishing to CloudWatch Logs, flow log records are published to a log group, and each network interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all of the monitored network interfaces are published to a single log file object that is stored in the specified bucket.

For more information, see VPC Flow Logs (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using CreateFlowLogsRequest.
req := client.CreateFlowLogsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogs

func (*Client) CreateFpgaImageRequest added in v0.9.0

func (c *Client) CreateFpgaImageRequest(input *CreateFpgaImageInput) CreateFpgaImageRequest

CreateFpgaImageRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).

The create operation is asynchronous. To verify that the AFI is ready for use, check the output logs.

An AFI contains the FPGA bitstream that is ready to download to an FPGA. You can securely deploy an AFI on multiple FPGA-accelerated instances. For more information, see the AWS FPGA Hardware Development Kit (https://github.com/aws/aws-fpga/).

// Example sending a request using CreateFpgaImageRequest.
req := client.CreateFpgaImageRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImage

func (*Client) CreateImageRequest added in v0.9.0

func (c *Client) CreateImageRequest(input *CreateImageInput) CreateImageRequest

CreateImageRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.

If you customized your instance with instance store volumes or EBS volumes in addition to the root device volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, the instance automatically launches with those additional volumes.

For more information, see Creating Amazon EBS-Backed Linux AMIs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreateImageRequest.
req := client.CreateImageRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage

Example (Shared00)

To create an AMI from an Amazon EBS-backed instance

This example creates an AMI from the specified instance and adds an EBS volume with the device name /dev/sdh and an instance store volume with the device name /dev/sdc.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateImageInput{
		BlockDeviceMappings: []ec2.BlockDeviceMapping{
			{
				DeviceName: aws.String("/dev/sdh"),
				Ebs: &ec2.EbsBlockDevice{
					VolumeSize: aws.Int64(100),
				},
			},
			{
				DeviceName:  aws.String("/dev/sdc"),
				VirtualName: aws.String("ephemeral1"),
			},
		},
		Description: aws.String("An AMI for my server"),
		InstanceId:  aws.String("i-1234567890abcdef0"),
		Name:        aws.String("My server"),
		NoReboot:    aws.Bool(true),
	}

	req := svc.CreateImageRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateInstanceExportTaskRequest added in v0.9.0

func (c *Client) CreateInstanceExportTaskRequest(input *CreateInstanceExportTaskInput) CreateInstanceExportTaskRequest

CreateInstanceExportTaskRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Exports a running or stopped instance to an Amazon S3 bucket.

For information about the supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting an Instance as a VM Using VM Import/Export (https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html) in the VM Import/Export User Guide.

// Example sending a request using CreateInstanceExportTaskRequest.
req := client.CreateInstanceExportTaskRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTask

func (*Client) CreateInternetGatewayRequest added in v0.9.0

func (c *Client) CreateInternetGatewayRequest(input *CreateInternetGatewayInput) CreateInternetGatewayRequest

CreateInternetGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates an internet gateway for use with a VPC. After creating the internet gateway, you attach it to a VPC using AttachInternetGateway.

For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide (https://docs.aws.amazon.com/vpc/latest/userguide/).

// Example sending a request using CreateInternetGatewayRequest.
req := client.CreateInternetGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGateway

Example (Shared00)

To create an Internet gateway

This example creates an Internet gateway.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateInternetGatewayInput{}

	req := svc.CreateInternetGatewayRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateKeyPairRequest added in v0.9.0

func (c *Client) CreateKeyPairRequest(input *CreateKeyPairInput) CreateKeyPairRequest

CreateKeyPairRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#1 private key. If a key with the specified name already exists, Amazon EC2 returns an error.

You can have up to five thousand key pairs per Region.

The key pair returned to you is available only in the Region in which you create it. If you prefer, you can create your own key pair using a third-party tool and upload it to any Region using ImportKeyPair.

For more information, see Key Pairs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreateKeyPairRequest.
req := client.CreateKeyPairRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair

Example (Shared00)

To create a key pair

This example creates a key pair named my-key-pair.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateKeyPairInput{
		KeyName: aws.String("my-key-pair"),
	}

	req := svc.CreateKeyPairRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateLaunchTemplateRequest added in v0.9.0

func (c *Client) CreateLaunchTemplateRequest(input *CreateLaunchTemplateInput) CreateLaunchTemplateRequest

CreateLaunchTemplateRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a launch template. A launch template contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify a launch template instead of providing the launch parameters in the request. For more information, see Launching an instance from a launch template (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html)in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreateLaunchTemplateRequest.
req := client.CreateLaunchTemplateRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplate

Example (Shared00)

To create a launch template

This example creates a launch template that specifies the subnet in which to launch the instance, assigns a public IP address and an IPv6 address to the instance, and creates a tag for the instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateLaunchTemplateInput{
		LaunchTemplateData: &ec2.RequestLaunchTemplateData{
			ImageId:      aws.String("ami-8c1be5f6"),
			InstanceType: ec2.InstanceTypeT2Small,
			NetworkInterfaces: []ec2.LaunchTemplateInstanceNetworkInterfaceSpecificationRequest{
				{
					AssociatePublicIpAddress: aws.Bool(true),
					DeviceIndex:              aws.Int64(0),
					Ipv6AddressCount:         aws.Int64(1),
					SubnetId:                 aws.String("subnet-7b16de0c"),
				},
			},
			TagSpecifications: []ec2.LaunchTemplateTagSpecificationRequest{
				{
					ResourceType: ec2.ResourceTypeInstance,
					Tags: []ec2.Tag{
						{
							Key:   aws.String("Name"),
							Value: aws.String("webserver"),
						},
					},
				},
			},
		},
		LaunchTemplateName: aws.String("my-template"),
		VersionDescription: aws.String("WebVersion1"),
	}

	req := svc.CreateLaunchTemplateRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateLaunchTemplateVersionRequest added in v0.9.0

func (c *Client) CreateLaunchTemplateVersionRequest(input *CreateLaunchTemplateVersionInput) CreateLaunchTemplateVersionRequest

CreateLaunchTemplateVersionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a new version for a launch template. You can specify an existing version of launch template from which to base the new version.

Launch template versions are numbered in the order in which they are created. You cannot specify, change, or replace the numbering of launch template versions.

For more information, see Managing launch template versions (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#manage-launch-template-versions)in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreateLaunchTemplateVersionRequest.
req := client.CreateLaunchTemplateVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersion

Example (Shared00)

To create a launch template version

This example creates a new launch template version based on version 1 of the specified launch template and specifies a different AMI ID.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateLaunchTemplateVersionInput{
		LaunchTemplateData: &ec2.RequestLaunchTemplateData{
			ImageId: aws.String("ami-c998b6b2"),
		},
		LaunchTemplateId:   aws.String("lt-0abcd290751193123"),
		SourceVersion:      aws.String("1"),
		VersionDescription: aws.String("WebVersion2"),
	}

	req := svc.CreateLaunchTemplateVersionRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateLocalGatewayRouteRequest added in v0.18.0

func (c *Client) CreateLocalGatewayRouteRequest(input *CreateLocalGatewayRouteInput) CreateLocalGatewayRouteRequest

CreateLocalGatewayRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a static route for the specified local gateway route table.

// Example sending a request using CreateLocalGatewayRouteRequest.
req := client.CreateLocalGatewayRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLocalGatewayRoute

func (*Client) CreateLocalGatewayRouteTableVpcAssociationRequest added in v0.18.0

func (c *Client) CreateLocalGatewayRouteTableVpcAssociationRequest(input *CreateLocalGatewayRouteTableVpcAssociationInput) CreateLocalGatewayRouteTableVpcAssociationRequest

CreateLocalGatewayRouteTableVpcAssociationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Associates the specified VPC with the specified local gateway route table.

// Example sending a request using CreateLocalGatewayRouteTableVpcAssociationRequest.
req := client.CreateLocalGatewayRouteTableVpcAssociationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLocalGatewayRouteTableVpcAssociation

func (*Client) CreateManagedPrefixListRequest added in v0.24.0

func (c *Client) CreateManagedPrefixListRequest(input *CreateManagedPrefixListInput) CreateManagedPrefixListRequest

CreateManagedPrefixListRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a managed prefix list. You can specify one or more entries for the prefix list. Each entry consists of a CIDR block and an optional description.

You must specify the maximum number of entries for the prefix list. The maximum number of entries cannot be changed later.

// Example sending a request using CreateManagedPrefixListRequest.
req := client.CreateManagedPrefixListRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateManagedPrefixList

func (*Client) CreateNatGatewayRequest added in v0.9.0

func (c *Client) CreateNatGatewayRequest(input *CreateNatGatewayInput) CreateNatGatewayRequest

CreateNatGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a NAT gateway in the specified public subnet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. Internet-bound traffic from a private subnet can be routed to the NAT gateway, therefore enabling instances in the private subnet to connect to the internet. For more information, see NAT Gateways (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using CreateNatGatewayRequest.
req := client.CreateNatGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway

Example (Shared00)

To create a NAT gateway

This example creates a NAT gateway in subnet subnet-1a2b3c4d and associates an Elastic IP address with the allocation ID eipalloc-37fc1a52 with the NAT gateway.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateNatGatewayInput{
		AllocationId: aws.String("eipalloc-37fc1a52"),
		SubnetId:     aws.String("subnet-1a2b3c4d"),
	}

	req := svc.CreateNatGatewayRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateNetworkAclEntryRequest added in v0.9.0

func (c *Client) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) CreateNetworkAclEntryRequest

CreateNetworkAclEntryRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates an entry (a rule) in a network ACL with the specified rule number. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the ACL, we process the entries in the ACL according to the rule numbers, in ascending order. Each network ACL has a set of ingress rules and a separate set of egress rules.

We recommend that you leave room between the rule numbers (for example, 100, 110, 120, ...), and not number them one right after the other (for example, 101, 102, 103, ...). This makes it easier to add a rule between existing ones without having to renumber the rules.

After you add an entry, you can't modify it; you must either replace it, or create an entry and delete the old one.

For more information about network ACLs, see Network ACLs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using CreateNetworkAclEntryRequest.
req := client.CreateNetworkAclEntryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntry

Example (Shared00)

To create a network ACL entry

This example creates an entry for the specified network ACL. The rule allows ingress traffic from anywhere (0.0.0.0/0) on UDP port 53 (DNS) into any associated subnet.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateNetworkAclEntryInput{
		CidrBlock:    aws.String("0.0.0.0/0"),
		Egress:       aws.Bool(false),
		NetworkAclId: aws.String("acl-5fb85d36"),
		PortRange: &ec2.PortRange{
			From: aws.Int64(53),
			To:   aws.Int64(53),
		},
		Protocol:   aws.String("17"),
		RuleAction: ec2.RuleActionAllow,
		RuleNumber: aws.Int64(100),
	}

	req := svc.CreateNetworkAclEntryRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateNetworkAclRequest added in v0.9.0

func (c *Client) CreateNetworkAclRequest(input *CreateNetworkAclInput) CreateNetworkAclRequest

CreateNetworkAclRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC.

For more information, see Network ACLs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using CreateNetworkAclRequest.
req := client.CreateNetworkAclRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAcl

Example (Shared00)

To create a network ACL

This example creates a network ACL for the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateNetworkAclInput{
		VpcId: aws.String("vpc-a01106c2"),
	}

	req := svc.CreateNetworkAclRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateNetworkInterfacePermissionRequest added in v0.9.0

func (c *Client) CreateNetworkInterfacePermissionRequest(input *CreateNetworkInterfacePermissionInput) CreateNetworkInterfacePermissionRequest

CreateNetworkInterfacePermissionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Grants an AWS-authorized account permission to attach the specified network interface to an instance in their account.

You can grant permission to a single AWS account only, and only one account at a time.

// Example sending a request using CreateNetworkInterfacePermissionRequest.
req := client.CreateNetworkInterfacePermissionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfacePermission

func (*Client) CreateNetworkInterfaceRequest added in v0.9.0

func (c *Client) CreateNetworkInterfaceRequest(input *CreateNetworkInterfaceInput) CreateNetworkInterfaceRequest

CreateNetworkInterfaceRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a network interface in the specified subnet.

For more information about network interfaces, see Elastic Network Interfaces (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using CreateNetworkInterfaceRequest.
req := client.CreateNetworkInterfaceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface

Example (Shared00)

To create a network interface

This example creates a network interface for the specified subnet.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateNetworkInterfaceInput{
		Description: aws.String("my network interface"),
		Groups: []string{
			"sg-903004f8",
		},
		PrivateIpAddress: aws.String("10.0.2.17"),
		SubnetId:         aws.String("subnet-9d4a7b6c"),
	}

	req := svc.CreateNetworkInterfaceRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreatePlacementGroupRequest added in v0.9.0

func (c *Client) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) CreatePlacementGroupRequest

CreatePlacementGroupRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a placement group in which to launch instances. The strategy of the placement group determines how the instances are organized within the group.

A cluster placement group is a logical grouping of instances within a single Availability Zone that benefit from low network latency, high network throughput. A spread placement group places instances on distinct hardware. A partition placement group places groups of instances in different partitions, where instances in one partition do not share the same hardware with instances in another partition.

For more information, see Placement groups (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreatePlacementGroupRequest.
req := client.CreatePlacementGroupRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup

Example (Shared00)

To create a placement group

This example creates a placement group with the specified name.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreatePlacementGroupInput{
		GroupName: aws.String("my-cluster"),
		Strategy:  ec2.PlacementStrategyCluster,
	}

	req := svc.CreatePlacementGroupRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateReservedInstancesListingRequest added in v0.9.0

func (c *Client) CreateReservedInstancesListingRequest(input *CreateReservedInstancesListingInput) CreateReservedInstancesListingRequest

CreateReservedInstancesListingRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Standard Reserved Instance listing at a time. To get a list of your Standard Reserved Instances, you can use the DescribeReservedInstances operation.

Only Standard Reserved Instances can be sold in the Reserved Instance Marketplace. Convertible Reserved Instances cannot be sold.

The Reserved Instance Marketplace matches sellers who want to resell Standard Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

To sell your Standard Reserved Instances, you must first register as a seller in the Reserved Instance Marketplace. After completing the registration process, you can create a Reserved Instance Marketplace listing of some or all of your Standard Reserved Instances, and specify the upfront price to receive for them. Your Standard Reserved Instance listings then become available for purchase. To view the details of your Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings operation.

For more information, see Reserved Instance Marketplace (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreateReservedInstancesListingRequest.
req := client.CreateReservedInstancesListingRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListing

func (*Client) CreateRouteRequest added in v0.9.0

func (c *Client) CreateRouteRequest(input *CreateRouteInput) CreateRouteRequest

CreateRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a route in a route table within a VPC.

You must specify one of the following targets: internet gateway or virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.

When determining how to route traffic, we use the route with the most specific match. For example, traffic is destined for the IPv4 address 192.0.2.3, and the route table includes the following two IPv4 routes:

  • 192.0.2.0/24 (goes to some target A)

  • 192.0.2.0/28 (goes to some target B)

Both routes apply to the traffic destined for 192.0.2.3. However, the second route in the list covers a smaller number of IP addresses and is therefore more specific, so we use that route to determine where to target the traffic.

For more information about route tables, see Route Tables (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using CreateRouteRequest.
req := client.CreateRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRoute

Example (Shared00)

To create a route

This example creates a route for the specified route table. The route matches all traffic (0.0.0.0/0) and routes it to the specified Internet gateway.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateRouteInput{
		DestinationCidrBlock: aws.String("0.0.0.0/0"),
		GatewayId:            aws.String("igw-c0a643a9"),
		RouteTableId:         aws.String("rtb-22574640"),
	}

	req := svc.CreateRouteRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateRouteTableRequest added in v0.9.0

func (c *Client) CreateRouteTableRequest(input *CreateRouteTableInput) CreateRouteTableRequest

CreateRouteTableRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

For more information, see Route Tables (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using CreateRouteTableRequest.
req := client.CreateRouteTableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTable

Example (Shared00)

To create a route table

This example creates a route table for the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateRouteTableInput{
		VpcId: aws.String("vpc-a01106c2"),
	}

	req := svc.CreateRouteTableRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateSecurityGroupRequest added in v0.9.0

func (c *Client) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) CreateSecurityGroupRequest

CreateSecurityGroupRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a security group.

A security group acts as a virtual firewall for your instance to control inbound and outbound traffic. For more information, see Amazon EC2 Security Groups (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html) in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) in the Amazon Virtual Private Cloud User Guide.

When you create a security group, you specify a friendly name of your choice. You can have a security group for use in EC2-Classic with the same name as a security group for use in a VPC. However, you can't have two security groups for use in EC2-Classic with the same name or two security groups for use in a VPC with the same name.

You have a default security group for use in EC2-Classic and a default security group for use in your VPC. If you don't specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.

You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.

For more information about VPC security group limits, see Amazon VPC Limits (https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html).

// Example sending a request using CreateSecurityGroupRequest.
req := client.CreateSecurityGroupRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroup

Example (Shared00)

To create a security group for a VPC

This example creates a security group for the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateSecurityGroupInput{
		Description: aws.String("My security group"),
		GroupName:   aws.String("my-security-group"),
		VpcId:       aws.String("vpc-1a2b3c4d"),
	}

	req := svc.CreateSecurityGroupRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateSnapshotRequest added in v0.9.0

func (c *Client) CreateSnapshotRequest(input *CreateSnapshotInput) CreateSnapshotRequest

CreateSnapshotRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.

When a snapshot is created, any AWS Marketplace product codes that are associated with the source volume are propagated to the snapshot.

You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your EBS volume at the time the snapshot command is issued; this may exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is pending.

To create a snapshot for EBS volumes that serve as root devices, you should stop the instance before taking the snapshot.

Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected.

You can tag your snapshots during creation. For more information, see Tagging Your Amazon EC2 Resources (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the Amazon Elastic Compute Cloud User Guide.

For more information, see Amazon Elastic Block Store (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html) and Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreateSnapshotRequest.
req := client.CreateSnapshotRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshot

Example (Shared00)

To create a snapshot

This example creates a snapshot of the volume with a volume ID of “vol-1234567890abcdef0“ and a short description to identify the snapshot.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateSnapshotInput{
		Description: aws.String("This is my root volume snapshot."),
		VolumeId:    aws.String("vol-1234567890abcdef0"),
	}

	req := svc.CreateSnapshotRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateSnapshotsRequest added in v0.10.0

func (c *Client) CreateSnapshotsRequest(input *CreateSnapshotsInput) CreateSnapshotsRequest

CreateSnapshotsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates crash-consistent snapshots of multiple EBS volumes and stores the data in S3. Volumes are chosen by specifying an instance. Any attached volumes will produce one snapshot each that is crash-consistent across the instance. Boot volumes can be excluded by changing the parameters.

// Example sending a request using CreateSnapshotsRequest.
req := client.CreateSnapshotsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshots

func (*Client) CreateSpotDatafeedSubscriptionRequest added in v0.9.0

func (c *Client) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSubscriptionInput) CreateSpotDatafeedSubscriptionRequest

CreateSpotDatafeedSubscriptionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per AWS account. For more information, see Spot Instance data feed (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) in the Amazon EC2 User Guide for Linux Instances.

// Example sending a request using CreateSpotDatafeedSubscriptionRequest.
req := client.CreateSpotDatafeedSubscriptionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscription

Example (Shared00)

To create a Spot Instance datafeed

This example creates a Spot Instance data feed for your AWS account.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateSpotDatafeedSubscriptionInput{
		Bucket: aws.String("my-s3-bucket"),
		Prefix: aws.String("spotdata"),
	}

	req := svc.CreateSpotDatafeedSubscriptionRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateSubnetRequest added in v0.9.0

func (c *Client) CreateSubnetRequest(input *CreateSubnetInput) CreateSubnetRequest

CreateSubnetRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a subnet in a specified VPC.

You must specify an IPv4 CIDR block for the subnet. After you create a subnet, you can't change its CIDR block. The allowed block size is between a /16 netmask (65,536 IP addresses) and /28 netmask (16 IP addresses). The CIDR block must not overlap with the CIDR block of an existing subnet in the VPC.

If you've associated an IPv6 CIDR block with your VPC, you can create a subnet with an IPv6 CIDR block that uses a /64 prefix length.

AWS reserves both the first four and the last IPv4 address in each subnet's CIDR block. They're not available for use.

If you add more than one subnet to a VPC, they're set up in a star topology with a logical router in the middle.

When you stop an instance in a subnet, it retains its private IPv4 address. It's therefore possible to have a subnet with no running instances (they're all stopped), but no remaining IP addresses available.

For more information about subnets, see Your VPC and Subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using CreateSubnetRequest.
req := client.CreateSubnetRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnet

Example (Shared00)

To create a subnet

This example creates a subnet in the specified VPC with the specified CIDR block. We recommend that you let us select an Availability Zone for you.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateSubnetInput{
		CidrBlock: aws.String("10.0.1.0/24"),
		VpcId:     aws.String("vpc-a01106c2"),
	}

	req := svc.CreateSubnetRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateTagsRequest added in v0.9.0

func (c *Client) CreateTagsRequest(input *CreateTagsInput) CreateTagsRequest

CreateTagsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.

For more information about tags, see Tagging Your Resources (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the Amazon Elastic Compute Cloud User Guide. For more information about creating IAM policies that control users' access to resources based on tags, see Supported Resource-Level Permissions for Amazon EC2 API Actions (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-iam-actions-resources.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreateTagsRequest.
req := client.CreateTagsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTags

Example (Shared00)

To add a tag to a resource

This example adds the tag Stack=production to the specified image, or overwrites an existing tag for the AMI where the tag key is Stack.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateTagsInput{
		Resources: []string{
			"ami-78a54011",
		},
		Tags: []ec2.Tag{
			{
				Key:   aws.String("Stack"),
				Value: aws.String("production"),
			},
		},
	}

	req := svc.CreateTagsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateTrafficMirrorFilterRequest added in v0.10.0

func (c *Client) CreateTrafficMirrorFilterRequest(input *CreateTrafficMirrorFilterInput) CreateTrafficMirrorFilterRequest

CreateTrafficMirrorFilterRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a Traffic Mirror filter.

A Traffic Mirror filter is a set of rules that defines the traffic to mirror.

By default, no traffic is mirrored. To mirror traffic, use CreateTrafficMirrorFilterRule (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorFilterRule.htm) to add Traffic Mirror rules to the filter. The rules you add define what traffic gets mirrored. You can also use ModifyTrafficMirrorFilterNetworkServices (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyTrafficMirrorFilterNetworkServices.html) to mirror supported network services.

// Example sending a request using CreateTrafficMirrorFilterRequest.
req := client.CreateTrafficMirrorFilterRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTrafficMirrorFilter

func (*Client) CreateTrafficMirrorFilterRuleRequest added in v0.10.0

func (c *Client) CreateTrafficMirrorFilterRuleRequest(input *CreateTrafficMirrorFilterRuleInput) CreateTrafficMirrorFilterRuleRequest

CreateTrafficMirrorFilterRuleRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a Traffic Mirror filter rule.

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

// Example sending a request using CreateTrafficMirrorFilterRuleRequest.
req := client.CreateTrafficMirrorFilterRuleRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTrafficMirrorFilterRule

func (*Client) CreateTrafficMirrorSessionRequest added in v0.10.0

func (c *Client) CreateTrafficMirrorSessionRequest(input *CreateTrafficMirrorSessionInput) CreateTrafficMirrorSessionRequest

CreateTrafficMirrorSessionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a Traffic Mirror session.

A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.

The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.

By default, no traffic is mirrored. Use CreateTrafficMirrorFilter (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorFilter.htm) to create filter rules that specify the traffic to mirror.

// Example sending a request using CreateTrafficMirrorSessionRequest.
req := client.CreateTrafficMirrorSessionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTrafficMirrorSession

func (*Client) CreateTrafficMirrorTargetRequest added in v0.10.0

func (c *Client) CreateTrafficMirrorTargetRequest(input *CreateTrafficMirrorTargetInput) CreateTrafficMirrorTargetRequest

CreateTrafficMirrorTargetRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a target for your Traffic Mirror session.

A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in different VPCs connected via VPC peering or a transit gateway.

A Traffic Mirror target can be a network interface, or a Network Load Balancer.

To use the target in a Traffic Mirror session, use CreateTrafficMirrorSession (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorSession.htm).

// Example sending a request using CreateTrafficMirrorTargetRequest.
req := client.CreateTrafficMirrorTargetRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTrafficMirrorTarget

func (*Client) CreateTransitGatewayMulticastDomainRequest added in v0.18.0

func (c *Client) CreateTransitGatewayMulticastDomainRequest(input *CreateTransitGatewayMulticastDomainInput) CreateTransitGatewayMulticastDomainRequest

CreateTransitGatewayMulticastDomainRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a multicast domain using the specified transit gateway.

The transit gateway must be in the available state before you create a domain. Use DescribeTransitGateways (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGateways.html) to see the state of transit gateway.

// Example sending a request using CreateTransitGatewayMulticastDomainRequest.
req := client.CreateTransitGatewayMulticastDomainRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayMulticastDomain

func (*Client) CreateTransitGatewayPeeringAttachmentRequest added in v0.18.0

func (c *Client) CreateTransitGatewayPeeringAttachmentRequest(input *CreateTransitGatewayPeeringAttachmentInput) CreateTransitGatewayPeeringAttachmentRequest

CreateTransitGatewayPeeringAttachmentRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter). The transit gateways must be in different Regions. The peer transit gateway can be in your account or a different AWS account.

After you create the peering attachment, the owner of the accepter transit gateway must accept the attachment request.

// Example sending a request using CreateTransitGatewayPeeringAttachmentRequest.
req := client.CreateTransitGatewayPeeringAttachmentRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayPeeringAttachment

func (*Client) CreateTransitGatewayRequest added in v0.9.0

func (c *Client) CreateTransitGatewayRequest(input *CreateTransitGatewayInput) CreateTransitGatewayRequest

CreateTransitGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a transit gateway.

You can use a transit gateway to interconnect your virtual private clouds (VPC) and on-premises networks. After the transit gateway enters the available state, you can attach your VPCs and VPN connections to the transit gateway.

To attach your VPCs, use CreateTransitGatewayVpcAttachment.

To attach a VPN connection, use CreateCustomerGateway to create a customer gateway and specify the ID of the customer gateway and the ID of the transit gateway in a call to CreateVpnConnection.

When you create a transit gateway, we create a default transit gateway route table and use it as the default association route table and the default propagation route table. You can use CreateTransitGatewayRouteTable to create additional transit gateway route tables. If you disable automatic route propagation, we do not create a default transit gateway route table. You can use EnableTransitGatewayRouteTablePropagation to propagate routes from a resource attachment to a transit gateway route table. If you disable automatic associations, you can use AssociateTransitGatewayRouteTable to associate a resource attachment with a transit gateway route table.

// Example sending a request using CreateTransitGatewayRequest.
req := client.CreateTransitGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGateway

func (*Client) CreateTransitGatewayRouteRequest added in v0.9.0

func (c *Client) CreateTransitGatewayRouteRequest(input *CreateTransitGatewayRouteInput) CreateTransitGatewayRouteRequest

CreateTransitGatewayRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a static route for the specified transit gateway route table.

// Example sending a request using CreateTransitGatewayRouteRequest.
req := client.CreateTransitGatewayRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayRoute

func (*Client) CreateTransitGatewayRouteTableRequest added in v0.9.0

func (c *Client) CreateTransitGatewayRouteTableRequest(input *CreateTransitGatewayRouteTableInput) CreateTransitGatewayRouteTableRequest

CreateTransitGatewayRouteTableRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a route table for the specified transit gateway.

// Example sending a request using CreateTransitGatewayRouteTableRequest.
req := client.CreateTransitGatewayRouteTableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayRouteTable

func (*Client) CreateTransitGatewayVpcAttachmentRequest added in v0.9.0

func (c *Client) CreateTransitGatewayVpcAttachmentRequest(input *CreateTransitGatewayVpcAttachmentInput) CreateTransitGatewayVpcAttachmentRequest

CreateTransitGatewayVpcAttachmentRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Attaches the specified VPC to the specified transit gateway.

If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.

To send VPC traffic to an attached transit gateway, add a route to the VPC route table using CreateRoute.

// Example sending a request using CreateTransitGatewayVpcAttachmentRequest.
req := client.CreateTransitGatewayVpcAttachmentRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayVpcAttachment

func (*Client) CreateVolumeRequest added in v0.9.0

func (c *Client) CreateVolumeRequest(input *CreateVolumeInput) CreateVolumeRequest

CreateVolumeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints (https://docs.aws.amazon.com/general/latest/gr/rande.html).

You can create a new empty volume or restore a volume from an EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated to the volume.

You can create encrypted volumes. Encrypted volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the Amazon Elastic Compute Cloud User Guide.

You can tag your volumes during creation. For more information, see Tagging Your Amazon EC2 Resources (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the Amazon Elastic Compute Cloud User Guide.

For more information, see Creating an Amazon EBS Volume (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreateVolumeRequest.
req := client.CreateVolumeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume

Example (Shared00)

To create a new volume

This example creates an 80 GiB General Purpose (SSD) volume in the Availability Zone “us-east-1a“.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateVolumeInput{
		AvailabilityZone: aws.String("us-east-1a"),
		Size:             aws.Int64(80),
		VolumeType:       ec2.VolumeTypeGp2,
	}

	req := svc.CreateVolumeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To create a new Provisioned IOPS (SSD) volume from a snapshot

This example creates a new Provisioned IOPS (SSD) volume with 1000 provisioned IOPS from a snapshot in the Availability Zone “us-east-1a“.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateVolumeInput{
		AvailabilityZone: aws.String("us-east-1a"),
		Iops:             aws.Int64(1000),
		SnapshotId:       aws.String("snap-066877671789bd71b"),
		VolumeType:       ec2.VolumeTypeIo1,
	}

	req := svc.CreateVolumeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateVpcEndpointConnectionNotificationRequest added in v0.9.0

func (c *Client) CreateVpcEndpointConnectionNotificationRequest(input *CreateVpcEndpointConnectionNotificationInput) CreateVpcEndpointConnectionNotificationRequest

CreateVpcEndpointConnectionNotificationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Create a Topic (https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html) in the Amazon Simple Notification Service Developer Guide.

You can create a connection notification for interface endpoints only.

// Example sending a request using CreateVpcEndpointConnectionNotificationRequest.
req := client.CreateVpcEndpointConnectionNotificationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotification

func (*Client) CreateVpcEndpointRequest added in v0.9.0

func (c *Client) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) CreateVpcEndpointRequest

CreateVpcEndpointRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a VPC endpoint for a specified service. An endpoint enables you to create a private connection between your VPC and the service. The service may be provided by AWS, an AWS Marketplace Partner, or another AWS account. For more information, see VPC Endpoints (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html) in the Amazon Virtual Private Cloud User Guide.

A gateway endpoint serves as a target for a route in your route table for traffic destined for the AWS service. You can specify an endpoint policy to attach to the endpoint, which will control access to the service from your VPC. You can also specify the VPC route tables that use the endpoint.

An interface endpoint is a network interface in your subnet that serves as an endpoint for communicating with the specified service. You can specify the subnets in which to create an endpoint, and the security groups to associate with the endpoint network interface.

Use DescribeVpcEndpointServices to get a list of supported services.

// Example sending a request using CreateVpcEndpointRequest.
req := client.CreateVpcEndpointRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpoint

func (*Client) CreateVpcEndpointServiceConfigurationRequest added in v0.9.0

func (c *Client) CreateVpcEndpointServiceConfigurationRequest(input *CreateVpcEndpointServiceConfigurationInput) CreateVpcEndpointServiceConfigurationRequest

CreateVpcEndpointServiceConfigurationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a VPC endpoint service configuration to which service consumers (AWS accounts, IAM users, and IAM roles) can connect. Service consumers can create an interface VPC endpoint to connect to your service.

To create an endpoint service configuration, you must first create a Network Load Balancer for your service. For more information, see VPC Endpoint Services (https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html) in the Amazon Virtual Private Cloud User Guide.

If you set the private DNS name, you must prove that you own the private DNS domain name. For more information, see VPC Endpoint Service Private DNS Name Verification (https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-services-dns-validation.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using CreateVpcEndpointServiceConfigurationRequest.
req := client.CreateVpcEndpointServiceConfigurationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfiguration

func (*Client) CreateVpcPeeringConnectionRequest added in v0.9.0

func (c *Client) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectionInput) CreateVpcPeeringConnectionRequest

CreateVpcPeeringConnectionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. The accepter VPC can belong to another AWS account and can be in a different Region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.

Limitations and rules apply to a VPC peering connection. For more information, see the limitations (https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-basics.html#vpc-peering-limitations) section in the VPC Peering Guide.

The owner of the accepter VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.

If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of failed.

// Example sending a request using CreateVpcPeeringConnectionRequest.
req := client.CreateVpcPeeringConnectionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnection

func (*Client) CreateVpcRequest added in v0.9.0

func (c *Client) CreateVpcRequest(input *CreateVpcInput) CreateVpcRequest

CreateVpcRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses). For more information about how large to make your VPC, see Your VPC and Subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the Amazon Virtual Private Cloud User Guide.

You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon's pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html)).

By default, each instance you launch in the VPC has the default DHCP options, which include only a default DNS server that we provide (AmazonProvidedDNS). For more information, see DHCP Options Sets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the Amazon Virtual Private Cloud User Guide.

You can specify the instance tenancy value for the VPC when you create it. You can't change this value for the VPC after you create it. For more information, see Dedicated Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using CreateVpcRequest.
req := client.CreateVpcRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpc

Example (Shared00)

To create a VPC

This example creates a VPC with the specified CIDR block.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.CreateVpcInput{
		CidrBlock: aws.String("10.0.0.0/16"),
	}

	req := svc.CreateVpcRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) CreateVpnConnectionRequest added in v0.9.0

func (c *Client) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) CreateVpnConnectionRequest

CreateVpnConnectionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a VPN connection between an existing virtual private gateway and a VPN customer gateway. The supported connection type is ipsec.1.

The response includes information that you need to give to your network administrator to configure your customer gateway.

We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway.

If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

For more information, see AWS Site-to-Site VPN (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the AWS Site-to-Site VPN User Guide.

// Example sending a request using CreateVpnConnectionRequest.
req := client.CreateVpnConnectionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnection

func (*Client) CreateVpnConnectionRouteRequest added in v0.9.0

func (c *Client) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInput) CreateVpnConnectionRouteRequest

CreateVpnConnectionRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

For more information, see AWS Site-to-Site VPN (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the AWS Site-to-Site VPN User Guide.

// Example sending a request using CreateVpnConnectionRouteRequest.
req := client.CreateVpnConnectionRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRoute

func (*Client) CreateVpnGatewayRequest added in v0.9.0

func (c *Client) CreateVpnGatewayRequest(input *CreateVpnGatewayInput) CreateVpnGatewayRequest

CreateVpnGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

For more information, see AWS Site-to-Site VPN (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the AWS Site-to-Site VPN User Guide.

// Example sending a request using CreateVpnGatewayRequest.
req := client.CreateVpnGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGateway

func (*Client) DeleteClientVpnEndpointRequest added in v0.9.0

func (c *Client) DeleteClientVpnEndpointRequest(input *DeleteClientVpnEndpointInput) DeleteClientVpnEndpointRequest

DeleteClientVpnEndpointRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint.

// Example sending a request using DeleteClientVpnEndpointRequest.
req := client.DeleteClientVpnEndpointRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteClientVpnEndpoint

func (*Client) DeleteClientVpnRouteRequest added in v0.9.0

func (c *Client) DeleteClientVpnRouteRequest(input *DeleteClientVpnRouteInput) DeleteClientVpnRouteRequest

DeleteClientVpnRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using the CreateClientVpnRoute action. You cannot delete routes that were automatically added when associating a subnet. To remove routes that have been automatically added, disassociate the target subnet from the Client VPN endpoint.

// Example sending a request using DeleteClientVpnRouteRequest.
req := client.DeleteClientVpnRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteClientVpnRoute

func (*Client) DeleteCustomerGatewayRequest added in v0.9.0

func (c *Client) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) DeleteCustomerGatewayRequest

DeleteCustomerGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.

// Example sending a request using DeleteCustomerGatewayRequest.
req := client.DeleteCustomerGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGateway

Example (Shared00)

To delete a customer gateway

This example deletes the specified customer gateway.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteCustomerGatewayInput{
		CustomerGatewayId: aws.String("cgw-0e11f167"),
	}

	req := svc.DeleteCustomerGatewayRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteDhcpOptionsRequest added in v0.9.0

func (c *Client) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) DeleteDhcpOptionsRequest

DeleteDhcpOptionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.

// Example sending a request using DeleteDhcpOptionsRequest.
req := client.DeleteDhcpOptionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptions

Example (Shared00)

To delete a DHCP options set

This example deletes the specified DHCP options set.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteDhcpOptionsInput{
		DhcpOptionsId: aws.String("dopt-d9070ebb"),
	}

	req := svc.DeleteDhcpOptionsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteEgressOnlyInternetGatewayRequest added in v0.9.0

func (c *Client) DeleteEgressOnlyInternetGatewayRequest(input *DeleteEgressOnlyInternetGatewayInput) DeleteEgressOnlyInternetGatewayRequest

DeleteEgressOnlyInternetGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes an egress-only internet gateway.

// Example sending a request using DeleteEgressOnlyInternetGatewayRequest.
req := client.DeleteEgressOnlyInternetGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGateway

func (*Client) DeleteFleetsRequest added in v0.9.0

func (c *Client) DeleteFleetsRequest(input *DeleteFleetsInput) DeleteFleetsRequest

DeleteFleetsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified EC2 Fleet.

After you delete an EC2 Fleet, it launches no new instances. You must specify whether an EC2 Fleet should also terminate its instances. If you terminate the instances, the EC2 Fleet enters the deleted_terminating state. Otherwise, the EC2 Fleet enters the deleted_running state, and the instances continue to run until they are interrupted or you terminate them manually.

// Example sending a request using DeleteFleetsRequest.
req := client.DeleteFleetsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFleets

func (*Client) DeleteFlowLogsRequest added in v0.9.0

func (c *Client) DeleteFlowLogsRequest(input *DeleteFlowLogsInput) DeleteFlowLogsRequest

DeleteFlowLogsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes one or more flow logs.

// Example sending a request using DeleteFlowLogsRequest.
req := client.DeleteFlowLogsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogs

func (*Client) DeleteFpgaImageRequest added in v0.9.0

func (c *Client) DeleteFpgaImageRequest(input *DeleteFpgaImageInput) DeleteFpgaImageRequest

DeleteFpgaImageRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified Amazon FPGA Image (AFI).

// Example sending a request using DeleteFpgaImageRequest.
req := client.DeleteFpgaImageRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFpgaImage

func (*Client) DeleteInternetGatewayRequest added in v0.9.0

func (c *Client) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) DeleteInternetGatewayRequest

DeleteInternetGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.

// Example sending a request using DeleteInternetGatewayRequest.
req := client.DeleteInternetGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway

Example (Shared00)

To delete an Internet gateway

This example deletes the specified Internet gateway.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteInternetGatewayInput{
		InternetGatewayId: aws.String("igw-c0a643a9"),
	}

	req := svc.DeleteInternetGatewayRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteKeyPairRequest added in v0.9.0

func (c *Client) DeleteKeyPairRequest(input *DeleteKeyPairInput) DeleteKeyPairRequest

DeleteKeyPairRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified key pair, by removing the public key from Amazon EC2.

// Example sending a request using DeleteKeyPairRequest.
req := client.DeleteKeyPairRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair

Example (Shared00)

To delete a key pair

This example deletes the specified key pair.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteKeyPairInput{
		KeyName: aws.String("my-key-pair"),
	}

	req := svc.DeleteKeyPairRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteLaunchTemplateRequest added in v0.9.0

func (c *Client) DeleteLaunchTemplateRequest(input *DeleteLaunchTemplateInput) DeleteLaunchTemplateRequest

DeleteLaunchTemplateRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes a launch template. Deleting a launch template deletes all of its versions.

// Example sending a request using DeleteLaunchTemplateRequest.
req := client.DeleteLaunchTemplateRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplate

Example (Shared00)

To delete a launch template

This example deletes the specified launch template.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteLaunchTemplateInput{
		LaunchTemplateId: aws.String("lt-0abcd290751193123"),
	}

	req := svc.DeleteLaunchTemplateRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteLaunchTemplateVersionsRequest added in v0.9.0

func (c *Client) DeleteLaunchTemplateVersionsRequest(input *DeleteLaunchTemplateVersionsInput) DeleteLaunchTemplateVersionsRequest

DeleteLaunchTemplateVersionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes one or more versions of a launch template. You cannot delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate.

// Example sending a request using DeleteLaunchTemplateVersionsRequest.
req := client.DeleteLaunchTemplateVersionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersions

Example (Shared00)

To delete a launch template version

This example deletes the specified launch template version.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteLaunchTemplateVersionsInput{
		LaunchTemplateId: aws.String("lt-0abcd290751193123"),
		Versions: []string{
			"1",
		},
	}

	req := svc.DeleteLaunchTemplateVersionsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteLocalGatewayRouteRequest added in v0.18.0

func (c *Client) DeleteLocalGatewayRouteRequest(input *DeleteLocalGatewayRouteInput) DeleteLocalGatewayRouteRequest

DeleteLocalGatewayRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified route from the specified local gateway route table.

// Example sending a request using DeleteLocalGatewayRouteRequest.
req := client.DeleteLocalGatewayRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLocalGatewayRoute

func (*Client) DeleteLocalGatewayRouteTableVpcAssociationRequest added in v0.18.0

func (c *Client) DeleteLocalGatewayRouteTableVpcAssociationRequest(input *DeleteLocalGatewayRouteTableVpcAssociationInput) DeleteLocalGatewayRouteTableVpcAssociationRequest

DeleteLocalGatewayRouteTableVpcAssociationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified association between a VPC and local gateway route table.

// Example sending a request using DeleteLocalGatewayRouteTableVpcAssociationRequest.
req := client.DeleteLocalGatewayRouteTableVpcAssociationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLocalGatewayRouteTableVpcAssociation

func (*Client) DeleteManagedPrefixListRequest added in v0.24.0

func (c *Client) DeleteManagedPrefixListRequest(input *DeleteManagedPrefixListInput) DeleteManagedPrefixListRequest

DeleteManagedPrefixListRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified managed prefix list. You must first remove all references to the prefix list in your resources.

// Example sending a request using DeleteManagedPrefixListRequest.
req := client.DeleteManagedPrefixListRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteManagedPrefixList

func (*Client) DeleteNatGatewayRequest added in v0.9.0

func (c *Client) DeleteNatGatewayRequest(input *DeleteNatGatewayInput) DeleteNatGatewayRequest

DeleteNatGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables.

// Example sending a request using DeleteNatGatewayRequest.
req := client.DeleteNatGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGateway

Example (Shared00)

To delete a NAT gateway

This example deletes the specified NAT gateway.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteNatGatewayInput{
		NatGatewayId: aws.String("nat-04ae55e711cec5680"),
	}

	req := svc.DeleteNatGatewayRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteNetworkAclEntryRequest added in v0.9.0

func (c *Client) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) DeleteNetworkAclEntryRequest

DeleteNetworkAclEntryRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified ingress or egress entry (rule) from the specified network ACL.

// Example sending a request using DeleteNetworkAclEntryRequest.
req := client.DeleteNetworkAclEntryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntry

Example (Shared00)

To delete a network ACL entry

This example deletes ingress rule number 100 from the specified network ACL.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteNetworkAclEntryInput{
		Egress:       aws.Bool(true),
		NetworkAclId: aws.String("acl-5fb85d36"),
		RuleNumber:   aws.Int64(100),
	}

	req := svc.DeleteNetworkAclEntryRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteNetworkAclRequest added in v0.9.0

func (c *Client) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) DeleteNetworkAclRequest

DeleteNetworkAclRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL.

// Example sending a request using DeleteNetworkAclRequest.
req := client.DeleteNetworkAclRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAcl

Example (Shared00)

To delete a network ACL

This example deletes the specified network ACL.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteNetworkAclInput{
		NetworkAclId: aws.String("acl-5fb85d36"),
	}

	req := svc.DeleteNetworkAclRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteNetworkInterfacePermissionRequest added in v0.9.0

func (c *Client) DeleteNetworkInterfacePermissionRequest(input *DeleteNetworkInterfacePermissionInput) DeleteNetworkInterfacePermissionRequest

DeleteNetworkInterfacePermissionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you're removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment.

// Example sending a request using DeleteNetworkInterfacePermissionRequest.
req := client.DeleteNetworkInterfacePermissionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfacePermission

func (*Client) DeleteNetworkInterfaceRequest added in v0.9.0

func (c *Client) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput) DeleteNetworkInterfaceRequest

DeleteNetworkInterfaceRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified network interface. You must detach the network interface before you can delete it.

// Example sending a request using DeleteNetworkInterfaceRequest.
req := client.DeleteNetworkInterfaceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterface

Example (Shared00)

To delete a network interface

This example deletes the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteNetworkInterfaceInput{
		NetworkInterfaceId: aws.String("eni-e5aa89a3"),
	}

	req := svc.DeleteNetworkInterfaceRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeletePlacementGroupRequest added in v0.9.0

func (c *Client) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) DeletePlacementGroupRequest

DeletePlacementGroupRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see Placement groups (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DeletePlacementGroupRequest.
req := client.DeletePlacementGroupRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup

Example (Shared00)

To delete a placement group

This example deletes the specified placement group.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeletePlacementGroupInput{
		GroupName: aws.String("my-cluster"),
	}

	req := svc.DeletePlacementGroupRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteQueuedReservedInstancesRequest added in v0.14.0

func (c *Client) DeleteQueuedReservedInstancesRequest(input *DeleteQueuedReservedInstancesInput) DeleteQueuedReservedInstancesRequest

DeleteQueuedReservedInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the queued purchases for the specified Reserved Instances.

// Example sending a request using DeleteQueuedReservedInstancesRequest.
req := client.DeleteQueuedReservedInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteQueuedReservedInstances

func (*Client) DeleteRouteRequest added in v0.9.0

func (c *Client) DeleteRouteRequest(input *DeleteRouteInput) DeleteRouteRequest

DeleteRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified route from the specified route table.

// Example sending a request using DeleteRouteRequest.
req := client.DeleteRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute

Example (Shared00)

To delete a route

This example deletes the specified route from the specified route table.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteRouteInput{
		DestinationCidrBlock: aws.String("0.0.0.0/0"),
		RouteTableId:         aws.String("rtb-22574640"),
	}

	req := svc.DeleteRouteRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteRouteTableRequest added in v0.9.0

func (c *Client) DeleteRouteTableRequest(input *DeleteRouteTableInput) DeleteRouteTableRequest

DeleteRouteTableRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table.

// Example sending a request using DeleteRouteTableRequest.
req := client.DeleteRouteTableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTable

Example (Shared00)

To delete a route table

This example deletes the specified route table.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteRouteTableInput{
		RouteTableId: aws.String("rtb-22574640"),
	}

	req := svc.DeleteRouteTableRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteSecurityGroupRequest added in v0.9.0

func (c *Client) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) DeleteSecurityGroupRequest

DeleteSecurityGroupRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes a security group.

If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with InvalidGroup.InUse in EC2-Classic or DependencyViolation in EC2-VPC.

// Example sending a request using DeleteSecurityGroupRequest.
req := client.DeleteSecurityGroupRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroup

Example (Shared00)

To delete a security group

This example deletes the specified security group.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteSecurityGroupInput{
		GroupId: aws.String("sg-903004f8"),
	}

	req := svc.DeleteSecurityGroupRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteSnapshotRequest added in v0.9.0

func (c *Client) DeleteSnapshotRequest(input *DeleteSnapshotInput) DeleteSnapshotRequest

DeleteSnapshotRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified snapshot.

When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.

For more information, see Deleting an Amazon EBS Snapshot (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-snapshot.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DeleteSnapshotRequest.
req := client.DeleteSnapshotRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshot

Example (Shared00)

To delete a snapshot

This example deletes a snapshot with the snapshot ID of “snap-1234567890abcdef0“. If the command succeeds, no output is returned.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteSnapshotInput{
		SnapshotId: aws.String("snap-1234567890abcdef0"),
	}

	req := svc.DeleteSnapshotRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteSpotDatafeedSubscriptionRequest added in v0.9.0

func (c *Client) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSubscriptionInput) DeleteSpotDatafeedSubscriptionRequest

DeleteSpotDatafeedSubscriptionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the data feed for Spot Instances.

// Example sending a request using DeleteSpotDatafeedSubscriptionRequest.
req := client.DeleteSpotDatafeedSubscriptionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscription

Example (Shared00)

To cancel a Spot Instance data feed subscription

This example deletes a Spot data feed subscription for the account.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteSpotDatafeedSubscriptionInput{}

	req := svc.DeleteSpotDatafeedSubscriptionRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteSubnetRequest added in v0.9.0

func (c *Client) DeleteSubnetRequest(input *DeleteSubnetInput) DeleteSubnetRequest

DeleteSubnetRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

// Example sending a request using DeleteSubnetRequest.
req := client.DeleteSubnetRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnet

Example (Shared00)

To delete a subnet

This example deletes the specified subnet.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteSubnetInput{
		SubnetId: aws.String("subnet-9d4a7b6c"),
	}

	req := svc.DeleteSubnetRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteTagsRequest added in v0.9.0

func (c *Client) DeleteTagsRequest(input *DeleteTagsInput) DeleteTagsRequest

DeleteTagsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified set of tags from the specified set of resources.

To list the current tags, use DescribeTags. For more information about tags, see Tagging Your Resources (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DeleteTagsRequest.
req := client.DeleteTagsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTags

Example (Shared00)

To delete a tag from a resource

This example deletes the tag Stack=test from the specified image.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteTagsInput{
		Resources: []string{
			"ami-78a54011",
		},
		Tags: []ec2.Tag{
			{
				Key:   aws.String("Stack"),
				Value: aws.String("test"),
			},
		},
	}

	req := svc.DeleteTagsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteTrafficMirrorFilterRequest added in v0.10.0

func (c *Client) DeleteTrafficMirrorFilterRequest(input *DeleteTrafficMirrorFilterInput) DeleteTrafficMirrorFilterRequest

DeleteTrafficMirrorFilterRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified Traffic Mirror filter.

You cannot delete a Traffic Mirror filter that is in use by a Traffic Mirror session.

// Example sending a request using DeleteTrafficMirrorFilterRequest.
req := client.DeleteTrafficMirrorFilterRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTrafficMirrorFilter

func (*Client) DeleteTrafficMirrorFilterRuleRequest added in v0.10.0

func (c *Client) DeleteTrafficMirrorFilterRuleRequest(input *DeleteTrafficMirrorFilterRuleInput) DeleteTrafficMirrorFilterRuleRequest

DeleteTrafficMirrorFilterRuleRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified Traffic Mirror rule.

// Example sending a request using DeleteTrafficMirrorFilterRuleRequest.
req := client.DeleteTrafficMirrorFilterRuleRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTrafficMirrorFilterRule

func (*Client) DeleteTrafficMirrorSessionRequest added in v0.10.0

func (c *Client) DeleteTrafficMirrorSessionRequest(input *DeleteTrafficMirrorSessionInput) DeleteTrafficMirrorSessionRequest

DeleteTrafficMirrorSessionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified Traffic Mirror session.

// Example sending a request using DeleteTrafficMirrorSessionRequest.
req := client.DeleteTrafficMirrorSessionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTrafficMirrorSession

func (*Client) DeleteTrafficMirrorTargetRequest added in v0.10.0

func (c *Client) DeleteTrafficMirrorTargetRequest(input *DeleteTrafficMirrorTargetInput) DeleteTrafficMirrorTargetRequest

DeleteTrafficMirrorTargetRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified Traffic Mirror target.

You cannot delete a Traffic Mirror target that is in use by a Traffic Mirror session.

// Example sending a request using DeleteTrafficMirrorTargetRequest.
req := client.DeleteTrafficMirrorTargetRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTrafficMirrorTarget

func (*Client) DeleteTransitGatewayMulticastDomainRequest added in v0.18.0

func (c *Client) DeleteTransitGatewayMulticastDomainRequest(input *DeleteTransitGatewayMulticastDomainInput) DeleteTransitGatewayMulticastDomainRequest

DeleteTransitGatewayMulticastDomainRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified transit gateway multicast domain.

// Example sending a request using DeleteTransitGatewayMulticastDomainRequest.
req := client.DeleteTransitGatewayMulticastDomainRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayMulticastDomain

func (*Client) DeleteTransitGatewayPeeringAttachmentRequest added in v0.18.0

func (c *Client) DeleteTransitGatewayPeeringAttachmentRequest(input *DeleteTransitGatewayPeeringAttachmentInput) DeleteTransitGatewayPeeringAttachmentRequest

DeleteTransitGatewayPeeringAttachmentRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes a transit gateway peering attachment.

// Example sending a request using DeleteTransitGatewayPeeringAttachmentRequest.
req := client.DeleteTransitGatewayPeeringAttachmentRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayPeeringAttachment

func (*Client) DeleteTransitGatewayRequest added in v0.9.0

func (c *Client) DeleteTransitGatewayRequest(input *DeleteTransitGatewayInput) DeleteTransitGatewayRequest

DeleteTransitGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified transit gateway.

// Example sending a request using DeleteTransitGatewayRequest.
req := client.DeleteTransitGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGateway

func (*Client) DeleteTransitGatewayRouteRequest added in v0.9.0

func (c *Client) DeleteTransitGatewayRouteRequest(input *DeleteTransitGatewayRouteInput) DeleteTransitGatewayRouteRequest

DeleteTransitGatewayRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified route from the specified transit gateway route table.

// Example sending a request using DeleteTransitGatewayRouteRequest.
req := client.DeleteTransitGatewayRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayRoute

func (*Client) DeleteTransitGatewayRouteTableRequest added in v0.9.0

func (c *Client) DeleteTransitGatewayRouteTableRequest(input *DeleteTransitGatewayRouteTableInput) DeleteTransitGatewayRouteTableRequest

DeleteTransitGatewayRouteTableRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified transit gateway route table. You must disassociate the route table from any transit gateway route tables before you can delete it.

// Example sending a request using DeleteTransitGatewayRouteTableRequest.
req := client.DeleteTransitGatewayRouteTableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayRouteTable

func (*Client) DeleteTransitGatewayVpcAttachmentRequest added in v0.9.0

func (c *Client) DeleteTransitGatewayVpcAttachmentRequest(input *DeleteTransitGatewayVpcAttachmentInput) DeleteTransitGatewayVpcAttachmentRequest

DeleteTransitGatewayVpcAttachmentRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified VPC attachment.

// Example sending a request using DeleteTransitGatewayVpcAttachmentRequest.
req := client.DeleteTransitGatewayVpcAttachmentRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayVpcAttachment

func (*Client) DeleteVolumeRequest added in v0.9.0

func (c *Client) DeleteVolumeRequest(input *DeleteVolumeInput) DeleteVolumeRequest

DeleteVolumeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

The volume can remain in the deleting state for several minutes.

For more information, see Deleting an Amazon EBS Volume (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DeleteVolumeRequest.
req := client.DeleteVolumeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolume

Example (Shared00)

To delete a volume

This example deletes an available volume with the volume ID of “vol-049df61146c4d7901“. If the command succeeds, no output is returned.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteVolumeInput{
		VolumeId: aws.String("vol-049df61146c4d7901"),
	}

	req := svc.DeleteVolumeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteVpcEndpointConnectionNotificationsRequest added in v0.9.0

func (c *Client) DeleteVpcEndpointConnectionNotificationsRequest(input *DeleteVpcEndpointConnectionNotificationsInput) DeleteVpcEndpointConnectionNotificationsRequest

DeleteVpcEndpointConnectionNotificationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes one or more VPC endpoint connection notifications.

// Example sending a request using DeleteVpcEndpointConnectionNotificationsRequest.
req := client.DeleteVpcEndpointConnectionNotificationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotifications

func (*Client) DeleteVpcEndpointServiceConfigurationsRequest added in v0.9.0

func (c *Client) DeleteVpcEndpointServiceConfigurationsRequest(input *DeleteVpcEndpointServiceConfigurationsInput) DeleteVpcEndpointServiceConfigurationsRequest

DeleteVpcEndpointServiceConfigurationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes one or more VPC endpoint service configurations in your account. Before you delete the endpoint service configuration, you must reject any Available or PendingAcceptance interface endpoint connections that are attached to the service.

// Example sending a request using DeleteVpcEndpointServiceConfigurationsRequest.
req := client.DeleteVpcEndpointServiceConfigurationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurations

func (*Client) DeleteVpcEndpointsRequest added in v0.9.0

func (c *Client) DeleteVpcEndpointsRequest(input *DeleteVpcEndpointsInput) DeleteVpcEndpointsRequest

DeleteVpcEndpointsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes one or more specified VPC endpoints. Deleting a gateway endpoint also deletes the endpoint routes in the route tables that were associated with the endpoint. Deleting an interface endpoint deletes the endpoint network interfaces.

// Example sending a request using DeleteVpcEndpointsRequest.
req := client.DeleteVpcEndpointsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpoints

func (*Client) DeleteVpcPeeringConnectionRequest added in v0.9.0

func (c *Client) DeleteVpcPeeringConnectionRequest(input *DeleteVpcPeeringConnectionInput) DeleteVpcPeeringConnectionRequest

DeleteVpcPeeringConnectionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it's in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state. You cannot delete a VPC peering connection that's in the failed state.

// Example sending a request using DeleteVpcPeeringConnectionRequest.
req := client.DeleteVpcPeeringConnectionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnection

func (*Client) DeleteVpcRequest added in v0.9.0

func (c *Client) DeleteVpcRequest(input *DeleteVpcInput) DeleteVpcRequest

DeleteVpcRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.

// Example sending a request using DeleteVpcRequest.
req := client.DeleteVpcRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpc

Example (Shared00)

To delete a VPC

This example deletes the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DeleteVpcInput{
		VpcId: aws.String("vpc-a01106c2"),
	}

	req := svc.DeleteVpcRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DeleteVpnConnectionRequest added in v0.9.0

func (c *Client) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) DeleteVpnConnectionRequest

DeleteVpnConnectionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified VPN connection.

If you're deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway device using the new configuration information returned with the new VPN connection ID.

For certificate-based authentication, delete all AWS Certificate Manager (ACM) private certificates used for the AWS-side tunnel endpoints for the VPN connection before deleting the VPN connection.

// Example sending a request using DeleteVpnConnectionRequest.
req := client.DeleteVpnConnectionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnection

func (*Client) DeleteVpnConnectionRouteRequest added in v0.9.0

func (c *Client) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInput) DeleteVpnConnectionRouteRequest

DeleteVpnConnectionRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

// Example sending a request using DeleteVpnConnectionRouteRequest.
req := client.DeleteVpnConnectionRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRoute

func (*Client) DeleteVpnGatewayRequest added in v0.9.0

func (c *Client) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) DeleteVpnGatewayRequest

DeleteVpnGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deletes the specified virtual private gateway. You must first detach the virtual private gateway from the VPC. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.

// Example sending a request using DeleteVpnGatewayRequest.
req := client.DeleteVpnGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGateway

func (*Client) DeprovisionByoipCidrRequest added in v0.9.0

func (c *Client) DeprovisionByoipCidrRequest(input *DeprovisionByoipCidrInput) DeprovisionByoipCidrRequest

DeprovisionByoipCidrRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Releases the specified address range that you provisioned for use with your AWS resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.

Before you can release an address range, you must stop advertising it using WithdrawByoipCidr and you must not have any IP addresses allocated from its address range.

// Example sending a request using DeprovisionByoipCidrRequest.
req := client.DeprovisionByoipCidrRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeprovisionByoipCidr

func (*Client) DeregisterImageRequest added in v0.9.0

func (c *Client) DeregisterImageRequest(input *DeregisterImageInput) DeregisterImageRequest

DeregisterImageRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances; however, it doesn't affect any instances that you've already launched from the AMI. You'll continue to incur usage costs for those instances until you terminate them.

When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn't affect the files that you uploaded to Amazon S3 when you created the AMI.

// Example sending a request using DeregisterImageRequest.
req := client.DeregisterImageRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage

func (*Client) DeregisterInstanceEventNotificationAttributesRequest added in v0.21.0

func (c *Client) DeregisterInstanceEventNotificationAttributesRequest(input *DeregisterInstanceEventNotificationAttributesInput) DeregisterInstanceEventNotificationAttributesRequest

DeregisterInstanceEventNotificationAttributesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deregisters tag keys to prevent tags that have the specified tag keys from being included in scheduled event notifications for resources in the Region.

// Example sending a request using DeregisterInstanceEventNotificationAttributesRequest.
req := client.DeregisterInstanceEventNotificationAttributesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterInstanceEventNotificationAttributes

func (*Client) DeregisterTransitGatewayMulticastGroupMembersRequest added in v0.18.0

func (c *Client) DeregisterTransitGatewayMulticastGroupMembersRequest(input *DeregisterTransitGatewayMulticastGroupMembersInput) DeregisterTransitGatewayMulticastGroupMembersRequest

DeregisterTransitGatewayMulticastGroupMembersRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deregisters the specified members (network interfaces) from the transit gateway multicast group.

// Example sending a request using DeregisterTransitGatewayMulticastGroupMembersRequest.
req := client.DeregisterTransitGatewayMulticastGroupMembersRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterTransitGatewayMulticastGroupMembers

func (*Client) DeregisterTransitGatewayMulticastGroupSourcesRequest added in v0.18.0

func (c *Client) DeregisterTransitGatewayMulticastGroupSourcesRequest(input *DeregisterTransitGatewayMulticastGroupSourcesInput) DeregisterTransitGatewayMulticastGroupSourcesRequest

DeregisterTransitGatewayMulticastGroupSourcesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Deregisters the specified sources (network interfaces) from the transit gateway multicast group.

// Example sending a request using DeregisterTransitGatewayMulticastGroupSourcesRequest.
req := client.DeregisterTransitGatewayMulticastGroupSourcesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterTransitGatewayMulticastGroupSources

func (*Client) DescribeAccountAttributesRequest added in v0.9.0

func (c *Client) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) DescribeAccountAttributesRequest

DescribeAccountAttributesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes attributes of your AWS account. The following are the supported account attributes:

  • supported-platforms: Indicates whether your account can launch instances into EC2-Classic and EC2-VPC, or only into EC2-VPC.

  • default-vpc: The ID of the default VPC for your account, or none.

  • max-instances: This attribute is no longer supported. The returned value does not reflect your actual vCPU limit for running On-Demand Instances. For more information, see On-Demand Instance Limits (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-on-demand-instances.html#ec2-on-demand-instances-limits) in the Amazon Elastic Compute Cloud User Guide.

  • vpc-max-security-groups-per-interface: The maximum number of security groups that you can assign to a network interface.

  • max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate for use with EC2-Classic.

  • vpc-max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate for use with EC2-VPC.

    // Example sending a request using DescribeAccountAttributesRequest. req := client.DescribeAccountAttributesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes

Example (Shared00)

To describe a single attribute for your AWS account

This example describes the supported-platforms attribute for your AWS account.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeAccountAttributesInput{
		AttributeNames: []ec2.AccountAttributeName{
			ec2.AccountAttributeNameSupportedPlatforms,
		},
	}

	req := svc.DescribeAccountAttributesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe all attributes for your AWS account

This example describes the attributes for your AWS account.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeAccountAttributesInput{}

	req := svc.DescribeAccountAttributesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeAddressesRequest added in v0.9.0

func (c *Client) DescribeAddressesRequest(input *DescribeAddressesInput) DescribeAddressesRequest

DescribeAddressesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified Elastic IP addresses or all of your Elastic IP addresses.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeAddressesRequest.
req := client.DescribeAddressesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddresses

Example (Shared00)

To describe your Elastic IP addresses

This example describes your Elastic IP addresses.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeAddressesInput{}

	req := svc.DescribeAddressesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe your Elastic IP addresses for EC2-VPC

This example describes your Elastic IP addresses for use with instances in a VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeAddressesInput{
		Filters: []ec2.Filter{
			{
				Name: aws.String("domain"),
				Values: []string{
					"vpc",
				},
			},
		},
	}

	req := svc.DescribeAddressesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared02)

To describe your Elastic IP addresses for EC2-Classic

This example describes your Elastic IP addresses for use with instances in EC2-Classic.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeAddressesInput{
		Filters: []ec2.Filter{
			{
				Name: aws.String("domain"),
				Values: []string{
					"standard",
				},
			},
		},
	}

	req := svc.DescribeAddressesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeAggregateIdFormatRequest added in v0.9.0

func (c *Client) DescribeAggregateIdFormatRequest(input *DescribeAggregateIdFormatInput) DescribeAggregateIdFormatRequest

DescribeAggregateIdFormatRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the longer ID format settings for all resource types in a specific Region. This request is useful for performing a quick audit to determine whether a specific Region is fully opted in for longer IDs (17-character IDs).

This request only returns information about resource types that support longer IDs.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

// Example sending a request using DescribeAggregateIdFormatRequest.
req := client.DescribeAggregateIdFormatRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAggregateIdFormat

func (*Client) DescribeAvailabilityZonesRequest added in v0.9.0

func (c *Client) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesInput) DescribeAvailabilityZonesRequest

DescribeAvailabilityZonesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the Availability Zones and Local Zones that are available to you. If there is an event impacting an Availability Zone or Local Zone, you can use this request to view the state and any provided messages for that Availability Zone or Local Zone.

For more information about Availability Zones and Local Zones, see Regions and Availability Zones (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeAvailabilityZonesRequest.
req := client.DescribeAvailabilityZonesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZones

Example (Shared00)

To describe your Availability Zones

This example describes the Availability Zones that are available to you. The response includes Availability Zones only for the current region.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeAvailabilityZonesInput{}

	req := svc.DescribeAvailabilityZonesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeBundleTasksRequest added in v0.9.0

func (c *Client) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) DescribeBundleTasksRequest

DescribeBundleTasksRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified bundle tasks or all of your bundle tasks.

Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

// Example sending a request using DescribeBundleTasksRequest.
req := client.DescribeBundleTasksRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasks

func (*Client) DescribeByoipCidrsRequest added in v0.9.0

func (c *Client) DescribeByoipCidrsRequest(input *DescribeByoipCidrsInput) DescribeByoipCidrsRequest

DescribeByoipCidrsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools or DescribeIpv6Pools.

// Example sending a request using DescribeByoipCidrsRequest.
req := client.DescribeByoipCidrsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeByoipCidrs

func (*Client) DescribeCapacityReservationsRequest added in v0.9.0

func (c *Client) DescribeCapacityReservationsRequest(input *DescribeCapacityReservationsInput) DescribeCapacityReservationsRequest

DescribeCapacityReservationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the AWS Region that you're currently using.

// Example sending a request using DescribeCapacityReservationsRequest.
req := client.DescribeCapacityReservationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityReservations

func (*Client) DescribeClassicLinkInstancesRequest added in v0.9.0

func (c *Client) DescribeClassicLinkInstancesRequest(input *DescribeClassicLinkInstancesInput) DescribeClassicLinkInstancesRequest

DescribeClassicLinkInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances.

// Example sending a request using DescribeClassicLinkInstancesRequest.
req := client.DescribeClassicLinkInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstances

func (*Client) DescribeClientVpnAuthorizationRulesRequest added in v0.9.0

func (c *Client) DescribeClientVpnAuthorizationRulesRequest(input *DescribeClientVpnAuthorizationRulesInput) DescribeClientVpnAuthorizationRulesRequest

DescribeClientVpnAuthorizationRulesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the authorization rules for a specified Client VPN endpoint.

// Example sending a request using DescribeClientVpnAuthorizationRulesRequest.
req := client.DescribeClientVpnAuthorizationRulesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnAuthorizationRules

func (*Client) DescribeClientVpnConnectionsRequest added in v0.9.0

func (c *Client) DescribeClientVpnConnectionsRequest(input *DescribeClientVpnConnectionsInput) DescribeClientVpnConnectionsRequest

DescribeClientVpnConnectionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint.

// Example sending a request using DescribeClientVpnConnectionsRequest.
req := client.DescribeClientVpnConnectionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnConnections

func (*Client) DescribeClientVpnEndpointsRequest added in v0.9.0

func (c *Client) DescribeClientVpnEndpointsRequest(input *DescribeClientVpnEndpointsInput) DescribeClientVpnEndpointsRequest

DescribeClientVpnEndpointsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more Client VPN endpoints in the account.

// Example sending a request using DescribeClientVpnEndpointsRequest.
req := client.DescribeClientVpnEndpointsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnEndpoints

func (*Client) DescribeClientVpnRoutesRequest added in v0.9.0

func (c *Client) DescribeClientVpnRoutesRequest(input *DescribeClientVpnRoutesInput) DescribeClientVpnRoutesRequest

DescribeClientVpnRoutesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the routes for the specified Client VPN endpoint.

// Example sending a request using DescribeClientVpnRoutesRequest.
req := client.DescribeClientVpnRoutesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnRoutes

func (*Client) DescribeClientVpnTargetNetworksRequest added in v0.9.0

func (c *Client) DescribeClientVpnTargetNetworksRequest(input *DescribeClientVpnTargetNetworksInput) DescribeClientVpnTargetNetworksRequest

DescribeClientVpnTargetNetworksRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the target networks associated with the specified Client VPN endpoint.

// Example sending a request using DescribeClientVpnTargetNetworksRequest.
req := client.DescribeClientVpnTargetNetworksRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnTargetNetworks

func (*Client) DescribeCoipPoolsRequest added in v0.18.0

func (c *Client) DescribeCoipPoolsRequest(input *DescribeCoipPoolsInput) DescribeCoipPoolsRequest

DescribeCoipPoolsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified customer-owned address pools or all of your customer-owned address pools.

// Example sending a request using DescribeCoipPoolsRequest.
req := client.DescribeCoipPoolsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCoipPools

func (*Client) DescribeConversionTasksRequest added in v0.9.0

func (c *Client) DescribeConversionTasksRequest(input *DescribeConversionTasksInput) DescribeConversionTasksRequest

DescribeConversionTasksRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified conversion tasks or all your conversion tasks. For more information, see the VM Import/Export User Guide (https://docs.aws.amazon.com/vm-import/latest/userguide/).

For information about the import manifest referenced by this API action, see VM Import Manifest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).

// Example sending a request using DescribeConversionTasksRequest.
req := client.DescribeConversionTasksRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasks

func (*Client) DescribeCustomerGatewaysRequest added in v0.9.0

func (c *Client) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInput) DescribeCustomerGatewaysRequest

DescribeCustomerGatewaysRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your VPN customer gateways.

For more information, see AWS Site-to-Site VPN (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the AWS Site-to-Site VPN User Guide.

// Example sending a request using DescribeCustomerGatewaysRequest.
req := client.DescribeCustomerGatewaysRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGateways

Example (Shared00)

To describe a customer gateway

This example describes the specified customer gateway.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeCustomerGatewaysInput{
		CustomerGatewayIds: []string{
			"cgw-0e11f167",
		},
	}

	req := svc.DescribeCustomerGatewaysRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeDhcpOptionsRequest added in v0.9.0

func (c *Client) DescribeDhcpOptionsRequest(input *DescribeDhcpOptionsInput) DescribeDhcpOptionsRequest

DescribeDhcpOptionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your DHCP options sets.

For more information, see DHCP Options Sets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using DescribeDhcpOptionsRequest.
req := client.DescribeDhcpOptionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptions

Example (Shared00)

To describe a DHCP options set

This example describes the specified DHCP options set.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeDhcpOptionsInput{
		DhcpOptionsIds: []string{
			"dopt-d9070ebb",
		},
	}

	req := svc.DescribeDhcpOptionsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeEgressOnlyInternetGatewaysRequest added in v0.9.0

func (c *Client) DescribeEgressOnlyInternetGatewaysRequest(input *DescribeEgressOnlyInternetGatewaysInput) DescribeEgressOnlyInternetGatewaysRequest

DescribeEgressOnlyInternetGatewaysRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your egress-only internet gateways.

// Example sending a request using DescribeEgressOnlyInternetGatewaysRequest.
req := client.DescribeEgressOnlyInternetGatewaysRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGateways

func (*Client) DescribeElasticGpusRequest added in v0.9.0

func (c *Client) DescribeElasticGpusRequest(input *DescribeElasticGpusInput) DescribeElasticGpusRequest

DescribeElasticGpusRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the Elastic Graphics accelerator associated with your instances. For more information about Elastic Graphics, see Amazon Elastic Graphics (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html).

// Example sending a request using DescribeElasticGpusRequest.
req := client.DescribeElasticGpusRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeElasticGpus

func (*Client) DescribeExportImageTasksRequest added in v0.12.0

func (c *Client) DescribeExportImageTasksRequest(input *DescribeExportImageTasksInput) DescribeExportImageTasksRequest

DescribeExportImageTasksRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified export image tasks or all of your export image tasks.

// Example sending a request using DescribeExportImageTasksRequest.
req := client.DescribeExportImageTasksRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportImageTasks

func (*Client) DescribeExportTasksRequest added in v0.9.0

func (c *Client) DescribeExportTasksRequest(input *DescribeExportTasksInput) DescribeExportTasksRequest

DescribeExportTasksRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified export instance tasks or all of your export instance tasks.

// Example sending a request using DescribeExportTasksRequest.
req := client.DescribeExportTasksRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasks

func (*Client) DescribeFastSnapshotRestoresRequest added in v0.17.0

func (c *Client) DescribeFastSnapshotRestoresRequest(input *DescribeFastSnapshotRestoresInput) DescribeFastSnapshotRestoresRequest

DescribeFastSnapshotRestoresRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the state of fast snapshot restores for your snapshots.

// Example sending a request using DescribeFastSnapshotRestoresRequest.
req := client.DescribeFastSnapshotRestoresRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFastSnapshotRestores

func (*Client) DescribeFleetHistoryRequest added in v0.9.0

func (c *Client) DescribeFleetHistoryRequest(input *DescribeFleetHistoryInput) DescribeFleetHistoryRequest

DescribeFleetHistoryRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the events for the specified EC2 Fleet during the specified time.

EC2 Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. EC2 Fleet events are available for 48 hours.

// Example sending a request using DescribeFleetHistoryRequest.
req := client.DescribeFleetHistoryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetHistory

func (*Client) DescribeFleetInstancesRequest added in v0.9.0

func (c *Client) DescribeFleetInstancesRequest(input *DescribeFleetInstancesInput) DescribeFleetInstancesRequest

DescribeFleetInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the running instances for the specified EC2 Fleet.

// Example sending a request using DescribeFleetInstancesRequest.
req := client.DescribeFleetInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetInstances

func (*Client) DescribeFleetsRequest added in v0.9.0

func (c *Client) DescribeFleetsRequest(input *DescribeFleetsInput) DescribeFleetsRequest

DescribeFleetsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified EC2 Fleets or all of your EC2 Fleets.

// Example sending a request using DescribeFleetsRequest.
req := client.DescribeFleetsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleets

func (*Client) DescribeFlowLogsRequest added in v0.9.0

func (c *Client) DescribeFlowLogsRequest(input *DescribeFlowLogsInput) DescribeFlowLogsRequest

DescribeFlowLogsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API.

// Example sending a request using DescribeFlowLogsRequest.
req := client.DescribeFlowLogsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogs

func (*Client) DescribeFpgaImageAttributeRequest added in v0.9.0

func (c *Client) DescribeFpgaImageAttributeRequest(input *DescribeFpgaImageAttributeInput) DescribeFpgaImageAttributeRequest

DescribeFpgaImageAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified attribute of the specified Amazon FPGA Image (AFI).

// Example sending a request using DescribeFpgaImageAttributeRequest.
req := client.DescribeFpgaImageAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImageAttribute

func (*Client) DescribeFpgaImagesRequest added in v0.9.0

func (c *Client) DescribeFpgaImagesRequest(input *DescribeFpgaImagesInput) DescribeFpgaImagesRequest

DescribeFpgaImagesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other AWS accounts for which you have load permissions.

// Example sending a request using DescribeFpgaImagesRequest.
req := client.DescribeFpgaImagesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImages

func (*Client) DescribeHostReservationOfferingsRequest added in v0.9.0

func (c *Client) DescribeHostReservationOfferingsRequest(input *DescribeHostReservationOfferingsInput) DescribeHostReservationOfferingsRequest

DescribeHostReservationOfferingsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the Dedicated Host reservations that are available to purchase.

The results describe all of the Dedicated Host reservation offerings, including offerings that might not match the instance family and Region of your Dedicated Hosts. When purchasing an offering, ensure that the instance family and Region of the offering matches that of the Dedicated Hosts with which it is to be associated. For more information about supported instance types, see Dedicated Hosts Overview (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeHostReservationOfferingsRequest.
req := client.DescribeHostReservationOfferingsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferings

func (*Client) DescribeHostReservationsRequest added in v0.9.0

func (c *Client) DescribeHostReservationsRequest(input *DescribeHostReservationsInput) DescribeHostReservationsRequest

DescribeHostReservationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes reservations that are associated with Dedicated Hosts in your account.

// Example sending a request using DescribeHostReservationsRequest.
req := client.DescribeHostReservationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservations

func (*Client) DescribeHostsRequest added in v0.9.0

func (c *Client) DescribeHostsRequest(input *DescribeHostsInput) DescribeHostsRequest

DescribeHostsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified Dedicated Hosts or all your Dedicated Hosts.

The results describe only the Dedicated Hosts in the Region you're currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released are listed with the state released.

// Example sending a request using DescribeHostsRequest.
req := client.DescribeHostsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts

func (*Client) DescribeIamInstanceProfileAssociationsRequest added in v0.9.0

func (c *Client) DescribeIamInstanceProfileAssociationsRequest(input *DescribeIamInstanceProfileAssociationsInput) DescribeIamInstanceProfileAssociationsRequest

DescribeIamInstanceProfileAssociationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes your IAM instance profile associations.

// Example sending a request using DescribeIamInstanceProfileAssociationsRequest.
req := client.DescribeIamInstanceProfileAssociationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociations

Example (Shared00)

To describe an IAM instance profile association

This example describes the specified IAM instance profile association.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeIamInstanceProfileAssociationsInput{
		AssociationIds: []string{
			"iip-assoc-0db249b1f25fa24b8",
		},
	}

	req := svc.DescribeIamInstanceProfileAssociationsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeIdFormatRequest added in v0.9.0

func (c *Client) DescribeIdFormatRequest(input *DescribeIdFormatInput) DescribeIdFormatRequest

DescribeIdFormatRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

// Example sending a request using DescribeIdFormatRequest.
req := client.DescribeIdFormatRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormat

func (*Client) DescribeIdentityIdFormatRequest added in v0.9.0

func (c *Client) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInput) DescribeIdentityIdFormatRequest

DescribeIdentityIdFormatRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) in the Amazon Elastic Compute Cloud User Guide.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.

// Example sending a request using DescribeIdentityIdFormatRequest.
req := client.DescribeIdentityIdFormatRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormat

func (*Client) DescribeImageAttributeRequest added in v0.9.0

func (c *Client) DescribeImageAttributeRequest(input *DescribeImageAttributeInput) DescribeImageAttributeRequest

DescribeImageAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.

// Example sending a request using DescribeImageAttributeRequest.
req := client.DescribeImageAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute

Example (Shared00)

To describe the launch permissions for an AMI

This example describes the launch permissions for the specified AMI.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeImageAttributeInput{
		Attribute: ec2.ImageAttributeNameLaunchPermission,
		ImageId:   aws.String("ami-5731123e"),
	}

	req := svc.DescribeImageAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeImagesRequest added in v0.9.0

func (c *Client) DescribeImagesRequest(input *DescribeImagesInput) DescribeImagesRequest

DescribeImagesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.

The images available to you include public images, private images that you own, and private images owned by other AWS accounts for which you have explicit launch permissions.

Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image results in an error indicating that the AMI ID cannot be found.

// Example sending a request using DescribeImagesRequest.
req := client.DescribeImagesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImages

Example (Shared00)

To describe an AMI

This example describes the specified AMI.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeImagesInput{
		ImageIds: []string{
			"ami-5731123e",
		},
	}

	req := svc.DescribeImagesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeImportImageTasksRequest added in v0.9.0

func (c *Client) DescribeImportImageTasksRequest(input *DescribeImportImageTasksInput) DescribeImportImageTasksRequest

DescribeImportImageTasksRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Displays details about an import virtual machine or import snapshot tasks that are already created.

// Example sending a request using DescribeImportImageTasksRequest.
req := client.DescribeImportImageTasksRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasks

func (*Client) DescribeImportSnapshotTasksRequest added in v0.9.0

func (c *Client) DescribeImportSnapshotTasksRequest(input *DescribeImportSnapshotTasksInput) DescribeImportSnapshotTasksRequest

DescribeImportSnapshotTasksRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes your import snapshot tasks.

// Example sending a request using DescribeImportSnapshotTasksRequest.
req := client.DescribeImportSnapshotTasksRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasks

func (*Client) DescribeInstanceAttributeRequest added in v0.9.0

func (c *Client) DescribeInstanceAttributeRequest(input *DescribeInstanceAttributeInput) DescribeInstanceAttributeRequest

DescribeInstanceAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport

// Example sending a request using DescribeInstanceAttributeRequest.
req := client.DescribeInstanceAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute

Example (Shared00)

To describe the instance type

This example describes the instance type of the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeInstanceAttributeInput{
		Attribute:  ec2.InstanceAttributeNameInstanceType,
		InstanceId: aws.String("i-1234567890abcdef0"),
	}

	req := svc.DescribeInstanceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe the disableApiTermination attribute

This example describes the “disableApiTermination“ attribute of the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeInstanceAttributeInput{
		Attribute:  ec2.InstanceAttributeNameDisableApiTermination,
		InstanceId: aws.String("i-1234567890abcdef0"),
	}

	req := svc.DescribeInstanceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared02)

To describe the block device mapping for an instance

This example describes the “blockDeviceMapping“ attribute of the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeInstanceAttributeInput{
		Attribute:  ec2.InstanceAttributeNameBlockDeviceMapping,
		InstanceId: aws.String("i-1234567890abcdef0"),
	}

	req := svc.DescribeInstanceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeInstanceCreditSpecificationsRequest added in v0.9.0

func (c *Client) DescribeInstanceCreditSpecificationsRequest(input *DescribeInstanceCreditSpecificationsInput) DescribeInstanceCreditSpecificationsRequest

DescribeInstanceCreditSpecificationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the credit option for CPU usage of the specified burstable performance instances. The credit options are standard and unlimited.

If you do not specify an instance ID, Amazon EC2 returns burstable performance instances with the unlimited credit option, as well as instances that were previously configured as T2, T3, and T3a with the unlimited credit option. For example, if you resize a T2 instance, while it is configured as unlimited, to an M4 instance, Amazon EC2 returns the M4 instance.

If you specify one or more instance IDs, Amazon EC2 returns the credit option (standard or unlimited) of those instances. If you specify an instance ID that is not valid, such as an instance that is not a burstable performance instance, an error is returned.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If an Availability Zone is experiencing a service disruption and you specify instance IDs in the affected zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs in an unaffected zone, the call works normally.

For more information, see Burstable performance instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeInstanceCreditSpecificationsRequest.
req := client.DescribeInstanceCreditSpecificationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceCreditSpecifications

func (*Client) DescribeInstanceEventNotificationAttributesRequest added in v0.21.0

func (c *Client) DescribeInstanceEventNotificationAttributesRequest(input *DescribeInstanceEventNotificationAttributesInput) DescribeInstanceEventNotificationAttributesRequest

DescribeInstanceEventNotificationAttributesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region.

// Example sending a request using DescribeInstanceEventNotificationAttributesRequest.
req := client.DescribeInstanceEventNotificationAttributesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceEventNotificationAttributes

func (*Client) DescribeInstanceStatusRequest added in v0.9.0

func (c *Client) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) DescribeInstanceStatusRequest

DescribeInstanceStatusRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances.

Instance status includes the following components:

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatus

Example (Shared00)

To describe the status of an instance

This example describes the current status of the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeInstanceStatusInput{
		InstanceIds: []string{
			"i-1234567890abcdef0",
		},
	}

	req := svc.DescribeInstanceStatusRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeInstanceTypeOfferingsRequest added in v0.18.0

func (c *Client) DescribeInstanceTypeOfferingsRequest(input *DescribeInstanceTypeOfferingsInput) DescribeInstanceTypeOfferingsRequest

DescribeInstanceTypeOfferingsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Returns a list of all instance types offered. The results can be filtered by location (Region or Availability Zone). If no location is specified, the instance types offered in the current Region are returned.

// Example sending a request using DescribeInstanceTypeOfferingsRequest.
req := client.DescribeInstanceTypeOfferingsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceTypeOfferings

func (*Client) DescribeInstanceTypesRequest added in v0.18.0

func (c *Client) DescribeInstanceTypesRequest(input *DescribeInstanceTypesInput) DescribeInstanceTypesRequest

DescribeInstanceTypesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the details of the instance types that are offered in a location. The results can be filtered by the attributes of the instance types.

// Example sending a request using DescribeInstanceTypesRequest.
req := client.DescribeInstanceTypesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceTypes

func (*Client) DescribeInstancesRequest added in v0.9.0

func (c *Client) DescribeInstancesRequest(input *DescribeInstancesInput) DescribeInstancesRequest

DescribeInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified instances or all instances.

If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.

If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the output.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.

// Example sending a request using DescribeInstancesRequest.
req := client.DescribeInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstances

Example (Shared00)

To describe an Amazon EC2 instance

This example describes the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeInstancesInput{
		InstanceIds: []string{
			"i-1234567890abcdef0",
		},
	}

	req := svc.DescribeInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe the instances with a specific instance type

This example describes the instances with the t2.micro instance type.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeInstancesInput{
		Filters: []ec2.Filter{
			{
				Name: aws.String("instance-type"),
				Values: []string{
					"t2.micro",
				},
			},
		},
	}

	req := svc.DescribeInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared02)

To describe the instances with a specific tag

This example describes the instances with the Purpose=test tag.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeInstancesInput{
		Filters: []ec2.Filter{
			{
				Name: aws.String("tag:Purpose"),
				Values: []string{
					"test",
				},
			},
		},
	}

	req := svc.DescribeInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeInternetGatewaysRequest added in v0.9.0

func (c *Client) DescribeInternetGatewaysRequest(input *DescribeInternetGatewaysInput) DescribeInternetGatewaysRequest

DescribeInternetGatewaysRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your internet gateways.

// Example sending a request using DescribeInternetGatewaysRequest.
req := client.DescribeInternetGatewaysRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways

Example (Shared00)

To describe the Internet gateway for a VPC

This example describes the Internet gateway for the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeInternetGatewaysInput{
		Filters: []ec2.Filter{
			{
				Name: aws.String("attachment.vpc-id"),
				Values: []string{
					"vpc-a01106c2",
				},
			},
		},
	}

	req := svc.DescribeInternetGatewaysRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeIpv6PoolsRequest added in v0.19.0

func (c *Client) DescribeIpv6PoolsRequest(input *DescribeIpv6PoolsInput) DescribeIpv6PoolsRequest

DescribeIpv6PoolsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes your IPv6 address pools.

// Example sending a request using DescribeIpv6PoolsRequest.
req := client.DescribeIpv6PoolsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIpv6Pools

func (*Client) DescribeKeyPairsRequest added in v0.9.0

func (c *Client) DescribeKeyPairsRequest(input *DescribeKeyPairsInput) DescribeKeyPairsRequest

DescribeKeyPairsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified key pairs or all of your key pairs.

For more information about key pairs, see Key Pairs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeKeyPairsRequest.
req := client.DescribeKeyPairsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairs

Example (Shared00)

To display a key pair

This example displays the fingerprint for the specified key.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeKeyPairsInput{
		KeyNames: []string{
			"my-key-pair",
		},
	}

	req := svc.DescribeKeyPairsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeLaunchTemplateVersionsRequest added in v0.9.0

func (c *Client) DescribeLaunchTemplateVersionsRequest(input *DescribeLaunchTemplateVersionsInput) DescribeLaunchTemplateVersionsRequest

DescribeLaunchTemplateVersionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more versions of a specified launch template. You can describe all versions, individual versions, or a range of versions. You can also describe all the latest versions or all the default versions of all the launch templates in your account.

// Example sending a request using DescribeLaunchTemplateVersionsRequest.
req := client.DescribeLaunchTemplateVersionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions

Example (Shared00)

To describe the versions for a launch template

This example describes the versions for the specified launch template.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeLaunchTemplateVersionsInput{
		LaunchTemplateId: aws.String("068f72b72934aff71"),
	}

	req := svc.DescribeLaunchTemplateVersionsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeLaunchTemplatesRequest added in v0.9.0

func (c *Client) DescribeLaunchTemplatesRequest(input *DescribeLaunchTemplatesInput) DescribeLaunchTemplatesRequest

DescribeLaunchTemplatesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more launch templates.

// Example sending a request using DescribeLaunchTemplatesRequest.
req := client.DescribeLaunchTemplatesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplates

Example (Shared00)

To describe a launch template

This example describes the specified launch template.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeLaunchTemplatesInput{
		LaunchTemplateIds: []string{
			"lt-01238c059e3466abc",
		},
	}

	req := svc.DescribeLaunchTemplatesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest added in v0.18.0

DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the associations between virtual interface groups and local gateway route tables.

// Example sending a request using DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest.
req := client.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations

func (*Client) DescribeLocalGatewayRouteTableVpcAssociationsRequest added in v0.18.0

func (c *Client) DescribeLocalGatewayRouteTableVpcAssociationsRequest(input *DescribeLocalGatewayRouteTableVpcAssociationsInput) DescribeLocalGatewayRouteTableVpcAssociationsRequest

DescribeLocalGatewayRouteTableVpcAssociationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified associations between VPCs and local gateway route tables.

// Example sending a request using DescribeLocalGatewayRouteTableVpcAssociationsRequest.
req := client.DescribeLocalGatewayRouteTableVpcAssociationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLocalGatewayRouteTableVpcAssociations

func (*Client) DescribeLocalGatewayRouteTablesRequest added in v0.18.0

func (c *Client) DescribeLocalGatewayRouteTablesRequest(input *DescribeLocalGatewayRouteTablesInput) DescribeLocalGatewayRouteTablesRequest

DescribeLocalGatewayRouteTablesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more local gateway route tables. By default, all local gateway route tables are described. Alternatively, you can filter the results.

// Example sending a request using DescribeLocalGatewayRouteTablesRequest.
req := client.DescribeLocalGatewayRouteTablesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLocalGatewayRouteTables

func (*Client) DescribeLocalGatewayVirtualInterfaceGroupsRequest added in v0.18.0

func (c *Client) DescribeLocalGatewayVirtualInterfaceGroupsRequest(input *DescribeLocalGatewayVirtualInterfaceGroupsInput) DescribeLocalGatewayVirtualInterfaceGroupsRequest

DescribeLocalGatewayVirtualInterfaceGroupsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified local gateway virtual interface groups.

// Example sending a request using DescribeLocalGatewayVirtualInterfaceGroupsRequest.
req := client.DescribeLocalGatewayVirtualInterfaceGroupsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLocalGatewayVirtualInterfaceGroups

func (*Client) DescribeLocalGatewayVirtualInterfacesRequest added in v0.18.0

func (c *Client) DescribeLocalGatewayVirtualInterfacesRequest(input *DescribeLocalGatewayVirtualInterfacesInput) DescribeLocalGatewayVirtualInterfacesRequest

DescribeLocalGatewayVirtualInterfacesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified local gateway virtual interfaces.

// Example sending a request using DescribeLocalGatewayVirtualInterfacesRequest.
req := client.DescribeLocalGatewayVirtualInterfacesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLocalGatewayVirtualInterfaces

func (*Client) DescribeLocalGatewaysRequest added in v0.18.0

func (c *Client) DescribeLocalGatewaysRequest(input *DescribeLocalGatewaysInput) DescribeLocalGatewaysRequest

DescribeLocalGatewaysRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results.

// Example sending a request using DescribeLocalGatewaysRequest.
req := client.DescribeLocalGatewaysRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLocalGateways

func (*Client) DescribeManagedPrefixListsRequest added in v0.24.0

func (c *Client) DescribeManagedPrefixListsRequest(input *DescribeManagedPrefixListsInput) DescribeManagedPrefixListsRequest

DescribeManagedPrefixListsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes your managed prefix lists and any AWS-managed prefix lists.

To view the entries for your prefix list, use GetManagedPrefixListEntries.

// Example sending a request using DescribeManagedPrefixListsRequest.
req := client.DescribeManagedPrefixListsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeManagedPrefixLists

func (*Client) DescribeMovingAddressesRequest added in v0.9.0

func (c *Client) DescribeMovingAddressesRequest(input *DescribeMovingAddressesInput) DescribeMovingAddressesRequest

DescribeMovingAddressesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account.

// Example sending a request using DescribeMovingAddressesRequest.
req := client.DescribeMovingAddressesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddresses

Example (Shared00)

To describe your moving addresses

This example describes all of your moving Elastic IP addresses.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeMovingAddressesInput{}

	req := svc.DescribeMovingAddressesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeNatGatewaysRequest added in v0.9.0

func (c *Client) DescribeNatGatewaysRequest(input *DescribeNatGatewaysInput) DescribeNatGatewaysRequest

DescribeNatGatewaysRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your NAT gateways.

// Example sending a request using DescribeNatGatewaysRequest.
req := client.DescribeNatGatewaysRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways

Example (Shared00)

To describe a NAT gateway

This example describes the NAT gateway for the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeNatGatewaysInput{
		Filter: []ec2.Filter{
			{
				Name: aws.String("vpc-id"),
				Values: []string{
					"vpc-1a2b3c4d",
				},
			},
		},
	}

	req := svc.DescribeNatGatewaysRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeNetworkAclsRequest added in v0.9.0

func (c *Client) DescribeNetworkAclsRequest(input *DescribeNetworkAclsInput) DescribeNetworkAclsRequest

DescribeNetworkAclsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your network ACLs.

For more information, see Network ACLs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using DescribeNetworkAclsRequest.
req := client.DescribeNetworkAclsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls

Example (Shared00)

To describe a network ACL

This example describes the specified network ACL.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeNetworkAclsInput{
		NetworkAclIds: []string{
			"acl-5fb85d36",
		},
	}

	req := svc.DescribeNetworkAclsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeNetworkInterfaceAttributeRequest added in v0.9.0

func (c *Client) DescribeNetworkInterfaceAttributeRequest(input *DescribeNetworkInterfaceAttributeInput) DescribeNetworkInterfaceAttributeRequest

DescribeNetworkInterfaceAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes a network interface attribute. You can specify only one attribute at a time.

// Example sending a request using DescribeNetworkInterfaceAttributeRequest.
req := client.DescribeNetworkInterfaceAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttribute

Example (Shared00)

To describe the attachment attribute of a network interface

This example describes the attachment attribute of the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeNetworkInterfaceAttributeInput{
		Attribute:          ec2.NetworkInterfaceAttributeAttachment,
		NetworkInterfaceId: aws.String("eni-686ea200"),
	}

	req := svc.DescribeNetworkInterfaceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe the description attribute of a network interface

This example describes the description attribute of the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeNetworkInterfaceAttributeInput{
		Attribute:          ec2.NetworkInterfaceAttributeDescription,
		NetworkInterfaceId: aws.String("eni-686ea200"),
	}

	req := svc.DescribeNetworkInterfaceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared02)

To describe the groupSet attribute of a network interface

This example describes the groupSet attribute of the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeNetworkInterfaceAttributeInput{
		Attribute:          ec2.NetworkInterfaceAttributeGroupSet,
		NetworkInterfaceId: aws.String("eni-686ea200"),
	}

	req := svc.DescribeNetworkInterfaceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared03)

To describe the sourceDestCheck attribute of a network interface

This example describes the sourceDestCheck attribute of the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeNetworkInterfaceAttributeInput{
		Attribute:          ec2.NetworkInterfaceAttributeSourceDestCheck,
		NetworkInterfaceId: aws.String("eni-686ea200"),
	}

	req := svc.DescribeNetworkInterfaceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeNetworkInterfacePermissionsRequest added in v0.9.0

func (c *Client) DescribeNetworkInterfacePermissionsRequest(input *DescribeNetworkInterfacePermissionsInput) DescribeNetworkInterfacePermissionsRequest

DescribeNetworkInterfacePermissionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the permissions for your network interfaces.

// Example sending a request using DescribeNetworkInterfacePermissionsRequest.
req := client.DescribeNetworkInterfacePermissionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacePermissions

func (*Client) DescribeNetworkInterfacesRequest added in v0.9.0

func (c *Client) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesInput) DescribeNetworkInterfacesRequest

DescribeNetworkInterfacesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your network interfaces.

// Example sending a request using DescribeNetworkInterfacesRequest.
req := client.DescribeNetworkInterfacesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaces

Example (Shared00)
package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeNetworkInterfacesInput{
		NetworkInterfaceIds: []string{
			"eni-e5aa89a3",
		},
	}

	req := svc.DescribeNetworkInterfacesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribePlacementGroupsRequest added in v0.9.0

func (c *Client) DescribePlacementGroupsRequest(input *DescribePlacementGroupsInput) DescribePlacementGroupsRequest

DescribePlacementGroupsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified placement groups or all of your placement groups. For more information, see Placement groups (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribePlacementGroupsRequest.
req := client.DescribePlacementGroupsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroups

func (*Client) DescribePrefixListsRequest added in v0.9.0

func (c *Client) DescribePrefixListsRequest(input *DescribePrefixListsInput) DescribePrefixListsRequest

DescribePrefixListsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes available AWS services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service.

We recommend that you use DescribeManagedPrefixLists instead.

// Example sending a request using DescribePrefixListsRequest.
req := client.DescribePrefixListsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixLists

func (*Client) DescribePrincipalIdFormatRequest added in v0.9.0

func (c *Client) DescribePrincipalIdFormatRequest(input *DescribePrincipalIdFormatInput) DescribePrincipalIdFormatRequest

DescribePrincipalIdFormatRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.

By default, all IAM roles and IAM users default to the same ID settings as the root user, unless they explicitly override the settings. This request is useful for identifying those IAM users and IAM roles that have overridden the default ID settings.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

// Example sending a request using DescribePrincipalIdFormatRequest.
req := client.DescribePrincipalIdFormatRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrincipalIdFormat

func (*Client) DescribePublicIpv4PoolsRequest added in v0.9.0

func (c *Client) DescribePublicIpv4PoolsRequest(input *DescribePublicIpv4PoolsInput) DescribePublicIpv4PoolsRequest

DescribePublicIpv4PoolsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified IPv4 address pools.

// Example sending a request using DescribePublicIpv4PoolsRequest.
req := client.DescribePublicIpv4PoolsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePublicIpv4Pools

func (*Client) DescribeRegionsRequest added in v0.9.0

func (c *Client) DescribeRegionsRequest(input *DescribeRegionsInput) DescribeRegionsRequest

DescribeRegionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the Regions that are enabled for your account, or all Regions.

For a list of the Regions supported by Amazon EC2, see Regions and Endpoints (https://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region).

For information about enabling and disabling Regions for your account, see Managing AWS Regions (https://docs.aws.amazon.com/general/latest/gr/rande-manage.html) in the AWS General Reference.

// Example sending a request using DescribeRegionsRequest.
req := client.DescribeRegionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegions

Example (Shared00)

To describe your regions

This example describes all the regions that are available to you.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeRegionsInput{}

	req := svc.DescribeRegionsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeReservedInstancesListingsRequest added in v0.9.0

func (c *Client) DescribeReservedInstancesListingsRequest(input *DescribeReservedInstancesListingsInput) DescribeReservedInstancesListingsRequest

DescribeReservedInstancesListingsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.

The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.

As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you're searching for with what's available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.

For more information, see Reserved Instance Marketplace (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeReservedInstancesListingsRequest.
req := client.DescribeReservedInstancesListingsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListings

func (*Client) DescribeReservedInstancesModificationsRequest added in v0.9.0

func (c *Client) DescribeReservedInstancesModificationsRequest(input *DescribeReservedInstancesModificationsInput) DescribeReservedInstancesModificationsRequest

DescribeReservedInstancesModificationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.

For more information, see Modifying Reserved Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeReservedInstancesModificationsRequest.
req := client.DescribeReservedInstancesModificationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModifications

func (*Client) DescribeReservedInstancesOfferingsRequest added in v0.9.0

func (c *Client) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedInstancesOfferingsInput) DescribeReservedInstancesOfferingsRequest

DescribeReservedInstancesOfferingsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.

If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.

For more information, see Reserved Instance Marketplace (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeReservedInstancesOfferingsRequest.
req := client.DescribeReservedInstancesOfferingsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferings

func (*Client) DescribeReservedInstancesRequest added in v0.9.0

func (c *Client) DescribeReservedInstancesRequest(input *DescribeReservedInstancesInput) DescribeReservedInstancesRequest

DescribeReservedInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of the Reserved Instances that you purchased.

For more information about Reserved Instances, see Reserved Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeReservedInstancesRequest.
req := client.DescribeReservedInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstances

func (*Client) DescribeRouteTablesRequest added in v0.9.0

func (c *Client) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) DescribeRouteTablesRequest

DescribeRouteTablesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your route tables.

Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

For more information, see Route Tables (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using DescribeRouteTablesRequest.
req := client.DescribeRouteTablesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTables

Example (Shared00)

To describe a route table

This example describes the specified route table.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeRouteTablesInput{
		RouteTableIds: []string{
			"rtb-1f382e7d",
		},
	}

	req := svc.DescribeRouteTablesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeScheduledInstanceAvailabilityRequest added in v0.9.0

func (c *Client) DescribeScheduledInstanceAvailabilityRequest(input *DescribeScheduledInstanceAvailabilityInput) DescribeScheduledInstanceAvailabilityRequest

DescribeScheduledInstanceAvailabilityRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Finds available schedules that meet the specified criteria.

You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.

// Example sending a request using DescribeScheduledInstanceAvailabilityRequest.
req := client.DescribeScheduledInstanceAvailabilityRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailability

Example (Shared00)

To describe an available schedule

This example describes a schedule that occurs every week on Sunday, starting on the specified date. Note that the output contains a single schedule as an example.

package main

import (
	"context"
	"fmt"
	"time"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func parseTime(layout, value string) time.Time {
	t, err := time.Parse(layout, value)
	if err != nil {
		panic(err)
	}
	return t
}

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeScheduledInstanceAvailabilityInput{
		FirstSlotStartTimeRange: &ec2.SlotDateTimeRangeRequest{
			EarliestTime: aws.Time(parseTime("2006-01-02T15:04:05Z", "2016-01-31T00:00:00Z")),
			LatestTime:   aws.Time(parseTime("2006-01-02T15:04:05Z", "2016-01-31T04:00:00Z")),
		},
		Recurrence: &ec2.ScheduledInstanceRecurrenceRequest{
			Frequency: aws.String("Weekly"),
			Interval:  aws.Int64(1),
			OccurrenceDays: []int64{
				1,
			},
		},
	}

	req := svc.DescribeScheduledInstanceAvailabilityRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeScheduledInstancesRequest added in v0.9.0

func (c *Client) DescribeScheduledInstancesRequest(input *DescribeScheduledInstancesInput) DescribeScheduledInstancesRequest

DescribeScheduledInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified Scheduled Instances or all your Scheduled Instances.

// Example sending a request using DescribeScheduledInstancesRequest.
req := client.DescribeScheduledInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstances

Example (Shared00)

To describe your Scheduled Instances

This example describes the specified Scheduled Instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeScheduledInstancesInput{
		ScheduledInstanceIds: []string{
			"sci-1234-1234-1234-1234-123456789012",
		},
	}

	req := svc.DescribeScheduledInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeSecurityGroupReferencesRequest added in v0.9.0

func (c *Client) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGroupReferencesInput) DescribeSecurityGroupReferencesRequest

DescribeSecurityGroupReferencesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

[VPC only] Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you've specified in this request.

// Example sending a request using DescribeSecurityGroupReferencesRequest.
req := client.DescribeSecurityGroupReferencesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferences

Example (Shared00)

To describe security group references

This example describes the security group references for the specified security group.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSecurityGroupReferencesInput{
		GroupId: []string{
			"sg-903004f8",
		},
	}

	req := svc.DescribeSecurityGroupReferencesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeSecurityGroupsRequest added in v0.9.0

func (c *Client) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) DescribeSecurityGroupsRequest

DescribeSecurityGroupsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified security groups or all of your security groups.

A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html) in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using DescribeSecurityGroupsRequest.
req := client.DescribeSecurityGroupsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroups

Example (Shared00)

To describe a security group

This example describes the specified security group.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSecurityGroupsInput{
		GroupIds: []string{
			"sg-903004f8",
		},
	}

	req := svc.DescribeSecurityGroupsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe a tagged security group

This example describes the security groups that include the specified tag (Purpose=test).

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSecurityGroupsInput{
		Filters: []ec2.Filter{
			{
				Name: aws.String("tag:Purpose"),
				Values: []string{
					"test",
				},
			},
		},
	}

	req := svc.DescribeSecurityGroupsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeSnapshotAttributeRequest added in v0.9.0

func (c *Client) DescribeSnapshotAttributeRequest(input *DescribeSnapshotAttributeInput) DescribeSnapshotAttributeRequest

DescribeSnapshotAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

For more information about EBS snapshots, see Amazon EBS Snapshots (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeSnapshotAttributeRequest.
req := client.DescribeSnapshotAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttribute

Example (Shared00)

To describe snapshot attributes

This example describes the “createVolumePermission“ attribute on a snapshot with the snapshot ID of “snap-066877671789bd71b“.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSnapshotAttributeInput{
		Attribute:  ec2.SnapshotAttributeNameCreateVolumePermission,
		SnapshotId: aws.String("snap-066877671789bd71b"),
	}

	req := svc.DescribeSnapshotAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeSnapshotsRequest added in v0.9.0

func (c *Client) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) DescribeSnapshotsRequest

DescribeSnapshotsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.

The snapshots available to you include public snapshots, private snapshots that you own, and private snapshots owned by other AWS accounts for which you have explicit create volume permissions.

The create volume permissions fall into the following categories:

  • public: The owner of the snapshot granted create volume permissions for the snapshot to the all group. All AWS accounts have create volume permissions for these snapshots.

  • explicit: The owner of the snapshot granted create volume permissions to a specific AWS account.

  • implicit: An AWS account has implicit create volume permissions for all snapshots it owns.

The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot owners, or AWS accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.

If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.

If you specify one or more snapshot owners using the OwnerIds option, only snapshots from the specified owners and for which you have access are returned. The results can include the AWS account IDs of the specified owners, amazon for snapshots owned by Amazon, or self for snapshots that you own.

If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify AWS account IDs (if you own the snapshots), self for snapshots for which you own or have explicit permissions, or all for public snapshots.

If you are describing a long list of snapshots, we recommend that you paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSnapshots request to retrieve the remaining results.

To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.

For more information about EBS snapshots, see Amazon EBS Snapshots (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeSnapshotsRequest.
req := client.DescribeSnapshotsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshots

Example (Shared00)

To describe a snapshot

This example describes a snapshot with the snapshot ID of “snap-1234567890abcdef0“.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSnapshotsInput{
		SnapshotIds: []string{
			"snap-1234567890abcdef0",
		},
	}

	req := svc.DescribeSnapshotsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe snapshots using filters

This example describes all snapshots owned by the ID 012345678910 that are in the “pending“ status.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSnapshotsInput{
		Filters: []ec2.Filter{
			{
				Name: aws.String("status"),
				Values: []string{
					"pending",
				},
			},
		},
		OwnerIds: []string{
			"012345678910",
		},
	}

	req := svc.DescribeSnapshotsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeSpotDatafeedSubscriptionRequest added in v0.9.0

func (c *Client) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafeedSubscriptionInput) DescribeSpotDatafeedSubscriptionRequest

DescribeSpotDatafeedSubscriptionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the data feed for Spot Instances. For more information, see Spot Instance data feed (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) in the Amazon EC2 User Guide for Linux Instances.

// Example sending a request using DescribeSpotDatafeedSubscriptionRequest.
req := client.DescribeSpotDatafeedSubscriptionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscription

Example (Shared00)

To describe the datafeed for your AWS account

This example describes the Spot Instance datafeed subscription for your AWS account.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSpotDatafeedSubscriptionInput{}

	req := svc.DescribeSpotDatafeedSubscriptionRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeSpotFleetInstancesRequest added in v0.9.0

func (c *Client) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstancesInput) DescribeSpotFleetInstancesRequest

DescribeSpotFleetInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the running instances for the specified Spot Fleet.

// Example sending a request using DescribeSpotFleetInstancesRequest.
req := client.DescribeSpotFleetInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstances

Example (Shared00)

To describe the Spot Instances associated with a Spot fleet

This example lists the Spot Instances associated with the specified Spot fleet.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSpotFleetInstancesInput{
		SpotFleetRequestId: aws.String("sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE"),
	}

	req := svc.DescribeSpotFleetInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeSpotFleetRequestHistoryRequest added in v0.9.0

func (c *Client) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetRequestHistoryInput) DescribeSpotFleetRequestHistoryRequest

DescribeSpotFleetRequestHistoryRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the events for the specified Spot Fleet request during the specified time.

Spot Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. Spot Fleet events are available for 48 hours.

// Example sending a request using DescribeSpotFleetRequestHistoryRequest.
req := client.DescribeSpotFleetRequestHistoryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistory

Example (Shared00)

To describe Spot fleet history

This example returns the history for the specified Spot fleet starting at the specified time.

package main

import (
	"context"
	"fmt"
	"time"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func parseTime(layout, value string) time.Time {
	t, err := time.Parse(layout, value)
	if err != nil {
		panic(err)
	}
	return t
}

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSpotFleetRequestHistoryInput{
		SpotFleetRequestId: aws.String("sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE"),
		StartTime:          aws.Time(parseTime("2006-01-02T15:04:05Z", "2015-05-26T00:00:00Z")),
	}

	req := svc.DescribeSpotFleetRequestHistoryRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeSpotFleetRequestsRequest added in v0.9.0

func (c *Client) DescribeSpotFleetRequestsRequest(input *DescribeSpotFleetRequestsInput) DescribeSpotFleetRequestsRequest

DescribeSpotFleetRequestsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes your Spot Fleet requests.

Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.

// Example sending a request using DescribeSpotFleetRequestsRequest.
req := client.DescribeSpotFleetRequestsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequests

Example (Shared00)

To describe a Spot fleet request

This example describes the specified Spot fleet request.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSpotFleetRequestsInput{
		SpotFleetRequestIds: []string{
			"sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE",
		},
	}

	req := svc.DescribeSpotFleetRequestsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeSpotInstanceRequestsRequest added in v0.9.0

func (c *Client) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceRequestsInput) DescribeSpotInstanceRequestsRequest

DescribeSpotInstanceRequestsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified Spot Instance requests.

You can use DescribeSpotInstanceRequests to find a running Spot Instance by examining the response. If the status of the Spot Instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances) with a filter to look for instances where the instance lifecycle is spot.

We recommend that you set MaxResults to a value between 5 and 1000 to limit the number of results returned. This paginates the output, which makes the list more manageable and returns the results faster. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSpotInstanceRequests request to retrieve the remaining results.

Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.

// Example sending a request using DescribeSpotInstanceRequestsRequest.
req := client.DescribeSpotInstanceRequestsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests

Example (Shared00)

To describe a Spot Instance request

This example describes the specified Spot Instance request.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSpotInstanceRequestsInput{
		SpotInstanceRequestIds: []string{
			"sir-08b93456",
		},
	}

	req := svc.DescribeSpotInstanceRequestsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeSpotPriceHistoryRequest added in v0.9.0

func (c *Client) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInput) DescribeSpotPriceHistoryRequest

DescribeSpotPriceHistoryRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the Spot price history. For more information, see Spot Instance pricing history (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html) in the Amazon EC2 User Guide for Linux Instances.

When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.

// Example sending a request using DescribeSpotPriceHistoryRequest.
req := client.DescribeSpotPriceHistoryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory

Example (Shared00)

To describe Spot price history for Linux/UNIX (Amazon VPC)

This example returns the Spot Price history for m1.xlarge, Linux/UNIX (Amazon VPC) instances for a particular day in January.

package main

import (
	"context"
	"fmt"
	"time"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func parseTime(layout, value string) time.Time {
	t, err := time.Parse(layout, value)
	if err != nil {
		panic(err)
	}
	return t
}

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSpotPriceHistoryInput{
		EndTime: aws.Time(parseTime("2006-01-02T15:04:05Z", "2014-01-06T08:09:10")),
		InstanceTypes: []ec2.InstanceType{
			ec2.InstanceTypeM1Xlarge,
		},
		ProductDescriptions: []string{
			"Linux/UNIX (Amazon VPC)",
		},
		StartTime: aws.Time(parseTime("2006-01-02T15:04:05Z", "2014-01-06T07:08:09")),
	}

	req := svc.DescribeSpotPriceHistoryRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeStaleSecurityGroupsRequest added in v0.9.0

func (c *Client) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGroupsInput) DescribeStaleSecurityGroupsRequest

DescribeStaleSecurityGroupsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

[VPC only] Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in a peer VPC, or a security group in a peer VPC for which the VPC peering connection has been deleted.

// Example sending a request using DescribeStaleSecurityGroupsRequest.
req := client.DescribeStaleSecurityGroupsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups

func (*Client) DescribeSubnetsRequest added in v0.9.0

func (c *Client) DescribeSubnetsRequest(input *DescribeSubnetsInput) DescribeSubnetsRequest

DescribeSubnetsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your subnets.

For more information, see Your VPC and Subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using DescribeSubnetsRequest.
req := client.DescribeSubnetsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets

Example (Shared00)

To describe the subnets for a VPC

This example describes the subnets for the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeSubnetsInput{
		Filters: []ec2.Filter{
			{
				Name: aws.String("vpc-id"),
				Values: []string{
					"vpc-a01106c2",
				},
			},
		},
	}

	req := svc.DescribeSubnetsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeTagsRequest added in v0.9.0

func (c *Client) DescribeTagsRequest(input *DescribeTagsInput) DescribeTagsRequest

DescribeTagsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified tags for your EC2 resources.

For more information about tags, see Tagging Your Resources (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeTagsRequest.
req := client.DescribeTagsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags

Example (Shared00)

To describe the tags for a single resource

This example describes the tags for the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeTagsInput{
		Filters: []ec2.Filter{
			{
				Name: aws.String("resource-id"),
				Values: []string{
					"i-1234567890abcdef8",
				},
			},
		},
	}

	req := svc.DescribeTagsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeTrafficMirrorFiltersRequest added in v0.10.0

func (c *Client) DescribeTrafficMirrorFiltersRequest(input *DescribeTrafficMirrorFiltersInput) DescribeTrafficMirrorFiltersRequest

DescribeTrafficMirrorFiltersRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more Traffic Mirror filters.

// Example sending a request using DescribeTrafficMirrorFiltersRequest.
req := client.DescribeTrafficMirrorFiltersRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTrafficMirrorFilters

func (*Client) DescribeTrafficMirrorSessionsRequest added in v0.10.0

func (c *Client) DescribeTrafficMirrorSessionsRequest(input *DescribeTrafficMirrorSessionsInput) DescribeTrafficMirrorSessionsRequest

DescribeTrafficMirrorSessionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results.

// Example sending a request using DescribeTrafficMirrorSessionsRequest.
req := client.DescribeTrafficMirrorSessionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTrafficMirrorSessions

func (*Client) DescribeTrafficMirrorTargetsRequest added in v0.10.0

func (c *Client) DescribeTrafficMirrorTargetsRequest(input *DescribeTrafficMirrorTargetsInput) DescribeTrafficMirrorTargetsRequest

DescribeTrafficMirrorTargetsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Information about one or more Traffic Mirror targets.

// Example sending a request using DescribeTrafficMirrorTargetsRequest.
req := client.DescribeTrafficMirrorTargetsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTrafficMirrorTargets

func (*Client) DescribeTransitGatewayAttachmentsRequest added in v0.9.0

func (c *Client) DescribeTransitGatewayAttachmentsRequest(input *DescribeTransitGatewayAttachmentsInput) DescribeTransitGatewayAttachmentsRequest

DescribeTransitGatewayAttachmentsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more attachments between resources and transit gateways. By default, all attachments are described. Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner.

// Example sending a request using DescribeTransitGatewayAttachmentsRequest.
req := client.DescribeTransitGatewayAttachmentsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayAttachments

func (*Client) DescribeTransitGatewayMulticastDomainsRequest added in v0.18.0

func (c *Client) DescribeTransitGatewayMulticastDomainsRequest(input *DescribeTransitGatewayMulticastDomainsInput) DescribeTransitGatewayMulticastDomainsRequest

DescribeTransitGatewayMulticastDomainsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more transit gateway multicast domains.

// Example sending a request using DescribeTransitGatewayMulticastDomainsRequest.
req := client.DescribeTransitGatewayMulticastDomainsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayMulticastDomains

func (*Client) DescribeTransitGatewayPeeringAttachmentsRequest added in v0.18.0

func (c *Client) DescribeTransitGatewayPeeringAttachmentsRequest(input *DescribeTransitGatewayPeeringAttachmentsInput) DescribeTransitGatewayPeeringAttachmentsRequest

DescribeTransitGatewayPeeringAttachmentsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes your transit gateway peering attachments.

// Example sending a request using DescribeTransitGatewayPeeringAttachmentsRequest.
req := client.DescribeTransitGatewayPeeringAttachmentsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayPeeringAttachments

func (*Client) DescribeTransitGatewayRouteTablesRequest added in v0.9.0

func (c *Client) DescribeTransitGatewayRouteTablesRequest(input *DescribeTransitGatewayRouteTablesInput) DescribeTransitGatewayRouteTablesRequest

DescribeTransitGatewayRouteTablesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. Alternatively, you can filter the results.

// Example sending a request using DescribeTransitGatewayRouteTablesRequest.
req := client.DescribeTransitGatewayRouteTablesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayRouteTables

func (*Client) DescribeTransitGatewayVpcAttachmentsRequest added in v0.9.0

func (c *Client) DescribeTransitGatewayVpcAttachmentsRequest(input *DescribeTransitGatewayVpcAttachmentsInput) DescribeTransitGatewayVpcAttachmentsRequest

DescribeTransitGatewayVpcAttachmentsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results.

// Example sending a request using DescribeTransitGatewayVpcAttachmentsRequest.
req := client.DescribeTransitGatewayVpcAttachmentsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayVpcAttachments

func (*Client) DescribeTransitGatewaysRequest added in v0.9.0

func (c *Client) DescribeTransitGatewaysRequest(input *DescribeTransitGatewaysInput) DescribeTransitGatewaysRequest

DescribeTransitGatewaysRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results.

// Example sending a request using DescribeTransitGatewaysRequest.
req := client.DescribeTransitGatewaysRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGateways

func (*Client) DescribeVolumeAttributeRequest added in v0.9.0

func (c *Client) DescribeVolumeAttributeRequest(input *DescribeVolumeAttributeInput) DescribeVolumeAttributeRequest

DescribeVolumeAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

For more information about EBS volumes, see Amazon EBS Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeVolumeAttributeRequest.
req := client.DescribeVolumeAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute

Example (Shared00)

To describe a volume attribute

This example describes the “autoEnableIo“ attribute of the volume with the ID “vol-049df61146c4d7901“.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeVolumeAttributeInput{
		Attribute: ec2.VolumeAttributeNameAutoEnableIo,
		VolumeId:  aws.String("vol-049df61146c4d7901"),
	}

	req := svc.DescribeVolumeAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeVolumeStatusRequest added in v0.9.0

func (c *Client) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) DescribeVolumeStatusRequest

DescribeVolumeStatusRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume's underlying host. If the volume's underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.

The DescribeVolumeStatus operation provides the following information about the specified volumes:

Status: Reflects the current status of the volume. The possible values are ok, impaired , warning, or insufficient-data. If all checks pass, the overall status of the volume is ok. If the check fails, the overall status is impaired. If the status is insufficient-data, then the checks may still be taking place on your volume at the time. We recommend that you retry the request. For more information about volume status, see Monitoring the Status of Your Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html) in the Amazon Elastic Compute Cloud User Guide.

Events: Reflect the cause of a volume status and may require you to take action. For example, if your volume returns an impaired status, then the volume event might be potential-data-inconsistency. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and may have inconsistent data.

Actions: Reflect the actions you may have to take in response to an event. For example, if the status of the volume is impaired and the volume event shows potential-data-inconsistency, then the action shows enable-volume-io. This means that you may want to enable the I/O operations for the volume by calling the EnableVolumeIO action and then check the volume for data consistency.

Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the error state (for example, when a volume is incapable of accepting I/O.)

// Example sending a request using DescribeVolumeStatusRequest.
req := client.DescribeVolumeStatusRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus

Example (Shared00)

To describe the status of a single volume

This example describes the status for the volume “vol-1234567890abcdef0“.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeVolumeStatusInput{
		VolumeIds: []string{
			"vol-1234567890abcdef0",
		},
	}

	req := svc.DescribeVolumeStatusRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe the status of impaired volumes

This example describes the status for all volumes that are impaired. In this example output, there are no impaired volumes.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeVolumeStatusInput{
		Filters: []ec2.Filter{
			{
				Name: aws.String("volume-status.status"),
				Values: []string{
					"impaired",
				},
			},
		},
	}

	req := svc.DescribeVolumeStatusRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeVolumesModificationsRequest added in v0.9.0

func (c *Client) DescribeVolumesModificationsRequest(input *DescribeVolumesModificationsInput) DescribeVolumesModificationsRequest

DescribeVolumesModificationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the most recent volume modification request for the specified EBS volumes.

If a volume has never been modified, some information in the output will be null. If a volume has been modified more than once, the output includes only the most recent modification request.

You can also use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). For more information, see Monitoring Volume Modifications (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeVolumesModificationsRequest.
req := client.DescribeVolumesModificationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications

func (*Client) DescribeVolumesRequest added in v0.9.0

func (c *Client) DescribeVolumesRequest(input *DescribeVolumesInput) DescribeVolumesRequest

DescribeVolumesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified EBS volumes or all of your EBS volumes.

If you are describing a long list of volumes, we recommend that you paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeVolumes request to retrieve the remaining results.

For more information about EBS volumes, see Amazon EBS Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeVolumesRequest.
req := client.DescribeVolumesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes

Example (Shared00)

To describe all volumes

This example describes all of your volumes in the default region.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeVolumesInput{}

	req := svc.DescribeVolumesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe volumes that are attached to a specific instance

This example describes all volumes that are both attached to the instance with the ID i-1234567890abcdef0 and set to delete when the instance terminates.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeVolumesInput{
		Filters: []ec2.Filter{
			{
				Name: aws.String("attachment.instance-id"),
				Values: []string{
					"i-1234567890abcdef0",
				},
			},
			{
				Name: aws.String("attachment.delete-on-termination"),
				Values: []string{
					"true",
				},
			},
		},
	}

	req := svc.DescribeVolumesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeVpcAttributeRequest added in v0.9.0

func (c *Client) DescribeVpcAttributeRequest(input *DescribeVpcAttributeInput) DescribeVpcAttributeRequest

DescribeVpcAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.

// Example sending a request using DescribeVpcAttributeRequest.
req := client.DescribeVpcAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute

Example (Shared00)

To describe the enableDnsSupport attribute

This example describes the enableDnsSupport attribute. This attribute indicates whether DNS resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeVpcAttributeInput{
		Attribute: ec2.VpcAttributeNameEnableDnsSupport,
		VpcId:     aws.String("vpc-a01106c2"),
	}

	req := svc.DescribeVpcAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To describe the enableDnsHostnames attribute

This example describes the enableDnsHostnames attribute. This attribute indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeVpcAttributeInput{
		Attribute: ec2.VpcAttributeNameEnableDnsHostnames,
		VpcId:     aws.String("vpc-a01106c2"),
	}

	req := svc.DescribeVpcAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeVpcClassicLinkDnsSupportRequest added in v0.9.0

func (c *Client) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicLinkDnsSupportInput) DescribeVpcClassicLinkDnsSupportRequest

DescribeVpcClassicLinkDnsSupportRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DescribeVpcClassicLinkDnsSupportRequest.
req := client.DescribeVpcClassicLinkDnsSupportRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport

func (*Client) DescribeVpcClassicLinkRequest added in v0.9.0

func (c *Client) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) DescribeVpcClassicLinkRequest

DescribeVpcClassicLinkRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the ClassicLink status of one or more VPCs.

// Example sending a request using DescribeVpcClassicLinkRequest.
req := client.DescribeVpcClassicLinkRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink

func (*Client) DescribeVpcEndpointConnectionNotificationsRequest added in v0.9.0

func (c *Client) DescribeVpcEndpointConnectionNotificationsRequest(input *DescribeVpcEndpointConnectionNotificationsInput) DescribeVpcEndpointConnectionNotificationsRequest

DescribeVpcEndpointConnectionNotificationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the connection notifications for VPC endpoints and VPC endpoint services.

// Example sending a request using DescribeVpcEndpointConnectionNotificationsRequest.
req := client.DescribeVpcEndpointConnectionNotificationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotifications

func (*Client) DescribeVpcEndpointConnectionsRequest added in v0.9.0

func (c *Client) DescribeVpcEndpointConnectionsRequest(input *DescribeVpcEndpointConnectionsInput) DescribeVpcEndpointConnectionsRequest

DescribeVpcEndpointConnectionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance.

// Example sending a request using DescribeVpcEndpointConnectionsRequest.
req := client.DescribeVpcEndpointConnectionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnections

func (*Client) DescribeVpcEndpointServiceConfigurationsRequest added in v0.9.0

func (c *Client) DescribeVpcEndpointServiceConfigurationsRequest(input *DescribeVpcEndpointServiceConfigurationsInput) DescribeVpcEndpointServiceConfigurationsRequest

DescribeVpcEndpointServiceConfigurationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the VPC endpoint service configurations in your account (your services).

// Example sending a request using DescribeVpcEndpointServiceConfigurationsRequest.
req := client.DescribeVpcEndpointServiceConfigurationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurations

func (*Client) DescribeVpcEndpointServicePermissionsRequest added in v0.9.0

func (c *Client) DescribeVpcEndpointServicePermissionsRequest(input *DescribeVpcEndpointServicePermissionsInput) DescribeVpcEndpointServicePermissionsRequest

DescribeVpcEndpointServicePermissionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the principals (service consumers) that are permitted to discover your VPC endpoint service.

// Example sending a request using DescribeVpcEndpointServicePermissionsRequest.
req := client.DescribeVpcEndpointServicePermissionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissions

func (*Client) DescribeVpcEndpointServicesRequest added in v0.9.0

func (c *Client) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServicesInput) DescribeVpcEndpointServicesRequest

DescribeVpcEndpointServicesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes available services to which you can create a VPC endpoint.

// Example sending a request using DescribeVpcEndpointServicesRequest.
req := client.DescribeVpcEndpointServicesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices

func (*Client) DescribeVpcEndpointsRequest added in v0.9.0

func (c *Client) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) DescribeVpcEndpointsRequest

DescribeVpcEndpointsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your VPC endpoints.

// Example sending a request using DescribeVpcEndpointsRequest.
req := client.DescribeVpcEndpointsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints

func (*Client) DescribeVpcPeeringConnectionsRequest added in v0.9.0

func (c *Client) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConnectionsInput) DescribeVpcPeeringConnectionsRequest

DescribeVpcPeeringConnectionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your VPC peering connections.

// Example sending a request using DescribeVpcPeeringConnectionsRequest.
req := client.DescribeVpcPeeringConnectionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections

func (*Client) DescribeVpcsRequest added in v0.9.0

func (c *Client) DescribeVpcsRequest(input *DescribeVpcsInput) DescribeVpcsRequest

DescribeVpcsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your VPCs.

// Example sending a request using DescribeVpcsRequest.
req := client.DescribeVpcsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs

Example (Shared00)

To describe a VPC

This example describes the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DescribeVpcsInput{
		VpcIds: []string{
			"vpc-a01106c2",
		},
	}

	req := svc.DescribeVpcsRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DescribeVpnConnectionsRequest added in v0.9.0

func (c *Client) DescribeVpnConnectionsRequest(input *DescribeVpnConnectionsInput) DescribeVpnConnectionsRequest

DescribeVpnConnectionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your VPN connections.

For more information, see AWS Site-to-Site VPN (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the AWS Site-to-Site VPN User Guide.

// Example sending a request using DescribeVpnConnectionsRequest.
req := client.DescribeVpnConnectionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections

func (*Client) DescribeVpnGatewaysRequest added in v0.9.0

func (c *Client) DescribeVpnGatewaysRequest(input *DescribeVpnGatewaysInput) DescribeVpnGatewaysRequest

DescribeVpnGatewaysRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes one or more of your virtual private gateways.

For more information, see AWS Site-to-Site VPN (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the AWS Site-to-Site VPN User Guide.

// Example sending a request using DescribeVpnGatewaysRequest.
req := client.DescribeVpnGatewaysRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways

func (*Client) DetachClassicLinkVpcRequest added in v0.9.0

func (c *Client) DetachClassicLinkVpcRequest(input *DetachClassicLinkVpcInput) DetachClassicLinkVpcRequest

DetachClassicLinkVpcRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped.

// Example sending a request using DetachClassicLinkVpcRequest.
req := client.DetachClassicLinkVpcRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc

func (*Client) DetachInternetGatewayRequest added in v0.9.0

func (c *Client) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) DetachInternetGatewayRequest

DetachInternetGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses.

// Example sending a request using DetachInternetGatewayRequest.
req := client.DetachInternetGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway

Example (Shared00)

To detach an Internet gateway from a VPC

This example detaches the specified Internet gateway from the specified VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DetachInternetGatewayInput{
		InternetGatewayId: aws.String("igw-c0a643a9"),
		VpcId:             aws.String("vpc-a01106c2"),
	}

	req := svc.DetachInternetGatewayRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DetachNetworkInterfaceRequest added in v0.9.0

func (c *Client) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) DetachNetworkInterfaceRequest

DetachNetworkInterfaceRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Detaches a network interface from an instance.

// Example sending a request using DetachNetworkInterfaceRequest.
req := client.DetachNetworkInterfaceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface

Example (Shared00)

To detach a network interface from an instance

This example detaches the specified network interface from its attached instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DetachNetworkInterfaceInput{
		AttachmentId: aws.String("eni-attach-66c4350a"),
	}

	req := svc.DetachNetworkInterfaceRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DetachVolumeRequest added in v0.9.0

func (c *Client) DetachVolumeRequest(input *DetachVolumeInput) DetachVolumeRequest

DetachVolumeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so can result in the volume becoming stuck in the busy state while detaching. If this happens, detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot the instance, or all three. If an EBS volume is the root device of an instance, it can't be detached while the instance is running. To detach the root volume, stop the instance first.

When a volume with an AWS Marketplace product code is detached from an instance, the product code is no longer associated with the instance.

For more information, see Detaching an Amazon EBS Volume (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DetachVolumeRequest.
req := client.DetachVolumeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume

Example (Shared00)

To detach a volume from an instance

This example detaches the volume (“vol-049df61146c4d7901“) from the instance it is attached to.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DetachVolumeInput{
		VolumeId: aws.String("vol-1234567890abcdef0"),
	}

	req := svc.DetachVolumeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DetachVpnGatewayRequest added in v0.9.0

func (c *Client) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) DetachVpnGatewayRequest

DetachVpnGatewayRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

// Example sending a request using DetachVpnGatewayRequest.
req := client.DetachVpnGatewayRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway

func (*Client) DisableEbsEncryptionByDefaultRequest added in v0.9.0

func (c *Client) DisableEbsEncryptionByDefaultRequest(input *DisableEbsEncryptionByDefaultInput) DisableEbsEncryptionByDefaultRequest

DisableEbsEncryptionByDefaultRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disables EBS encryption by default for your account in the current Region.

After you disable encryption by default, you can still create encrypted volumes by enabling encryption when you create each volume.

Disabling encryption by default does not change the encryption status of your existing volumes.

For more information, see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using DisableEbsEncryptionByDefaultRequest.
req := client.DisableEbsEncryptionByDefaultRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableEbsEncryptionByDefault

func (*Client) DisableFastSnapshotRestoresRequest added in v0.17.0

func (c *Client) DisableFastSnapshotRestoresRequest(input *DisableFastSnapshotRestoresInput) DisableFastSnapshotRestoresRequest

DisableFastSnapshotRestoresRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disables fast snapshot restores for the specified snapshots in the specified Availability Zones.

// Example sending a request using DisableFastSnapshotRestoresRequest.
req := client.DisableFastSnapshotRestoresRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableFastSnapshotRestores

func (*Client) DisableTransitGatewayRouteTablePropagationRequest added in v0.9.0

func (c *Client) DisableTransitGatewayRouteTablePropagationRequest(input *DisableTransitGatewayRouteTablePropagationInput) DisableTransitGatewayRouteTablePropagationRequest

DisableTransitGatewayRouteTablePropagationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disables the specified resource attachment from propagating routes to the specified propagation route table.

// Example sending a request using DisableTransitGatewayRouteTablePropagationRequest.
req := client.DisableTransitGatewayRouteTablePropagationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableTransitGatewayRouteTablePropagation

func (*Client) DisableVgwRoutePropagationRequest added in v0.9.0

func (c *Client) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagationInput) DisableVgwRoutePropagationRequest

DisableVgwRoutePropagationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.

// Example sending a request using DisableVgwRoutePropagationRequest.
req := client.DisableVgwRoutePropagationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation

Example (Shared00)

To disable route propagation

This example disables the specified virtual private gateway from propagating static routes to the specified route table.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DisableVgwRoutePropagationInput{
		GatewayId:    aws.String("vgw-9a4cacf3"),
		RouteTableId: aws.String("rtb-22574640"),
	}

	req := svc.DisableVgwRoutePropagationRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DisableVpcClassicLinkDnsSupportRequest added in v0.9.0

func (c *Client) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLinkDnsSupportInput) DisableVpcClassicLinkDnsSupportRequest

DisableVpcClassicLinkDnsSupportRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it's linked. For more information, see ClassicLink (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in the Amazon Elastic Compute Cloud User Guide.

You must specify a VPC ID in the request.

// Example sending a request using DisableVpcClassicLinkDnsSupportRequest.
req := client.DisableVpcClassicLinkDnsSupportRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport

func (*Client) DisableVpcClassicLinkRequest added in v0.9.0

func (c *Client) DisableVpcClassicLinkRequest(input *DisableVpcClassicLinkInput) DisableVpcClassicLinkRequest

DisableVpcClassicLinkRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it.

// Example sending a request using DisableVpcClassicLinkRequest.
req := client.DisableVpcClassicLinkRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink

func (*Client) DisassociateAddressRequest added in v0.9.0

func (c *Client) DisassociateAddressRequest(input *DisassociateAddressInput) DisassociateAddressRequest

DisassociateAddressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disassociates an Elastic IP address from the instance or network interface it's associated with.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) in the Amazon Elastic Compute Cloud User Guide.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

// Example sending a request using DisassociateAddressRequest.
req := client.DisassociateAddressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress

Example (Shared00)

To disassociate an Elastic IP address in EC2-VPC

This example disassociates an Elastic IP address from an instance in a VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DisassociateAddressInput{
		AssociationId: aws.String("eipassoc-2bebb745"),
	}

	req := svc.DisassociateAddressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To disassociate an Elastic IP addresses in EC2-Classic

This example disassociates an Elastic IP address from an instance in EC2-Classic.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DisassociateAddressInput{
		PublicIp: aws.String("198.51.100.0"),
	}

	req := svc.DisassociateAddressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DisassociateClientVpnTargetNetworkRequest added in v0.9.0

func (c *Client) DisassociateClientVpnTargetNetworkRequest(input *DisassociateClientVpnTargetNetworkInput) DisassociateClientVpnTargetNetworkRequest

DisassociateClientVpnTargetNetworkRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disassociates a target network from the specified Client VPN endpoint. When you disassociate the last target network from a Client VPN, the following happens:

  • The route that was automatically added for the VPC is deleted

  • All active client connections are terminated

  • New client connections are disallowed

  • The Client VPN endpoint's status changes to pending-associate

    // Example sending a request using DisassociateClientVpnTargetNetworkRequest. req := client.DisassociateClientVpnTargetNetworkRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateClientVpnTargetNetwork

func (*Client) DisassociateIamInstanceProfileRequest added in v0.9.0

func (c *Client) DisassociateIamInstanceProfileRequest(input *DisassociateIamInstanceProfileInput) DisassociateIamInstanceProfileRequest

DisassociateIamInstanceProfileRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disassociates an IAM instance profile from a running or stopped instance.

Use DescribeIamInstanceProfileAssociations to get the association ID.

// Example sending a request using DisassociateIamInstanceProfileRequest.
req := client.DisassociateIamInstanceProfileRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile

Example (Shared00)

To disassociate an IAM instance profile

This example disassociates the specified IAM instance profile from an instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DisassociateIamInstanceProfileInput{
		AssociationId: aws.String("iip-assoc-05020b59952902f5f"),
	}

	req := svc.DisassociateIamInstanceProfileRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DisassociateRouteTableRequest added in v0.9.0

func (c *Client) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) DisassociateRouteTableRequest

DisassociateRouteTableRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disassociates a subnet or gateway from a route table.

After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route Tables (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using DisassociateRouteTableRequest.
req := client.DisassociateRouteTableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable

Example (Shared00)

To disassociate a route table

This example disassociates the specified route table from its associated subnet.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.DisassociateRouteTableInput{
		AssociationId: aws.String("rtbassoc-781d0d1a"),
	}

	req := svc.DisassociateRouteTableRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) DisassociateSubnetCidrBlockRequest added in v0.9.0

func (c *Client) DisassociateSubnetCidrBlockRequest(input *DisassociateSubnetCidrBlockInput) DisassociateSubnetCidrBlockRequest

DisassociateSubnetCidrBlockRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

// Example sending a request using DisassociateSubnetCidrBlockRequest.
req := client.DisassociateSubnetCidrBlockRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock

func (*Client) DisassociateTransitGatewayMulticastDomainRequest added in v0.18.0

func (c *Client) DisassociateTransitGatewayMulticastDomainRequest(input *DisassociateTransitGatewayMulticastDomainInput) DisassociateTransitGatewayMulticastDomainRequest

DisassociateTransitGatewayMulticastDomainRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disassociates the specified subnets from the transit gateway multicast domain.

// Example sending a request using DisassociateTransitGatewayMulticastDomainRequest.
req := client.DisassociateTransitGatewayMulticastDomainRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateTransitGatewayMulticastDomain

func (*Client) DisassociateTransitGatewayRouteTableRequest added in v0.9.0

func (c *Client) DisassociateTransitGatewayRouteTableRequest(input *DisassociateTransitGatewayRouteTableInput) DisassociateTransitGatewayRouteTableRequest

DisassociateTransitGatewayRouteTableRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disassociates a resource attachment from a transit gateway route table.

// Example sending a request using DisassociateTransitGatewayRouteTableRequest.
req := client.DisassociateTransitGatewayRouteTableRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateTransitGatewayRouteTable

func (*Client) DisassociateVpcCidrBlockRequest added in v0.9.0

func (c *Client) DisassociateVpcCidrBlockRequest(input *DisassociateVpcCidrBlockInput) DisassociateVpcCidrBlockRequest

DisassociateVpcCidrBlockRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must specify its association ID. You can get the association ID by using DescribeVpcs. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

You cannot disassociate the CIDR block with which you originally created the VPC (the primary CIDR block).

// Example sending a request using DisassociateVpcCidrBlockRequest.
req := client.DisassociateVpcCidrBlockRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock

func (*Client) EnableEbsEncryptionByDefaultRequest added in v0.9.0

func (c *Client) EnableEbsEncryptionByDefaultRequest(input *EnableEbsEncryptionByDefaultInput) EnableEbsEncryptionByDefaultRequest

EnableEbsEncryptionByDefaultRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Enables EBS encryption by default for your account in the current Region.

After you enable encryption by default, the EBS volumes that you create are are always encrypted, either using the default CMK or the CMK that you specified when you created each volume. For more information, see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the Amazon Elastic Compute Cloud User Guide.

You can specify the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

Enabling encryption by default has no effect on the encryption status of your existing volumes.

After you enable encryption by default, you can no longer launch instances using instance types that do not support encryption. For more information, see Supported Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances).

// Example sending a request using EnableEbsEncryptionByDefaultRequest.
req := client.EnableEbsEncryptionByDefaultRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableEbsEncryptionByDefault

func (*Client) EnableFastSnapshotRestoresRequest added in v0.17.0

func (c *Client) EnableFastSnapshotRestoresRequest(input *EnableFastSnapshotRestoresInput) EnableFastSnapshotRestoresRequest

EnableFastSnapshotRestoresRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.

You get the full benefit of fast snapshot restores after they enter the enabled state. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, use DisableFastSnapshotRestores.

For more information, see Amazon EBS Fast Snapshot Restore (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-fast-snapshot-restore.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using EnableFastSnapshotRestoresRequest.
req := client.EnableFastSnapshotRestoresRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableFastSnapshotRestores

func (*Client) EnableTransitGatewayRouteTablePropagationRequest added in v0.9.0

func (c *Client) EnableTransitGatewayRouteTablePropagationRequest(input *EnableTransitGatewayRouteTablePropagationInput) EnableTransitGatewayRouteTablePropagationRequest

EnableTransitGatewayRouteTablePropagationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Enables the specified attachment to propagate routes to the specified propagation route table.

// Example sending a request using EnableTransitGatewayRouteTablePropagationRequest.
req := client.EnableTransitGatewayRouteTablePropagationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableTransitGatewayRouteTablePropagation

func (*Client) EnableVgwRoutePropagationRequest added in v0.9.0

func (c *Client) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationInput) EnableVgwRoutePropagationRequest

EnableVgwRoutePropagationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.

// Example sending a request using EnableVgwRoutePropagationRequest.
req := client.EnableVgwRoutePropagationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation

Example (Shared00)

To enable route propagation

This example enables the specified virtual private gateway to propagate static routes to the specified route table.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.EnableVgwRoutePropagationInput{
		GatewayId:    aws.String("vgw-9a4cacf3"),
		RouteTableId: aws.String("rtb-22574640"),
	}

	req := svc.EnableVgwRoutePropagationRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) EnableVolumeIORequest added in v0.9.0

func (c *Client) EnableVolumeIORequest(input *EnableVolumeIOInput) EnableVolumeIORequest

EnableVolumeIORequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.

// Example sending a request using EnableVolumeIORequest.
req := client.EnableVolumeIORequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO

Example (Shared00)

To enable I/O for a volume

This example enables I/O on volume “vol-1234567890abcdef0“.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.EnableVolumeIOInput{
		VolumeId: aws.String("vol-1234567890abcdef0"),
	}

	req := svc.EnableVolumeIORequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) EnableVpcClassicLinkDnsSupportRequest added in v0.9.0

func (c *Client) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkDnsSupportInput) EnableVpcClassicLinkDnsSupportRequest

EnableVpcClassicLinkDnsSupportRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in the Amazon Elastic Compute Cloud User Guide.

You must specify a VPC ID in the request.

// Example sending a request using EnableVpcClassicLinkDnsSupportRequest.
req := client.EnableVpcClassicLinkDnsSupportRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport

func (*Client) EnableVpcClassicLinkRequest added in v0.9.0

func (c *Client) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) EnableVpcClassicLinkRequest

EnableVpcClassicLinkRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see ClassicLink (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using EnableVpcClassicLinkRequest.
req := client.EnableVpcClassicLinkRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink

func (*Client) ExportClientVpnClientCertificateRevocationListRequest added in v0.9.0

func (c *Client) ExportClientVpnClientCertificateRevocationListRequest(input *ExportClientVpnClientCertificateRevocationListInput) ExportClientVpnClientCertificateRevocationListRequest

ExportClientVpnClientCertificateRevocationListRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Downloads the client certificate revocation list for the specified Client VPN endpoint.

// Example sending a request using ExportClientVpnClientCertificateRevocationListRequest.
req := client.ExportClientVpnClientCertificateRevocationListRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportClientVpnClientCertificateRevocationList

func (*Client) ExportClientVpnClientConfigurationRequest added in v0.9.0

func (c *Client) ExportClientVpnClientConfigurationRequest(input *ExportClientVpnClientConfigurationInput) ExportClientVpnClientConfigurationRequest

ExportClientVpnClientConfigurationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. The Client VPN endpoint configuration file includes the Client VPN endpoint and certificate information clients need to establish a connection with the Client VPN endpoint.

// Example sending a request using ExportClientVpnClientConfigurationRequest.
req := client.ExportClientVpnClientConfigurationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportClientVpnClientConfiguration

func (*Client) ExportImageRequest added in v0.12.0

func (c *Client) ExportImageRequest(input *ExportImageInput) ExportImageRequest

ExportImageRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM Directory from an Amazon Machine Image (AMI) (https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport_image.html) in the VM Import/Export User Guide.

// Example sending a request using ExportImageRequest.
req := client.ExportImageRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportImage

func (*Client) ExportTransitGatewayRoutesRequest added in v0.9.0

func (c *Client) ExportTransitGatewayRoutesRequest(input *ExportTransitGatewayRoutesInput) ExportTransitGatewayRoutesRequest

ExportTransitGatewayRoutesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Exports routes from the specified transit gateway route table to the specified S3 bucket. By default, all routes are exported. Alternatively, you can filter by CIDR range.

The routes are saved to the specified bucket in a JSON file. For more information, see Export Route Tables to Amazon S3 (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-route-tables.html#tgw-export-route-tables) in Transit Gateways.

// Example sending a request using ExportTransitGatewayRoutesRequest.
req := client.ExportTransitGatewayRoutesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTransitGatewayRoutes

func (*Client) GetAssociatedIpv6PoolCidrsRequest added in v0.19.0

func (c *Client) GetAssociatedIpv6PoolCidrsRequest(input *GetAssociatedIpv6PoolCidrsInput) GetAssociatedIpv6PoolCidrsRequest

GetAssociatedIpv6PoolCidrsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool.

// Example sending a request using GetAssociatedIpv6PoolCidrsRequest.
req := client.GetAssociatedIpv6PoolCidrsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetAssociatedIpv6PoolCidrs

func (*Client) GetCapacityReservationUsageRequest added in v0.11.0

func (c *Client) GetCapacityReservationUsageRequest(input *GetCapacityReservationUsageInput) GetCapacityReservationUsageRequest

GetCapacityReservationUsageRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each AWS account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner's usage.

// Example sending a request using GetCapacityReservationUsageRequest.
req := client.GetCapacityReservationUsageRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetCapacityReservationUsage

func (*Client) GetCoipPoolUsageRequest added in v0.18.0

func (c *Client) GetCoipPoolUsageRequest(input *GetCoipPoolUsageInput) GetCoipPoolUsageRequest

GetCoipPoolUsageRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the allocations from the specified customer-owned address pool.

// Example sending a request using GetCoipPoolUsageRequest.
req := client.GetCoipPoolUsageRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetCoipPoolUsage

func (*Client) GetConsoleOutputRequest added in v0.9.0

func (c *Client) GetConsoleOutputRequest(input *GetConsoleOutputInput) GetConsoleOutputRequest

GetConsoleOutputRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.

By default, the console output returns buffered information that was posted shortly after an instance transition state (start, stop, reboot, or terminate). This information is available for at least one hour after the most recent post. Only the most recent 64 KB of console output is available.

You can optionally retrieve the latest serial console output at any time during the instance lifecycle. This option is supported on instance types that use the Nitro hypervisor.

For more information, see Instance Console Output (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html#instance-console-console-output) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using GetConsoleOutputRequest.
req := client.GetConsoleOutputRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput

Example (Shared00)

To get the console output

This example gets the console output for the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.GetConsoleOutputInput{
		InstanceId: aws.String("i-1234567890abcdef0"),
	}

	req := svc.GetConsoleOutputRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) GetConsoleScreenshotRequest added in v0.9.0

func (c *Client) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) GetConsoleScreenshotRequest

GetConsoleScreenshotRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

The returned content is Base64-encoded.

// Example sending a request using GetConsoleScreenshotRequest.
req := client.GetConsoleScreenshotRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot

func (*Client) GetDefaultCreditSpecificationRequest added in v0.18.0

func (c *Client) GetDefaultCreditSpecificationRequest(input *GetDefaultCreditSpecificationInput) GetDefaultCreditSpecificationRequest

GetDefaultCreditSpecificationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the default credit option for CPU usage of a burstable performance instance family.

For more information, see Burstable performance instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using GetDefaultCreditSpecificationRequest.
req := client.GetDefaultCreditSpecificationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetDefaultCreditSpecification

func (*Client) GetEbsDefaultKmsKeyIdRequest added in v0.9.0

func (c *Client) GetEbsDefaultKmsKeyIdRequest(input *GetEbsDefaultKmsKeyIdInput) GetEbsDefaultKmsKeyIdRequest

GetEbsDefaultKmsKeyIdRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes the default customer master key (CMK) for EBS encryption by default for your account in this Region. You can change the default CMK for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

For more information, see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using GetEbsDefaultKmsKeyIdRequest.
req := client.GetEbsDefaultKmsKeyIdRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetEbsDefaultKmsKeyId

func (*Client) GetEbsEncryptionByDefaultRequest added in v0.9.0

func (c *Client) GetEbsEncryptionByDefaultRequest(input *GetEbsEncryptionByDefaultInput) GetEbsEncryptionByDefaultRequest

GetEbsEncryptionByDefaultRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Describes whether EBS encryption by default is enabled for your account in the current Region.

For more information, see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using GetEbsEncryptionByDefaultRequest.
req := client.GetEbsEncryptionByDefaultRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetEbsEncryptionByDefault

func (*Client) GetHostReservationPurchasePreviewRequest added in v0.9.0

func (c *Client) GetHostReservationPurchasePreviewRequest(input *GetHostReservationPurchasePreviewInput) GetHostReservationPurchasePreviewRequest

GetHostReservationPurchasePreviewRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.

This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.

// Example sending a request using GetHostReservationPurchasePreviewRequest.
req := client.GetHostReservationPurchasePreviewRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview

func (*Client) GetLaunchTemplateDataRequest added in v0.9.0

func (c *Client) GetLaunchTemplateDataRequest(input *GetLaunchTemplateDataInput) GetLaunchTemplateDataRequest

GetLaunchTemplateDataRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Retrieves the configuration data of the specified instance. You can use this data to create a launch template.

This action calls on other describe actions to get instance information. Depending on your instance configuration, you may need to allow the following actions in your IAM policy: DescribeSpotInstanceRequests, DescribeInstanceCreditSpecifications, DescribeVolumes, DescribeInstanceAttribute, and DescribeElasticGpus. Or, you can allow describe* depending on your instance requirements.

// Example sending a request using GetLaunchTemplateDataRequest.
req := client.GetLaunchTemplateDataRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData

Example (Shared00)

To get the launch template data for an instance

This example gets the launch template data for the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.GetLaunchTemplateDataInput{
		InstanceId: aws.String("0123d646e8048babc"),
	}

	req := svc.GetLaunchTemplateDataRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) GetManagedPrefixListAssociationsRequest added in v0.24.0

func (c *Client) GetManagedPrefixListAssociationsRequest(input *GetManagedPrefixListAssociationsInput) GetManagedPrefixListAssociationsRequest

GetManagedPrefixListAssociationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Gets information about the resources that are associated with the specified managed prefix list.

// Example sending a request using GetManagedPrefixListAssociationsRequest.
req := client.GetManagedPrefixListAssociationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetManagedPrefixListAssociations

func (*Client) GetManagedPrefixListEntriesRequest added in v0.24.0

func (c *Client) GetManagedPrefixListEntriesRequest(input *GetManagedPrefixListEntriesInput) GetManagedPrefixListEntriesRequest

GetManagedPrefixListEntriesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Gets information about the entries for a specified managed prefix list.

// Example sending a request using GetManagedPrefixListEntriesRequest.
req := client.GetManagedPrefixListEntriesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetManagedPrefixListEntries

func (*Client) GetPasswordDataRequest added in v0.9.0

func (c *Client) GetPasswordDataRequest(input *GetPasswordDataInput) GetPasswordDataRequest

GetPasswordDataRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Retrieves the encrypted administrator password for a running Windows instance.

The Windows password is generated at boot by the EC2Config service or EC2Launch scripts (Windows Server 2016 and later). This usually only happens the first time an instance is launched. For more information, see EC2Config (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/UsingConfig_WinAMI.html) and EC2Launch (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch.html) in the Amazon Elastic Compute Cloud User Guide.

For the EC2Config service, the password is not generated for rebundled AMIs unless Ec2SetPassword is enabled before bundling.

The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.

When you launch an instance, password generation and encryption may take a few minutes. If you try to retrieve the password before it's available, the output returns an empty string. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.

// Example sending a request using GetPasswordDataRequest.
req := client.GetPasswordDataRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData

func (*Client) GetReservedInstancesExchangeQuoteRequest added in v0.9.0

func (c *Client) GetReservedInstancesExchangeQuoteRequest(input *GetReservedInstancesExchangeQuoteInput) GetReservedInstancesExchangeQuoteRequest

GetReservedInstancesExchangeQuoteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange.

// Example sending a request using GetReservedInstancesExchangeQuoteRequest.
req := client.GetReservedInstancesExchangeQuoteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote

func (*Client) GetTransitGatewayAttachmentPropagationsRequest added in v0.9.0

func (c *Client) GetTransitGatewayAttachmentPropagationsRequest(input *GetTransitGatewayAttachmentPropagationsInput) GetTransitGatewayAttachmentPropagationsRequest

GetTransitGatewayAttachmentPropagationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Lists the route tables to which the specified resource attachment propagates routes.

// Example sending a request using GetTransitGatewayAttachmentPropagationsRequest.
req := client.GetTransitGatewayAttachmentPropagationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayAttachmentPropagations

func (*Client) GetTransitGatewayMulticastDomainAssociationsRequest added in v0.18.0

func (c *Client) GetTransitGatewayMulticastDomainAssociationsRequest(input *GetTransitGatewayMulticastDomainAssociationsInput) GetTransitGatewayMulticastDomainAssociationsRequest

GetTransitGatewayMulticastDomainAssociationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Gets information about the associations for the transit gateway multicast domain.

// Example sending a request using GetTransitGatewayMulticastDomainAssociationsRequest.
req := client.GetTransitGatewayMulticastDomainAssociationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayMulticastDomainAssociations

func (*Client) GetTransitGatewayRouteTableAssociationsRequest added in v0.9.0

func (c *Client) GetTransitGatewayRouteTableAssociationsRequest(input *GetTransitGatewayRouteTableAssociationsInput) GetTransitGatewayRouteTableAssociationsRequest

GetTransitGatewayRouteTableAssociationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Gets information about the associations for the specified transit gateway route table.

// Example sending a request using GetTransitGatewayRouteTableAssociationsRequest.
req := client.GetTransitGatewayRouteTableAssociationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTableAssociations

func (*Client) GetTransitGatewayRouteTablePropagationsRequest added in v0.9.0

func (c *Client) GetTransitGatewayRouteTablePropagationsRequest(input *GetTransitGatewayRouteTablePropagationsInput) GetTransitGatewayRouteTablePropagationsRequest

GetTransitGatewayRouteTablePropagationsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Gets information about the route table propagations for the specified transit gateway route table.

// Example sending a request using GetTransitGatewayRouteTablePropagationsRequest.
req := client.GetTransitGatewayRouteTablePropagationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTablePropagations

func (*Client) ImportClientVpnClientCertificateRevocationListRequest added in v0.9.0

func (c *Client) ImportClientVpnClientCertificateRevocationListRequest(input *ImportClientVpnClientCertificateRevocationListInput) ImportClientVpnClientCertificateRevocationListRequest

ImportClientVpnClientCertificateRevocationListRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Uploads a client certificate revocation list to the specified Client VPN endpoint. Uploading a client certificate revocation list overwrites the existing client certificate revocation list.

Uploading a client certificate revocation list resets existing client connections.

// Example sending a request using ImportClientVpnClientCertificateRevocationListRequest.
req := client.ImportClientVpnClientCertificateRevocationListRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportClientVpnClientCertificateRevocationList

func (*Client) ImportImageRequest added in v0.9.0

func (c *Client) ImportImageRequest(input *ImportImageInput) ImportImageRequest

ImportImageRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI). For more information, see Importing a VM as an Image Using VM Import/Export (https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html) in the VM Import/Export User Guide.

// Example sending a request using ImportImageRequest.
req := client.ImportImageRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage

func (*Client) ImportInstanceRequest added in v0.9.0

func (c *Client) ImportInstanceRequest(input *ImportInstanceInput) ImportInstanceRequest

ImportInstanceRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates an import instance task using metadata from the specified disk image. ImportInstance only supports single-volume VMs. To import multi-volume VMs, use ImportImage. For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI (https://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html).

For information about the import manifest referenced by this API action, see VM Import Manifest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).

// Example sending a request using ImportInstanceRequest.
req := client.ImportInstanceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance

func (*Client) ImportKeyPairRequest added in v0.9.0

func (c *Client) ImportKeyPairRequest(input *ImportKeyPairInput) ImportKeyPairRequest

ImportKeyPairRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.

For more information about key pairs, see Key Pairs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using ImportKeyPairRequest.
req := client.ImportKeyPairRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair

func (*Client) ImportSnapshotRequest added in v0.9.0

func (c *Client) ImportSnapshotRequest(input *ImportSnapshotInput) ImportSnapshotRequest

ImportSnapshotRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Imports a disk into an EBS snapshot.

// Example sending a request using ImportSnapshotRequest.
req := client.ImportSnapshotRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot

func (*Client) ImportVolumeRequest added in v0.9.0

func (c *Client) ImportVolumeRequest(input *ImportVolumeInput) ImportVolumeRequest

ImportVolumeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates an import volume task using metadata from the specified disk image.For more information, see Importing Disks to Amazon EBS (https://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/importing-your-volumes-into-amazon-ebs.html).

For information about the import manifest referenced by this API action, see VM Import Manifest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).

// Example sending a request using ImportVolumeRequest.
req := client.ImportVolumeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume

func (*Client) ModifyAvailabilityZoneGroupRequest added in v0.20.0

func (c *Client) ModifyAvailabilityZoneGroupRequest(input *ModifyAvailabilityZoneGroupInput) ModifyAvailabilityZoneGroupRequest

ModifyAvailabilityZoneGroupRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Enables or disables an Availability Zone group for your account.

Use DescribeAvailabilityZones (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html) to view the value for GroupName.

// Example sending a request using ModifyAvailabilityZoneGroupRequest.
req := client.ModifyAvailabilityZoneGroupRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyAvailabilityZoneGroup

func (*Client) ModifyCapacityReservationRequest added in v0.9.0

func (c *Client) ModifyCapacityReservationRequest(input *ModifyCapacityReservationInput) ModifyCapacityReservationRequest

ModifyCapacityReservationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies a Capacity Reservation's capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation's instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes.

// Example sending a request using ModifyCapacityReservationRequest.
req := client.ModifyCapacityReservationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyCapacityReservation

func (*Client) ModifyClientVpnEndpointRequest added in v0.9.0

func (c *Client) ModifyClientVpnEndpointRequest(input *ModifyClientVpnEndpointInput) ModifyClientVpnEndpointRequest

ModifyClientVpnEndpointRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the specified Client VPN endpoint. Modifying the DNS server resets existing client connections.

// Example sending a request using ModifyClientVpnEndpointRequest.
req := client.ModifyClientVpnEndpointRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyClientVpnEndpoint

func (*Client) ModifyDefaultCreditSpecificationRequest added in v0.18.0

func (c *Client) ModifyDefaultCreditSpecificationRequest(input *ModifyDefaultCreditSpecificationInput) ModifyDefaultCreditSpecificationRequest

ModifyDefaultCreditSpecificationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the default credit option for CPU usage of burstable performance instances. The default credit option is set at the account level per AWS Region, and is specified per instance family. All new burstable performance instances in the account launch using the default credit option.

ModifyDefaultCreditSpecification is an asynchronous operation, which works at an AWS Region level and modifies the credit option for each Availability Zone. All zones in a Region are updated within five minutes. But if instances are launched during this operation, they might not get the new credit option until the zone is updated. To verify whether the update has occurred, you can call GetDefaultCreditSpecification and check DefaultCreditSpecification for updates.

For more information, see Burstable performance instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using ModifyDefaultCreditSpecificationRequest.
req := client.ModifyDefaultCreditSpecificationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyDefaultCreditSpecification

func (*Client) ModifyEbsDefaultKmsKeyIdRequest added in v0.9.0

func (c *Client) ModifyEbsDefaultKmsKeyIdRequest(input *ModifyEbsDefaultKmsKeyIdInput) ModifyEbsDefaultKmsKeyIdRequest

ModifyEbsDefaultKmsKeyIdRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Changes the default customer master key (CMK) for EBS encryption by default for your account in this Region.

AWS creates a unique AWS managed CMK in each Region for use with encryption by default. If you change the default CMK to a symmetric customer managed CMK, it is used instead of the AWS managed CMK. To reset the default CMK to the AWS managed CMK for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric CMKs.

If you delete or disable the customer managed CMK that you specified for use with encryption by default, your instances will fail to launch.

For more information, see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using ModifyEbsDefaultKmsKeyIdRequest.
req := client.ModifyEbsDefaultKmsKeyIdRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyEbsDefaultKmsKeyId

func (*Client) ModifyFleetRequest added in v0.9.0

func (c *Client) ModifyFleetRequest(input *ModifyFleetInput) ModifyFleetRequest

ModifyFleetRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the specified EC2 Fleet.

You can only modify an EC2 Fleet request of type maintain.

While the EC2 Fleet is being modified, it is in the modifying state.

To scale up your EC2 Fleet, increase its target capacity. The EC2 Fleet launches the additional Spot Instances according to the allocation strategy for the EC2 Fleet request. If the allocation strategy is lowest-price, the EC2 Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the EC2 Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

To scale down your EC2 Fleet, decrease its target capacity. First, the EC2 Fleet cancels any open requests that exceed the new target capacity. You can request that the EC2 Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowest-price, the EC2 Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacity-optimized, the EC2 Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the EC2 Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the EC2 Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

If you are finished with your EC2 Fleet for now, but will use it again later, you can set the target capacity to 0.

// Example sending a request using ModifyFleetRequest.
req := client.ModifyFleetRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFleet

func (*Client) ModifyFpgaImageAttributeRequest added in v0.9.0

func (c *Client) ModifyFpgaImageAttributeRequest(input *ModifyFpgaImageAttributeInput) ModifyFpgaImageAttributeRequest

ModifyFpgaImageAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the specified attribute of the specified Amazon FPGA Image (AFI).

// Example sending a request using ModifyFpgaImageAttributeRequest.
req := client.ModifyFpgaImageAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFpgaImageAttribute

func (*Client) ModifyHostsRequest added in v0.9.0

func (c *Client) ModifyHostsRequest(input *ModifyHostsInput) ModifyHostsRequest

ModifyHostsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, any instances that you launch with a tenancy of host but without a specific host ID are placed onto any available Dedicated Host in your account that has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID to have the instance launch onto a specific host. If no host ID is provided, the instance is launched onto a suitable host with auto-placement enabled.

You can also use this API action to modify a Dedicated Host to support either multiple instance types in an instance family, or to support a specific instance type only.

// Example sending a request using ModifyHostsRequest.
req := client.ModifyHostsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts

func (*Client) ModifyIdFormatRequest added in v0.9.0

func (c *Client) ModifyIdFormatRequest(input *ModifyIdFormatInput) ModifyIdFormatRequest

ModifyIdFormatRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the ID format for the specified resource on a per-Region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) in the Amazon Elastic Compute Cloud User Guide.

Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

// Example sending a request using ModifyIdFormatRequest.
req := client.ModifyIdFormatRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat

func (*Client) ModifyIdentityIdFormatRequest added in v0.9.0

func (c *Client) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) ModifyIdentityIdFormatRequest

ModifyIdentityIdFormatRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

For more information, see Resource IDs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) in the Amazon Elastic Compute Cloud User Guide.

This setting applies to the principal specified in the request; it does not apply to the principal that makes the request.

Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

// Example sending a request using ModifyIdentityIdFormatRequest.
req := client.ModifyIdentityIdFormatRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat

func (*Client) ModifyImageAttributeRequest added in v0.9.0

func (c *Client) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) ModifyImageAttributeRequest

ModifyImageAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time. You can use the Attribute parameter to specify the attribute or one of the following parameters: Description, LaunchPermission, or ProductCode.

AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.

To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.

// Example sending a request using ModifyImageAttributeRequest.
req := client.ModifyImageAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute

Example (Shared00)

To make an AMI public

This example makes the specified AMI public.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyImageAttributeInput{
		ImageId: aws.String("ami-5731123e"),
		LaunchPermission: &ec2.LaunchPermissionModifications{
			Add: []ec2.LaunchPermission{
				{
					Group: ec2.PermissionGroupAll,
				},
			},
		},
	}

	req := svc.ModifyImageAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To grant launch permissions

This example grants launch permissions for the specified AMI to the specified AWS account.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyImageAttributeInput{
		ImageId: aws.String("ami-5731123e"),
		LaunchPermission: &ec2.LaunchPermissionModifications{
			Add: []ec2.LaunchPermission{
				{
					UserId: aws.String("123456789012"),
				},
			},
		},
	}

	req := svc.ModifyImageAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ModifyInstanceAttributeRequest added in v0.9.0

func (c *Client) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput) ModifyInstanceAttributeRequest

ModifyInstanceAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.

Note: Using this action to change the security groups associated with an elastic network interface (ENI) attached to an instance in a VPC can result in an error if the instance has more than one ENI. To change the security groups associated with an ENI attached to an instance that has multiple ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action.

To modify some attributes, the instance must be stopped. For more information, see Modifying attributes of a stopped instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using ModifyInstanceAttributeRequest.
req := client.ModifyInstanceAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute

Example (Shared00)

To modify the instance type

This example modifies the instance type of the specified stopped instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyInstanceAttributeInput{
		InstanceId: aws.String("i-1234567890abcdef0"),
		InstanceType: &ec2.AttributeValue{
			Value: aws.String("m5.large"),
		},
	}

	req := svc.ModifyInstanceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To enable enhanced networking

This example enables enhanced networking for the specified stopped instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyInstanceAttributeInput{
		EnaSupport: &ec2.AttributeBooleanValue{
			Value: aws.Bool(true),
		},
		InstanceId: aws.String("i-1234567890abcdef0"),
	}

	req := svc.ModifyInstanceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ModifyInstanceCapacityReservationAttributesRequest added in v0.9.0

func (c *Client) ModifyInstanceCapacityReservationAttributesRequest(input *ModifyInstanceCapacityReservationAttributesInput) ModifyInstanceCapacityReservationAttributesRequest

ModifyInstanceCapacityReservationAttributesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching attributes, or run On-Demand Instance capacity.

// Example sending a request using ModifyInstanceCapacityReservationAttributesRequest.
req := client.ModifyInstanceCapacityReservationAttributesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCapacityReservationAttributes

func (*Client) ModifyInstanceCreditSpecificationRequest added in v0.9.0

func (c *Client) ModifyInstanceCreditSpecificationRequest(input *ModifyInstanceCreditSpecificationInput) ModifyInstanceCreditSpecificationRequest

ModifyInstanceCreditSpecificationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the credit option for CPU usage on a running or stopped burstable performance instance. The credit options are standard and unlimited.

For more information, see Burstable performance instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using ModifyInstanceCreditSpecificationRequest.
req := client.ModifyInstanceCreditSpecificationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCreditSpecification

func (*Client) ModifyInstanceEventStartTimeRequest added in v0.9.0

func (c *Client) ModifyInstanceEventStartTimeRequest(input *ModifyInstanceEventStartTimeInput) ModifyInstanceEventStartTimeRequest

ModifyInstanceEventStartTimeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the start time for a scheduled Amazon EC2 instance event.

// Example sending a request using ModifyInstanceEventStartTimeRequest.
req := client.ModifyInstanceEventStartTimeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceEventStartTime

func (*Client) ModifyInstanceMetadataOptionsRequest added in v0.17.0

func (c *Client) ModifyInstanceMetadataOptionsRequest(input *ModifyInstanceMetadataOptionsInput) ModifyInstanceMetadataOptionsRequest

ModifyInstanceMetadataOptionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modify the instance metadata parameters on a running or stopped instance. When you modify the parameters on a stopped instance, they are applied when the instance is started. When you modify the parameters on a running instance, the API responds with a state of “pending”. After the parameter modifications are successfully applied to the instance, the state of the modifications changes from “pending” to “applied” in subsequent describe-instances API calls. For more information, see Instance metadata and user data (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html).

// Example sending a request using ModifyInstanceMetadataOptionsRequest.
req := client.ModifyInstanceMetadataOptionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceMetadataOptions

func (*Client) ModifyInstancePlacementRequest added in v0.9.0

func (c *Client) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput) ModifyInstancePlacementRequest

ModifyInstancePlacementRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the placement attributes for a specified instance. You can do the following:

At least one attribute for affinity, host ID, tenancy, or placement group name must be specified in the request. Affinity and tenancy can be modified in the same request.

To modify the host ID, tenancy, placement group, or partition for an instance, the instance must be in the stopped state.

// Example sending a request using ModifyInstancePlacementRequest.
req := client.ModifyInstancePlacementRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement

func (*Client) ModifyLaunchTemplateRequest added in v0.9.0

func (c *Client) ModifyLaunchTemplateRequest(input *ModifyLaunchTemplateInput) ModifyLaunchTemplateRequest

ModifyLaunchTemplateRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.

// Example sending a request using ModifyLaunchTemplateRequest.
req := client.ModifyLaunchTemplateRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplate

Example (Shared00)

To change the default version of a launch template

This example specifies version 2 as the default version of the specified launch template.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyLaunchTemplateInput{
		DefaultVersion:   aws.String("2"),
		LaunchTemplateId: aws.String("lt-0abcd290751193123"),
	}

	req := svc.ModifyLaunchTemplateRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ModifyManagedPrefixListRequest added in v0.24.0

func (c *Client) ModifyManagedPrefixListRequest(input *ModifyManagedPrefixListInput) ModifyManagedPrefixListRequest

ModifyManagedPrefixListRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the specified managed prefix list.

Adding or removing entries in a prefix list creates a new version of the prefix list. Changing the name of the prefix list does not affect the version.

If you specify a current version number that does not match the true current version number, the request fails.

// Example sending a request using ModifyManagedPrefixListRequest.
req := client.ModifyManagedPrefixListRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyManagedPrefixList

func (*Client) ModifyNetworkInterfaceAttributeRequest added in v0.9.0

func (c *Client) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfaceAttributeInput) ModifyNetworkInterfaceAttributeRequest

ModifyNetworkInterfaceAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the specified network interface attribute. You can specify only one attribute at a time. You can use this action to attach and detach security groups from an existing EC2 instance.

// Example sending a request using ModifyNetworkInterfaceAttributeRequest.
req := client.ModifyNetworkInterfaceAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute

Example (Shared00)

To modify the attachment attribute of a network interface

This example modifies the attachment attribute of the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyNetworkInterfaceAttributeInput{
		Attachment: &ec2.NetworkInterfaceAttachmentChanges{
			AttachmentId:        aws.String("eni-attach-43348162"),
			DeleteOnTermination: aws.Bool(false),
		},
		NetworkInterfaceId: aws.String("eni-686ea200"),
	}

	req := svc.ModifyNetworkInterfaceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To modify the description attribute of a network interface

This example modifies the description attribute of the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyNetworkInterfaceAttributeInput{
		Description: &ec2.AttributeValue{
			Value: aws.String("My description"),
		},
		NetworkInterfaceId: aws.String("eni-686ea200"),
	}

	req := svc.ModifyNetworkInterfaceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared02)

To modify the groupSet attribute of a network interface

This example command modifies the groupSet attribute of the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyNetworkInterfaceAttributeInput{
		Groups: []string{
			"sg-903004f8",
			"sg-1a2b3c4d",
		},
		NetworkInterfaceId: aws.String("eni-686ea200"),
	}

	req := svc.ModifyNetworkInterfaceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared03)

To modify the sourceDestCheck attribute of a network interface

This example command modifies the sourceDestCheck attribute of the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyNetworkInterfaceAttributeInput{
		NetworkInterfaceId: aws.String("eni-686ea200"),
		SourceDestCheck: &ec2.AttributeBooleanValue{
			Value: aws.Bool(false),
		},
	}

	req := svc.ModifyNetworkInterfaceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ModifyReservedInstancesRequest added in v0.9.0

func (c *Client) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput) ModifyReservedInstancesRequest

ModifyReservedInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.

For more information, see Modifying Reserved Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using ModifyReservedInstancesRequest.
req := client.ModifyReservedInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances

func (*Client) ModifySnapshotAttributeRequest added in v0.9.0

func (c *Client) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput) ModifySnapshotAttributeRequest

ModifySnapshotAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Adds or removes permission settings for the specified snapshot. You may add or remove specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single operation. If you need to both add and remove account IDs for a snapshot, you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

Encrypted snapshots and snapshots with AWS Marketplace product codes cannot be made public. Snapshots encrypted with your default CMK cannot be shared with other accounts.

For more information about modifying snapshot permissions, see Sharing Snapshots (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using ModifySnapshotAttributeRequest.
req := client.ModifySnapshotAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute

Example (Shared00)

To modify a snapshot attribute

This example modifies snapshot “snap-1234567890abcdef0“ to remove the create volume permission for a user with the account ID “123456789012“. If the command succeeds, no output is returned.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifySnapshotAttributeInput{
		Attribute:     ec2.SnapshotAttributeNameCreateVolumePermission,
		OperationType: ec2.OperationTypeRemove,
		SnapshotId:    aws.String("snap-1234567890abcdef0"),
		UserIds: []string{
			"123456789012",
		},
	}

	req := svc.ModifySnapshotAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To make a snapshot public

This example makes the snapshot “snap-1234567890abcdef0“ public.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifySnapshotAttributeInput{
		Attribute: ec2.SnapshotAttributeNameCreateVolumePermission,
		GroupNames: []string{
			"all",
		},
		OperationType: ec2.OperationTypeAdd,
		SnapshotId:    aws.String("snap-1234567890abcdef0"),
	}

	req := svc.ModifySnapshotAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ModifySpotFleetRequestRequest added in v0.9.0

func (c *Client) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) ModifySpotFleetRequestRequest

ModifySpotFleetRequestRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the specified Spot Fleet request.

You can only modify a Spot Fleet request of type maintain.

While the Spot Fleet request is being modified, it is in the modifying state.

To scale up your Spot Fleet, increase its target capacity. The Spot Fleet launches the additional Spot Instances according to the allocation strategy for the Spot Fleet request. If the allocation strategy is lowestPrice, the Spot Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the Spot Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacityOptimized, Spot Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

To scale down your Spot Fleet, decrease its target capacity. First, the Spot Fleet cancels any open requests that exceed the new target capacity. You can request that the Spot Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowestPrice, the Spot Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacityOptimized, the Spot Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the Spot Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the Spot Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

If you are finished with your Spot Fleet for now, but will use it again later, you can set the target capacity to 0.

// Example sending a request using ModifySpotFleetRequestRequest.
req := client.ModifySpotFleetRequestRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest

Example (Shared00)

To increase the target capacity of a Spot fleet request

This example increases the target capacity of the specified Spot fleet request.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifySpotFleetRequestInput{
		SpotFleetRequestId: aws.String("sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE"),
		TargetCapacity:     aws.Int64(20),
	}

	req := svc.ModifySpotFleetRequestRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To decrease the target capacity of a Spot fleet request

This example decreases the target capacity of the specified Spot fleet request without terminating any Spot Instances as a result.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifySpotFleetRequestInput{
		ExcessCapacityTerminationPolicy: ec2.ExcessCapacityTerminationPolicy("NoTermination "),
		SpotFleetRequestId:              aws.String("sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE"),
		TargetCapacity:                  aws.Int64(10),
	}

	req := svc.ModifySpotFleetRequestRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ModifySubnetAttributeRequest added in v0.9.0

func (c *Client) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) ModifySubnetAttributeRequest

ModifySubnetAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies a subnet attribute. You can only modify one attribute at a time.

// Example sending a request using ModifySubnetAttributeRequest.
req := client.ModifySubnetAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute

Example (Shared00)

To change a subnet's public IP addressing behavior

This example modifies the specified subnet so that all instances launched into this subnet are assigned a public IP address.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifySubnetAttributeInput{
		MapPublicIpOnLaunch: &ec2.AttributeBooleanValue{
			Value: aws.Bool(true),
		},
		SubnetId: aws.String("subnet-1a2b3c4d"),
	}

	req := svc.ModifySubnetAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ModifyTrafficMirrorFilterNetworkServicesRequest added in v0.10.0

func (c *Client) ModifyTrafficMirrorFilterNetworkServicesRequest(input *ModifyTrafficMirrorFilterNetworkServicesInput) ModifyTrafficMirrorFilterNetworkServicesRequest

ModifyTrafficMirrorFilterNetworkServicesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Allows or restricts mirroring network services.

By default, Amazon DNS network services are not eligible for Traffic Mirror. Use AddNetworkServices to add network services to a Traffic Mirror filter. When a network service is added to the Traffic Mirror filter, all traffic related to that network service will be mirrored. When you no longer want to mirror network services, use RemoveNetworkServices to remove the network services from the Traffic Mirror filter.

For information about filter rule properties, see Network Services (https://docs.aws.amazon.com/vpc/latest/mirroring/traffic-mirroring-considerations.html) in the Traffic Mirroring User Guide .

// Example sending a request using ModifyTrafficMirrorFilterNetworkServicesRequest.
req := client.ModifyTrafficMirrorFilterNetworkServicesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTrafficMirrorFilterNetworkServices

func (*Client) ModifyTrafficMirrorFilterRuleRequest added in v0.10.0

func (c *Client) ModifyTrafficMirrorFilterRuleRequest(input *ModifyTrafficMirrorFilterRuleInput) ModifyTrafficMirrorFilterRuleRequest

ModifyTrafficMirrorFilterRuleRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the specified Traffic Mirror rule.

DestinationCidrBlock and SourceCidrBlock must both be an IPv4 range or an IPv6 range.

// Example sending a request using ModifyTrafficMirrorFilterRuleRequest.
req := client.ModifyTrafficMirrorFilterRuleRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTrafficMirrorFilterRule

func (*Client) ModifyTrafficMirrorSessionRequest added in v0.10.0

func (c *Client) ModifyTrafficMirrorSessionRequest(input *ModifyTrafficMirrorSessionInput) ModifyTrafficMirrorSessionRequest

ModifyTrafficMirrorSessionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies a Traffic Mirror session.

// Example sending a request using ModifyTrafficMirrorSessionRequest.
req := client.ModifyTrafficMirrorSessionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTrafficMirrorSession

func (*Client) ModifyTransitGatewayVpcAttachmentRequest added in v0.9.0

func (c *Client) ModifyTransitGatewayVpcAttachmentRequest(input *ModifyTransitGatewayVpcAttachmentInput) ModifyTransitGatewayVpcAttachmentRequest

ModifyTransitGatewayVpcAttachmentRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the specified VPC attachment.

// Example sending a request using ModifyTransitGatewayVpcAttachmentRequest.
req := client.ModifyTransitGatewayVpcAttachmentRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTransitGatewayVpcAttachment

func (*Client) ModifyVolumeAttributeRequest added in v0.9.0

func (c *Client) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) ModifyVolumeAttributeRequest

ModifyVolumeAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies a volume attribute.

By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.

You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.

// Example sending a request using ModifyVolumeAttributeRequest.
req := client.ModifyVolumeAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute

Example (Shared00)

To modify a volume attribute

This example sets the “autoEnableIo“ attribute of the volume with the ID “vol-1234567890abcdef0“ to “true“. If the command succeeds, no output is returned.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyVolumeAttributeInput{
		AutoEnableIO: &ec2.AttributeBooleanValue{
			Value: aws.Bool(true),
		},
		DryRun:   aws.Bool(true),
		VolumeId: aws.String("vol-1234567890abcdef0"),
	}

	req := svc.ModifyVolumeAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ModifyVolumeRequest added in v0.9.0

func (c *Client) ModifyVolumeRequest(input *ModifyVolumeInput) ModifyVolumeRequest

ModifyVolumeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you may be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying an EBS volume running Linux, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html). For more information about modifying an EBS volume running Windows, see Modifying the Size, IOPS, or Type of an EBS Volume on Windows (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html).

When you complete a resize operation on your volume, you need to extend the volume's file-system size to take advantage of the new storage capacity. For information about extending a Linux file system, see Extending a Linux File System (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux). For information about extending a Windows file system, see Extending a Windows File System (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows).

You can use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). You can also track the status of a modification using DescribeVolumesModifications. For information about tracking status changes using either method, see Monitoring Volume Modifications (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods).

With previous-generation instance types, resizing an EBS volume may require detaching and reattaching the volume or stopping and restarting the instance. For more information, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html) and Modifying the Size, IOPS, or Type of an EBS Volume on Windows (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html).

If you reach the maximum volume modification rate per volume limit, you will need to wait at least six hours before applying further modifications to the affected EBS volume.

// Example sending a request using ModifyVolumeRequest.
req := client.ModifyVolumeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume

func (*Client) ModifyVpcAttributeRequest added in v0.9.0

func (c *Client) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) ModifyVpcAttributeRequest

ModifyVpcAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the specified attribute of the specified VPC.

// Example sending a request using ModifyVpcAttributeRequest.
req := client.ModifyVpcAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute

Example (Shared00)

To modify the enableDnsSupport attribute

This example modifies the enableDnsSupport attribute. This attribute indicates whether DNS resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for instances in the VPC to their corresponding IP addresses; otherwise, it does not.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyVpcAttributeInput{
		EnableDnsSupport: &ec2.AttributeBooleanValue{
			Value: aws.Bool(false),
		},
		VpcId: aws.String("vpc-a01106c2"),
	}

	req := svc.ModifyVpcAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To modify the enableDnsHostnames attribute

This example modifies the enableDnsHostnames attribute. This attribute indicates whether instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ModifyVpcAttributeInput{
		EnableDnsHostnames: &ec2.AttributeBooleanValue{
			Value: aws.Bool(false),
		},
		VpcId: aws.String("vpc-a01106c2"),
	}

	req := svc.ModifyVpcAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ModifyVpcEndpointConnectionNotificationRequest added in v0.9.0

func (c *Client) ModifyVpcEndpointConnectionNotificationRequest(input *ModifyVpcEndpointConnectionNotificationInput) ModifyVpcEndpointConnectionNotificationRequest

ModifyVpcEndpointConnectionNotificationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified.

// Example sending a request using ModifyVpcEndpointConnectionNotificationRequest.
req := client.ModifyVpcEndpointConnectionNotificationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotification

func (*Client) ModifyVpcEndpointRequest added in v0.9.0

func (c *Client) ModifyVpcEndpointRequest(input *ModifyVpcEndpointInput) ModifyVpcEndpointRequest

ModifyVpcEndpointRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies attributes of a specified VPC endpoint. The attributes that you can modify depend on the type of VPC endpoint (interface or gateway). For more information, see VPC Endpoints (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using ModifyVpcEndpointRequest.
req := client.ModifyVpcEndpointRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint

func (*Client) ModifyVpcEndpointServiceConfigurationRequest added in v0.9.0

func (c *Client) ModifyVpcEndpointServiceConfigurationRequest(input *ModifyVpcEndpointServiceConfigurationInput) ModifyVpcEndpointServiceConfigurationRequest

ModifyVpcEndpointServiceConfigurationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.

If you set or modify the private DNS name, you must prove that you own the private DNS domain name. For more information, see VPC Endpoint Service Private DNS Name Verification (https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-services-dns-validation.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using ModifyVpcEndpointServiceConfigurationRequest.
req := client.ModifyVpcEndpointServiceConfigurationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfiguration

func (*Client) ModifyVpcEndpointServicePermissionsRequest added in v0.9.0

func (c *Client) ModifyVpcEndpointServicePermissionsRequest(input *ModifyVpcEndpointServicePermissionsInput) ModifyVpcEndpointServicePermissionsRequest

ModifyVpcEndpointServicePermissionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the permissions for your VPC endpoint service (https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html). You can add or remove permissions for service consumers (IAM users, IAM roles, and AWS accounts) to connect to your endpoint service.

If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.

// Example sending a request using ModifyVpcEndpointServicePermissionsRequest.
req := client.ModifyVpcEndpointServicePermissionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissions

func (*Client) ModifyVpcPeeringConnectionOptionsRequest added in v0.9.0

func (c *Client) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringConnectionOptionsInput) ModifyVpcPeeringConnectionOptionsRequest

ModifyVpcPeeringConnectionOptionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

  • Enable/disable communication over the peering connection between an EC2-Classic instance that's linked to your VPC (using ClassicLink) and instances in the peer VPC.

  • Enable/disable communication over the peering connection between instances in your VPC and an EC2-Classic instance that's linked to the peer VPC.

  • Enable/disable the ability to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC.

If the peered VPCs are in the same AWS account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different AWS accounts or different Regions. For peered VPCs in different AWS accounts, each AWS account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

// Example sending a request using ModifyVpcPeeringConnectionOptionsRequest.
req := client.ModifyVpcPeeringConnectionOptionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions

func (*Client) ModifyVpcTenancyRequest added in v0.9.0

func (c *Client) ModifyVpcTenancyRequest(input *ModifyVpcTenancyInput) ModifyVpcTenancyRequest

ModifyVpcTenancyRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to default only. You cannot change the instance tenancy attribute to dedicated.

After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.

For more information, see Dedicated Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using ModifyVpcTenancyRequest.
req := client.ModifyVpcTenancyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcTenancy

func (*Client) ModifyVpnConnectionRequest added in v0.9.0

func (c *Client) ModifyVpnConnectionRequest(input *ModifyVpnConnectionInput) ModifyVpnConnectionRequest

ModifyVpnConnectionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the customer gateway or the target gateway of an AWS Site-to-Site VPN connection. To modify the target gateway, the following migration options are available:

  • An existing virtual private gateway to a new virtual private gateway

  • An existing virtual private gateway to a transit gateway

  • An existing transit gateway to a new transit gateway

  • An existing transit gateway to a virtual private gateway

Before you perform the migration to the new gateway, you must configure the new gateway. Use CreateVpnGateway to create a virtual private gateway, or CreateTransitGateway to create a transit gateway.

This step is required when you migrate from a virtual private gateway with static routes to a transit gateway.

You must delete the static routes before you migrate to the new gateway.

Keep a copy of the static route before you delete it. You will need to add back these routes to the transit gateway after the VPN connection migration is complete.

After you migrate to the new gateway, you might need to modify your VPC route table. Use CreateRoute and DeleteRoute to make the changes described in VPN Gateway Target Modification Required VPC Route Table Updates (https://docs.aws.amazon.com/vpn/latest/s2svpn/modify-vpn-target.html#step-update-routing) in the AWS Site-to-Site VPN User Guide.

When the new gateway is a transit gateway, modify the transit gateway route table to allow traffic between the VPC and the AWS Site-to-Site VPN connection. Use CreateTransitGatewayRoute to add the routes.

If you deleted VPN static routes, you must add the static routes to the transit gateway route table.

After you perform this operation, the AWS VPN endpoint's IP addresses on the AWS side and the tunnel options remain intact. Your AWS Site-to-Site VPN connection will be temporarily unavailable for a brief period while we provision the new endpoints.

// Example sending a request using ModifyVpnConnectionRequest.
req := client.ModifyVpnConnectionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpnConnection

func (*Client) ModifyVpnTunnelCertificateRequest added in v0.11.0

func (c *Client) ModifyVpnTunnelCertificateRequest(input *ModifyVpnTunnelCertificateInput) ModifyVpnTunnelCertificateRequest

ModifyVpnTunnelCertificateRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the VPN tunnel endpoint certificate.

// Example sending a request using ModifyVpnTunnelCertificateRequest.
req := client.ModifyVpnTunnelCertificateRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpnTunnelCertificate

func (*Client) ModifyVpnTunnelOptionsRequest added in v0.12.0

func (c *Client) ModifyVpnTunnelOptionsRequest(input *ModifyVpnTunnelOptionsInput) ModifyVpnTunnelOptionsRequest

ModifyVpnTunnelOptionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Modifies the options for a VPN tunnel in an AWS Site-to-Site VPN connection. You can modify multiple options for a tunnel in a single request, but you can only modify one tunnel at a time. For more information, see Site-to-Site VPN Tunnel Options for Your Site-to-Site VPN Connection (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPNTunnels.html) in the AWS Site-to-Site VPN User Guide.

// Example sending a request using ModifyVpnTunnelOptionsRequest.
req := client.ModifyVpnTunnelOptionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpnTunnelOptions

func (*Client) MonitorInstancesRequest added in v0.9.0

func (c *Client) MonitorInstancesRequest(input *MonitorInstancesInput) MonitorInstancesRequest

MonitorInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitoring your instances and volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) in the Amazon Elastic Compute Cloud User Guide.

To disable detailed monitoring, see .

// Example sending a request using MonitorInstancesRequest.
req := client.MonitorInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances

func (*Client) MoveAddressToVpcRequest added in v0.9.0

func (c *Client) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) MoveAddressToVpcRequest

MoveAddressToVpcRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.

// Example sending a request using MoveAddressToVpcRequest.
req := client.MoveAddressToVpcRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc

Example (Shared00)

To move an address to EC2-VPC

This example moves the specified Elastic IP address to the EC2-VPC platform.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.MoveAddressToVpcInput{
		PublicIp: aws.String("54.123.4.56"),
	}

	req := svc.MoveAddressToVpcRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ProvisionByoipCidrRequest added in v0.9.0

func (c *Client) ProvisionByoipCidrRequest(input *ProvisionByoipCidrInput) ProvisionByoipCidrRequest

ProvisionByoipCidrRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Provisions an IPv4 or IPv6 address range for use with your AWS resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.

AWS verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring Your Own IP Addresses (BYOIP) (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) in the Amazon Elastic Compute Cloud User Guide.

Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from pending-provision to provisioned. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your IPv4 address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.

// Example sending a request using ProvisionByoipCidrRequest.
req := client.ProvisionByoipCidrRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProvisionByoipCidr

func (*Client) PurchaseHostReservationRequest added in v0.9.0

func (c *Client) PurchaseHostReservationRequest(input *PurchaseHostReservationInput) PurchaseHostReservationRequest

PurchaseHostReservationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account.

// Example sending a request using PurchaseHostReservationRequest.
req := client.PurchaseHostReservationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation

func (*Client) PurchaseReservedInstancesOfferingRequest added in v0.9.0

func (c *Client) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedInstancesOfferingInput) PurchaseReservedInstancesOfferingRequest

PurchaseReservedInstancesOfferingRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.

Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.

To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.

For more information, see Reserved Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html) and Reserved Instance Marketplace (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using PurchaseReservedInstancesOfferingRequest.
req := client.PurchaseReservedInstancesOfferingRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering

func (*Client) PurchaseScheduledInstancesRequest added in v0.9.0

func (c *Client) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstancesInput) PurchaseScheduledInstancesRequest

PurchaseScheduledInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Purchases the Scheduled Instances with the specified schedule.

Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.

After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.

// Example sending a request using PurchaseScheduledInstancesRequest.
req := client.PurchaseScheduledInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances

Example (Shared00)

To purchase a Scheduled Instance

This example purchases a Scheduled Instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.PurchaseScheduledInstancesInput{
		PurchaseRequests: []ec2.PurchaseRequest{
			{
				InstanceCount: aws.Int64(1),
				PurchaseToken: aws.String("eyJ2IjoiMSIsInMiOjEsImMiOi..."),
			},
		},
	}

	req := svc.PurchaseScheduledInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) RebootInstancesRequest added in v0.9.0

func (c *Client) RebootInstancesRequest(input *RebootInstancesInput) RebootInstancesRequest

RebootInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

If an instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.

For more information about troubleshooting, see Getting console output and rebooting instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using RebootInstancesRequest.
req := client.RebootInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances

Example (Shared00)

To reboot an EC2 instance

This example reboots the specified EC2 instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.RebootInstancesInput{
		InstanceIds: []string{
			"i-1234567890abcdef5",
		},
	}

	req := svc.RebootInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) RegisterImageRequest added in v0.9.0

func (c *Client) RegisterImageRequest(input *RegisterImageInput) RegisterImageRequest

RegisterImageRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating your own AMIs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html) in the Amazon Elastic Compute Cloud User Guide.

For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don't have to register the AMI yourself.

You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using the block device mapping. For more information, see Launching a Linux instance from a backup (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-launch-snapshot.html) in the Amazon Elastic Compute Cloud User Guide.

If any snapshots have AWS Marketplace product codes, they are copied to the new AMI.

Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the EC2 billing product code associated with an AMI to verify the subscription status for package updates. To create a new AMI for operating systems that require a billing product code, instead of registering the AMI, do the following to preserve the billing product code association:

Launch an instance from an existing AMI with that billing product code.

Customize the instance.

Create an AMI from the instance using CreateImage.

If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched from an AMI with a billing product code, make sure that the Reserved Instance has the matching billing product code. If you purchase a Reserved Instance without the matching billing product code, the Reserved Instance will not be applied to the On-Demand Instance. For information about how to obtain the platform details and billing information of an AMI, see Obtaining billing information (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html) in the Amazon Elastic Compute Cloud User Guide.

If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.

// Example sending a request using RegisterImageRequest.
req := client.RegisterImageRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage

func (*Client) RegisterInstanceEventNotificationAttributesRequest added in v0.21.0

func (c *Client) RegisterInstanceEventNotificationAttributesRequest(input *RegisterInstanceEventNotificationAttributesInput) RegisterInstanceEventNotificationAttributesRequest

RegisterInstanceEventNotificationAttributesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Registers a set of tag keys to include in scheduled event notifications for your resources.

To remove tags, use .

// Example sending a request using RegisterInstanceEventNotificationAttributesRequest.
req := client.RegisterInstanceEventNotificationAttributesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterInstanceEventNotificationAttributes

func (*Client) RegisterTransitGatewayMulticastGroupMembersRequest added in v0.18.0

func (c *Client) RegisterTransitGatewayMulticastGroupMembersRequest(input *RegisterTransitGatewayMulticastGroupMembersInput) RegisterTransitGatewayMulticastGroupMembersRequest

RegisterTransitGatewayMulticastGroupMembersRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface associated with a supported EC2 instance that receives multicast traffic. For information about supported instances, see Multicast Consideration (https://docs.aws.amazon.com/vpc/latest/tgw/transit-gateway-limits.html#multicast-limits) in Amazon VPC Transit Gateways.

After you add the members, use SearchTransitGatewayMulticastGroups (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SearchTransitGatewayMulticastGroups.html) to verify that the members were added to the transit gateway multicast group.

// Example sending a request using RegisterTransitGatewayMulticastGroupMembersRequest.
req := client.RegisterTransitGatewayMulticastGroupMembersRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterTransitGatewayMulticastGroupMembers

func (*Client) RegisterTransitGatewayMulticastGroupSourcesRequest added in v0.18.0

func (c *Client) RegisterTransitGatewayMulticastGroupSourcesRequest(input *RegisterTransitGatewayMulticastGroupSourcesInput) RegisterTransitGatewayMulticastGroupSourcesRequest

RegisterTransitGatewayMulticastGroupSourcesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Registers sources (network interfaces) with the specified transit gateway multicast group.

A multicast source is a network interface attached to a supported instance that sends multicast traffic. For information about supported instances, see Multicast Considerations (https://docs.aws.amazon.com/vpc/latest/tgw/transit-gateway-limits.html#multicast-limits) in Amazon VPC Transit Gateways.

After you add the source, use SearchTransitGatewayMulticastGroups (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SearchTransitGatewayMulticastGroups.html) to verify that the source was added to the multicast group.

// Example sending a request using RegisterTransitGatewayMulticastGroupSourcesRequest.
req := client.RegisterTransitGatewayMulticastGroupSourcesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterTransitGatewayMulticastGroupSources

func (*Client) RejectTransitGatewayPeeringAttachmentRequest added in v0.18.0

func (c *Client) RejectTransitGatewayPeeringAttachmentRequest(input *RejectTransitGatewayPeeringAttachmentInput) RejectTransitGatewayPeeringAttachmentRequest

RejectTransitGatewayPeeringAttachmentRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Rejects a transit gateway peering attachment request.

// Example sending a request using RejectTransitGatewayPeeringAttachmentRequest.
req := client.RejectTransitGatewayPeeringAttachmentRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectTransitGatewayPeeringAttachment

func (*Client) RejectTransitGatewayVpcAttachmentRequest added in v0.9.0

func (c *Client) RejectTransitGatewayVpcAttachmentRequest(input *RejectTransitGatewayVpcAttachmentInput) RejectTransitGatewayVpcAttachmentRequest

RejectTransitGatewayVpcAttachmentRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Rejects a request to attach a VPC to a transit gateway.

The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.

// Example sending a request using RejectTransitGatewayVpcAttachmentRequest.
req := client.RejectTransitGatewayVpcAttachmentRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectTransitGatewayVpcAttachment

func (*Client) RejectVpcEndpointConnectionsRequest added in v0.9.0

func (c *Client) RejectVpcEndpointConnectionsRequest(input *RejectVpcEndpointConnectionsInput) RejectVpcEndpointConnectionsRequest

RejectVpcEndpointConnectionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Rejects one or more VPC endpoint connection requests to your VPC endpoint service.

// Example sending a request using RejectVpcEndpointConnectionsRequest.
req := client.RejectVpcEndpointConnectionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnections

func (*Client) RejectVpcPeeringConnectionRequest added in v0.9.0

func (c *Client) RejectVpcPeeringConnectionRequest(input *RejectVpcPeeringConnectionInput) RejectVpcPeeringConnectionRequest

RejectVpcPeeringConnectionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.

// Example sending a request using RejectVpcPeeringConnectionRequest.
req := client.RejectVpcPeeringConnectionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection

func (*Client) ReleaseAddressRequest added in v0.9.0

func (c *Client) ReleaseAddressRequest(input *ReleaseAddressInput) ReleaseAddressRequest

ReleaseAddressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Releases the specified Elastic IP address.

[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it's associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.

[Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

After releasing an Elastic IP address, it is released to the IP address pool. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you'll get an AuthFailure error if the address is already allocated to another AWS account.

[EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it. For more information, see AllocateAddress.

// Example sending a request using ReleaseAddressRequest.
req := client.ReleaseAddressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress

Example (Shared00)

To release an Elastic IP address for EC2-VPC

This example releases an Elastic IP address for use with instances in a VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ReleaseAddressInput{
		AllocationId: aws.String("eipalloc-64d5890a"),
	}

	req := svc.ReleaseAddressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To release an Elastic IP addresses for EC2-Classic

This example releases an Elastic IP address for use with instances in EC2-Classic.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ReleaseAddressInput{
		PublicIp: aws.String("198.51.100.0"),
	}

	req := svc.ReleaseAddressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ReleaseHostsRequest added in v0.9.0

func (c *Client) ReleaseHostsRequest(input *ReleaseHostsInput) ReleaseHostsRequest

ReleaseHostsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.

When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.

Released hosts still appear in a DescribeHosts response.

// Example sending a request using ReleaseHostsRequest.
req := client.ReleaseHostsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts

func (*Client) ReplaceIamInstanceProfileAssociationRequest added in v0.9.0

func (c *Client) ReplaceIamInstanceProfileAssociationRequest(input *ReplaceIamInstanceProfileAssociationInput) ReplaceIamInstanceProfileAssociationRequest

ReplaceIamInstanceProfileAssociationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that's associated with an instance without having to disassociate the existing IAM instance profile first.

Use DescribeIamInstanceProfileAssociations to get the association ID.

// Example sending a request using ReplaceIamInstanceProfileAssociationRequest.
req := client.ReplaceIamInstanceProfileAssociationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation

func (*Client) ReplaceNetworkAclAssociationRequest added in v0.9.0

func (c *Client) ReplaceNetworkAclAssociationRequest(input *ReplaceNetworkAclAssociationInput) ReplaceNetworkAclAssociationRequest

ReplaceNetworkAclAssociationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Changes which network ACL a subnet is associated with. By default when you create a subnet, it's automatically associated with the default network ACL. For more information, see Network ACLs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the Amazon Virtual Private Cloud User Guide.

This is an idempotent operation.

// Example sending a request using ReplaceNetworkAclAssociationRequest.
req := client.ReplaceNetworkAclAssociationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation

Example (Shared00)

To replace the network ACL associated with a subnet

This example associates the specified network ACL with the subnet for the specified network ACL association.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ReplaceNetworkAclAssociationInput{
		AssociationId: aws.String("aclassoc-e5b95c8c"),
		NetworkAclId:  aws.String("acl-5fb85d36"),
	}

	req := svc.ReplaceNetworkAclAssociationRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ReplaceNetworkAclEntryRequest added in v0.9.0

func (c *Client) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) ReplaceNetworkAclEntryRequest

ReplaceNetworkAclEntryRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Replaces an entry (rule) in a network ACL. For more information, see Network ACLs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using ReplaceNetworkAclEntryRequest.
req := client.ReplaceNetworkAclEntryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry

Example (Shared00)

To replace a network ACL entry

This example replaces an entry for the specified network ACL. The new rule 100 allows ingress traffic from 203.0.113.12/24 on UDP port 53 (DNS) into any associated subnet.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ReplaceNetworkAclEntryInput{
		CidrBlock:    aws.String("203.0.113.12/24"),
		Egress:       aws.Bool(false),
		NetworkAclId: aws.String("acl-5fb85d36"),
		PortRange: &ec2.PortRange{
			From: aws.Int64(53),
			To:   aws.Int64(53),
		},
		Protocol:   aws.String("17"),
		RuleAction: ec2.RuleActionAllow,
		RuleNumber: aws.Int64(100),
	}

	req := svc.ReplaceNetworkAclEntryRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ReplaceRouteRequest added in v0.9.0

func (c *Client) ReplaceRouteRequest(input *ReplaceRouteInput) ReplaceRouteRequest

ReplaceRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Replaces an existing route within a route table in a VPC. You must provide only one of the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.

For more information, see Route Tables (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using ReplaceRouteRequest.
req := client.ReplaceRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute

Example (Shared00)

To replace a route

This example replaces the specified route in the specified table table. The new route matches the specified CIDR and sends the traffic to the specified virtual private gateway.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ReplaceRouteInput{
		DestinationCidrBlock: aws.String("10.0.0.0/16"),
		GatewayId:            aws.String("vgw-9a4cacf3"),
		RouteTableId:         aws.String("rtb-22574640"),
	}

	req := svc.ReplaceRouteRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ReplaceRouteTableAssociationRequest added in v0.9.0

func (c *Client) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssociationInput) ReplaceRouteTableAssociationRequest

ReplaceRouteTableAssociationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route Tables (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the Amazon Virtual Private Cloud User Guide.

You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

// Example sending a request using ReplaceRouteTableAssociationRequest.
req := client.ReplaceRouteTableAssociationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation

Example (Shared00)

To replace the route table associated with a subnet

This example associates the specified route table with the subnet for the specified route table association.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ReplaceRouteTableAssociationInput{
		AssociationId: aws.String("rtbassoc-781d0d1a"),
		RouteTableId:  aws.String("rtb-22574640"),
	}

	req := svc.ReplaceRouteTableAssociationRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ReplaceTransitGatewayRouteRequest added in v0.9.0

func (c *Client) ReplaceTransitGatewayRouteRequest(input *ReplaceTransitGatewayRouteInput) ReplaceTransitGatewayRouteRequest

ReplaceTransitGatewayRouteRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Replaces the specified route in the specified transit gateway route table.

// Example sending a request using ReplaceTransitGatewayRouteRequest.
req := client.ReplaceTransitGatewayRouteRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceTransitGatewayRoute

func (*Client) ReportInstanceStatusRequest added in v0.9.0

func (c *Client) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) ReportInstanceStatusRequest

ReportInstanceStatusRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Submits feedback about the status of an instance. The instance must be in the running state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.

Use of this action does not change the value returned by DescribeInstanceStatus.

// Example sending a request using ReportInstanceStatusRequest.
req := client.ReportInstanceStatusRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus

func (*Client) RequestSpotFleetRequest added in v0.9.0

func (c *Client) RequestSpotFleetRequest(input *RequestSpotFleetInput) RequestSpotFleetRequest

RequestSpotFleetRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a Spot Fleet request.

The Spot Fleet request specifies the total target capacity and the On-Demand target capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand capacity, and launches the difference as Spot capacity.

You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

By default, the Spot Fleet requests Spot Instances in the Spot Instance pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

Alternatively, you can specify that the Spot Fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot Instances in your Spot Fleet are in different Spot pools, you can improve the availability of your fleet.

You can specify tags for the Spot Fleet request and instances launched by the fleet. You cannot tag other resource types in a Spot Fleet request because only the spot-fleet-request and instance resource types are supported.

For more information, see Spot Fleet requests (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html) in the Amazon EC2 User Guide for Linux Instances.

// Example sending a request using RequestSpotFleetRequest.
req := client.RequestSpotFleetRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet

Example (Shared00)

To request a Spot fleet in the subnet with the lowest price

This example creates a Spot fleet request with two launch specifications that differ only by subnet. The Spot fleet launches the instances in the specified subnet with the lowest price. If the instances are launched in a default VPC, they receive a public IP address by default. If the instances are launched in a nondefault VPC, they do not receive a public IP address by default. Note that you can't specify different subnets from the same Availability Zone in a Spot fleet request.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.RequestSpotFleetInput{
		SpotFleetRequestConfig: &ec2.SpotFleetRequestConfigData{
			IamFleetRole: aws.String("arn:aws:iam::123456789012:role/my-spot-fleet-role"),
			LaunchSpecifications: []ec2.SpotFleetLaunchSpecification{
				{
					IamInstanceProfile: &ec2.IamInstanceProfileSpecification{
						Arn: aws.String("arn:aws:iam::123456789012:instance-profile/my-iam-role"),
					},
					ImageId:      aws.String("ami-1a2b3c4d"),
					InstanceType: ec2.InstanceTypeM3Medium,
					KeyName:      aws.String("my-key-pair"),
					SecurityGroups: []ec2.GroupIdentifier{
						{
							GroupId: aws.String("sg-1a2b3c4d"),
						},
					},
					SubnetId: aws.String("subnet-1a2b3c4d, subnet-3c4d5e6f"),
				},
			},
			SpotPrice:      aws.String("0.04"),
			TargetCapacity: aws.Int64(2),
		},
	}

	req := svc.RequestSpotFleetRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To request a Spot fleet in the Availability Zone with the lowest price

This example creates a Spot fleet request with two launch specifications that differ only by Availability Zone. The Spot fleet launches the instances in the specified Availability Zone with the lowest price. If your account supports EC2-VPC only, Amazon EC2 launches the Spot instances in the default subnet of the Availability Zone. If your account supports EC2-Classic, Amazon EC2 launches the instances in EC2-Classic in the Availability Zone.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.RequestSpotFleetInput{
		SpotFleetRequestConfig: &ec2.SpotFleetRequestConfigData{
			IamFleetRole: aws.String("arn:aws:iam::123456789012:role/my-spot-fleet-role"),
			LaunchSpecifications: []ec2.SpotFleetLaunchSpecification{
				{
					IamInstanceProfile: &ec2.IamInstanceProfileSpecification{
						Arn: aws.String("arn:aws:iam::123456789012:instance-profile/my-iam-role"),
					},
					ImageId:      aws.String("ami-1a2b3c4d"),
					InstanceType: ec2.InstanceTypeM3Medium,
					KeyName:      aws.String("my-key-pair"),
					Placement: &ec2.SpotPlacement{
						AvailabilityZone: aws.String("us-west-2a, us-west-2b"),
					},
					SecurityGroups: []ec2.GroupIdentifier{
						{
							GroupId: aws.String("sg-1a2b3c4d"),
						},
					},
				},
			},
			SpotPrice:      aws.String("0.04"),
			TargetCapacity: aws.Int64(2),
		},
	}

	req := svc.RequestSpotFleetRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared02)

To launch Spot instances in a subnet and assign them public IP addresses

This example assigns public addresses to instances launched in a nondefault VPC. Note that when you specify a network interface, you must include the subnet ID and security group ID using the network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.RequestSpotFleetInput{
		SpotFleetRequestConfig: &ec2.SpotFleetRequestConfigData{
			IamFleetRole: aws.String("arn:aws:iam::123456789012:role/my-spot-fleet-role"),
			LaunchSpecifications: []ec2.SpotFleetLaunchSpecification{
				{
					IamInstanceProfile: &ec2.IamInstanceProfileSpecification{
						Arn: aws.String("arn:aws:iam::880185128111:instance-profile/my-iam-role"),
					},
					ImageId:      aws.String("ami-1a2b3c4d"),
					InstanceType: ec2.InstanceTypeM3Medium,
					KeyName:      aws.String("my-key-pair"),
					NetworkInterfaces: []ec2.InstanceNetworkInterfaceSpecification{
						{
							AssociatePublicIpAddress: aws.Bool(true),
							DeviceIndex:              aws.Int64(0),
							Groups: []string{
								"sg-1a2b3c4d",
							},
							SubnetId: aws.String("subnet-1a2b3c4d"),
						},
					},
				},
			},
			SpotPrice:      aws.String("0.04"),
			TargetCapacity: aws.Int64(2),
		},
	}

	req := svc.RequestSpotFleetRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared03)

To request a Spot fleet using the diversified allocation strategy

This example creates a Spot fleet request that launches 30 instances using the diversified allocation strategy. The launch specifications differ by instance type. The Spot fleet distributes the instances across the launch specifications such that there are 10 instances of each type.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.RequestSpotFleetInput{
		SpotFleetRequestConfig: &ec2.SpotFleetRequestConfigData{
			AllocationStrategy: ec2.AllocationStrategyDiversified,
			IamFleetRole:       aws.String("arn:aws:iam::123456789012:role/my-spot-fleet-role"),
			LaunchSpecifications: []ec2.SpotFleetLaunchSpecification{
				{
					ImageId:      aws.String("ami-1a2b3c4d"),
					InstanceType: ec2.InstanceTypeC42xlarge,
					SubnetId:     aws.String("subnet-1a2b3c4d"),
				},
				{
					ImageId:      aws.String("ami-1a2b3c4d"),
					InstanceType: ec2.InstanceTypeM32xlarge,
					SubnetId:     aws.String("subnet-1a2b3c4d"),
				},
				{
					ImageId:      aws.String("ami-1a2b3c4d"),
					InstanceType: ec2.InstanceTypeR32xlarge,
					SubnetId:     aws.String("subnet-1a2b3c4d"),
				},
			},
			SpotPrice:      aws.String("0.70"),
			TargetCapacity: aws.Int64(30),
		},
	}

	req := svc.RequestSpotFleetRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) RequestSpotInstancesRequest added in v0.9.0

func (c *Client) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) RequestSpotInstancesRequest

RequestSpotInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Creates a Spot Instance request.

For more information, see Spot Instance requests (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) in the Amazon EC2 User Guide for Linux Instances.

// Example sending a request using RequestSpotInstancesRequest.
req := client.RequestSpotInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances

Example (Shared00)

To create a one-time Spot Instance request

This example creates a one-time Spot Instance request for five instances in the specified Availability Zone. If your account supports EC2-VPC only, Amazon EC2 launches the instances in the default subnet of the specified Availability Zone. If your account supports EC2-Classic, Amazon EC2 launches the instances in EC2-Classic in the specified Availability Zone.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.RequestSpotInstancesInput{
		InstanceCount: aws.Int64(5),
		LaunchSpecification: &ec2.RequestSpotLaunchSpecification{
			IamInstanceProfile: &ec2.IamInstanceProfileSpecification{
				Arn: aws.String("arn:aws:iam::123456789012:instance-profile/my-iam-role"),
			},
			ImageId:      aws.String("ami-1a2b3c4d"),
			InstanceType: ec2.InstanceTypeM3Medium,
			KeyName:      aws.String("my-key-pair"),
			Placement: &ec2.SpotPlacement{
				AvailabilityZone: aws.String("us-west-2a"),
			},
			SecurityGroupIds: []string{
				"sg-1a2b3c4d",
			},
		},
		SpotPrice: aws.String("0.03"),
		Type:      ec2.SpotInstanceTypeOneTime,
	}

	req := svc.RequestSpotInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To create a one-time Spot Instance request

This example command creates a one-time Spot Instance request for five instances in the specified subnet. Amazon EC2 launches the instances in the specified subnet. If the VPC is a nondefault VPC, the instances do not receive a public IP address by default.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.RequestSpotInstancesInput{
		InstanceCount: aws.Int64(5),
		LaunchSpecification: &ec2.RequestSpotLaunchSpecification{
			IamInstanceProfile: &ec2.IamInstanceProfileSpecification{
				Arn: aws.String("arn:aws:iam::123456789012:instance-profile/my-iam-role"),
			},
			ImageId:      aws.String("ami-1a2b3c4d"),
			InstanceType: ec2.InstanceTypeM3Medium,
			SecurityGroupIds: []string{
				"sg-1a2b3c4d",
			},
			SubnetId: aws.String("subnet-1a2b3c4d"),
		},
		SpotPrice: aws.String("0.050"),
		Type:      ec2.SpotInstanceTypeOneTime,
	}

	req := svc.RequestSpotInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ResetEbsDefaultKmsKeyIdRequest added in v0.9.0

func (c *Client) ResetEbsDefaultKmsKeyIdRequest(input *ResetEbsDefaultKmsKeyIdInput) ResetEbsDefaultKmsKeyIdRequest

ResetEbsDefaultKmsKeyIdRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Resets the default customer master key (CMK) for EBS encryption for your account in this Region to the AWS managed CMK for EBS.

After resetting the default CMK to the AWS managed CMK, you can continue to encrypt by a customer managed CMK by specifying it when you create the volume. For more information, see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using ResetEbsDefaultKmsKeyIdRequest.
req := client.ResetEbsDefaultKmsKeyIdRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetEbsDefaultKmsKeyId

func (*Client) ResetFpgaImageAttributeRequest added in v0.9.0

func (c *Client) ResetFpgaImageAttributeRequest(input *ResetFpgaImageAttributeInput) ResetFpgaImageAttributeRequest

ResetFpgaImageAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute.

// Example sending a request using ResetFpgaImageAttributeRequest.
req := client.ResetFpgaImageAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetFpgaImageAttribute

func (*Client) ResetImageAttributeRequest added in v0.9.0

func (c *Client) ResetImageAttributeRequest(input *ResetImageAttributeInput) ResetImageAttributeRequest

ResetImageAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Resets an attribute of an AMI to its default value.

The productCodes attribute can't be reset.

// Example sending a request using ResetImageAttributeRequest.
req := client.ResetImageAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute

Example (Shared00)

To reset the launchPermission attribute

This example resets the launchPermission attribute for the specified AMI. By default, AMIs are private.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ResetImageAttributeInput{
		Attribute: ec2.ResetImageAttributeNameLaunchPermission,
		ImageId:   aws.String("ami-5731123e"),
	}

	req := svc.ResetImageAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ResetInstanceAttributeRequest added in v0.9.0

func (c *Client) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) ResetInstanceAttributeRequest

ResetInstanceAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Resets an attribute of an instance to its default value. To reset the kernel or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, the instance can be either running or stopped.

The sourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true, which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html) in the Amazon Virtual Private Cloud User Guide.

// Example sending a request using ResetInstanceAttributeRequest.
req := client.ResetInstanceAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute

Example (Shared00)

To reset the sourceDestCheck attribute

This example resets the sourceDestCheck attribute for the specified instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ResetInstanceAttributeInput{
		Attribute:  ec2.InstanceAttributeNameSourceDestCheck,
		InstanceId: aws.String("i-1234567890abcdef0"),
	}

	req := svc.ResetInstanceAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) ResetNetworkInterfaceAttributeRequest added in v0.9.0

func (c *Client) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterfaceAttributeInput) ResetNetworkInterfaceAttributeRequest

ResetNetworkInterfaceAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Resets a network interface attribute. You can specify only one attribute at a time.

// Example sending a request using ResetNetworkInterfaceAttributeRequest.
req := client.ResetNetworkInterfaceAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute

func (*Client) ResetSnapshotAttributeRequest added in v0.9.0

func (c *Client) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) ResetSnapshotAttributeRequest

ResetSnapshotAttributeRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Resets permission settings for the specified snapshot.

For more information about modifying snapshot permissions, see Sharing Snapshots (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using ResetSnapshotAttributeRequest.
req := client.ResetSnapshotAttributeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute

Example (Shared00)

To reset a snapshot attribute

This example resets the create volume permissions for snapshot “snap-1234567890abcdef0“. If the command succeeds, no output is returned.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.ResetSnapshotAttributeInput{
		Attribute:  ec2.SnapshotAttributeNameCreateVolumePermission,
		SnapshotId: aws.String("snap-1234567890abcdef0"),
	}

	req := svc.ResetSnapshotAttributeRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) RestoreAddressToClassicRequest added in v0.9.0

func (c *Client) RestoreAddressToClassicRequest(input *RestoreAddressToClassicInput) RestoreAddressToClassicRequest

RestoreAddressToClassicRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface.

// Example sending a request using RestoreAddressToClassicRequest.
req := client.RestoreAddressToClassicRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic

Example (Shared00)

To restore an address to EC2-Classic

This example restores the specified Elastic IP address to the EC2-Classic platform.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.RestoreAddressToClassicInput{
		PublicIp: aws.String("198.51.100.0"),
	}

	req := svc.RestoreAddressToClassicRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) RestoreManagedPrefixListVersionRequest added in v0.24.0

func (c *Client) RestoreManagedPrefixListVersionRequest(input *RestoreManagedPrefixListVersionInput) RestoreManagedPrefixListVersionRequest

RestoreManagedPrefixListVersionRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Restores the entries from a previous version of a managed prefix list to a new version of the prefix list.

// Example sending a request using RestoreManagedPrefixListVersionRequest.
req := client.RestoreManagedPrefixListVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreManagedPrefixListVersion

func (*Client) RevokeClientVpnIngressRequest added in v0.9.0

func (c *Client) RevokeClientVpnIngressRequest(input *RevokeClientVpnIngressInput) RevokeClientVpnIngressRequest

RevokeClientVpnIngressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Removes an ingress authorization rule from a Client VPN endpoint.

// Example sending a request using RevokeClientVpnIngressRequest.
req := client.RevokeClientVpnIngressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeClientVpnIngress

func (*Client) RevokeSecurityGroupEgressRequest added in v0.9.0

func (c *Client) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressInput) RevokeSecurityGroupEgressRequest

RevokeSecurityGroupEgressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

[VPC only] Removes the specified egress rules from a security group for EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not have to specify the description to revoke the rule.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

// Example sending a request using RevokeSecurityGroupEgressRequest.
req := client.RevokeSecurityGroupEgressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress

func (*Client) RevokeSecurityGroupIngressRequest added in v0.9.0

func (c *Client) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngressInput) RevokeSecurityGroupIngressRequest

RevokeSecurityGroupIngressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Removes the specified ingress rules from a security group. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

[EC2-Classic only] If the values you specify do not match the existing rule's values, no error is returned. Use DescribeSecurityGroups to verify that the rule has been removed.

Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not have to specify the description to revoke the rule.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

// Example sending a request using RevokeSecurityGroupIngressRequest.
req := client.RevokeSecurityGroupIngressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress

func (*Client) RunInstancesRequest added in v0.9.0

func (c *Client) RunInstancesRequest(input *RunInstancesInput) RunInstancesRequest

RunInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Launches the specified number of instances using an AMI for which you have permissions.

You can specify a number of options, or leave the default options. The following rules apply:

You can create a launch template (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html), which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify the launch template instead of specifying the launch parameters.

To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances.

An instance is ready for you to use when it's in the running state. You can check the state of your instance using DescribeInstances. You can tag instances and EBS volumes during launch, after launch, or both. For more information, see CreateTags and Tagging your Amazon EC2 resources (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html).

Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key pairs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in the Amazon Elastic Compute Cloud User Guide.

For troubleshooting, see What to do if an instance immediately terminates (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html), and Troubleshooting connecting to your instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using RunInstancesRequest.
req := client.RunInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances

Example (Shared00)

To launch an instance

This example launches an instance using the specified AMI, instance type, security group, subnet, block device mapping, and tags.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.RunInstancesInput{
		BlockDeviceMappings: []ec2.BlockDeviceMapping{
			{
				DeviceName: aws.String("/dev/sdh"),
				Ebs: &ec2.EbsBlockDevice{
					VolumeSize: aws.Int64(100),
				},
			},
		},
		ImageId:      aws.String("ami-abc12345"),
		InstanceType: ec2.InstanceTypeT2Micro,
		KeyName:      aws.String("my-key-pair"),
		MaxCount:     aws.Int64(1),
		MinCount:     aws.Int64(1),
		SecurityGroupIds: []string{
			"sg-1a2b3c4d",
		},
		SubnetId: aws.String("subnet-6e7f829e"),
		TagSpecifications: []ec2.TagSpecification{
			{
				ResourceType: ec2.ResourceTypeInstance,
				Tags: []ec2.Tag{
					{
						Key:   aws.String("Purpose"),
						Value: aws.String("test"),
					},
				},
			},
		},
	}

	req := svc.RunInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) RunScheduledInstancesRequest added in v0.9.0

func (c *Client) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) RunScheduledInstancesRequest

RunScheduledInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Launches the specified Scheduled Instances.

Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using RunScheduledInstancesRequest.
req := client.RunScheduledInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances

Example (Shared00)

To launch a Scheduled Instance in a VPC

This example launches the specified Scheduled Instance in a VPC.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.RunScheduledInstancesInput{
		InstanceCount: aws.Int64(1),
		LaunchSpecification: &ec2.ScheduledInstancesLaunchSpecification{
			IamInstanceProfile: &ec2.ScheduledInstancesIamInstanceProfile{
				Name: aws.String("my-iam-role"),
			},
			ImageId:      aws.String("ami-12345678"),
			InstanceType: aws.String("c4.large"),
			KeyName:      aws.String("my-key-pair"),
			NetworkInterfaces: []ec2.ScheduledInstancesNetworkInterface{
				{
					AssociatePublicIpAddress: aws.Bool(true),
					DeviceIndex:              aws.Int64(0),
					Groups: []string{
						"sg-12345678",
					},
					SubnetId: aws.String("subnet-12345678"),
				},
			},
		},
		ScheduledInstanceId: aws.String("sci-1234-1234-1234-1234-123456789012"),
	}

	req := svc.RunScheduledInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To launch a Scheduled Instance in EC2-Classic

This example launches the specified Scheduled Instance in EC2-Classic.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.RunScheduledInstancesInput{
		InstanceCount: aws.Int64(1),
		LaunchSpecification: &ec2.ScheduledInstancesLaunchSpecification{
			IamInstanceProfile: &ec2.ScheduledInstancesIamInstanceProfile{
				Name: aws.String("my-iam-role"),
			},
			ImageId:      aws.String("ami-12345678"),
			InstanceType: aws.String("c4.large"),
			KeyName:      aws.String("my-key-pair"),
			Placement: &ec2.ScheduledInstancesPlacement{
				AvailabilityZone: aws.String("us-west-2b"),
			},
			SecurityGroupIds: []string{
				"sg-12345678",
			},
		},
		ScheduledInstanceId: aws.String("sci-1234-1234-1234-1234-123456789012"),
	}

	req := svc.RunScheduledInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) SearchLocalGatewayRoutesRequest added in v0.18.0

func (c *Client) SearchLocalGatewayRoutesRequest(input *SearchLocalGatewayRoutesInput) SearchLocalGatewayRoutesRequest

SearchLocalGatewayRoutesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Searches for routes in the specified local gateway route table.

// Example sending a request using SearchLocalGatewayRoutesRequest.
req := client.SearchLocalGatewayRoutesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SearchLocalGatewayRoutes

func (*Client) SearchTransitGatewayMulticastGroupsRequest added in v0.18.0

func (c *Client) SearchTransitGatewayMulticastGroupsRequest(input *SearchTransitGatewayMulticastGroupsInput) SearchTransitGatewayMulticastGroupsRequest

SearchTransitGatewayMulticastGroupsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Searches one or more transit gateway multicast groups and returns the group membership information.

// Example sending a request using SearchTransitGatewayMulticastGroupsRequest.
req := client.SearchTransitGatewayMulticastGroupsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SearchTransitGatewayMulticastGroups

func (*Client) SearchTransitGatewayRoutesRequest added in v0.9.0

func (c *Client) SearchTransitGatewayRoutesRequest(input *SearchTransitGatewayRoutesInput) SearchTransitGatewayRoutesRequest

SearchTransitGatewayRoutesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Searches for routes in the specified transit gateway route table.

// Example sending a request using SearchTransitGatewayRoutesRequest.
req := client.SearchTransitGatewayRoutesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SearchTransitGatewayRoutes

func (*Client) SendDiagnosticInterruptRequest added in v0.11.0

func (c *Client) SendDiagnosticInterruptRequest(input *SendDiagnosticInterruptInput) SendDiagnosticInterruptRequest

SendDiagnosticInterruptRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen/stop error (on Windows instances). For instances based on Intel and AMD processors, the interrupt is received as a non-maskable interrupt (NMI).

In general, the operating system crashes and reboots when a kernel panic or stop error is triggered. The operating system can also be configured to perform diagnostic tasks, such as generating a memory dump file, loading a secondary kernel, or obtaining a call trace.

Before sending a diagnostic interrupt to your instance, ensure that its operating system is configured to perform the required diagnostic tasks.

For more information about configuring your operating system to generate a crash dump when a kernel panic or stop error occurs, see Send a diagnostic interrupt (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/diagnostic-interrupt.html) (Linux instances) or Send a Diagnostic Interrupt (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/diagnostic-interrupt.html) (Windows instances).

// Example sending a request using SendDiagnosticInterruptRequest.
req := client.SendDiagnosticInterruptRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SendDiagnosticInterrupt

func (*Client) StartInstancesRequest added in v0.9.0

func (c *Client) StartInstancesRequest(input *StartInstancesInput) StartInstancesRequest

StartInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Starts an Amazon EBS-backed instance that you've previously stopped.

Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

Performing this operation on an instance that uses an instance store as its root device returns an error.

For more information, see Stopping instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using StartInstancesRequest.
req := client.StartInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances

Example (Shared00)

To start a stopped EC2 instance

This example starts the specified EC2 instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.StartInstancesInput{
		InstanceIds: []string{
			"i-1234567890abcdef0",
		},
	}

	req := svc.StartInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) StartVpcEndpointServicePrivateDnsVerificationRequest added in v0.19.0

func (c *Client) StartVpcEndpointServicePrivateDnsVerificationRequest(input *StartVpcEndpointServicePrivateDnsVerificationInput) StartVpcEndpointServicePrivateDnsVerificationRequest

StartVpcEndpointServicePrivateDnsVerificationRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service.

The service provider must successfully perform the verification before the consumer can use the name to access the service.

Before the service provider runs this command, they must add a record to the DNS server. For more information, see Adding a TXT Record to Your Domain's DNS Server (https://docs.aws.amazon.com/vpc/latest/userguide/ndpoint-services-dns-validation.html#add-dns-txt-record) in the Amazon VPC User Guide.

// Example sending a request using StartVpcEndpointServicePrivateDnsVerificationRequest.
req := client.StartVpcEndpointServicePrivateDnsVerificationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartVpcEndpointServicePrivateDnsVerification

func (*Client) StopInstancesRequest added in v0.9.0

func (c *Client) StopInstancesRequest(input *StopInstancesInput) StopInstancesRequest

StopInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Stops an Amazon EBS-backed instance.

You can use the Stop action to hibernate an instance if the instance is enabled for hibernation (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation) and it meets the hibernation prerequisites (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). For more information, see Hibernate your instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the Amazon Elastic Compute Cloud User Guide.

We don't charge usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

You can't stop or hibernate instance store-backed instances. You can't use the Stop action to hibernate Spot Instances, but you can specify that Amazon EC2 should hibernate Spot Instances when they are interrupted. For more information, see Hibernating interrupted Spot Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances) in the Amazon Elastic Compute Cloud User Guide.

When you stop or hibernate an instance, we shut it down. You can restart your instance at any time. Before stopping or hibernating an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM, but hibernating an instance does preserve data stored in RAM. If an instance cannot hibernate successfully, a normal shutdown occurs.

Stopping and hibernating an instance is different to rebooting or terminating it. For example, when you stop or hibernate an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, hibernating, and terminating instances, see Instance lifecycle (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) in the Amazon Elastic Compute Cloud User Guide.

When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshooting stopping your instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using StopInstancesRequest.
req := client.StopInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances

Example (Shared00)

To stop a running EC2 instance

This example stops the specified EC2 instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.StopInstancesInput{
		InstanceIds: []string{
			"i-1234567890abcdef0",
		},
	}

	req := svc.StopInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) TerminateClientVpnConnectionsRequest added in v0.9.0

func (c *Client) TerminateClientVpnConnectionsRequest(input *TerminateClientVpnConnectionsInput) TerminateClientVpnConnectionsRequest

TerminateClientVpnConnectionsRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user.

// Example sending a request using TerminateClientVpnConnectionsRequest.
req := client.TerminateClientVpnConnectionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateClientVpnConnections

func (*Client) TerminateInstancesRequest added in v0.9.0

func (c *Client) TerminateInstancesRequest(input *TerminateInstancesInput) TerminateInstancesRequest

TerminateInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Shuts down the specified instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.

If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.

Terminated instances remain visible after termination (for approximately one hour).

By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.

You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance lifecycle (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) in the Amazon Elastic Compute Cloud User Guide.

For more information about troubleshooting, see Troubleshooting terminating your instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesShuttingDown.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using TerminateInstancesRequest.
req := client.TerminateInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances

Example (Shared00)

To terminate an EC2 instance

This example terminates the specified EC2 instance.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.TerminateInstancesInput{
		InstanceIds: []string{
			"i-1234567890abcdef0",
		},
	}

	req := svc.TerminateInstancesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) UnassignIpv6AddressesRequest added in v0.9.0

func (c *Client) UnassignIpv6AddressesRequest(input *UnassignIpv6AddressesInput) UnassignIpv6AddressesRequest

UnassignIpv6AddressesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Unassigns one or more IPv6 addresses from a network interface.

// Example sending a request using UnassignIpv6AddressesRequest.
req := client.UnassignIpv6AddressesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses

func (*Client) UnassignPrivateIpAddressesRequest added in v0.9.0

func (c *Client) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddressesInput) UnassignPrivateIpAddressesRequest

UnassignPrivateIpAddressesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Unassigns one or more secondary private IP addresses from a network interface.

// Example sending a request using UnassignPrivateIpAddressesRequest.
req := client.UnassignPrivateIpAddressesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses

Example (Shared00)

To unassign a secondary private IP address from a network interface

This example unassigns the specified private IP address from the specified network interface.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.UnassignPrivateIpAddressesInput{
		NetworkInterfaceId: aws.String("eni-e5aa89a3"),
		PrivateIpAddresses: []string{
			"10.0.0.82",
		},
	}

	req := svc.UnassignPrivateIpAddressesRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) UnmonitorInstancesRequest added in v0.9.0

func (c *Client) UnmonitorInstancesRequest(input *UnmonitorInstancesInput) UnmonitorInstancesRequest

UnmonitorInstancesRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Disables detailed monitoring for a running instance. For more information, see Monitoring your instances and volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) in the Amazon Elastic Compute Cloud User Guide.

// Example sending a request using UnmonitorInstancesRequest.
req := client.UnmonitorInstancesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances

func (*Client) UpdateSecurityGroupRuleDescriptionsEgressRequest added in v0.9.0

func (c *Client) UpdateSecurityGroupRuleDescriptionsEgressRequest(input *UpdateSecurityGroupRuleDescriptionsEgressInput) UpdateSecurityGroupRuleDescriptionsEgressRequest

UpdateSecurityGroupRuleDescriptionsEgressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

[VPC only] Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

// Example sending a request using UpdateSecurityGroupRuleDescriptionsEgressRequest.
req := client.UpdateSecurityGroupRuleDescriptionsEgressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsEgress

Example (Shared00)

To update an outbound security group rule description

This example updates the description for the specified security group rule.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.UpdateSecurityGroupRuleDescriptionsEgressInput{
		GroupId: aws.String("sg-123abc12"),
		IpPermissions: []ec2.IpPermission{
			{
				FromPort:   aws.Int64(80),
				IpProtocol: aws.String("tcp"),
				IpRanges: []ec2.IpRange{
					{
						CidrIp:      aws.String("203.0.113.0/24"),
						Description: aws.String("Outbound HTTP access to server 2"),
					},
				},
				ToPort: aws.Int64(80),
			},
		},
	}

	req := svc.UpdateSecurityGroupRuleDescriptionsEgressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) UpdateSecurityGroupRuleDescriptionsIngressRequest added in v0.9.0

func (c *Client) UpdateSecurityGroupRuleDescriptionsIngressRequest(input *UpdateSecurityGroupRuleDescriptionsIngressInput) UpdateSecurityGroupRuleDescriptionsIngressRequest

UpdateSecurityGroupRuleDescriptionsIngressRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

// Example sending a request using UpdateSecurityGroupRuleDescriptionsIngressRequest.
req := client.UpdateSecurityGroupRuleDescriptionsIngressRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsIngress

Example (Shared00)

To update an inbound security group rule description

This example updates the description for the specified security group rule.

package main

import (
	"context"
	"fmt"

	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/aws/awserr"
	"github.com/aws/aws-sdk-go-v2/aws/external"
	"github.com/aws/aws-sdk-go-v2/service/ec2"
)

func main() {
	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic("failed to load config, " + err.Error())
	}

	svc := ec2.New(cfg)
	input := &ec2.UpdateSecurityGroupRuleDescriptionsIngressInput{
		GroupId: aws.String("sg-123abc12"),
		IpPermissions: []ec2.IpPermission{
			{
				FromPort:   aws.Int64(22),
				IpProtocol: aws.String("tcp"),
				IpRanges: []ec2.IpRange{
					{
						CidrIp:      aws.String("203.0.113.0/16"),
						Description: aws.String("SSH access from the LA office"),
					},
				},
				ToPort: aws.Int64(22),
			},
		},
	}

	req := svc.UpdateSecurityGroupRuleDescriptionsIngressRequest(input)
	result, err := req.Send(context.Background())
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Client) WaitUntilBundleTaskComplete added in v0.9.0

func (c *Client) WaitUntilBundleTaskComplete(ctx context.Context, input *DescribeBundleTasksInput, opts ...aws.WaiterOption) error

WaitUntilBundleTaskComplete uses the Amazon EC2 API operation DescribeBundleTasks to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilConversionTaskCancelled added in v0.9.0

func (c *Client) WaitUntilConversionTaskCancelled(ctx context.Context, input *DescribeConversionTasksInput, opts ...aws.WaiterOption) error

WaitUntilConversionTaskCancelled uses the Amazon EC2 API operation DescribeConversionTasks to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilConversionTaskCompleted added in v0.9.0

func (c *Client) WaitUntilConversionTaskCompleted(ctx context.Context, input *DescribeConversionTasksInput, opts ...aws.WaiterOption) error

WaitUntilConversionTaskCompleted uses the Amazon EC2 API operation DescribeConversionTasks to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilConversionTaskDeleted added in v0.9.0

func (c *Client) WaitUntilConversionTaskDeleted(ctx context.Context, input *DescribeConversionTasksInput, opts ...aws.WaiterOption) error

WaitUntilConversionTaskDeleted uses the Amazon EC2 API operation DescribeConversionTasks to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilCustomerGatewayAvailable added in v0.9.0

func (c *Client) WaitUntilCustomerGatewayAvailable(ctx context.Context, input *DescribeCustomerGatewaysInput, opts ...aws.WaiterOption) error

WaitUntilCustomerGatewayAvailable uses the Amazon EC2 API operation DescribeCustomerGateways to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilExportTaskCancelled added in v0.9.0

func (c *Client) WaitUntilExportTaskCancelled(ctx context.Context, input *DescribeExportTasksInput, opts ...aws.WaiterOption) error

WaitUntilExportTaskCancelled uses the Amazon EC2 API operation DescribeExportTasks to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilExportTaskCompleted added in v0.9.0

func (c *Client) WaitUntilExportTaskCompleted(ctx context.Context, input *DescribeExportTasksInput, opts ...aws.WaiterOption) error

WaitUntilExportTaskCompleted uses the Amazon EC2 API operation DescribeExportTasks to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilImageAvailable added in v0.9.0

func (c *Client) WaitUntilImageAvailable(ctx context.Context, input *DescribeImagesInput, opts ...aws.WaiterOption) error

WaitUntilImageAvailable uses the Amazon EC2 API operation DescribeImages to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilImageExists added in v0.9.0

func (c *Client) WaitUntilImageExists(ctx context.Context, input *DescribeImagesInput, opts ...aws.WaiterOption) error

WaitUntilImageExists uses the Amazon EC2 API operation DescribeImages to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilInstanceExists added in v0.9.0

func (c *Client) WaitUntilInstanceExists(ctx context.Context, input *DescribeInstancesInput, opts ...aws.WaiterOption) error

WaitUntilInstanceExists uses the Amazon EC2 API operation DescribeInstances to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilInstanceRunning added in v0.9.0

func (c *Client) WaitUntilInstanceRunning(ctx context.Context, input *DescribeInstancesInput, opts ...aws.WaiterOption) error

WaitUntilInstanceRunning uses the Amazon EC2 API operation DescribeInstances to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilInstanceStatusOk added in v0.9.0

func (c *Client) WaitUntilInstanceStatusOk(ctx context.Context, input *DescribeInstanceStatusInput, opts ...aws.WaiterOption) error

WaitUntilInstanceStatusOk uses the Amazon EC2 API operation DescribeInstanceStatus to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilInstanceStopped added in v0.9.0

func (c *Client) WaitUntilInstanceStopped(ctx context.Context, input *DescribeInstancesInput, opts ...aws.WaiterOption) error

WaitUntilInstanceStopped uses the Amazon EC2 API operation DescribeInstances to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilInstanceTerminated added in v0.9.0

func (c *Client) WaitUntilInstanceTerminated(ctx context.Context, input *DescribeInstancesInput, opts ...aws.WaiterOption) error

WaitUntilInstanceTerminated uses the Amazon EC2 API operation DescribeInstances to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilKeyPairExists added in v0.9.0

func (c *Client) WaitUntilKeyPairExists(ctx context.Context, input *DescribeKeyPairsInput, opts ...aws.WaiterOption) error

WaitUntilKeyPairExists uses the Amazon EC2 API operation DescribeKeyPairs to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilNatGatewayAvailable added in v0.9.0

func (c *Client) WaitUntilNatGatewayAvailable(ctx context.Context, input *DescribeNatGatewaysInput, opts ...aws.WaiterOption) error

WaitUntilNatGatewayAvailable uses the Amazon EC2 API operation DescribeNatGateways to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilNetworkInterfaceAvailable added in v0.9.0

func (c *Client) WaitUntilNetworkInterfaceAvailable(ctx context.Context, input *DescribeNetworkInterfacesInput, opts ...aws.WaiterOption) error

WaitUntilNetworkInterfaceAvailable uses the Amazon EC2 API operation DescribeNetworkInterfaces to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilPasswordDataAvailable added in v0.9.0

func (c *Client) WaitUntilPasswordDataAvailable(ctx context.Context, input *GetPasswordDataInput, opts ...aws.WaiterOption) error

WaitUntilPasswordDataAvailable uses the Amazon EC2 API operation GetPasswordData to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilSecurityGroupExists added in v0.17.0

func (c *Client) WaitUntilSecurityGroupExists(ctx context.Context, input *DescribeSecurityGroupsInput, opts ...aws.WaiterOption) error

WaitUntilSecurityGroupExists uses the Amazon EC2 API operation DescribeSecurityGroups to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilSnapshotCompleted added in v0.9.0

func (c *Client) WaitUntilSnapshotCompleted(ctx context.Context, input *DescribeSnapshotsInput, opts ...aws.WaiterOption) error

WaitUntilSnapshotCompleted uses the Amazon EC2 API operation DescribeSnapshots to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilSpotInstanceRequestFulfilled added in v0.9.0

func (c *Client) WaitUntilSpotInstanceRequestFulfilled(ctx context.Context, input *DescribeSpotInstanceRequestsInput, opts ...aws.WaiterOption) error

WaitUntilSpotInstanceRequestFulfilled uses the Amazon EC2 API operation DescribeSpotInstanceRequests to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilSubnetAvailable added in v0.9.0

func (c *Client) WaitUntilSubnetAvailable(ctx context.Context, input *DescribeSubnetsInput, opts ...aws.WaiterOption) error

WaitUntilSubnetAvailable uses the Amazon EC2 API operation DescribeSubnets to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilSystemStatusOk added in v0.9.0

func (c *Client) WaitUntilSystemStatusOk(ctx context.Context, input *DescribeInstanceStatusInput, opts ...aws.WaiterOption) error

WaitUntilSystemStatusOk uses the Amazon EC2 API operation DescribeInstanceStatus to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilVolumeAvailable added in v0.9.0

func (c *Client) WaitUntilVolumeAvailable(ctx context.Context, input *DescribeVolumesInput, opts ...aws.WaiterOption) error

WaitUntilVolumeAvailable uses the Amazon EC2 API operation DescribeVolumes to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilVolumeDeleted added in v0.9.0

func (c *Client) WaitUntilVolumeDeleted(ctx context.Context, input *DescribeVolumesInput, opts ...aws.WaiterOption) error

WaitUntilVolumeDeleted uses the Amazon EC2 API operation DescribeVolumes to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilVolumeInUse added in v0.9.0

func (c *Client) WaitUntilVolumeInUse(ctx context.Context, input *DescribeVolumesInput, opts ...aws.WaiterOption) error

WaitUntilVolumeInUse uses the Amazon EC2 API operation DescribeVolumes to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilVpcAvailable added in v0.9.0

func (c *Client) WaitUntilVpcAvailable(ctx context.Context, input *DescribeVpcsInput, opts ...aws.WaiterOption) error

WaitUntilVpcAvailable uses the Amazon EC2 API operation DescribeVpcs to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilVpcExists added in v0.9.0

func (c *Client) WaitUntilVpcExists(ctx context.Context, input *DescribeVpcsInput, opts ...aws.WaiterOption) error

WaitUntilVpcExists uses the Amazon EC2 API operation DescribeVpcs to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilVpcPeeringConnectionDeleted added in v0.9.0

func (c *Client) WaitUntilVpcPeeringConnectionDeleted(ctx context.Context, input *DescribeVpcPeeringConnectionsInput, opts ...aws.WaiterOption) error

WaitUntilVpcPeeringConnectionDeleted uses the Amazon EC2 API operation DescribeVpcPeeringConnections to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilVpcPeeringConnectionExists added in v0.9.0

func (c *Client) WaitUntilVpcPeeringConnectionExists(ctx context.Context, input *DescribeVpcPeeringConnectionsInput, opts ...aws.WaiterOption) error

WaitUntilVpcPeeringConnectionExists uses the Amazon EC2 API operation DescribeVpcPeeringConnections to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilVpnConnectionAvailable added in v0.9.0

func (c *Client) WaitUntilVpnConnectionAvailable(ctx context.Context, input *DescribeVpnConnectionsInput, opts ...aws.WaiterOption) error

WaitUntilVpnConnectionAvailable uses the Amazon EC2 API operation DescribeVpnConnections to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WaitUntilVpnConnectionDeleted added in v0.9.0

func (c *Client) WaitUntilVpnConnectionDeleted(ctx context.Context, input *DescribeVpnConnectionsInput, opts ...aws.WaiterOption) error

WaitUntilVpnConnectionDeleted uses the Amazon EC2 API operation DescribeVpnConnections to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

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 (*Client) WithdrawByoipCidrRequest added in v0.9.0

func (c *Client) WithdrawByoipCidrRequest(input *WithdrawByoipCidrInput) WithdrawByoipCidrRequest

WithdrawByoipCidrRequest returns a request value for making API operation for Amazon Elastic Compute Cloud.

Stops advertising an address range that is provisioned as an address pool.

You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

It can take a few minutes before traffic to the specified addresses stops routing to AWS because of BGP propagation delays.

// Example sending a request using WithdrawByoipCidrRequest.
req := client.WithdrawByoipCidrRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/WithdrawByoipCidr

type CoipAddressUsage added in v0.18.0

type CoipAddressUsage struct {

	// The allocation ID of the address.
	AllocationId *string `locationName:"allocationId" type:"string"`

	// The AWS account ID.
	AwsAccountId *string `locationName:"awsAccountId" type:"string"`

	// The AWS service.
	AwsService *string `locationName:"awsService" type:"string"`

	// The customer-owned IP address.
	CoIp *string `locationName:"coIp" type:"string"`
	// contains filtered or unexported fields
}

Describes address usage for a customer-owned address pool.

func (CoipAddressUsage) String added in v0.18.0

func (s CoipAddressUsage) String() string

String returns the string representation

type CoipPool added in v0.18.0

type CoipPool struct {

	// The ID of the local gateway route table.
	LocalGatewayRouteTableId *string `locationName:"localGatewayRouteTableId" type:"string"`

	// The ARN of the address pool.
	PoolArn *string `locationName:"poolArn" min:"1" type:"string"`

	// The address ranges of the address pool.
	PoolCidrs []string `locationName:"poolCidrSet" locationNameList:"item" type:"list"`

	// The ID of the address pool.
	PoolId *string `locationName:"poolId" type:"string"`

	// The tags.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a customer-owned address pool.

func (CoipPool) String added in v0.18.0

func (s CoipPool) String() string

String returns the string representation

type ConfirmProductInstanceInput

type ConfirmProductInstanceInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`

	// The product code. This must be a product code that you own.
	//
	// ProductCode is a required field
	ProductCode *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ConfirmProductInstanceInput) String

String returns the string representation

func (*ConfirmProductInstanceInput) Validate

func (s *ConfirmProductInstanceInput) Validate() error

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

type ConfirmProductInstanceOutput

type ConfirmProductInstanceOutput struct {

	// The AWS account ID of the instance owner. This is only present if the product
	// code is attached to the instance.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The return value of the request. Returns true if the specified product code
	// is owned by the requester and associated with the specified instance.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ConfirmProductInstanceOutput) String

String returns the string representation

type ConfirmProductInstanceRequest

type ConfirmProductInstanceRequest struct {
	*aws.Request
	Input *ConfirmProductInstanceInput
	Copy  func(*ConfirmProductInstanceInput) ConfirmProductInstanceRequest
}

ConfirmProductInstanceRequest is the request type for the ConfirmProductInstance API operation.

func (ConfirmProductInstanceRequest) Send

Send marshals and sends the ConfirmProductInstance API request.

type ConfirmProductInstanceResponse added in v0.9.0

type ConfirmProductInstanceResponse struct {
	*ConfirmProductInstanceOutput
	// contains filtered or unexported fields
}

ConfirmProductInstanceResponse is the response type for the ConfirmProductInstance API operation.

func (*ConfirmProductInstanceResponse) SDKResponseMetdata added in v0.9.0

func (r *ConfirmProductInstanceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ConfirmProductInstance request.

type ConnectionLogOptions added in v0.7.0

type ConnectionLogOptions struct {

	// The name of the CloudWatch Logs log group. Required if connection logging
	// is enabled.
	CloudwatchLogGroup *string `type:"string"`

	// The name of the CloudWatch Logs log stream to which the connection data is
	// published.
	CloudwatchLogStream *string `type:"string"`

	// Indicates whether connection logging is enabled.
	Enabled *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Describes the client connection logging options for the Client VPN endpoint.

func (ConnectionLogOptions) String added in v0.7.0

func (s ConnectionLogOptions) String() string

String returns the string representation

type ConnectionLogResponseOptions added in v0.7.0

type ConnectionLogResponseOptions struct {

	// The name of the Amazon CloudWatch Logs log group to which connection logging
	// data is published.
	CloudwatchLogGroup *string `type:"string"`

	// The name of the Amazon CloudWatch Logs log stream to which connection logging
	// data is published.
	CloudwatchLogStream *string `type:"string"`

	// Indicates whether client connection logging is enabled for the Client VPN
	// endpoint.
	Enabled *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Information about the client connection logging options for a Client VPN endpoint.

func (ConnectionLogResponseOptions) String added in v0.7.0

String returns the string representation

type ConnectionNotification added in v0.2.0

type ConnectionNotification struct {

	// The events for the notification. Valid values are Accept, Connect, Delete,
	// and Reject.
	ConnectionEvents []string `locationName:"connectionEvents" locationNameList:"item" type:"list"`

	// The ARN of the SNS topic for the notification.
	ConnectionNotificationArn *string `locationName:"connectionNotificationArn" type:"string"`

	// The ID of the notification.
	ConnectionNotificationId *string `locationName:"connectionNotificationId" type:"string"`

	// The state of the notification.
	ConnectionNotificationState ConnectionNotificationState `locationName:"connectionNotificationState" type:"string" enum:"true"`

	// The type of notification.
	ConnectionNotificationType ConnectionNotificationType `locationName:"connectionNotificationType" type:"string" enum:"true"`

	// The ID of the endpoint service.
	ServiceId *string `locationName:"serviceId" type:"string"`

	// The ID of the VPC endpoint.
	VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
	// contains filtered or unexported fields
}

Describes a connection notification for a VPC endpoint or VPC endpoint service.

func (ConnectionNotification) String added in v0.2.0

func (s ConnectionNotification) String() string

String returns the string representation

type ConnectionNotificationState added in v0.2.0

type ConnectionNotificationState string
const (
	ConnectionNotificationStateEnabled  ConnectionNotificationState = "Enabled"
	ConnectionNotificationStateDisabled ConnectionNotificationState = "Disabled"
)

Enum values for ConnectionNotificationState

func (ConnectionNotificationState) MarshalValue added in v0.3.0

func (enum ConnectionNotificationState) MarshalValue() (string, error)

func (ConnectionNotificationState) MarshalValueBuf added in v0.3.0

func (enum ConnectionNotificationState) MarshalValueBuf(b []byte) ([]byte, error)

type ConnectionNotificationType added in v0.2.0

type ConnectionNotificationType string
const (
	ConnectionNotificationTypeTopic ConnectionNotificationType = "Topic"
)

Enum values for ConnectionNotificationType

func (ConnectionNotificationType) MarshalValue added in v0.3.0

func (enum ConnectionNotificationType) MarshalValue() (string, error)

func (ConnectionNotificationType) MarshalValueBuf added in v0.3.0

func (enum ConnectionNotificationType) MarshalValueBuf(b []byte) ([]byte, error)

type ContainerFormat

type ContainerFormat string
const (
	ContainerFormatOva ContainerFormat = "ova"
)

Enum values for ContainerFormat

func (ContainerFormat) MarshalValue added in v0.3.0

func (enum ContainerFormat) MarshalValue() (string, error)

func (ContainerFormat) MarshalValueBuf added in v0.3.0

func (enum ContainerFormat) MarshalValueBuf(b []byte) ([]byte, error)

type ConversionTask

type ConversionTask struct {

	// The ID of the conversion task.
	ConversionTaskId *string `locationName:"conversionTaskId" type:"string"`

	// The time when the task expires. If the upload isn't complete before the expiration
	// time, we automatically cancel the task.
	ExpirationTime *string `locationName:"expirationTime" type:"string"`

	// If the task is for importing an instance, this contains information about
	// the import instance task.
	ImportInstance *ImportInstanceTaskDetails `locationName:"importInstance" type:"structure"`

	// If the task is for importing a volume, this contains information about the
	// import volume task.
	ImportVolume *ImportVolumeTaskDetails `locationName:"importVolume" type:"structure"`

	// The state of the conversion task.
	State ConversionTaskState `locationName:"state" type:"string" enum:"true"`

	// The status message related to the conversion task.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// Any tags assigned to the task.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a conversion task.

func (ConversionTask) String

func (s ConversionTask) String() string

String returns the string representation

type ConversionTaskState

type ConversionTaskState string
const (
	ConversionTaskStateActive     ConversionTaskState = "active"
	ConversionTaskStateCancelling ConversionTaskState = "cancelling"
	ConversionTaskStateCancelled  ConversionTaskState = "cancelled"
	ConversionTaskStateCompleted  ConversionTaskState = "completed"
)

Enum values for ConversionTaskState

func (ConversionTaskState) MarshalValue added in v0.3.0

func (enum ConversionTaskState) MarshalValue() (string, error)

func (ConversionTaskState) MarshalValueBuf added in v0.3.0

func (enum ConversionTaskState) MarshalValueBuf(b []byte) ([]byte, error)

type CopyFpgaImageInput

type CopyFpgaImageInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string"`

	// The description for the new AFI.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The name for the new AFI. The default is the name of the source AFI.
	Name *string `type:"string"`

	// The ID of the source AFI.
	//
	// SourceFpgaImageId is a required field
	SourceFpgaImageId *string `type:"string" required:"true"`

	// The Region that contains the source AFI.
	//
	// SourceRegion is a required field
	SourceRegion *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CopyFpgaImageInput) String

func (s CopyFpgaImageInput) String() string

String returns the string representation

func (*CopyFpgaImageInput) Validate

func (s *CopyFpgaImageInput) Validate() error

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

type CopyFpgaImageOutput

type CopyFpgaImageOutput struct {

	// The ID of the new AFI.
	FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
	// contains filtered or unexported fields
}

func (CopyFpgaImageOutput) String

func (s CopyFpgaImageOutput) String() string

String returns the string representation

type CopyFpgaImageRequest

type CopyFpgaImageRequest struct {
	*aws.Request
	Input *CopyFpgaImageInput
	Copy  func(*CopyFpgaImageInput) CopyFpgaImageRequest
}

CopyFpgaImageRequest is the request type for the CopyFpgaImage API operation.

func (CopyFpgaImageRequest) Send

Send marshals and sends the CopyFpgaImage API request.

type CopyFpgaImageResponse added in v0.9.0

type CopyFpgaImageResponse struct {
	*CopyFpgaImageOutput
	// contains filtered or unexported fields
}

CopyFpgaImageResponse is the response type for the CopyFpgaImage API operation.

func (*CopyFpgaImageResponse) SDKResponseMetdata added in v0.9.0

func (r *CopyFpgaImageResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CopyFpgaImage request.

type CopyImageInput

type CopyImageInput struct {

	// Unique, case-sensitive identifier you provide to ensure idempotency of the
	// request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	ClientToken *string `type:"string"`

	// A description for the new AMI in the destination Region.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Specifies whether the destination snapshots of the copied image should be
	// encrypted. You can encrypt a copy of an unencrypted snapshot, but you cannot
	// create an unencrypted copy of an encrypted snapshot. The default CMK for
	// EBS is used unless you specify a non-default AWS Key Management Service (AWS
	// KMS) CMK using KmsKeyId. For more information, see Amazon EBS Encryption
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// An identifier for the symmetric AWS Key Management Service (AWS KMS) customer
	// master key (CMK) to use when creating the encrypted volume. This parameter
	// is only required if you want to use a non-default CMK; if this parameter
	// is not specified, the default CMK for EBS is used. If a KmsKeyId is specified,
	// the Encrypted flag must also be set.
	//
	// To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name,
	// or alias ARN. When using an alias name, prefix it with "alias/". For example:
	//
	//    * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
	//
	//    * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
	//
	//    * Alias name: alias/ExampleAlias
	//
	//    * Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias
	//
	// AWS parses KmsKeyId asynchronously, meaning that the action you call may
	// appear to complete even though you provided an invalid identifier. This action
	// will eventually report failure.
	//
	// The specified CMK must exist in the Region that the snapshot is being copied
	// to.
	//
	// Amazon EBS does not support asymmetric CMKs.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// The name of the new AMI in the destination Region.
	//
	// Name is a required field
	Name *string `type:"string" required:"true"`

	// The ID of the AMI to copy.
	//
	// SourceImageId is a required field
	SourceImageId *string `type:"string" required:"true"`

	// The name of the Region that contains the AMI to copy.
	//
	// SourceRegion is a required field
	SourceRegion *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for CopyImage.

func (CopyImageInput) String

func (s CopyImageInput) String() string

String returns the string representation

func (*CopyImageInput) Validate

func (s *CopyImageInput) Validate() error

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

type CopyImageOutput

type CopyImageOutput struct {

	// The ID of the new AMI.
	ImageId *string `locationName:"imageId" type:"string"`
	// contains filtered or unexported fields
}

Contains the output of CopyImage.

func (CopyImageOutput) String

func (s CopyImageOutput) String() string

String returns the string representation

type CopyImageRequest

type CopyImageRequest struct {
	*aws.Request
	Input *CopyImageInput
	Copy  func(*CopyImageInput) CopyImageRequest
}

CopyImageRequest is the request type for the CopyImage API operation.

func (CopyImageRequest) Send

Send marshals and sends the CopyImage API request.

type CopyImageResponse added in v0.9.0

type CopyImageResponse struct {
	*CopyImageOutput
	// contains filtered or unexported fields
}

CopyImageResponse is the response type for the CopyImage API operation.

func (*CopyImageResponse) SDKResponseMetdata added in v0.9.0

func (r *CopyImageResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CopyImage request.

type CopySnapshotInput

type CopySnapshotInput struct {

	// A description for the EBS snapshot.
	Description *string `type:"string"`

	// The destination Region to use in the PresignedUrl parameter of a snapshot
	// copy operation. This parameter is only valid for specifying the destination
	// Region in a PresignedUrl parameter, where it is required.
	//
	// The snapshot copy is sent to the regional endpoint that you sent the HTTP
	// request to (for example, ec2.us-east-1.amazonaws.com). With the AWS CLI,
	// this is specified using the --region parameter or the default Region in your
	// AWS configuration file.
	DestinationRegion *string `locationName:"destinationRegion" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// To encrypt a copy of an unencrypted snapshot if encryption by default is
	// not enabled, enable encryption using this parameter. Otherwise, omit this
	// parameter. Encrypted snapshots are encrypted, even if you omit this parameter
	// and encryption by default is not enabled. You cannot set this parameter to
	// false. For more information, see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// The identifier of the AWS Key Management Service (AWS KMS) customer master
	// key (CMK) to use for Amazon EBS encryption. If this parameter is not specified,
	// your AWS managed CMK for EBS is used. If KmsKeyId is specified, the encrypted
	// state must be true.
	//
	// You can specify the CMK using any of the following:
	//
	//    * Key ID. For example, key/1234abcd-12ab-34cd-56ef-1234567890ab.
	//
	//    * Key alias. For example, alias/ExampleAlias.
	//
	//    * Key ARN. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
	//
	//    * Alias ARN. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
	//
	// AWS authenticates the CMK asynchronously. Therefore, if you specify an ID,
	// alias, or ARN that is not valid, the action can appear to complete, but eventually
	// fails.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// When you copy an encrypted source snapshot using the Amazon EC2 Query API,
	// you must supply a pre-signed URL. This parameter is optional for unencrypted
	// snapshots. For more information, see Query Requests (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html).
	//
	// The PresignedUrl should use the snapshot source endpoint, the CopySnapshot
	// action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion
	// parameters. The PresignedUrl must be signed using AWS Signature Version 4.
	// Because EBS snapshots are stored in Amazon S3, the signing algorithm for
	// this parameter uses the same logic that is described in Authenticating Requests
	// by Using Query Parameters (AWS Signature Version 4) (https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
	// in the Amazon Simple Storage Service API Reference. An invalid or improperly
	// signed PresignedUrl will cause the copy operation to fail asynchronously,
	// and the snapshot will move to an error state.
	PresignedUrl *string `locationName:"presignedUrl" type:"string"`

	// The ID of the Region that contains the snapshot to be copied.
	//
	// SourceRegion is a required field
	SourceRegion *string `type:"string" required:"true"`

	// The ID of the EBS snapshot to copy.
	//
	// SourceSnapshotId is a required field
	SourceSnapshotId *string `type:"string" required:"true"`

	// The tags to apply to the new snapshot.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CopySnapshotInput) String

func (s CopySnapshotInput) String() string

String returns the string representation

func (*CopySnapshotInput) Validate

func (s *CopySnapshotInput) Validate() error

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

type CopySnapshotOutput

type CopySnapshotOutput struct {

	// The ID of the new snapshot.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// Any tags applied to the new snapshot.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CopySnapshotOutput) String

func (s CopySnapshotOutput) String() string

String returns the string representation

type CopySnapshotRequest

type CopySnapshotRequest struct {
	*aws.Request
	Input *CopySnapshotInput
	Copy  func(*CopySnapshotInput) CopySnapshotRequest
}

CopySnapshotRequest is the request type for the CopySnapshot API operation.

func (CopySnapshotRequest) Send

Send marshals and sends the CopySnapshot API request.

type CopySnapshotResponse added in v0.9.0

type CopySnapshotResponse struct {
	*CopySnapshotOutput
	// contains filtered or unexported fields
}

CopySnapshotResponse is the response type for the CopySnapshot API operation.

func (*CopySnapshotResponse) SDKResponseMetdata added in v0.9.0

func (r *CopySnapshotResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CopySnapshot request.

type CopyTagsFromSource added in v0.10.0

type CopyTagsFromSource string
const (
	CopyTagsFromSourceVolume CopyTagsFromSource = "volume"
)

Enum values for CopyTagsFromSource

func (CopyTagsFromSource) MarshalValue added in v0.10.0

func (enum CopyTagsFromSource) MarshalValue() (string, error)

func (CopyTagsFromSource) MarshalValueBuf added in v0.10.0

func (enum CopyTagsFromSource) MarshalValueBuf(b []byte) ([]byte, error)

type CpuOptions added in v0.4.0

type CpuOptions struct {

	// The number of CPU cores for the instance.
	CoreCount *int64 `locationName:"coreCount" type:"integer"`

	// The number of threads per CPU core.
	ThreadsPerCore *int64 `locationName:"threadsPerCore" type:"integer"`
	// contains filtered or unexported fields
}

The CPU options for the instance.

func (CpuOptions) String added in v0.4.0

func (s CpuOptions) String() string

String returns the string representation

type CpuOptionsRequest added in v0.4.0

type CpuOptionsRequest struct {

	// The number of CPU cores for the instance.
	CoreCount *int64 `type:"integer"`

	// The number of threads per CPU core. To disable multithreading for the instance,
	// specify a value of 1. Otherwise, specify the default value of 2.
	ThreadsPerCore *int64 `type:"integer"`
	// contains filtered or unexported fields
}

The CPU options for the instance. Both the core count and threads per core must be specified in the request.

func (CpuOptionsRequest) String added in v0.4.0

func (s CpuOptionsRequest) String() string

String returns the string representation

type CreateCapacityReservationInput added in v0.6.0

type CreateCapacityReservationInput struct {

	// The Availability Zone in which to create the Capacity Reservation.
	AvailabilityZone *string `type:"string"`

	// The ID of the Availability Zone in which to create the Capacity Reservation.
	AvailabilityZoneId *string `type:"string"`

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	//
	// Constraint: Maximum 64 ASCII characters.
	ClientToken *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Indicates whether the Capacity Reservation supports EBS-optimized instances.
	// This optimization provides dedicated throughput to Amazon EBS and an optimized
	// configuration stack to provide optimal I/O performance. This optimization
	// isn't available with all instance types. Additional usage charges apply when
	// using an EBS- optimized instance.
	EbsOptimized *bool `type:"boolean"`

	// The date and time at which the Capacity Reservation expires. When a Capacity
	// Reservation expires, the reserved capacity is released and you can no longer
	// launch instances into it. The Capacity Reservation's state changes to expired
	// when it reaches its end date and time.
	//
	// You must provide an EndDate value if EndDateType is limited. Omit EndDate
	// if EndDateType is unlimited.
	//
	// If the EndDateType is limited, the Capacity Reservation is cancelled within
	// an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55,
	// the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55
	// on 5/31/2019.
	EndDate *time.Time `type:"timestamp"`

	// Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
	// can have one of the following end types:
	//
	//    * unlimited - The Capacity Reservation remains active until you explicitly
	//    cancel it. Do not provide an EndDate if the EndDateType is unlimited.
	//
	//    * limited - The Capacity Reservation expires automatically at a specified
	//    date and time. You must provide an EndDate value if the EndDateType value
	//    is limited.
	EndDateType EndDateType `type:"string" enum:"true"`

	// Indicates whether the Capacity Reservation supports instances with temporary,
	// block-level storage.
	EphemeralStorage *bool `type:"boolean"`

	// The number of instances for which to reserve capacity.
	//
	// InstanceCount is a required field
	InstanceCount *int64 `type:"integer" required:"true"`

	// Indicates the type of instance launches that the Capacity Reservation accepts.
	// The options include:
	//
	//    * open - The Capacity Reservation automatically matches all instances
	//    that have matching attributes (instance type, platform, and Availability
	//    Zone). Instances that have matching attributes run in the Capacity Reservation
	//    automatically without specifying any additional parameters.
	//
	//    * targeted - The Capacity Reservation only accepts instances that have
	//    matching attributes (instance type, platform, and Availability Zone),
	//    and explicitly target the Capacity Reservation. This ensures that only
	//    permitted instances can use the reserved capacity.
	//
	// Default: open
	InstanceMatchCriteria InstanceMatchCriteria `type:"string" enum:"true"`

	// The type of operating system for which to reserve capacity.
	//
	// InstancePlatform is a required field
	InstancePlatform CapacityReservationInstancePlatform `type:"string" required:"true" enum:"true"`

	// The instance type for which to reserve capacity. For more information, see
	// Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// InstanceType is a required field
	InstanceType *string `type:"string" required:"true"`

	// The tags to apply to the Capacity Reservation during launch.
	TagSpecifications []TagSpecification `locationNameList:"item" type:"list"`

	// Indicates the tenancy of the Capacity Reservation. A Capacity Reservation
	// can have one of the following tenancy settings:
	//
	//    * default - The Capacity Reservation is created on hardware that is shared
	//    with other AWS accounts.
	//
	//    * dedicated - The Capacity Reservation is created on single-tenant hardware
	//    that is dedicated to a single AWS account.
	Tenancy CapacityReservationTenancy `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (CreateCapacityReservationInput) String added in v0.6.0

String returns the string representation

func (*CreateCapacityReservationInput) Validate added in v0.6.0

func (s *CreateCapacityReservationInput) Validate() error

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

type CreateCapacityReservationOutput added in v0.6.0

type CreateCapacityReservationOutput struct {

	// Information about the Capacity Reservation.
	CapacityReservation *CapacityReservation `locationName:"capacityReservation" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateCapacityReservationOutput) String added in v0.6.0

String returns the string representation

type CreateCapacityReservationRequest added in v0.6.0

type CreateCapacityReservationRequest struct {
	*aws.Request
	Input *CreateCapacityReservationInput
	Copy  func(*CreateCapacityReservationInput) CreateCapacityReservationRequest
}

CreateCapacityReservationRequest is the request type for the CreateCapacityReservation API operation.

func (CreateCapacityReservationRequest) Send added in v0.6.0

Send marshals and sends the CreateCapacityReservation API request.

type CreateCapacityReservationResponse added in v0.9.0

type CreateCapacityReservationResponse struct {
	*CreateCapacityReservationOutput
	// contains filtered or unexported fields
}

CreateCapacityReservationResponse is the response type for the CreateCapacityReservation API operation.

func (*CreateCapacityReservationResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateCapacityReservationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateCapacityReservation request.

type CreateClientVpnEndpointInput added in v0.7.0

type CreateClientVpnEndpointInput struct {

	// Information about the authentication method to be used to authenticate clients.
	//
	// AuthenticationOptions is a required field
	AuthenticationOptions []VpnAuthenticationRequest `locationName:"Authentication" type:"list" required:"true"`

	// The IPv4 address range, in CIDR notation, from which to assign client IP
	// addresses. The address range cannot overlap with the local CIDR of the VPC
	// in which the associated subnet is located, or the routes that you add manually.
	// The address range cannot be changed after the Client VPN endpoint has been
	// created. The CIDR block should be /22 or greater.
	//
	// ClientCidrBlock is a required field
	ClientCidrBlock *string `type:"string" required:"true"`

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// Information about the client connection logging options.
	//
	// If you enable client connection logging, data about client connections is
	// sent to a Cloudwatch Logs log stream. The following information is logged:
	//
	//    * Client connection requests
	//
	//    * Client connection results (successful and unsuccessful)
	//
	//    * Reasons for unsuccessful client connection requests
	//
	//    * Client connection termination time
	//
	// ConnectionLogOptions is a required field
	ConnectionLogOptions *ConnectionLogOptions `type:"structure" required:"true"`

	// A brief description of the Client VPN endpoint.
	Description *string `type:"string"`

	// Information about the DNS servers to be used for DNS resolution. A Client
	// VPN endpoint can have up to two DNS servers. If no DNS server is specified,
	// the DNS address configured on the device is used for the DNS server.
	DnsServers []string `locationNameList:"item" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of one or more security groups to apply to the target network. You
	// must also specify the ID of the VPC that contains the security groups.
	SecurityGroupIds []string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`

	// The ARN of the server certificate. For more information, see the AWS Certificate
	// Manager User Guide (https://docs.aws.amazon.com/acm/latest/userguide/).
	//
	// ServerCertificateArn is a required field
	ServerCertificateArn *string `type:"string" required:"true"`

	// Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.
	//
	// By default, split-tunnel on a VPN endpoint is disabled.
	//
	// For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client
	// VPN Endpoint (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html)
	// in the AWS Client VPN Administrator Guide.
	SplitTunnel *bool `type:"boolean"`

	// The tags to apply to the Client VPN endpoint during creation.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The transport protocol to be used by the VPN session.
	//
	// Default value: udp
	TransportProtocol TransportProtocol `type:"string" enum:"true"`

	// The ID of the VPC to associate with the Client VPN endpoint. If no security
	// group IDs are specified in the request, the default security group for the
	// VPC is applied.
	VpcId *string `type:"string"`

	// The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
	//
	// Valid Values: 443 | 1194
	//
	// Default Value: 443
	VpnPort *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (CreateClientVpnEndpointInput) String added in v0.7.0

String returns the string representation

func (*CreateClientVpnEndpointInput) Validate added in v0.7.0

func (s *CreateClientVpnEndpointInput) Validate() error

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

type CreateClientVpnEndpointOutput added in v0.7.0

type CreateClientVpnEndpointOutput struct {

	// The ID of the Client VPN endpoint.
	ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`

	// The DNS name to be used by clients when establishing their VPN session.
	DnsName *string `locationName:"dnsName" type:"string"`

	// The current state of the Client VPN endpoint.
	Status *VpnEndpointStatus `locationName:"status" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateClientVpnEndpointOutput) String added in v0.7.0

String returns the string representation

type CreateClientVpnEndpointRequest added in v0.7.0

type CreateClientVpnEndpointRequest struct {
	*aws.Request
	Input *CreateClientVpnEndpointInput
	Copy  func(*CreateClientVpnEndpointInput) CreateClientVpnEndpointRequest
}

CreateClientVpnEndpointRequest is the request type for the CreateClientVpnEndpoint API operation.

func (CreateClientVpnEndpointRequest) Send added in v0.7.0

Send marshals and sends the CreateClientVpnEndpoint API request.

type CreateClientVpnEndpointResponse added in v0.9.0

type CreateClientVpnEndpointResponse struct {
	*CreateClientVpnEndpointOutput
	// contains filtered or unexported fields
}

CreateClientVpnEndpointResponse is the response type for the CreateClientVpnEndpoint API operation.

func (*CreateClientVpnEndpointResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateClientVpnEndpointResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateClientVpnEndpoint request.

type CreateClientVpnRouteInput added in v0.7.0

type CreateClientVpnRouteInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// The ID of the Client VPN endpoint to which to add the route.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// A brief description of the route.
	Description *string `type:"string"`

	// The IPv4 address range, in CIDR notation, of the route destination. For example:
	//
	//    * To add a route for Internet access, enter 0.0.0.0/0
	//
	//    * To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
	//
	//    * To add a route for an on-premises network, enter the AWS Site-to-Site
	//    VPN connection's IPv4 CIDR range
	//
	// Route address ranges cannot overlap with the CIDR range specified for client
	// allocation.
	//
	// DestinationCidrBlock is a required field
	DestinationCidrBlock *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the subnet through which you want to route traffic. The specified
	// subnet must be an existing target network of the Client VPN endpoint.
	//
	// TargetVpcSubnetId is a required field
	TargetVpcSubnetId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateClientVpnRouteInput) String added in v0.7.0

func (s CreateClientVpnRouteInput) String() string

String returns the string representation

func (*CreateClientVpnRouteInput) Validate added in v0.7.0

func (s *CreateClientVpnRouteInput) Validate() error

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

type CreateClientVpnRouteOutput added in v0.7.0

type CreateClientVpnRouteOutput struct {

	// The current state of the route.
	Status *VpnRouteStatus `locationName:"status" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateClientVpnRouteOutput) String added in v0.7.0

String returns the string representation

type CreateClientVpnRouteRequest added in v0.7.0

type CreateClientVpnRouteRequest struct {
	*aws.Request
	Input *CreateClientVpnRouteInput
	Copy  func(*CreateClientVpnRouteInput) CreateClientVpnRouteRequest
}

CreateClientVpnRouteRequest is the request type for the CreateClientVpnRoute API operation.

func (CreateClientVpnRouteRequest) Send added in v0.7.0

Send marshals and sends the CreateClientVpnRoute API request.

type CreateClientVpnRouteResponse added in v0.9.0

type CreateClientVpnRouteResponse struct {
	*CreateClientVpnRouteOutput
	// contains filtered or unexported fields
}

CreateClientVpnRouteResponse is the response type for the CreateClientVpnRoute API operation.

func (*CreateClientVpnRouteResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateClientVpnRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateClientVpnRoute request.

type CreateCustomerGatewayInput

type CreateCustomerGatewayInput struct {

	// For devices that support BGP, the customer gateway's BGP ASN.
	//
	// Default: 65000
	//
	// BgpAsn is a required field
	BgpAsn *int64 `type:"integer" required:"true"`

	// The Amazon Resource Name (ARN) for the customer gateway certificate.
	CertificateArn *string `type:"string"`

	// A name for the customer gateway device.
	//
	// Length Constraints: Up to 255 characters.
	DeviceName *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The Internet-routable IP address for the customer gateway's outside interface.
	// The address must be static.
	PublicIp *string `locationName:"IpAddress" type:"string"`

	// The type of VPN connection that this customer gateway supports (ipsec.1).
	//
	// Type is a required field
	Type GatewayType `type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for CreateCustomerGateway.

func (CreateCustomerGatewayInput) String

String returns the string representation

func (*CreateCustomerGatewayInput) Validate

func (s *CreateCustomerGatewayInput) Validate() error

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

type CreateCustomerGatewayOutput

type CreateCustomerGatewayOutput struct {

	// Information about the customer gateway.
	CustomerGateway *CustomerGateway `locationName:"customerGateway" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of CreateCustomerGateway.

func (CreateCustomerGatewayOutput) String

String returns the string representation

type CreateCustomerGatewayRequest

type CreateCustomerGatewayRequest struct {
	*aws.Request
	Input *CreateCustomerGatewayInput
	Copy  func(*CreateCustomerGatewayInput) CreateCustomerGatewayRequest
}

CreateCustomerGatewayRequest is the request type for the CreateCustomerGateway API operation.

func (CreateCustomerGatewayRequest) Send

Send marshals and sends the CreateCustomerGateway API request.

type CreateCustomerGatewayResponse added in v0.9.0

type CreateCustomerGatewayResponse struct {
	*CreateCustomerGatewayOutput
	// contains filtered or unexported fields
}

CreateCustomerGatewayResponse is the response type for the CreateCustomerGateway API operation.

func (*CreateCustomerGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateCustomerGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateCustomerGateway request.

type CreateDefaultSubnetInput added in v0.2.0

type CreateDefaultSubnetInput struct {

	// The Availability Zone in which to create the default subnet.
	//
	// AvailabilityZone is a required field
	AvailabilityZone *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (CreateDefaultSubnetInput) String added in v0.2.0

func (s CreateDefaultSubnetInput) String() string

String returns the string representation

func (*CreateDefaultSubnetInput) Validate added in v0.2.0

func (s *CreateDefaultSubnetInput) Validate() error

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

type CreateDefaultSubnetOutput added in v0.2.0

type CreateDefaultSubnetOutput struct {

	// Information about the subnet.
	Subnet *Subnet `locationName:"subnet" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateDefaultSubnetOutput) String added in v0.2.0

func (s CreateDefaultSubnetOutput) String() string

String returns the string representation

type CreateDefaultSubnetRequest added in v0.2.0

type CreateDefaultSubnetRequest struct {
	*aws.Request
	Input *CreateDefaultSubnetInput
	Copy  func(*CreateDefaultSubnetInput) CreateDefaultSubnetRequest
}

CreateDefaultSubnetRequest is the request type for the CreateDefaultSubnet API operation.

func (CreateDefaultSubnetRequest) Send added in v0.2.0

Send marshals and sends the CreateDefaultSubnet API request.

type CreateDefaultSubnetResponse added in v0.9.0

type CreateDefaultSubnetResponse struct {
	*CreateDefaultSubnetOutput
	// contains filtered or unexported fields
}

CreateDefaultSubnetResponse is the response type for the CreateDefaultSubnet API operation.

func (*CreateDefaultSubnetResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateDefaultSubnetResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateDefaultSubnet request.

type CreateDefaultVpcInput

type CreateDefaultVpcInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (CreateDefaultVpcInput) String

func (s CreateDefaultVpcInput) String() string

String returns the string representation

type CreateDefaultVpcOutput

type CreateDefaultVpcOutput struct {

	// Information about the VPC.
	Vpc *Vpc `locationName:"vpc" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateDefaultVpcOutput) String

func (s CreateDefaultVpcOutput) String() string

String returns the string representation

type CreateDefaultVpcRequest

type CreateDefaultVpcRequest struct {
	*aws.Request
	Input *CreateDefaultVpcInput
	Copy  func(*CreateDefaultVpcInput) CreateDefaultVpcRequest
}

CreateDefaultVpcRequest is the request type for the CreateDefaultVpc API operation.

func (CreateDefaultVpcRequest) Send

Send marshals and sends the CreateDefaultVpc API request.

type CreateDefaultVpcResponse added in v0.9.0

type CreateDefaultVpcResponse struct {
	*CreateDefaultVpcOutput
	// contains filtered or unexported fields
}

CreateDefaultVpcResponse is the response type for the CreateDefaultVpc API operation.

func (*CreateDefaultVpcResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateDefaultVpcResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateDefaultVpc request.

type CreateDhcpOptionsInput

type CreateDhcpOptionsInput struct {

	// A DHCP configuration option.
	//
	// DhcpConfigurations is a required field
	DhcpConfigurations []NewDhcpConfiguration `locationName:"dhcpConfiguration" locationNameList:"item" type:"list" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The tags to assign to the DHCP option.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateDhcpOptionsInput) String

func (s CreateDhcpOptionsInput) String() string

String returns the string representation

func (*CreateDhcpOptionsInput) Validate

func (s *CreateDhcpOptionsInput) Validate() error

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

type CreateDhcpOptionsOutput

type CreateDhcpOptionsOutput struct {

	// A set of DHCP options.
	DhcpOptions *DhcpOptions `locationName:"dhcpOptions" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateDhcpOptionsOutput) String

func (s CreateDhcpOptionsOutput) String() string

String returns the string representation

type CreateDhcpOptionsRequest

type CreateDhcpOptionsRequest struct {
	*aws.Request
	Input *CreateDhcpOptionsInput
	Copy  func(*CreateDhcpOptionsInput) CreateDhcpOptionsRequest
}

CreateDhcpOptionsRequest is the request type for the CreateDhcpOptions API operation.

func (CreateDhcpOptionsRequest) Send

Send marshals and sends the CreateDhcpOptions API request.

type CreateDhcpOptionsResponse added in v0.9.0

type CreateDhcpOptionsResponse struct {
	*CreateDhcpOptionsOutput
	// contains filtered or unexported fields
}

CreateDhcpOptionsResponse is the response type for the CreateDhcpOptions API operation.

func (*CreateDhcpOptionsResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateDhcpOptionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateDhcpOptions request.

type CreateEgressOnlyInternetGatewayInput

type CreateEgressOnlyInternetGatewayInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The tags to assign to the egress-only internet gateway.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The ID of the VPC for which to create the egress-only internet gateway.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateEgressOnlyInternetGatewayInput) String

String returns the string representation

func (*CreateEgressOnlyInternetGatewayInput) Validate

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

type CreateEgressOnlyInternetGatewayOutput

type CreateEgressOnlyInternetGatewayOutput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request.
	ClientToken *string `locationName:"clientToken" type:"string"`

	// Information about the egress-only internet gateway.
	EgressOnlyInternetGateway *EgressOnlyInternetGateway `locationName:"egressOnlyInternetGateway" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateEgressOnlyInternetGatewayOutput) String

String returns the string representation

type CreateEgressOnlyInternetGatewayRequest

type CreateEgressOnlyInternetGatewayRequest struct {
	*aws.Request
	Input *CreateEgressOnlyInternetGatewayInput
	Copy  func(*CreateEgressOnlyInternetGatewayInput) CreateEgressOnlyInternetGatewayRequest
}

CreateEgressOnlyInternetGatewayRequest is the request type for the CreateEgressOnlyInternetGateway API operation.

func (CreateEgressOnlyInternetGatewayRequest) Send

Send marshals and sends the CreateEgressOnlyInternetGateway API request.

type CreateEgressOnlyInternetGatewayResponse added in v0.9.0

type CreateEgressOnlyInternetGatewayResponse struct {
	*CreateEgressOnlyInternetGatewayOutput
	// contains filtered or unexported fields
}

CreateEgressOnlyInternetGatewayResponse is the response type for the CreateEgressOnlyInternetGateway API operation.

func (*CreateEgressOnlyInternetGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateEgressOnlyInternetGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateEgressOnlyInternetGateway request.

type CreateFleetError added in v0.6.0

type CreateFleetError struct {

	// The error code that indicates why the instance could not be launched. For
	// more information about error codes, see Error Codes (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
	ErrorCode *string `locationName:"errorCode" type:"string"`

	// The error message that describes why the instance could not be launched.
	// For more information about error messages, see Error Codes (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
	ErrorMessage *string `locationName:"errorMessage" type:"string"`

	// The launch templates and overrides that were used for launching the instances.
	// The values that you specify in the Overrides replace the values in the launch
	// template.
	LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`

	// Indicates if the instance that could not be launched was a Spot Instance
	// or On-Demand Instance.
	Lifecycle InstanceLifecycle `locationName:"lifecycle" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the instances that could not be launched by the fleet.

func (CreateFleetError) String added in v0.6.0

func (s CreateFleetError) String() string

String returns the string representation

type CreateFleetInput added in v0.4.0

type CreateFleetInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Indicates whether running instances should be terminated if the total target
	// capacity of the EC2 Fleet is decreased below the current size of the EC2
	// Fleet.
	ExcessCapacityTerminationPolicy FleetExcessCapacityTerminationPolicy `type:"string" enum:"true"`

	// The configuration for the EC2 Fleet.
	//
	// LaunchTemplateConfigs is a required field
	LaunchTemplateConfigs []FleetLaunchTemplateConfigRequest `locationNameList:"item" type:"list" required:"true"`

	// Describes the configuration of On-Demand Instances in an EC2 Fleet.
	OnDemandOptions *OnDemandOptionsRequest `type:"structure"`

	// Indicates whether EC2 Fleet should replace unhealthy instances.
	ReplaceUnhealthyInstances *bool `type:"boolean"`

	// Describes the configuration of Spot Instances in an EC2 Fleet.
	SpotOptions *SpotOptionsRequest `type:"structure"`

	// The key-value pair for tagging the EC2 Fleet request on creation. The value
	// for ResourceType must be fleet, otherwise the fleet request fails. To tag
	// instances at launch, specify the tags in the launch template (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template).
	// For information about tagging after launch, see Tagging Your Resources (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources).
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The number of units to request.
	//
	// TargetCapacitySpecification is a required field
	TargetCapacitySpecification *TargetCapacitySpecificationRequest `type:"structure" required:"true"`

	// Indicates whether running instances should be terminated when the EC2 Fleet
	// expires.
	TerminateInstancesWithExpiration *bool `type:"boolean"`

	// The type of the request. By default, the EC2 Fleet places an asynchronous
	// request for your desired capacity, and maintains it by replenishing interrupted
	// Spot Instances (maintain). A value of instant places a synchronous one-time
	// request, and returns errors for any instances that could not be launched.
	// A value of request places an asynchronous one-time request without maintaining
	// capacity or submitting requests in alternative capacity pools if capacity
	// is unavailable. For more information, see EC2 Fleet Request Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-configuration-strategies.html#ec2-fleet-request-type)
	// in the Amazon Elastic Compute Cloud User Guide.
	Type FleetType `type:"string" enum:"true"`

	// The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	// The default is to start fulfilling the request immediately.
	ValidFrom *time.Time `type:"timestamp"`

	// The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	// At this point, no new EC2 Fleet requests are placed or able to fulfill the
	// request. If no value is specified, the request remains until you cancel it.
	ValidUntil *time.Time `type:"timestamp"`
	// contains filtered or unexported fields
}

func (CreateFleetInput) String added in v0.4.0

func (s CreateFleetInput) String() string

String returns the string representation

func (*CreateFleetInput) Validate added in v0.4.0

func (s *CreateFleetInput) Validate() error

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

type CreateFleetInstance added in v0.6.0

type CreateFleetInstance struct {

	// The IDs of the instances.
	InstanceIds []string `locationName:"instanceIds" locationNameList:"item" type:"list"`

	// The instance type.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The launch templates and overrides that were used for launching the instances.
	// The values that you specify in the Overrides replace the values in the launch
	// template.
	LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`

	// Indicates if the instance that was launched is a Spot Instance or On-Demand
	// Instance.
	Lifecycle InstanceLifecycle `locationName:"lifecycle" type:"string" enum:"true"`

	// The value is Windows for Windows instances. Otherwise, the value is blank.
	Platform PlatformValues `locationName:"platform" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the instances that were launched by the fleet.

func (CreateFleetInstance) String added in v0.6.0

func (s CreateFleetInstance) String() string

String returns the string representation

type CreateFleetOutput added in v0.4.0

type CreateFleetOutput struct {

	// Information about the instances that could not be launched by the fleet.
	// Valid only when Type is set to instant.
	Errors []CreateFleetError `locationName:"errorSet" locationNameList:"item" type:"list"`

	// The ID of the EC2 Fleet.
	FleetId *string `locationName:"fleetId" type:"string"`

	// Information about the instances that were launched by the fleet. Valid only
	// when Type is set to instant.
	Instances []CreateFleetInstance `locationName:"fleetInstanceSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateFleetOutput) String added in v0.4.0

func (s CreateFleetOutput) String() string

String returns the string representation

type CreateFleetRequest added in v0.4.0

type CreateFleetRequest struct {
	*aws.Request
	Input *CreateFleetInput
	Copy  func(*CreateFleetInput) CreateFleetRequest
}

CreateFleetRequest is the request type for the CreateFleet API operation.

func (CreateFleetRequest) Send added in v0.4.0

Send marshals and sends the CreateFleet API request.

type CreateFleetResponse added in v0.9.0

type CreateFleetResponse struct {
	*CreateFleetOutput
	// contains filtered or unexported fields
}

CreateFleetResponse is the response type for the CreateFleet API operation.

func (*CreateFleetResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateFleetResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateFleet request.

type CreateFlowLogsInput

type CreateFlowLogsInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string"`

	// The ARN for the IAM role that permits Amazon EC2 to publish flow logs to
	// a CloudWatch Logs log group in your account.
	//
	// If you specify LogDestinationType as s3, do not specify DeliverLogsPermissionArn
	// or LogGroupName.
	DeliverLogsPermissionArn *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Specifies the destination to which the flow log data is to be published.
	// Flow log data can be published to a CloudWatch Logs log group or an Amazon
	// S3 bucket. The value specified for this parameter depends on the value specified
	// for LogDestinationType.
	//
	// If LogDestinationType is not specified or cloud-watch-logs, specify the Amazon
	// Resource Name (ARN) of the CloudWatch Logs log group. For example, to publish
	// to a log group called my-logs, specify arn:aws:logs:us-east-1:123456789012:log-group:my-logs.
	// Alternatively, use LogGroupName instead.
	//
	// If LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. You
	// can also specify a subfolder in the bucket. To specify a subfolder in the
	// bucket, use the following ARN format: bucket_ARN/subfolder_name/. For example,
	// to specify a subfolder named my-logs in a bucket named my-bucket, use the
	// following ARN: arn:aws:s3:::my-bucket/my-logs/. You cannot use AWSLogs as
	// a subfolder name. This is a reserved term.
	LogDestination *string `type:"string"`

	// Specifies the type of destination to which the flow log data is to be published.
	// Flow log data can be published to CloudWatch Logs or Amazon S3. To publish
	// flow log data to CloudWatch Logs, specify cloud-watch-logs. To publish flow
	// log data to Amazon S3, specify s3.
	//
	// If you specify LogDestinationType as s3, do not specify DeliverLogsPermissionArn
	// or LogGroupName.
	//
	// Default: cloud-watch-logs
	LogDestinationType LogDestinationType `type:"string" enum:"true"`

	// The fields to include in the flow log record, in the order in which they
	// should appear. For a list of available fields, see Flow Log Records (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records).
	// If you omit this parameter, the flow log is created using the default format.
	// If you specify this parameter, you must specify at least one field.
	//
	// Specify the fields using the ${field-id} format, separated by spaces. For
	// the AWS CLI, use single quotation marks (' ') to surround the parameter value.
	LogFormat *string `type:"string"`

	// The name of a new or existing CloudWatch Logs log group where Amazon EC2
	// publishes your flow logs.
	//
	// If you specify LogDestinationType as s3, do not specify DeliverLogsPermissionArn
	// or LogGroupName.
	LogGroupName *string `type:"string"`

	// The maximum interval of time during which a flow of packets is captured and
	// aggregated into a flow log record. You can specify 60 seconds (1 minute)
	// or 600 seconds (10 minutes).
	//
	// When a network interface is attached to a Nitro-based instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances),
	// the aggregation interval is always 60 seconds or less, regardless of the
	// value that you specify.
	//
	// Default: 600
	MaxAggregationInterval *int64 `type:"integer"`

	// The ID of the subnet, network interface, or VPC for which you want to create
	// a flow log.
	//
	// Constraints: Maximum of 1000 resources
	//
	// ResourceIds is a required field
	ResourceIds []string `locationName:"ResourceId" locationNameList:"item" type:"list" required:"true"`

	// The type of resource for which to create the flow log. For example, if you
	// specified a VPC ID for the ResourceId property, specify VPC for this property.
	//
	// ResourceType is a required field
	ResourceType FlowLogsResourceType `type:"string" required:"true" enum:"true"`

	// The tags to apply to the flow logs.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The type of traffic to log. You can log traffic that the resource accepts
	// or rejects, or all traffic.
	//
	// TrafficType is a required field
	TrafficType TrafficType `type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

func (CreateFlowLogsInput) String

func (s CreateFlowLogsInput) String() string

String returns the string representation

func (*CreateFlowLogsInput) Validate

func (s *CreateFlowLogsInput) Validate() error

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

type CreateFlowLogsOutput

type CreateFlowLogsOutput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request.
	ClientToken *string `locationName:"clientToken" type:"string"`

	// The IDs of the flow logs.
	FlowLogIds []string `locationName:"flowLogIdSet" locationNameList:"item" type:"list"`

	// Information about the flow logs that could not be created successfully.
	Unsuccessful []UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateFlowLogsOutput) String

func (s CreateFlowLogsOutput) String() string

String returns the string representation

type CreateFlowLogsRequest

type CreateFlowLogsRequest struct {
	*aws.Request
	Input *CreateFlowLogsInput
	Copy  func(*CreateFlowLogsInput) CreateFlowLogsRequest
}

CreateFlowLogsRequest is the request type for the CreateFlowLogs API operation.

func (CreateFlowLogsRequest) Send

Send marshals and sends the CreateFlowLogs API request.

type CreateFlowLogsResponse added in v0.9.0

type CreateFlowLogsResponse struct {
	*CreateFlowLogsOutput
	// contains filtered or unexported fields
}

CreateFlowLogsResponse is the response type for the CreateFlowLogs API operation.

func (*CreateFlowLogsResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateFlowLogsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateFlowLogs request.

type CreateFpgaImageInput

type CreateFpgaImageInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string"`

	// A description for the AFI.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The location of the encrypted design checkpoint in Amazon S3. The input must
	// be a tarball.
	//
	// InputStorageLocation is a required field
	InputStorageLocation *StorageLocation `type:"structure" required:"true"`

	// The location in Amazon S3 for the output logs.
	LogsStorageLocation *StorageLocation `type:"structure"`

	// A name for the AFI.
	Name *string `type:"string"`

	// The tags to apply to the FPGA image during creation.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateFpgaImageInput) String

func (s CreateFpgaImageInput) String() string

String returns the string representation

func (*CreateFpgaImageInput) Validate

func (s *CreateFpgaImageInput) Validate() error

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

type CreateFpgaImageOutput

type CreateFpgaImageOutput struct {

	// The global FPGA image identifier (AGFI ID).
	FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`

	// The FPGA image identifier (AFI ID).
	FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
	// contains filtered or unexported fields
}

func (CreateFpgaImageOutput) String

func (s CreateFpgaImageOutput) String() string

String returns the string representation

type CreateFpgaImageRequest

type CreateFpgaImageRequest struct {
	*aws.Request
	Input *CreateFpgaImageInput
	Copy  func(*CreateFpgaImageInput) CreateFpgaImageRequest
}

CreateFpgaImageRequest is the request type for the CreateFpgaImage API operation.

func (CreateFpgaImageRequest) Send

Send marshals and sends the CreateFpgaImage API request.

type CreateFpgaImageResponse added in v0.9.0

type CreateFpgaImageResponse struct {
	*CreateFpgaImageOutput
	// contains filtered or unexported fields
}

CreateFpgaImageResponse is the response type for the CreateFpgaImage API operation.

func (*CreateFpgaImageResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateFpgaImageResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateFpgaImage request.

type CreateImageInput

type CreateImageInput struct {

	// The block device mappings. This parameter cannot be used to modify the encryption
	// status of existing volumes or snapshots. To create an AMI with encrypted
	// snapshots, use the CopyImage action.
	BlockDeviceMappings []BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`

	// A description for the new image.
	Description *string `locationName:"description" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `locationName:"instanceId" type:"string" required:"true"`

	// A name for the new image.
	//
	// Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
	// ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
	// at-signs (@), or underscores(_)
	//
	// Name is a required field
	Name *string `locationName:"name" type:"string" required:"true"`

	// By default, Amazon EC2 attempts to shut down and reboot the instance before
	// creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't
	// shut down the instance before creating the image. When this option is used,
	// file system integrity on the created image can't be guaranteed.
	NoReboot *bool `locationName:"noReboot" type:"boolean"`
	// contains filtered or unexported fields
}

func (CreateImageInput) String

func (s CreateImageInput) String() string

String returns the string representation

func (*CreateImageInput) Validate

func (s *CreateImageInput) Validate() error

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

type CreateImageOutput

type CreateImageOutput struct {

	// The ID of the new AMI.
	ImageId *string `locationName:"imageId" type:"string"`
	// contains filtered or unexported fields
}

func (CreateImageOutput) String

func (s CreateImageOutput) String() string

String returns the string representation

type CreateImageRequest

type CreateImageRequest struct {
	*aws.Request
	Input *CreateImageInput
	Copy  func(*CreateImageInput) CreateImageRequest
}

CreateImageRequest is the request type for the CreateImage API operation.

func (CreateImageRequest) Send

Send marshals and sends the CreateImage API request.

type CreateImageResponse added in v0.9.0

type CreateImageResponse struct {
	*CreateImageOutput
	// contains filtered or unexported fields
}

CreateImageResponse is the response type for the CreateImage API operation.

func (*CreateImageResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateImageResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateImage request.

type CreateInstanceExportTaskInput

type CreateInstanceExportTaskInput struct {

	// A description for the conversion task or the resource being exported. The
	// maximum length is 255 characters.
	Description *string `locationName:"description" type:"string"`

	// The format and location for an instance export task.
	ExportToS3Task *ExportToS3TaskSpecification `locationName:"exportToS3" type:"structure"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `locationName:"instanceId" type:"string" required:"true"`

	// The tags to apply to the instance export task during creation.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The target virtualization environment.
	TargetEnvironment ExportEnvironment `locationName:"targetEnvironment" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (CreateInstanceExportTaskInput) String

String returns the string representation

func (*CreateInstanceExportTaskInput) Validate

func (s *CreateInstanceExportTaskInput) Validate() error

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

type CreateInstanceExportTaskOutput

type CreateInstanceExportTaskOutput struct {

	// Information about the instance export task.
	ExportTask *ExportTask `locationName:"exportTask" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateInstanceExportTaskOutput) String

String returns the string representation

type CreateInstanceExportTaskRequest

type CreateInstanceExportTaskRequest struct {
	*aws.Request
	Input *CreateInstanceExportTaskInput
	Copy  func(*CreateInstanceExportTaskInput) CreateInstanceExportTaskRequest
}

CreateInstanceExportTaskRequest is the request type for the CreateInstanceExportTask API operation.

func (CreateInstanceExportTaskRequest) Send

Send marshals and sends the CreateInstanceExportTask API request.

type CreateInstanceExportTaskResponse added in v0.9.0

type CreateInstanceExportTaskResponse struct {
	*CreateInstanceExportTaskOutput
	// contains filtered or unexported fields
}

CreateInstanceExportTaskResponse is the response type for the CreateInstanceExportTask API operation.

func (*CreateInstanceExportTaskResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateInstanceExportTaskResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateInstanceExportTask request.

type CreateInternetGatewayInput

type CreateInternetGatewayInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The tags to assign to the internet gateway.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateInternetGatewayInput) String

String returns the string representation

type CreateInternetGatewayOutput

type CreateInternetGatewayOutput struct {

	// Information about the internet gateway.
	InternetGateway *InternetGateway `locationName:"internetGateway" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateInternetGatewayOutput) String

String returns the string representation

type CreateInternetGatewayRequest

type CreateInternetGatewayRequest struct {
	*aws.Request
	Input *CreateInternetGatewayInput
	Copy  func(*CreateInternetGatewayInput) CreateInternetGatewayRequest
}

CreateInternetGatewayRequest is the request type for the CreateInternetGateway API operation.

func (CreateInternetGatewayRequest) Send

Send marshals and sends the CreateInternetGateway API request.

type CreateInternetGatewayResponse added in v0.9.0

type CreateInternetGatewayResponse struct {
	*CreateInternetGatewayOutput
	// contains filtered or unexported fields
}

CreateInternetGatewayResponse is the response type for the CreateInternetGateway API operation.

func (*CreateInternetGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateInternetGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateInternetGateway request.

type CreateKeyPairInput

type CreateKeyPairInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// A unique name for the key pair.
	//
	// Constraints: Up to 255 ASCII characters
	//
	// KeyName is a required field
	KeyName *string `type:"string" required:"true"`

	// The tags to apply to the new key pair.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

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 {

	// The SHA-1 digest of the DER encoded private key.
	KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`

	// An unencrypted PEM encoded RSA private key.
	KeyMaterial *string `locationName:"keyMaterial" type:"string" sensitive:"true"`

	// The name of the key pair.
	KeyName *string `locationName:"keyName" type:"string"`

	// The ID of the key pair.
	KeyPairId *string `locationName:"keyPairId" type:"string"`

	// Any tags applied to the key pair.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a key pair.

func (CreateKeyPairOutput) String

func (s CreateKeyPairOutput) String() string

String returns the string representation

type CreateKeyPairRequest

type CreateKeyPairRequest struct {
	*aws.Request
	Input *CreateKeyPairInput
	Copy  func(*CreateKeyPairInput) CreateKeyPairRequest
}

CreateKeyPairRequest is the request type for the CreateKeyPair API operation.

func (CreateKeyPairRequest) Send

Send marshals and sends the CreateKeyPair API request.

type CreateKeyPairResponse added in v0.9.0

type CreateKeyPairResponse struct {
	*CreateKeyPairOutput
	// contains filtered or unexported fields
}

CreateKeyPairResponse is the response type for the CreateKeyPair API operation.

func (*CreateKeyPairResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateKeyPairResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateKeyPair request.

type CreateLaunchTemplateInput added in v0.2.0

type CreateLaunchTemplateInput struct {

	// Unique, case-sensitive identifier you provide to ensure the idempotency of
	// the request. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	//
	// Constraint: Maximum 128 ASCII characters.
	ClientToken *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The information for the launch template.
	//
	// LaunchTemplateData is a required field
	LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"`

	// A name for the launch template.
	//
	// LaunchTemplateName is a required field
	LaunchTemplateName *string `min:"3" type:"string" required:"true"`

	// The tags to apply to the launch template during creation.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// A description for the first version of the launch template.
	VersionDescription *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateLaunchTemplateInput) String added in v0.2.0

func (s CreateLaunchTemplateInput) String() string

String returns the string representation

func (*CreateLaunchTemplateInput) Validate added in v0.2.0

func (s *CreateLaunchTemplateInput) Validate() error

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

type CreateLaunchTemplateOutput added in v0.2.0

type CreateLaunchTemplateOutput struct {

	// Information about the launch template.
	LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`

	// If the launch template contains parameters or parameter combinations that
	// are not valid, an error code and an error message are returned for each issue
	// that's found.
	Warning *ValidationWarning `locationName:"warning" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateLaunchTemplateOutput) String added in v0.2.0

String returns the string representation

type CreateLaunchTemplateRequest added in v0.2.0

type CreateLaunchTemplateRequest struct {
	*aws.Request
	Input *CreateLaunchTemplateInput
	Copy  func(*CreateLaunchTemplateInput) CreateLaunchTemplateRequest
}

CreateLaunchTemplateRequest is the request type for the CreateLaunchTemplate API operation.

func (CreateLaunchTemplateRequest) Send added in v0.2.0

Send marshals and sends the CreateLaunchTemplate API request.

type CreateLaunchTemplateResponse added in v0.9.0

type CreateLaunchTemplateResponse struct {
	*CreateLaunchTemplateOutput
	// contains filtered or unexported fields
}

CreateLaunchTemplateResponse is the response type for the CreateLaunchTemplate API operation.

func (*CreateLaunchTemplateResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateLaunchTemplateResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateLaunchTemplate request.

type CreateLaunchTemplateVersionInput added in v0.2.0

type CreateLaunchTemplateVersionInput struct {

	// Unique, case-sensitive identifier you provide to ensure the idempotency of
	// the request. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	//
	// Constraint: Maximum 128 ASCII characters.
	ClientToken *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The information for the launch template.
	//
	// LaunchTemplateData is a required field
	LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"`

	// The ID of the launch template. You must specify either the launch template
	// ID or launch template name in the request.
	LaunchTemplateId *string `type:"string"`

	// The name of the launch template. You must specify either the launch template
	// ID or launch template name in the request.
	LaunchTemplateName *string `min:"3" type:"string"`

	// The version number of the launch template version on which to base the new
	// version. The new version inherits the same launch parameters as the source
	// version, except for parameters that you specify in LaunchTemplateData. Snapshots
	// applied to the block device mapping are ignored when creating a new version
	// unless they are explicitly included.
	SourceVersion *string `type:"string"`

	// A description for the version of the launch template.
	VersionDescription *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateLaunchTemplateVersionInput) String added in v0.2.0

String returns the string representation

func (*CreateLaunchTemplateVersionInput) Validate added in v0.2.0

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

type CreateLaunchTemplateVersionOutput added in v0.2.0

type CreateLaunchTemplateVersionOutput struct {

	// Information about the launch template version.
	LaunchTemplateVersion *LaunchTemplateVersion `locationName:"launchTemplateVersion" type:"structure"`

	// If the new version of the launch template contains parameters or parameter
	// combinations that are not valid, an error code and an error message are returned
	// for each issue that's found.
	Warning *ValidationWarning `locationName:"warning" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateLaunchTemplateVersionOutput) String added in v0.2.0

String returns the string representation

type CreateLaunchTemplateVersionRequest added in v0.2.0

type CreateLaunchTemplateVersionRequest struct {
	*aws.Request
	Input *CreateLaunchTemplateVersionInput
	Copy  func(*CreateLaunchTemplateVersionInput) CreateLaunchTemplateVersionRequest
}

CreateLaunchTemplateVersionRequest is the request type for the CreateLaunchTemplateVersion API operation.

func (CreateLaunchTemplateVersionRequest) Send added in v0.2.0

Send marshals and sends the CreateLaunchTemplateVersion API request.

type CreateLaunchTemplateVersionResponse added in v0.9.0

type CreateLaunchTemplateVersionResponse struct {
	*CreateLaunchTemplateVersionOutput
	// contains filtered or unexported fields
}

CreateLaunchTemplateVersionResponse is the response type for the CreateLaunchTemplateVersion API operation.

func (*CreateLaunchTemplateVersionResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateLaunchTemplateVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateLaunchTemplateVersion request.

type CreateLocalGatewayRouteInput added in v0.18.0

type CreateLocalGatewayRouteInput struct {

	// The CIDR range used for destination matches. Routing decisions are based
	// on the most specific match.
	//
	// DestinationCidrBlock is a required field
	DestinationCidrBlock *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the local gateway route table.
	//
	// LocalGatewayRouteTableId is a required field
	LocalGatewayRouteTableId *string `type:"string" required:"true"`

	// The ID of the virtual interface group.
	//
	// LocalGatewayVirtualInterfaceGroupId is a required field
	LocalGatewayVirtualInterfaceGroupId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateLocalGatewayRouteInput) String added in v0.18.0

String returns the string representation

func (*CreateLocalGatewayRouteInput) Validate added in v0.18.0

func (s *CreateLocalGatewayRouteInput) Validate() error

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

type CreateLocalGatewayRouteOutput added in v0.18.0

type CreateLocalGatewayRouteOutput struct {

	// Information about the route.
	Route *LocalGatewayRoute `locationName:"route" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateLocalGatewayRouteOutput) String added in v0.18.0

String returns the string representation

type CreateLocalGatewayRouteRequest added in v0.18.0

type CreateLocalGatewayRouteRequest struct {
	*aws.Request
	Input *CreateLocalGatewayRouteInput
	Copy  func(*CreateLocalGatewayRouteInput) CreateLocalGatewayRouteRequest
}

CreateLocalGatewayRouteRequest is the request type for the CreateLocalGatewayRoute API operation.

func (CreateLocalGatewayRouteRequest) Send added in v0.18.0

Send marshals and sends the CreateLocalGatewayRoute API request.

type CreateLocalGatewayRouteResponse added in v0.18.0

type CreateLocalGatewayRouteResponse struct {
	*CreateLocalGatewayRouteOutput
	// contains filtered or unexported fields
}

CreateLocalGatewayRouteResponse is the response type for the CreateLocalGatewayRoute API operation.

func (*CreateLocalGatewayRouteResponse) SDKResponseMetdata added in v0.18.0

func (r *CreateLocalGatewayRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateLocalGatewayRoute request.

type CreateLocalGatewayRouteTableVpcAssociationInput added in v0.18.0

type CreateLocalGatewayRouteTableVpcAssociationInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the local gateway route table.
	//
	// LocalGatewayRouteTableId is a required field
	LocalGatewayRouteTableId *string `type:"string" required:"true"`

	// The tags to assign to the local gateway route table VPC association.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateLocalGatewayRouteTableVpcAssociationInput) String added in v0.18.0

String returns the string representation

func (*CreateLocalGatewayRouteTableVpcAssociationInput) Validate added in v0.18.0

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

type CreateLocalGatewayRouteTableVpcAssociationOutput added in v0.18.0

type CreateLocalGatewayRouteTableVpcAssociationOutput struct {

	// Information about the association.
	LocalGatewayRouteTableVpcAssociation *LocalGatewayRouteTableVpcAssociation `locationName:"localGatewayRouteTableVpcAssociation" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateLocalGatewayRouteTableVpcAssociationOutput) String added in v0.18.0

String returns the string representation

type CreateLocalGatewayRouteTableVpcAssociationRequest added in v0.18.0

CreateLocalGatewayRouteTableVpcAssociationRequest is the request type for the CreateLocalGatewayRouteTableVpcAssociation API operation.

func (CreateLocalGatewayRouteTableVpcAssociationRequest) Send added in v0.18.0

Send marshals and sends the CreateLocalGatewayRouteTableVpcAssociation API request.

type CreateLocalGatewayRouteTableVpcAssociationResponse added in v0.18.0

type CreateLocalGatewayRouteTableVpcAssociationResponse struct {
	*CreateLocalGatewayRouteTableVpcAssociationOutput
	// contains filtered or unexported fields
}

CreateLocalGatewayRouteTableVpcAssociationResponse is the response type for the CreateLocalGatewayRouteTableVpcAssociation API operation.

func (*CreateLocalGatewayRouteTableVpcAssociationResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the CreateLocalGatewayRouteTableVpcAssociation request.

type CreateManagedPrefixListInput added in v0.24.0

type CreateManagedPrefixListInput struct {

	// The IP address type.
	//
	// Valid Values: IPv4 | IPv6
	//
	// AddressFamily is a required field
	AddressFamily *string `type:"string" required:"true"`

	// Unique, case-sensitive identifier you provide to ensure the idempotency of
	// the request. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	//
	// Constraints: Up to 255 UTF-8 characters in length.
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more entries for the prefix list.
	Entries []AddPrefixListEntry `locationName:"Entry" type:"list"`

	// The maximum number of entries for the prefix list.
	//
	// MaxEntries is a required field
	MaxEntries *int64 `type:"integer" required:"true"`

	// A name for the prefix list.
	//
	// Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws.
	//
	// PrefixListName is a required field
	PrefixListName *string `type:"string" required:"true"`

	// The tags to apply to the prefix list during creation.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateManagedPrefixListInput) String added in v0.24.0

String returns the string representation

func (*CreateManagedPrefixListInput) Validate added in v0.24.0

func (s *CreateManagedPrefixListInput) Validate() error

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

type CreateManagedPrefixListOutput added in v0.24.0

type CreateManagedPrefixListOutput struct {

	// Information about the prefix list.
	PrefixList *ManagedPrefixList `locationName:"prefixList" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateManagedPrefixListOutput) String added in v0.24.0

String returns the string representation

type CreateManagedPrefixListRequest added in v0.24.0

type CreateManagedPrefixListRequest struct {
	*aws.Request
	Input *CreateManagedPrefixListInput
	Copy  func(*CreateManagedPrefixListInput) CreateManagedPrefixListRequest
}

CreateManagedPrefixListRequest is the request type for the CreateManagedPrefixList API operation.

func (CreateManagedPrefixListRequest) Send added in v0.24.0

Send marshals and sends the CreateManagedPrefixList API request.

type CreateManagedPrefixListResponse added in v0.24.0

type CreateManagedPrefixListResponse struct {
	*CreateManagedPrefixListOutput
	// contains filtered or unexported fields
}

CreateManagedPrefixListResponse is the response type for the CreateManagedPrefixList API operation.

func (*CreateManagedPrefixListResponse) SDKResponseMetdata added in v0.24.0

func (r *CreateManagedPrefixListResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateManagedPrefixList request.

type CreateNatGatewayInput

type CreateNatGatewayInput struct {

	// The allocation ID of an Elastic IP address to associate with the NAT gateway.
	// If the Elastic IP address is associated with another resource, you must first
	// disassociate it.
	//
	// AllocationId is a required field
	AllocationId *string `type:"string" required:"true"`

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	//
	// Constraint: Maximum 64 ASCII characters.
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The subnet in which to create the NAT gateway.
	//
	// SubnetId is a required field
	SubnetId *string `type:"string" required:"true"`

	// The tags to assign to the NAT gateway.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateNatGatewayInput) String

func (s CreateNatGatewayInput) String() string

String returns the string representation

func (*CreateNatGatewayInput) Validate

func (s *CreateNatGatewayInput) Validate() error

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

type CreateNatGatewayOutput

type CreateNatGatewayOutput struct {

	// Unique, case-sensitive identifier to ensure the idempotency of the request.
	// Only returned if a client token was provided in the request.
	ClientToken *string `locationName:"clientToken" type:"string"`

	// Information about the NAT gateway.
	NatGateway *NatGateway `locationName:"natGateway" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateNatGatewayOutput) String

func (s CreateNatGatewayOutput) String() string

String returns the string representation

type CreateNatGatewayRequest

type CreateNatGatewayRequest struct {
	*aws.Request
	Input *CreateNatGatewayInput
	Copy  func(*CreateNatGatewayInput) CreateNatGatewayRequest
}

CreateNatGatewayRequest is the request type for the CreateNatGateway API operation.

func (CreateNatGatewayRequest) Send

Send marshals and sends the CreateNatGateway API request.

type CreateNatGatewayResponse added in v0.9.0

type CreateNatGatewayResponse struct {
	*CreateNatGatewayOutput
	// contains filtered or unexported fields
}

CreateNatGatewayResponse is the response type for the CreateNatGateway API operation.

func (*CreateNatGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateNatGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateNatGateway request.

type CreateNetworkAclEntryInput

type CreateNetworkAclEntryInput struct {

	// The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
	// We modify the specified CIDR block to its canonical form; for example, if
	// you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.
	CidrBlock *string `locationName:"cidrBlock" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Indicates whether this is an egress rule (rule is applied to traffic leaving
	// the subnet).
	//
	// Egress is a required field
	Egress *bool `locationName:"egress" type:"boolean" required:"true"`

	// ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol
	// 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.
	IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`

	// The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64).
	Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`

	// The ID of the network ACL.
	//
	// NetworkAclId is a required field
	NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`

	// TCP or UDP protocols: The range of ports the rule applies to. Required if
	// specifying protocol 6 (TCP) or 17 (UDP).
	PortRange *PortRange `locationName:"portRange" type:"structure"`

	// The protocol number. A value of "-1" means all protocols. If you specify
	// "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP),
	// traffic on all ports is allowed, regardless of any ports or ICMP types or
	// codes that you specify. If you specify protocol "58" (ICMPv6) and specify
	// an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless
	// of any that you specify. If you specify protocol "58" (ICMPv6) and specify
	// an IPv6 CIDR block, you must specify an ICMP type and code.
	//
	// Protocol is a required field
	Protocol *string `locationName:"protocol" type:"string" required:"true"`

	// Indicates whether to allow or deny the traffic that matches the rule.
	//
	// RuleAction is a required field
	RuleAction RuleAction `locationName:"ruleAction" type:"string" required:"true" enum:"true"`

	// The rule number for the entry (for example, 100). ACL entries are processed
	// in ascending order by rule number.
	//
	// Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is
	// reserved for internal use.
	//
	// RuleNumber is a required field
	RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
	// contains filtered or unexported fields
}

func (CreateNetworkAclEntryInput) String

String returns the string representation

func (*CreateNetworkAclEntryInput) Validate

func (s *CreateNetworkAclEntryInput) Validate() error

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

type CreateNetworkAclEntryOutput

type CreateNetworkAclEntryOutput struct {
	// contains filtered or unexported fields
}

func (CreateNetworkAclEntryOutput) String

String returns the string representation

type CreateNetworkAclEntryRequest

type CreateNetworkAclEntryRequest struct {
	*aws.Request
	Input *CreateNetworkAclEntryInput
	Copy  func(*CreateNetworkAclEntryInput) CreateNetworkAclEntryRequest
}

CreateNetworkAclEntryRequest is the request type for the CreateNetworkAclEntry API operation.

func (CreateNetworkAclEntryRequest) Send

Send marshals and sends the CreateNetworkAclEntry API request.

type CreateNetworkAclEntryResponse added in v0.9.0

type CreateNetworkAclEntryResponse struct {
	*CreateNetworkAclEntryOutput
	// contains filtered or unexported fields
}

CreateNetworkAclEntryResponse is the response type for the CreateNetworkAclEntry API operation.

func (*CreateNetworkAclEntryResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateNetworkAclEntryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateNetworkAclEntry request.

type CreateNetworkAclInput

type CreateNetworkAclInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The tags to assign to the network ACL.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `locationName:"vpcId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateNetworkAclInput) String

func (s CreateNetworkAclInput) String() string

String returns the string representation

func (*CreateNetworkAclInput) Validate

func (s *CreateNetworkAclInput) Validate() error

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

type CreateNetworkAclOutput

type CreateNetworkAclOutput struct {

	// Information about the network ACL.
	NetworkAcl *NetworkAcl `locationName:"networkAcl" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateNetworkAclOutput) String

func (s CreateNetworkAclOutput) String() string

String returns the string representation

type CreateNetworkAclRequest

type CreateNetworkAclRequest struct {
	*aws.Request
	Input *CreateNetworkAclInput
	Copy  func(*CreateNetworkAclInput) CreateNetworkAclRequest
}

CreateNetworkAclRequest is the request type for the CreateNetworkAcl API operation.

func (CreateNetworkAclRequest) Send

Send marshals and sends the CreateNetworkAcl API request.

type CreateNetworkAclResponse added in v0.9.0

type CreateNetworkAclResponse struct {
	*CreateNetworkAclOutput
	// contains filtered or unexported fields
}

CreateNetworkAclResponse is the response type for the CreateNetworkAcl API operation.

func (*CreateNetworkAclResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateNetworkAclResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateNetworkAcl request.

type CreateNetworkInterfaceInput

type CreateNetworkInterfaceInput struct {

	// A description for the network interface.
	Description *string `locationName:"description" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The IDs of one or more security groups.
	Groups []string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`

	// Indicates the type of network interface. To create an Elastic Fabric Adapter
	// (EFA), specify efa. For more information, see Elastic Fabric Adapter (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	InterfaceType NetworkInterfaceCreationType `type:"string" enum:"true"`

	// The number of IPv6 addresses to assign to a network interface. Amazon EC2
	// automatically selects the IPv6 addresses from the subnet range. You can't
	// use this option if specifying specific IPv6 addresses. If your subnet has
	// the AssignIpv6AddressOnCreation attribute set to true, you can specify 0
	// to override this setting.
	Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`

	// One or more specific IPv6 addresses from the IPv6 CIDR block range of your
	// subnet. You can't use this option if you're specifying a number of IPv6 addresses.
	Ipv6Addresses []InstanceIpv6Address `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`

	// The primary private IPv4 address of the network interface. If you don't specify
	// an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR
	// range. If you specify an IP address, you cannot indicate any IP addresses
	// specified in privateIpAddresses as primary (only one IP address can be designated
	// as primary).
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`

	// One or more private IPv4 addresses.
	PrivateIpAddresses []PrivateIpAddressSpecification `locationName:"privateIpAddresses" locationNameList:"item" type:"list"`

	// The number of secondary private IPv4 addresses to assign to a network interface.
	// When you specify a number of secondary IPv4 addresses, Amazon EC2 selects
	// these IP addresses within the subnet's IPv4 CIDR range. You can't specify
	// this option and specify more than one private IP address using privateIpAddresses.
	//
	// The number of IP addresses you can assign to a network interface varies by
	// instance type. For more information, see IP Addresses Per ENI Per Instance
	// Type (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI)
	// in the Amazon Virtual Private Cloud User Guide.
	SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`

	// The ID of the subnet to associate with the network interface.
	//
	// SubnetId is a required field
	SubnetId *string `locationName:"subnetId" type:"string" required:"true"`

	// The tags to apply to the new network interface.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for CreateNetworkInterface.

func (CreateNetworkInterfaceInput) String

String returns the string representation

func (*CreateNetworkInterfaceInput) Validate

func (s *CreateNetworkInterfaceInput) Validate() error

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

type CreateNetworkInterfaceOutput

type CreateNetworkInterfaceOutput struct {

	// Information about the network interface.
	NetworkInterface *NetworkInterface `locationName:"networkInterface" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of CreateNetworkInterface.

func (CreateNetworkInterfaceOutput) String

String returns the string representation

type CreateNetworkInterfacePermissionInput

type CreateNetworkInterfacePermissionInput struct {

	// The AWS account ID.
	AwsAccountId *string `type:"string"`

	// The AWS service. Currently not supported.
	AwsService *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the network interface.
	//
	// NetworkInterfaceId is a required field
	NetworkInterfaceId *string `type:"string" required:"true"`

	// The type of permission to grant.
	//
	// Permission is a required field
	Permission InterfacePermissionType `type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for CreateNetworkInterfacePermission.

func (CreateNetworkInterfacePermissionInput) String

String returns the string representation

func (*CreateNetworkInterfacePermissionInput) Validate

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

type CreateNetworkInterfacePermissionOutput

type CreateNetworkInterfacePermissionOutput struct {

	// Information about the permission for the network interface.
	InterfacePermission *NetworkInterfacePermission `locationName:"interfacePermission" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of CreateNetworkInterfacePermission.

func (CreateNetworkInterfacePermissionOutput) String

String returns the string representation

type CreateNetworkInterfacePermissionRequest

type CreateNetworkInterfacePermissionRequest struct {
	*aws.Request
	Input *CreateNetworkInterfacePermissionInput
	Copy  func(*CreateNetworkInterfacePermissionInput) CreateNetworkInterfacePermissionRequest
}

CreateNetworkInterfacePermissionRequest is the request type for the CreateNetworkInterfacePermission API operation.

func (CreateNetworkInterfacePermissionRequest) Send

Send marshals and sends the CreateNetworkInterfacePermission API request.

type CreateNetworkInterfacePermissionResponse added in v0.9.0

type CreateNetworkInterfacePermissionResponse struct {
	*CreateNetworkInterfacePermissionOutput
	// contains filtered or unexported fields
}

CreateNetworkInterfacePermissionResponse is the response type for the CreateNetworkInterfacePermission API operation.

func (*CreateNetworkInterfacePermissionResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateNetworkInterfacePermissionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateNetworkInterfacePermission request.

type CreateNetworkInterfaceRequest

type CreateNetworkInterfaceRequest struct {
	*aws.Request
	Input *CreateNetworkInterfaceInput
	Copy  func(*CreateNetworkInterfaceInput) CreateNetworkInterfaceRequest
}

CreateNetworkInterfaceRequest is the request type for the CreateNetworkInterface API operation.

func (CreateNetworkInterfaceRequest) Send

Send marshals and sends the CreateNetworkInterface API request.

type CreateNetworkInterfaceResponse added in v0.9.0

type CreateNetworkInterfaceResponse struct {
	*CreateNetworkInterfaceOutput
	// contains filtered or unexported fields
}

CreateNetworkInterfaceResponse is the response type for the CreateNetworkInterface API operation.

func (*CreateNetworkInterfaceResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateNetworkInterfaceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateNetworkInterface request.

type CreatePlacementGroupInput

type CreatePlacementGroupInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// A name for the placement group. Must be unique within the scope of your account
	// for the Region.
	//
	// Constraints: Up to 255 ASCII characters
	GroupName *string `locationName:"groupName" type:"string"`

	// The number of partitions. Valid only when Strategy is set to partition.
	PartitionCount *int64 `type:"integer"`

	// The placement strategy.
	Strategy PlacementStrategy `locationName:"strategy" type:"string" enum:"true"`

	// The tags to apply to the new placement group.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreatePlacementGroupInput) String

func (s CreatePlacementGroupInput) String() string

String returns the string representation

type CreatePlacementGroupOutput

type CreatePlacementGroupOutput struct {

	// Describes a placement group.
	PlacementGroup *PlacementGroup `locationName:"placementGroup" type:"structure"`
	// contains filtered or unexported fields
}

func (CreatePlacementGroupOutput) String

String returns the string representation

type CreatePlacementGroupRequest

type CreatePlacementGroupRequest struct {
	*aws.Request
	Input *CreatePlacementGroupInput
	Copy  func(*CreatePlacementGroupInput) CreatePlacementGroupRequest
}

CreatePlacementGroupRequest is the request type for the CreatePlacementGroup API operation.

func (CreatePlacementGroupRequest) Send

Send marshals and sends the CreatePlacementGroup API request.

type CreatePlacementGroupResponse added in v0.9.0

type CreatePlacementGroupResponse struct {
	*CreatePlacementGroupOutput
	// contains filtered or unexported fields
}

CreatePlacementGroupResponse is the response type for the CreatePlacementGroup API operation.

func (*CreatePlacementGroupResponse) SDKResponseMetdata added in v0.9.0

func (r *CreatePlacementGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreatePlacementGroup request.

type CreateReservedInstancesListingInput

type CreateReservedInstancesListingInput struct {

	// Unique, case-sensitive identifier you provide to ensure idempotency of your
	// listings. This helps avoid duplicate listings. For more information, see
	// Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	//
	// ClientToken is a required field
	ClientToken *string `locationName:"clientToken" type:"string" required:"true"`

	// The number of instances that are a part of a Reserved Instance account to
	// be listed in the Reserved Instance Marketplace. This number should be less
	// than or equal to the instance count associated with the Reserved Instance
	// ID specified in this call.
	//
	// InstanceCount is a required field
	InstanceCount *int64 `locationName:"instanceCount" type:"integer" required:"true"`

	// A list specifying the price of the Standard Reserved Instance for each month
	// remaining in the Reserved Instance term.
	//
	// PriceSchedules is a required field
	PriceSchedules []PriceScheduleSpecification `locationName:"priceSchedules" locationNameList:"item" type:"list" required:"true"`

	// The ID of the active Standard Reserved Instance.
	//
	// ReservedInstancesId is a required field
	ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for CreateReservedInstancesListing.

func (CreateReservedInstancesListingInput) String

String returns the string representation

func (*CreateReservedInstancesListingInput) Validate

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

type CreateReservedInstancesListingOutput

type CreateReservedInstancesListingOutput struct {

	// Information about the Standard Reserved Instance listing.
	ReservedInstancesListings []ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of CreateReservedInstancesListing.

func (CreateReservedInstancesListingOutput) String

String returns the string representation

type CreateReservedInstancesListingRequest

type CreateReservedInstancesListingRequest struct {
	*aws.Request
	Input *CreateReservedInstancesListingInput
	Copy  func(*CreateReservedInstancesListingInput) CreateReservedInstancesListingRequest
}

CreateReservedInstancesListingRequest is the request type for the CreateReservedInstancesListing API operation.

func (CreateReservedInstancesListingRequest) Send

Send marshals and sends the CreateReservedInstancesListing API request.

type CreateReservedInstancesListingResponse added in v0.9.0

type CreateReservedInstancesListingResponse struct {
	*CreateReservedInstancesListingOutput
	// contains filtered or unexported fields
}

CreateReservedInstancesListingResponse is the response type for the CreateReservedInstancesListing API operation.

func (*CreateReservedInstancesListingResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateReservedInstancesListingResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateReservedInstancesListing request.

type CreateRouteInput

type CreateRouteInput struct {

	// The IPv4 CIDR address block used for the destination match. Routing decisions
	// are based on the most specific match. We modify the specified CIDR block
	// to its canonical form; for example, if you specify 100.68.0.18/18, we modify
	// it to 100.68.0.0/18.
	DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`

	// The IPv6 CIDR block used for the destination match. Routing decisions are
	// based on the most specific match.
	DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`

	// The ID of a prefix list used for the destination match.
	DestinationPrefixListId *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// [IPv6 traffic only] The ID of an egress-only internet gateway.
	EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`

	// The ID of an internet gateway or virtual private gateway attached to your
	// VPC.
	GatewayId *string `locationName:"gatewayId" type:"string"`

	// The ID of a NAT instance in your VPC. The operation fails if you specify
	// an instance ID unless exactly one network interface is attached.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The ID of the local gateway.
	LocalGatewayId *string `type:"string"`

	// [IPv4 traffic only] The ID of a NAT gateway.
	NatGatewayId *string `locationName:"natGatewayId" type:"string"`

	// The ID of a network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The ID of the route table for the route.
	//
	// RouteTableId is a required field
	RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`

	// The ID of a transit gateway.
	TransitGatewayId *string `type:"string"`

	// The ID of a VPC peering connection.
	VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
	// contains filtered or unexported fields
}

func (CreateRouteInput) String

func (s CreateRouteInput) String() string

String returns the string representation

func (*CreateRouteInput) Validate

func (s *CreateRouteInput) Validate() error

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

type CreateRouteOutput

type CreateRouteOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (CreateRouteOutput) String

func (s CreateRouteOutput) String() string

String returns the string representation

type CreateRouteRequest

type CreateRouteRequest struct {
	*aws.Request
	Input *CreateRouteInput
	Copy  func(*CreateRouteInput) CreateRouteRequest
}

CreateRouteRequest is the request type for the CreateRoute API operation.

func (CreateRouteRequest) Send

Send marshals and sends the CreateRoute API request.

type CreateRouteResponse added in v0.9.0

type CreateRouteResponse struct {
	*CreateRouteOutput
	// contains filtered or unexported fields
}

CreateRouteResponse is the response type for the CreateRoute API operation.

func (*CreateRouteResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateRoute request.

type CreateRouteTableInput

type CreateRouteTableInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The tags to assign to the route table.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `locationName:"vpcId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateRouteTableInput) String

func (s CreateRouteTableInput) String() string

String returns the string representation

func (*CreateRouteTableInput) Validate

func (s *CreateRouteTableInput) Validate() error

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

type CreateRouteTableOutput

type CreateRouteTableOutput struct {

	// Information about the route table.
	RouteTable *RouteTable `locationName:"routeTable" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateRouteTableOutput) String

func (s CreateRouteTableOutput) String() string

String returns the string representation

type CreateRouteTableRequest

type CreateRouteTableRequest struct {
	*aws.Request
	Input *CreateRouteTableInput
	Copy  func(*CreateRouteTableInput) CreateRouteTableRequest
}

CreateRouteTableRequest is the request type for the CreateRouteTable API operation.

func (CreateRouteTableRequest) Send

Send marshals and sends the CreateRouteTable API request.

type CreateRouteTableResponse added in v0.9.0

type CreateRouteTableResponse struct {
	*CreateRouteTableOutput
	// contains filtered or unexported fields
}

CreateRouteTableResponse is the response type for the CreateRouteTable API operation.

func (*CreateRouteTableResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateRouteTableResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateRouteTable request.

type CreateSecurityGroupInput

type CreateSecurityGroupInput struct {

	// A description for the security group. This is informational only.
	//
	// Constraints: Up to 255 characters in length
	//
	// Constraints for EC2-Classic: ASCII characters
	//
	// Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
	//
	// Description is a required field
	Description *string `locationName:"GroupDescription" type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The name of the security group.
	//
	// Constraints: Up to 255 characters in length. Cannot start with sg-.
	//
	// Constraints for EC2-Classic: ASCII characters
	//
	// Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
	//
	// GroupName is a required field
	GroupName *string `type:"string" required:"true"`

	// The tags to assign to the security group.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
	VpcId *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateSecurityGroupInput) String

func (s CreateSecurityGroupInput) String() string

String returns the string representation

func (*CreateSecurityGroupInput) Validate

func (s *CreateSecurityGroupInput) Validate() error

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

type CreateSecurityGroupOutput

type CreateSecurityGroupOutput struct {

	// The ID of the security group.
	GroupId *string `locationName:"groupId" type:"string"`

	// The tags assigned to the security group.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateSecurityGroupOutput) String

func (s CreateSecurityGroupOutput) String() string

String returns the string representation

type CreateSecurityGroupRequest

type CreateSecurityGroupRequest struct {
	*aws.Request
	Input *CreateSecurityGroupInput
	Copy  func(*CreateSecurityGroupInput) CreateSecurityGroupRequest
}

CreateSecurityGroupRequest is the request type for the CreateSecurityGroup API operation.

func (CreateSecurityGroupRequest) Send

Send marshals and sends the CreateSecurityGroup API request.

type CreateSecurityGroupResponse added in v0.9.0

type CreateSecurityGroupResponse struct {
	*CreateSecurityGroupOutput
	// contains filtered or unexported fields
}

CreateSecurityGroupResponse is the response type for the CreateSecurityGroup API operation.

func (*CreateSecurityGroupResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateSecurityGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateSecurityGroup request.

type CreateSnapshotInput

type CreateSnapshotInput struct {

	// A description for the snapshot.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The tags to apply to the snapshot during creation.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The ID of the EBS volume.
	//
	// VolumeId is a required field
	VolumeId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateSnapshotInput) String

func (s CreateSnapshotInput) String() string

String returns the string representation

func (*CreateSnapshotInput) Validate

func (s *CreateSnapshotInput) Validate() error

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

type CreateSnapshotOutput

type CreateSnapshotOutput struct {

	// The data encryption key identifier for the snapshot. This value is a unique
	// identifier that corresponds to the data encryption key that was used to encrypt
	// the original volume or snapshot copy. Because data encryption keys are inherited
	// by volumes created from snapshots, and vice versa, if snapshots share the
	// same data encryption key identifier, then they belong to the same volume/snapshot
	// lineage. This parameter is only returned by DescribeSnapshots.
	DataEncryptionKeyId *string `locationName:"dataEncryptionKeyId" type:"string"`

	// The description for the snapshot.
	Description *string `locationName:"description" type:"string"`

	// Indicates whether the snapshot is encrypted.
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS)
	// customer master key (CMK) that was used to protect the volume encryption
	// key for the parent volume.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// The AWS owner alias, as maintained by Amazon. The possible values are: amazon
	// | self | all | aws-marketplace | microsoft. This AWS owner alias is not to
	// be confused with the user-configured AWS account alias, which is set from
	// the IAM console.
	OwnerAlias *string `locationName:"ownerAlias" type:"string"`

	// The AWS account ID of the EBS snapshot owner.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The progress of the snapshot, as a percentage.
	Progress *string `locationName:"progress" type:"string"`

	// The ID of the snapshot. Each snapshot receives a unique identifier when it
	// is created.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// The time stamp when the snapshot was initiated.
	StartTime *time.Time `locationName:"startTime" type:"timestamp"`

	// The snapshot state.
	State SnapshotState `locationName:"status" type:"string" enum:"true"`

	// Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy
	// operation fails (for example, if the proper AWS Key Management Service (AWS
	// KMS) permissions are not obtained) this field displays error state details
	// to help you diagnose why the error occurred. This parameter is only returned
	// by DescribeSnapshots.
	StateMessage *string `locationName:"statusMessage" type:"string"`

	// Any tags assigned to the snapshot.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the volume that was used to create the snapshot. Snapshots created
	// by the CopySnapshot action have an arbitrary volume ID that should not be
	// used for any purpose.
	VolumeId *string `locationName:"volumeId" type:"string"`

	// The size of the volume, in GiB.
	VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
	// contains filtered or unexported fields
}

Describes a snapshot.

func (CreateSnapshotOutput) String

func (s CreateSnapshotOutput) String() string

String returns the string representation

type CreateSnapshotRequest

type CreateSnapshotRequest struct {
	*aws.Request
	Input *CreateSnapshotInput
	Copy  func(*CreateSnapshotInput) CreateSnapshotRequest
}

CreateSnapshotRequest is the request type for the CreateSnapshot API operation.

func (CreateSnapshotRequest) Send

Send marshals and sends the CreateSnapshot API request.

type CreateSnapshotResponse added in v0.9.0

type CreateSnapshotResponse struct {
	*CreateSnapshotOutput
	// contains filtered or unexported fields
}

CreateSnapshotResponse is the response type for the CreateSnapshot API operation.

func (*CreateSnapshotResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateSnapshotResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateSnapshot request.

type CreateSnapshotsInput added in v0.10.0

type CreateSnapshotsInput struct {

	// Copies the tags from the specified volume to corresponding snapshot.
	CopyTagsFromSource CopyTagsFromSource `type:"string" enum:"true"`

	// A description propagated to every snapshot specified by the instance.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The instance to specify which volumes should be included in the snapshots.
	//
	// InstanceSpecification is a required field
	InstanceSpecification *InstanceSpecification `type:"structure" required:"true"`

	// Tags to apply to every snapshot specified by the instance.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateSnapshotsInput) String added in v0.10.0

func (s CreateSnapshotsInput) String() string

String returns the string representation

func (*CreateSnapshotsInput) Validate added in v0.10.0

func (s *CreateSnapshotsInput) Validate() error

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

type CreateSnapshotsOutput added in v0.10.0

type CreateSnapshotsOutput struct {

	// List of snapshots.
	Snapshots []SnapshotInfo `locationName:"snapshotSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateSnapshotsOutput) String added in v0.10.0

func (s CreateSnapshotsOutput) String() string

String returns the string representation

type CreateSnapshotsRequest added in v0.10.0

type CreateSnapshotsRequest struct {
	*aws.Request
	Input *CreateSnapshotsInput
	Copy  func(*CreateSnapshotsInput) CreateSnapshotsRequest
}

CreateSnapshotsRequest is the request type for the CreateSnapshots API operation.

func (CreateSnapshotsRequest) Send added in v0.10.0

Send marshals and sends the CreateSnapshots API request.

type CreateSnapshotsResponse added in v0.10.0

type CreateSnapshotsResponse struct {
	*CreateSnapshotsOutput
	// contains filtered or unexported fields
}

CreateSnapshotsResponse is the response type for the CreateSnapshots API operation.

func (*CreateSnapshotsResponse) SDKResponseMetdata added in v0.10.0

func (r *CreateSnapshotsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateSnapshots request.

type CreateSpotDatafeedSubscriptionInput

type CreateSpotDatafeedSubscriptionInput struct {

	// The Amazon S3 bucket in which to store the Spot Instance data feed.
	//
	// Bucket is a required field
	Bucket *string `locationName:"bucket" type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// A prefix for the data feed file names.
	Prefix *string `locationName:"prefix" type:"string"`
	// contains filtered or unexported fields
}

Contains the parameters for CreateSpotDatafeedSubscription.

func (CreateSpotDatafeedSubscriptionInput) String

String returns the string representation

func (*CreateSpotDatafeedSubscriptionInput) Validate

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

type CreateSpotDatafeedSubscriptionOutput

type CreateSpotDatafeedSubscriptionOutput struct {

	// The Spot Instance data feed subscription.
	SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of CreateSpotDatafeedSubscription.

func (CreateSpotDatafeedSubscriptionOutput) String

String returns the string representation

type CreateSpotDatafeedSubscriptionRequest

type CreateSpotDatafeedSubscriptionRequest struct {
	*aws.Request
	Input *CreateSpotDatafeedSubscriptionInput
	Copy  func(*CreateSpotDatafeedSubscriptionInput) CreateSpotDatafeedSubscriptionRequest
}

CreateSpotDatafeedSubscriptionRequest is the request type for the CreateSpotDatafeedSubscription API operation.

func (CreateSpotDatafeedSubscriptionRequest) Send

Send marshals and sends the CreateSpotDatafeedSubscription API request.

type CreateSpotDatafeedSubscriptionResponse added in v0.9.0

type CreateSpotDatafeedSubscriptionResponse struct {
	*CreateSpotDatafeedSubscriptionOutput
	// contains filtered or unexported fields
}

CreateSpotDatafeedSubscriptionResponse is the response type for the CreateSpotDatafeedSubscription API operation.

func (*CreateSpotDatafeedSubscriptionResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateSpotDatafeedSubscriptionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateSpotDatafeedSubscription request.

type CreateSubnetInput

type CreateSubnetInput struct {

	// The Availability Zone or Local Zone for the subnet.
	//
	// Default: AWS selects one for you. If you create more than one subnet in your
	// VPC, we do not necessarily select a different zone for each subnet.
	//
	// To create a subnet in a Local Zone, set this value to the Local Zone ID,
	// for example us-west-2-lax-1a. For information about the Regions that support
	// Local Zones, see Available Regions (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// To create a subnet in an Outpost, set this value to the Availability Zone
	// for the Outpost and specify the Outpost ARN.
	AvailabilityZone *string `type:"string"`

	// The AZ ID or the Local Zone ID of the subnet.
	AvailabilityZoneId *string `type:"string"`

	// The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
	// We modify the specified CIDR block to its canonical form; for example, if
	// you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.
	//
	// CidrBlock is a required field
	CidrBlock *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The IPv6 network range for the subnet, in CIDR notation. The subnet size
	// must use a /64 prefix length.
	Ipv6CidrBlock *string `type:"string"`

	// The Amazon Resource Name (ARN) of the Outpost. If you specify an Outpost
	// ARN, you must also specify the Availability Zone of the Outpost subnet.
	OutpostArn *string `type:"string"`

	// The tags to assign to the subnet.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateSubnetInput) String

func (s CreateSubnetInput) String() string

String returns the string representation

func (*CreateSubnetInput) Validate

func (s *CreateSubnetInput) Validate() error

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

type CreateSubnetOutput

type CreateSubnetOutput struct {

	// Information about the subnet.
	Subnet *Subnet `locationName:"subnet" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateSubnetOutput) String

func (s CreateSubnetOutput) String() string

String returns the string representation

type CreateSubnetRequest

type CreateSubnetRequest struct {
	*aws.Request
	Input *CreateSubnetInput
	Copy  func(*CreateSubnetInput) CreateSubnetRequest
}

CreateSubnetRequest is the request type for the CreateSubnet API operation.

func (CreateSubnetRequest) Send

Send marshals and sends the CreateSubnet API request.

type CreateSubnetResponse added in v0.9.0

type CreateSubnetResponse struct {
	*CreateSubnetOutput
	// contains filtered or unexported fields
}

CreateSubnetResponse is the response type for the CreateSubnet API operation.

func (*CreateSubnetResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateSubnetResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateSubnet request.

type CreateTagsInput

type CreateTagsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The IDs of the resources, separated by spaces.
	//
	// Constraints: Up to 1000 resource IDs. We recommend breaking up this request
	// into smaller batches.
	//
	// Resources is a required field
	Resources []string `locationName:"ResourceId" type:"list" required:"true"`

	// The tags. The value parameter is required, but if you don't want the tag
	// to have a value, specify the parameter with no value, and we set the value
	// to an empty string.
	//
	// Tags is a required field
	Tags []Tag `locationName:"Tag" locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (CreateTagsInput) String

func (s CreateTagsInput) String() string

String returns the string representation

func (*CreateTagsInput) Validate

func (s *CreateTagsInput) Validate() error

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

type CreateTagsOutput

type CreateTagsOutput struct {
	// contains filtered or unexported fields
}

func (CreateTagsOutput) String

func (s CreateTagsOutput) String() string

String returns the string representation

type CreateTagsRequest

type CreateTagsRequest struct {
	*aws.Request
	Input *CreateTagsInput
	Copy  func(*CreateTagsInput) CreateTagsRequest
}

CreateTagsRequest is the request type for the CreateTags API operation.

func (CreateTagsRequest) Send

Send marshals and sends the CreateTags API request.

type CreateTagsResponse added in v0.9.0

type CreateTagsResponse struct {
	*CreateTagsOutput
	// contains filtered or unexported fields
}

CreateTagsResponse is the response type for the CreateTags API operation.

func (*CreateTagsResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateTagsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateTags request.

type CreateTrafficMirrorFilterInput added in v0.10.0

type CreateTrafficMirrorFilterInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// The description of the Traffic Mirror filter.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The tags to assign to a Traffic Mirror filter.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateTrafficMirrorFilterInput) String added in v0.10.0

String returns the string representation

type CreateTrafficMirrorFilterOutput added in v0.10.0

type CreateTrafficMirrorFilterOutput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `locationName:"clientToken" type:"string"`

	// Information about the Traffic Mirror filter.
	TrafficMirrorFilter *TrafficMirrorFilter `locationName:"trafficMirrorFilter" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateTrafficMirrorFilterOutput) String added in v0.10.0

String returns the string representation

type CreateTrafficMirrorFilterRequest added in v0.10.0

type CreateTrafficMirrorFilterRequest struct {
	*aws.Request
	Input *CreateTrafficMirrorFilterInput
	Copy  func(*CreateTrafficMirrorFilterInput) CreateTrafficMirrorFilterRequest
}

CreateTrafficMirrorFilterRequest is the request type for the CreateTrafficMirrorFilter API operation.

func (CreateTrafficMirrorFilterRequest) Send added in v0.10.0

Send marshals and sends the CreateTrafficMirrorFilter API request.

type CreateTrafficMirrorFilterResponse added in v0.10.0

type CreateTrafficMirrorFilterResponse struct {
	*CreateTrafficMirrorFilterOutput
	// contains filtered or unexported fields
}

CreateTrafficMirrorFilterResponse is the response type for the CreateTrafficMirrorFilter API operation.

func (*CreateTrafficMirrorFilterResponse) SDKResponseMetdata added in v0.10.0

func (r *CreateTrafficMirrorFilterResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateTrafficMirrorFilter request.

type CreateTrafficMirrorFilterRuleInput added in v0.10.0

type CreateTrafficMirrorFilterRuleInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// The description of the Traffic Mirror rule.
	Description *string `type:"string"`

	// The destination CIDR block to assign to the Traffic Mirror rule.
	//
	// DestinationCidrBlock is a required field
	DestinationCidrBlock *string `type:"string" required:"true"`

	// The destination port range.
	DestinationPortRange *TrafficMirrorPortRangeRequest `type:"structure"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The protocol, for example UDP, to assign to the Traffic Mirror rule.
	//
	// For information about the protocol value, see Protocol Numbers (https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)
	// on the Internet Assigned Numbers Authority (IANA) website.
	Protocol *int64 `type:"integer"`

	// The action to take (accept | reject) on the filtered traffic.
	//
	// RuleAction is a required field
	RuleAction TrafficMirrorRuleAction `type:"string" required:"true" enum:"true"`

	// The number of the Traffic Mirror rule. This number must be unique for each
	// Traffic Mirror rule in a given direction. The rules are processed in ascending
	// order by rule number.
	//
	// RuleNumber is a required field
	RuleNumber *int64 `type:"integer" required:"true"`

	// The source CIDR block to assign to the Traffic Mirror rule.
	//
	// SourceCidrBlock is a required field
	SourceCidrBlock *string `type:"string" required:"true"`

	// The source port range.
	SourcePortRange *TrafficMirrorPortRangeRequest `type:"structure"`

	// The type of traffic (ingress | egress).
	//
	// TrafficDirection is a required field
	TrafficDirection TrafficDirection `type:"string" required:"true" enum:"true"`

	// The ID of the filter that this rule is associated with.
	//
	// TrafficMirrorFilterId is a required field
	TrafficMirrorFilterId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateTrafficMirrorFilterRuleInput) String added in v0.10.0

String returns the string representation

func (*CreateTrafficMirrorFilterRuleInput) Validate added in v0.10.0

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

type CreateTrafficMirrorFilterRuleOutput added in v0.10.0

type CreateTrafficMirrorFilterRuleOutput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `locationName:"clientToken" type:"string"`

	// The Traffic Mirror rule.
	TrafficMirrorFilterRule *TrafficMirrorFilterRule `locationName:"trafficMirrorFilterRule" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateTrafficMirrorFilterRuleOutput) String added in v0.10.0

String returns the string representation

type CreateTrafficMirrorFilterRuleRequest added in v0.10.0

type CreateTrafficMirrorFilterRuleRequest struct {
	*aws.Request
	Input *CreateTrafficMirrorFilterRuleInput
	Copy  func(*CreateTrafficMirrorFilterRuleInput) CreateTrafficMirrorFilterRuleRequest
}

CreateTrafficMirrorFilterRuleRequest is the request type for the CreateTrafficMirrorFilterRule API operation.

func (CreateTrafficMirrorFilterRuleRequest) Send added in v0.10.0

Send marshals and sends the CreateTrafficMirrorFilterRule API request.

type CreateTrafficMirrorFilterRuleResponse added in v0.10.0

type CreateTrafficMirrorFilterRuleResponse struct {
	*CreateTrafficMirrorFilterRuleOutput
	// contains filtered or unexported fields
}

CreateTrafficMirrorFilterRuleResponse is the response type for the CreateTrafficMirrorFilterRule API operation.

func (*CreateTrafficMirrorFilterRuleResponse) SDKResponseMetdata added in v0.10.0

func (r *CreateTrafficMirrorFilterRuleResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateTrafficMirrorFilterRule request.

type CreateTrafficMirrorSessionInput added in v0.10.0

type CreateTrafficMirrorSessionInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// The description of the Traffic Mirror session.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the source network interface.
	//
	// NetworkInterfaceId is a required field
	NetworkInterfaceId *string `type:"string" required:"true"`

	// The number of bytes in each packet to mirror. These are bytes after the VXLAN
	// header. Do not specify this parameter when you want to mirror the entire
	// packet. To mirror a subset of the packet, set this to the length (in bytes)
	// that you want to mirror. For example, if you set this value to 100, then
	// the first 100 bytes that meet the filter criteria are copied to the target.
	//
	// If you do not want to mirror the entire packet, use the PacketLength parameter
	// to specify the number of bytes in each packet to mirror.
	PacketLength *int64 `type:"integer"`

	// The session number determines the order in which sessions are evaluated when
	// an interface is used by multiple sessions. The first session with a matching
	// filter is the one that mirrors the packets.
	//
	// Valid values are 1-32766.
	//
	// SessionNumber is a required field
	SessionNumber *int64 `type:"integer" required:"true"`

	// The tags to assign to a Traffic Mirror session.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The ID of the Traffic Mirror filter.
	//
	// TrafficMirrorFilterId is a required field
	TrafficMirrorFilterId *string `type:"string" required:"true"`

	// The ID of the Traffic Mirror target.
	//
	// TrafficMirrorTargetId is a required field
	TrafficMirrorTargetId *string `type:"string" required:"true"`

	// The VXLAN ID for the Traffic Mirror session. For more information about the
	// VXLAN protocol, see RFC 7348 (https://tools.ietf.org/html/rfc7348). If you
	// do not specify a VirtualNetworkId, an account-wide unique id is chosen at
	// random.
	VirtualNetworkId *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (CreateTrafficMirrorSessionInput) String added in v0.10.0

String returns the string representation

func (*CreateTrafficMirrorSessionInput) Validate added in v0.10.0

func (s *CreateTrafficMirrorSessionInput) Validate() error

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

type CreateTrafficMirrorSessionOutput added in v0.10.0

type CreateTrafficMirrorSessionOutput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `locationName:"clientToken" type:"string"`

	// Information about the Traffic Mirror session.
	TrafficMirrorSession *TrafficMirrorSession `locationName:"trafficMirrorSession" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateTrafficMirrorSessionOutput) String added in v0.10.0

String returns the string representation

type CreateTrafficMirrorSessionRequest added in v0.10.0

type CreateTrafficMirrorSessionRequest struct {
	*aws.Request
	Input *CreateTrafficMirrorSessionInput
	Copy  func(*CreateTrafficMirrorSessionInput) CreateTrafficMirrorSessionRequest
}

CreateTrafficMirrorSessionRequest is the request type for the CreateTrafficMirrorSession API operation.

func (CreateTrafficMirrorSessionRequest) Send added in v0.10.0

Send marshals and sends the CreateTrafficMirrorSession API request.

type CreateTrafficMirrorSessionResponse added in v0.10.0

type CreateTrafficMirrorSessionResponse struct {
	*CreateTrafficMirrorSessionOutput
	// contains filtered or unexported fields
}

CreateTrafficMirrorSessionResponse is the response type for the CreateTrafficMirrorSession API operation.

func (*CreateTrafficMirrorSessionResponse) SDKResponseMetdata added in v0.10.0

func (r *CreateTrafficMirrorSessionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateTrafficMirrorSession request.

type CreateTrafficMirrorTargetInput added in v0.10.0

type CreateTrafficMirrorTargetInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// The description of the Traffic Mirror target.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The network interface ID that is associated with the target.
	NetworkInterfaceId *string `type:"string"`

	// The Amazon Resource Name (ARN) of the Network Load Balancer that is associated
	// with the target.
	NetworkLoadBalancerArn *string `type:"string"`

	// The tags to assign to the Traffic Mirror target.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateTrafficMirrorTargetInput) String added in v0.10.0

String returns the string representation

type CreateTrafficMirrorTargetOutput added in v0.10.0

type CreateTrafficMirrorTargetOutput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `locationName:"clientToken" type:"string"`

	// Information about the Traffic Mirror target.
	TrafficMirrorTarget *TrafficMirrorTarget `locationName:"trafficMirrorTarget" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateTrafficMirrorTargetOutput) String added in v0.10.0

String returns the string representation

type CreateTrafficMirrorTargetRequest added in v0.10.0

type CreateTrafficMirrorTargetRequest struct {
	*aws.Request
	Input *CreateTrafficMirrorTargetInput
	Copy  func(*CreateTrafficMirrorTargetInput) CreateTrafficMirrorTargetRequest
}

CreateTrafficMirrorTargetRequest is the request type for the CreateTrafficMirrorTarget API operation.

func (CreateTrafficMirrorTargetRequest) Send added in v0.10.0

Send marshals and sends the CreateTrafficMirrorTarget API request.

type CreateTrafficMirrorTargetResponse added in v0.10.0

type CreateTrafficMirrorTargetResponse struct {
	*CreateTrafficMirrorTargetOutput
	// contains filtered or unexported fields
}

CreateTrafficMirrorTargetResponse is the response type for the CreateTrafficMirrorTarget API operation.

func (*CreateTrafficMirrorTargetResponse) SDKResponseMetdata added in v0.10.0

func (r *CreateTrafficMirrorTargetResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateTrafficMirrorTarget request.

type CreateTransitGatewayInput added in v0.6.0

type CreateTransitGatewayInput struct {

	// A description of the transit gateway.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The transit gateway options.
	Options *TransitGatewayRequestOptions `type:"structure"`

	// The tags to apply to the transit gateway.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayInput) String added in v0.6.0

func (s CreateTransitGatewayInput) String() string

String returns the string representation

type CreateTransitGatewayMulticastDomainInput added in v0.18.0

type CreateTransitGatewayMulticastDomainInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The tags for the transit gateway multicast domain.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The ID of the transit gateway.
	//
	// TransitGatewayId is a required field
	TransitGatewayId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayMulticastDomainInput) String added in v0.18.0

String returns the string representation

func (*CreateTransitGatewayMulticastDomainInput) Validate added in v0.18.0

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

type CreateTransitGatewayMulticastDomainOutput added in v0.18.0

type CreateTransitGatewayMulticastDomainOutput struct {

	// Information about the transit gateway multicast domain.
	TransitGatewayMulticastDomain *TransitGatewayMulticastDomain `locationName:"transitGatewayMulticastDomain" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayMulticastDomainOutput) String added in v0.18.0

String returns the string representation

type CreateTransitGatewayMulticastDomainRequest added in v0.18.0

CreateTransitGatewayMulticastDomainRequest is the request type for the CreateTransitGatewayMulticastDomain API operation.

func (CreateTransitGatewayMulticastDomainRequest) Send added in v0.18.0

Send marshals and sends the CreateTransitGatewayMulticastDomain API request.

type CreateTransitGatewayMulticastDomainResponse added in v0.18.0

type CreateTransitGatewayMulticastDomainResponse struct {
	*CreateTransitGatewayMulticastDomainOutput
	// contains filtered or unexported fields
}

CreateTransitGatewayMulticastDomainResponse is the response type for the CreateTransitGatewayMulticastDomain API operation.

func (*CreateTransitGatewayMulticastDomainResponse) SDKResponseMetdata added in v0.18.0

func (r *CreateTransitGatewayMulticastDomainResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateTransitGatewayMulticastDomain request.

type CreateTransitGatewayOutput added in v0.6.0

type CreateTransitGatewayOutput struct {

	// Information about the transit gateway.
	TransitGateway *TransitGateway `locationName:"transitGateway" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayOutput) String added in v0.6.0

String returns the string representation

type CreateTransitGatewayPeeringAttachmentInput added in v0.18.0

type CreateTransitGatewayPeeringAttachmentInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The AWS account ID of the owner of the peer transit gateway.
	//
	// PeerAccountId is a required field
	PeerAccountId *string `type:"string" required:"true"`

	// The Region where the peer transit gateway is located.
	//
	// PeerRegion is a required field
	PeerRegion *string `type:"string" required:"true"`

	// The ID of the peer transit gateway with which to create the peering attachment.
	//
	// PeerTransitGatewayId is a required field
	PeerTransitGatewayId *string `type:"string" required:"true"`

	// The tags to apply to the transit gateway peering attachment.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The ID of the transit gateway.
	//
	// TransitGatewayId is a required field
	TransitGatewayId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayPeeringAttachmentInput) String added in v0.18.0

String returns the string representation

func (*CreateTransitGatewayPeeringAttachmentInput) Validate added in v0.18.0

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

type CreateTransitGatewayPeeringAttachmentOutput added in v0.18.0

type CreateTransitGatewayPeeringAttachmentOutput struct {

	// The transit gateway peering attachment.
	TransitGatewayPeeringAttachment *TransitGatewayPeeringAttachment `locationName:"transitGatewayPeeringAttachment" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayPeeringAttachmentOutput) String added in v0.18.0

String returns the string representation

type CreateTransitGatewayPeeringAttachmentRequest added in v0.18.0

CreateTransitGatewayPeeringAttachmentRequest is the request type for the CreateTransitGatewayPeeringAttachment API operation.

func (CreateTransitGatewayPeeringAttachmentRequest) Send added in v0.18.0

Send marshals and sends the CreateTransitGatewayPeeringAttachment API request.

type CreateTransitGatewayPeeringAttachmentResponse added in v0.18.0

type CreateTransitGatewayPeeringAttachmentResponse struct {
	*CreateTransitGatewayPeeringAttachmentOutput
	// contains filtered or unexported fields
}

CreateTransitGatewayPeeringAttachmentResponse is the response type for the CreateTransitGatewayPeeringAttachment API operation.

func (*CreateTransitGatewayPeeringAttachmentResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the CreateTransitGatewayPeeringAttachment request.

type CreateTransitGatewayRequest added in v0.6.0

type CreateTransitGatewayRequest struct {
	*aws.Request
	Input *CreateTransitGatewayInput
	Copy  func(*CreateTransitGatewayInput) CreateTransitGatewayRequest
}

CreateTransitGatewayRequest is the request type for the CreateTransitGateway API operation.

func (CreateTransitGatewayRequest) Send added in v0.6.0

Send marshals and sends the CreateTransitGateway API request.

type CreateTransitGatewayResponse added in v0.9.0

type CreateTransitGatewayResponse struct {
	*CreateTransitGatewayOutput
	// contains filtered or unexported fields
}

CreateTransitGatewayResponse is the response type for the CreateTransitGateway API operation.

func (*CreateTransitGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateTransitGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateTransitGateway request.

type CreateTransitGatewayRouteInput added in v0.6.0

type CreateTransitGatewayRouteInput struct {

	// Indicates whether to drop traffic that matches this route.
	Blackhole *bool `type:"boolean"`

	// The CIDR range used for destination matches. Routing decisions are based
	// on the most specific match.
	//
	// DestinationCidrBlock is a required field
	DestinationCidrBlock *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the attachment.
	TransitGatewayAttachmentId *string `type:"string"`

	// The ID of the transit gateway route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayRouteInput) String added in v0.6.0

String returns the string representation

func (*CreateTransitGatewayRouteInput) Validate added in v0.6.0

func (s *CreateTransitGatewayRouteInput) Validate() error

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

type CreateTransitGatewayRouteOutput added in v0.6.0

type CreateTransitGatewayRouteOutput struct {

	// Information about the route.
	Route *TransitGatewayRoute `locationName:"route" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayRouteOutput) String added in v0.6.0

String returns the string representation

type CreateTransitGatewayRouteRequest added in v0.6.0

type CreateTransitGatewayRouteRequest struct {
	*aws.Request
	Input *CreateTransitGatewayRouteInput
	Copy  func(*CreateTransitGatewayRouteInput) CreateTransitGatewayRouteRequest
}

CreateTransitGatewayRouteRequest is the request type for the CreateTransitGatewayRoute API operation.

func (CreateTransitGatewayRouteRequest) Send added in v0.6.0

Send marshals and sends the CreateTransitGatewayRoute API request.

type CreateTransitGatewayRouteResponse added in v0.9.0

type CreateTransitGatewayRouteResponse struct {
	*CreateTransitGatewayRouteOutput
	// contains filtered or unexported fields
}

CreateTransitGatewayRouteResponse is the response type for the CreateTransitGatewayRoute API operation.

func (*CreateTransitGatewayRouteResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateTransitGatewayRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateTransitGatewayRoute request.

type CreateTransitGatewayRouteTableInput added in v0.6.0

type CreateTransitGatewayRouteTableInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The tags to apply to the transit gateway route table.
	TagSpecifications []TagSpecification `locationNameList:"item" type:"list"`

	// The ID of the transit gateway.
	//
	// TransitGatewayId is a required field
	TransitGatewayId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayRouteTableInput) String added in v0.6.0

String returns the string representation

func (*CreateTransitGatewayRouteTableInput) Validate added in v0.6.0

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

type CreateTransitGatewayRouteTableOutput added in v0.6.0

type CreateTransitGatewayRouteTableOutput struct {

	// Information about the transit gateway route table.
	TransitGatewayRouteTable *TransitGatewayRouteTable `locationName:"transitGatewayRouteTable" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayRouteTableOutput) String added in v0.6.0

String returns the string representation

type CreateTransitGatewayRouteTableRequest added in v0.6.0

type CreateTransitGatewayRouteTableRequest struct {
	*aws.Request
	Input *CreateTransitGatewayRouteTableInput
	Copy  func(*CreateTransitGatewayRouteTableInput) CreateTransitGatewayRouteTableRequest
}

CreateTransitGatewayRouteTableRequest is the request type for the CreateTransitGatewayRouteTable API operation.

func (CreateTransitGatewayRouteTableRequest) Send added in v0.6.0

Send marshals and sends the CreateTransitGatewayRouteTable API request.

type CreateTransitGatewayRouteTableResponse added in v0.9.0

type CreateTransitGatewayRouteTableResponse struct {
	*CreateTransitGatewayRouteTableOutput
	// contains filtered or unexported fields
}

CreateTransitGatewayRouteTableResponse is the response type for the CreateTransitGatewayRouteTable API operation.

func (*CreateTransitGatewayRouteTableResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateTransitGatewayRouteTableResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateTransitGatewayRouteTable request.

type CreateTransitGatewayVpcAttachmentInput added in v0.6.0

type CreateTransitGatewayVpcAttachmentInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The VPC attachment options.
	Options *CreateTransitGatewayVpcAttachmentRequestOptions `type:"structure"`

	// The IDs of one or more subnets. You can specify only one subnet per Availability
	// Zone. You must specify at least one subnet, but we recommend that you specify
	// two subnets for better availability. The transit gateway uses one IP address
	// from each specified subnet.
	//
	// SubnetIds is a required field
	SubnetIds []string `locationNameList:"item" type:"list" required:"true"`

	// The tags to apply to the VPC attachment.
	TagSpecifications []TagSpecification `locationNameList:"item" type:"list"`

	// The ID of the transit gateway.
	//
	// TransitGatewayId is a required field
	TransitGatewayId *string `type:"string" required:"true"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayVpcAttachmentInput) String added in v0.6.0

String returns the string representation

func (*CreateTransitGatewayVpcAttachmentInput) Validate added in v0.6.0

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

type CreateTransitGatewayVpcAttachmentOutput added in v0.6.0

type CreateTransitGatewayVpcAttachmentOutput struct {

	// Information about the VPC attachment.
	TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateTransitGatewayVpcAttachmentOutput) String added in v0.6.0

String returns the string representation

type CreateTransitGatewayVpcAttachmentRequest added in v0.6.0

CreateTransitGatewayVpcAttachmentRequest is the request type for the CreateTransitGatewayVpcAttachment API operation.

func (CreateTransitGatewayVpcAttachmentRequest) Send added in v0.6.0

Send marshals and sends the CreateTransitGatewayVpcAttachment API request.

type CreateTransitGatewayVpcAttachmentRequestOptions added in v0.6.0

type CreateTransitGatewayVpcAttachmentRequestOptions struct {

	// Enable or disable DNS support. The default is enable.
	DnsSupport DnsSupportValue `type:"string" enum:"true"`

	// Enable or disable IPv6 support. The default is enable.
	Ipv6Support Ipv6SupportValue `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the options for a VPC attachment.

func (CreateTransitGatewayVpcAttachmentRequestOptions) String added in v0.6.0

String returns the string representation

type CreateTransitGatewayVpcAttachmentResponse added in v0.9.0

type CreateTransitGatewayVpcAttachmentResponse struct {
	*CreateTransitGatewayVpcAttachmentOutput
	// contains filtered or unexported fields
}

CreateTransitGatewayVpcAttachmentResponse is the response type for the CreateTransitGatewayVpcAttachment API operation.

func (*CreateTransitGatewayVpcAttachmentResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateTransitGatewayVpcAttachmentResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateTransitGatewayVpcAttachment request.

type CreateVolumeInput

type CreateVolumeInput struct {

	// The Availability Zone in which to create the volume.
	//
	// AvailabilityZone is a required field
	AvailabilityZone *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Specifies whether the volume should be encrypted. The effect of setting the
	// encryption state to true depends on the volume origin (new or from a snapshot),
	// starting encryption state, ownership, and whether encryption by default is
	// enabled. For more information, see Encryption by Default (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-by-default)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// Encrypted Amazon EBS volumes must be attached to instances that support Amazon
	// EBS encryption. For more information, see Supported Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances).
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// The number of I/O operations per second (IOPS) to provision for the volume,
	// with a maximum ratio of 50 IOPS/GiB. Range is 100 to 64,000 IOPS for volumes
	// in most Regions. Maximum IOPS of 64,000 is guaranteed only on Nitro-based
	// instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances).
	// Other instance families guarantee performance up to 32,000 IOPS. For more
	// information, see Amazon EBS Volume Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// This parameter is valid only for Provisioned IOPS SSD (io1) volumes.
	Iops *int64 `type:"integer"`

	// The identifier of the AWS Key Management Service (AWS KMS) customer master
	// key (CMK) to use for Amazon EBS encryption. If this parameter is not specified,
	// your AWS managed CMK for EBS is used. If KmsKeyId is specified, the encrypted
	// state must be true.
	//
	// You can specify the CMK using any of the following:
	//
	//    * Key ID. For example, key/1234abcd-12ab-34cd-56ef-1234567890ab.
	//
	//    * Key alias. For example, alias/ExampleAlias.
	//
	//    * Key ARN. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
	//
	//    * Alias ARN. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
	//
	// AWS authenticates the CMK asynchronously. Therefore, if you specify an ID,
	// alias, or ARN that is not valid, the action can appear to complete, but eventually
	// fails.
	KmsKeyId *string `type:"string"`

	// Specifies whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach,
	// you can attach the volume to up to 16 Nitro-based instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances)
	// in the same Availability Zone. For more information, see Amazon EBS Multi-Attach
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes-multi.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	MultiAttachEnabled *bool `type:"boolean"`

	// The Amazon Resource Name (ARN) of the Outpost.
	OutpostArn *string `type:"string"`

	// The size of the volume, in GiBs. You must specify either a snapshot ID or
	// a volume size.
	//
	// Constraints: 1-16,384 for gp2, 4-16,384 for io1, 500-16,384 for st1, 500-16,384
	// for sc1, and 1-1,024 for standard. If you specify a snapshot, the volume
	// size must be equal to or larger than the snapshot size.
	//
	// Default: If you're creating the volume from a snapshot and don't specify
	// a volume size, the default is the snapshot size.
	Size *int64 `type:"integer"`

	// The snapshot from which to create the volume. You must specify either a snapshot
	// ID or a volume size.
	SnapshotId *string `type:"string"`

	// The tags to apply to the volume during creation.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
	// IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
	// for Magnetic volumes.
	//
	// Default: gp2
	VolumeType VolumeType `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (CreateVolumeInput) String

func (s CreateVolumeInput) String() string

String returns the string representation

func (*CreateVolumeInput) Validate

func (s *CreateVolumeInput) Validate() error

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

type CreateVolumeOutput

type CreateVolumeOutput struct {

	// Information about the volume attachments.
	Attachments []VolumeAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`

	// The Availability Zone for the volume.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The time stamp when volume creation was initiated.
	CreateTime *time.Time `locationName:"createTime" type:"timestamp"`

	// Indicates whether the volume is encrypted.
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// Indicates whether the volume was created using fast snapshot restore.
	FastRestored *bool `locationName:"fastRestored" type:"boolean"`

	// The number of I/O operations per second (IOPS) that the volume supports.
	// For Provisioned IOPS SSD volumes, this represents the number of IOPS that
	// are provisioned for the volume. For General Purpose SSD volumes, this represents
	// the baseline performance of the volume and the rate at which the volume accumulates
	// I/O credits for bursting. For more information, see Amazon EBS Volume Types
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// Constraints: Range is 100-16,000 IOPS for gp2 volumes and 100 to 64,000IOPS
	// for io1 volumes, in most Regions. The maximum IOPS for io1 of 64,000 is guaranteed
	// only on Nitro-based instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances).
	// Other instance families guarantee performance up to 32,000 IOPS.
	//
	// Condition: This parameter is required for requests to create io1 volumes;
	// it is not used in requests to create gp2, st1, sc1, or standard volumes.
	Iops *int64 `locationName:"iops" type:"integer"`

	// The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS)
	// customer master key (CMK) that was used to protect the volume encryption
	// key for the volume.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// Indicates whether Amazon EBS Multi-Attach is enabled.
	MultiAttachEnabled *bool `locationName:"multiAttachEnabled" type:"boolean"`

	// The Amazon Resource Name (ARN) of the Outpost.
	OutpostArn *string `locationName:"outpostArn" type:"string"`

	// The size of the volume, in GiBs.
	Size *int64 `locationName:"size" type:"integer"`

	// The snapshot from which the volume was created, if applicable.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// The volume state.
	State VolumeState `locationName:"status" type:"string" enum:"true"`

	// Any tags assigned to the volume.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the volume.
	VolumeId *string `locationName:"volumeId" type:"string"`

	// The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
	// IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
	// for Magnetic volumes.
	VolumeType VolumeType `locationName:"volumeType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a volume.

func (CreateVolumeOutput) String

func (s CreateVolumeOutput) String() string

String returns the string representation

type CreateVolumePermission

type CreateVolumePermission struct {

	// The group to be added or removed. The possible value is all.
	Group PermissionGroup `locationName:"group" type:"string" enum:"true"`

	// The AWS account ID to be added or removed.
	UserId *string `locationName:"userId" type:"string"`
	// contains filtered or unexported fields
}

Describes the user or group to be added or removed from the list of create volume permissions for a volume.

func (CreateVolumePermission) String

func (s CreateVolumePermission) String() string

String returns the string representation

type CreateVolumePermissionModifications

type CreateVolumePermissionModifications struct {

	// Adds the specified AWS account ID or group to the list.
	Add []CreateVolumePermission `locationNameList:"item" type:"list"`

	// Removes the specified AWS account ID or group from the list.
	Remove []CreateVolumePermission `locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes modifications to the list of create volume permissions for a volume.

func (CreateVolumePermissionModifications) String

String returns the string representation

type CreateVolumeRequest

type CreateVolumeRequest struct {
	*aws.Request
	Input *CreateVolumeInput
	Copy  func(*CreateVolumeInput) CreateVolumeRequest
}

CreateVolumeRequest is the request type for the CreateVolume API operation.

func (CreateVolumeRequest) Send

Send marshals and sends the CreateVolume API request.

type CreateVolumeResponse added in v0.9.0

type CreateVolumeResponse struct {
	*CreateVolumeOutput
	// contains filtered or unexported fields
}

CreateVolumeResponse is the response type for the CreateVolume API operation.

func (*CreateVolumeResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateVolumeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateVolume request.

type CreateVpcEndpointConnectionNotificationInput added in v0.2.0

type CreateVpcEndpointConnectionNotificationInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string"`

	// One or more endpoint events for which to receive notifications. Valid values
	// are Accept, Connect, Delete, and Reject.
	//
	// ConnectionEvents is a required field
	ConnectionEvents []string `locationNameList:"item" type:"list" required:"true"`

	// The ARN of the SNS topic for the notifications.
	//
	// ConnectionNotificationArn is a required field
	ConnectionNotificationArn *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the endpoint service.
	ServiceId *string `type:"string"`

	// The ID of the endpoint.
	VpcEndpointId *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateVpcEndpointConnectionNotificationInput) String added in v0.2.0

String returns the string representation

func (*CreateVpcEndpointConnectionNotificationInput) Validate added in v0.2.0

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

type CreateVpcEndpointConnectionNotificationOutput added in v0.2.0

type CreateVpcEndpointConnectionNotificationOutput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request.
	ClientToken *string `locationName:"clientToken" type:"string"`

	// Information about the notification.
	ConnectionNotification *ConnectionNotification `locationName:"connectionNotification" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateVpcEndpointConnectionNotificationOutput) String added in v0.2.0

String returns the string representation

type CreateVpcEndpointConnectionNotificationRequest added in v0.2.0

CreateVpcEndpointConnectionNotificationRequest is the request type for the CreateVpcEndpointConnectionNotification API operation.

func (CreateVpcEndpointConnectionNotificationRequest) Send added in v0.2.0

Send marshals and sends the CreateVpcEndpointConnectionNotification API request.

type CreateVpcEndpointConnectionNotificationResponse added in v0.9.0

type CreateVpcEndpointConnectionNotificationResponse struct {
	*CreateVpcEndpointConnectionNotificationOutput
	// contains filtered or unexported fields
}

CreateVpcEndpointConnectionNotificationResponse is the response type for the CreateVpcEndpointConnectionNotification API operation.

func (*CreateVpcEndpointConnectionNotificationResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the CreateVpcEndpointConnectionNotification request.

type CreateVpcEndpointInput

type CreateVpcEndpointInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// A policy to attach to the endpoint that controls access to the service. The
	// policy must be in valid JSON format. If this parameter is not specified,
	// we attach a default policy that allows full access to the service.
	PolicyDocument *string `type:"string"`

	// (Interface endpoint) Indicates whether to associate a private hosted zone
	// with the specified VPC. The private hosted zone contains a record set for
	// the default public DNS name for the service for the Region (for example,
	// kinesis.us-east-1.amazonaws.com), which resolves to the private IP addresses
	// of the endpoint network interfaces in the VPC. This enables you to make requests
	// to the default public DNS name for the service instead of the public DNS
	// names that are automatically generated by the VPC endpoint service.
	//
	// To use a private hosted zone, you must set the following VPC attributes to
	// true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to
	// set the VPC attributes.
	//
	// Default: true
	PrivateDnsEnabled *bool `type:"boolean"`

	// (Gateway endpoint) One or more route table IDs.
	RouteTableIds []string `locationName:"RouteTableId" locationNameList:"item" type:"list"`

	// (Interface endpoint) The ID of one or more security groups to associate with
	// the endpoint network interface.
	SecurityGroupIds []string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`

	// The service name. To get a list of available services, use the DescribeVpcEndpointServices
	// request, or get the name from the service provider.
	//
	// ServiceName is a required field
	ServiceName *string `type:"string" required:"true"`

	// (Interface endpoint) The ID of one or more subnets in which to create an
	// endpoint network interface.
	SubnetIds []string `locationName:"SubnetId" locationNameList:"item" type:"list"`

	// The tags to associate with the endpoint.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The type of endpoint.
	//
	// Default: Gateway
	VpcEndpointType VpcEndpointType `type:"string" enum:"true"`

	// The ID of the VPC in which the endpoint will be used.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for CreateVpcEndpoint.

func (CreateVpcEndpointInput) String

func (s CreateVpcEndpointInput) String() string

String returns the string representation

func (*CreateVpcEndpointInput) Validate

func (s *CreateVpcEndpointInput) Validate() error

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

type CreateVpcEndpointOutput

type CreateVpcEndpointOutput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request.
	ClientToken *string `locationName:"clientToken" type:"string"`

	// Information about the endpoint.
	VpcEndpoint *VpcEndpoint `locationName:"vpcEndpoint" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of CreateVpcEndpoint.

func (CreateVpcEndpointOutput) String

func (s CreateVpcEndpointOutput) String() string

String returns the string representation

type CreateVpcEndpointRequest

type CreateVpcEndpointRequest struct {
	*aws.Request
	Input *CreateVpcEndpointInput
	Copy  func(*CreateVpcEndpointInput) CreateVpcEndpointRequest
}

CreateVpcEndpointRequest is the request type for the CreateVpcEndpoint API operation.

func (CreateVpcEndpointRequest) Send

Send marshals and sends the CreateVpcEndpoint API request.

type CreateVpcEndpointResponse added in v0.9.0

type CreateVpcEndpointResponse struct {
	*CreateVpcEndpointOutput
	// contains filtered or unexported fields
}

CreateVpcEndpointResponse is the response type for the CreateVpcEndpoint API operation.

func (*CreateVpcEndpointResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateVpcEndpointResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateVpcEndpoint request.

type CreateVpcEndpointServiceConfigurationInput added in v0.2.0

type CreateVpcEndpointServiceConfigurationInput struct {

	// Indicates whether requests from service consumers to create an endpoint to
	// your service must be accepted. To accept a request, use AcceptVpcEndpointConnections.
	AcceptanceRequired *bool `type:"boolean"`

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The Amazon Resource Names (ARNs) of one or more Network Load Balancers for
	// your service.
	//
	// NetworkLoadBalancerArns is a required field
	NetworkLoadBalancerArns []string `locationName:"NetworkLoadBalancerArn" locationNameList:"item" type:"list" required:"true"`

	// The private DNS name to assign to the VPC endpoint service.
	PrivateDnsName *string `type:"string"`

	// The tags to associate with the service.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateVpcEndpointServiceConfigurationInput) String added in v0.2.0

String returns the string representation

func (*CreateVpcEndpointServiceConfigurationInput) Validate added in v0.2.0

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

type CreateVpcEndpointServiceConfigurationOutput added in v0.2.0

type CreateVpcEndpointServiceConfigurationOutput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request.
	ClientToken *string `locationName:"clientToken" type:"string"`

	// Information about the service configuration.
	ServiceConfiguration *ServiceConfiguration `locationName:"serviceConfiguration" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateVpcEndpointServiceConfigurationOutput) String added in v0.2.0

String returns the string representation

type CreateVpcEndpointServiceConfigurationRequest added in v0.2.0

CreateVpcEndpointServiceConfigurationRequest is the request type for the CreateVpcEndpointServiceConfiguration API operation.

func (CreateVpcEndpointServiceConfigurationRequest) Send added in v0.2.0

Send marshals and sends the CreateVpcEndpointServiceConfiguration API request.

type CreateVpcEndpointServiceConfigurationResponse added in v0.9.0

type CreateVpcEndpointServiceConfigurationResponse struct {
	*CreateVpcEndpointServiceConfigurationOutput
	// contains filtered or unexported fields
}

CreateVpcEndpointServiceConfigurationResponse is the response type for the CreateVpcEndpointServiceConfiguration API operation.

func (*CreateVpcEndpointServiceConfigurationResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the CreateVpcEndpointServiceConfiguration request.

type CreateVpcInput

type CreateVpcInput struct {

	// Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
	// the VPC. You cannot specify the range of IP addresses, or the size of the
	// CIDR block.
	AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`

	// The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
	// We modify the specified CIDR block to its canonical form; for example, if
	// you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.
	//
	// CidrBlock is a required field
	CidrBlock *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The tenancy options for instances launched into the VPC. For default, instances
	// are launched with shared tenancy by default. You can launch instances with
	// any tenancy into a shared tenancy VPC. For dedicated, instances are launched
	// as dedicated tenancy instances by default. You can only launch instances
	// with a tenancy of dedicated or host into a dedicated tenancy VPC.
	//
	// Important: The host value cannot be used with this parameter. Use the default
	// or dedicated values only.
	//
	// Default: default
	InstanceTenancy Tenancy `locationName:"instanceTenancy" type:"string" enum:"true"`

	// The IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool
	// in the request.
	//
	// To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
	Ipv6CidrBlock *string `type:"string"`

	// The name of the location from which we advertise the IPV6 CIDR block. Use
	// this parameter to limit the address to this location.
	//
	// You must set AmazonProvidedIpv6CidrBlock to true to use this parameter.
	Ipv6CidrBlockNetworkBorderGroup *string `type:"string"`

	// The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
	Ipv6Pool *string `type:"string"`

	// The tags to assign to the VPC.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (CreateVpcInput) String

func (s CreateVpcInput) String() string

String returns the string representation

func (*CreateVpcInput) Validate

func (s *CreateVpcInput) Validate() error

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

type CreateVpcOutput

type CreateVpcOutput struct {

	// Information about the VPC.
	Vpc *Vpc `locationName:"vpc" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateVpcOutput) String

func (s CreateVpcOutput) String() string

String returns the string representation

type CreateVpcPeeringConnectionInput

type CreateVpcPeeringConnectionInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The AWS account ID of the owner of the accepter VPC.
	//
	// Default: Your AWS account ID
	PeerOwnerId *string `locationName:"peerOwnerId" type:"string"`

	// The Region code for the accepter VPC, if the accepter VPC is located in a
	// Region other than the Region in which you make the request.
	//
	// Default: The Region in which you make the request.
	PeerRegion *string `type:"string"`

	// The ID of the VPC with which you are creating the VPC peering connection.
	// You must specify this parameter in the request.
	PeerVpcId *string `locationName:"peerVpcId" type:"string"`

	// The tags to assign to the peering connection.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The ID of the requester VPC. You must specify this parameter in the request.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

func (CreateVpcPeeringConnectionInput) String

String returns the string representation

type CreateVpcPeeringConnectionOutput

type CreateVpcPeeringConnectionOutput struct {

	// Information about the VPC peering connection.
	VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateVpcPeeringConnectionOutput) String

String returns the string representation

type CreateVpcPeeringConnectionRequest

type CreateVpcPeeringConnectionRequest struct {
	*aws.Request
	Input *CreateVpcPeeringConnectionInput
	Copy  func(*CreateVpcPeeringConnectionInput) CreateVpcPeeringConnectionRequest
}

CreateVpcPeeringConnectionRequest is the request type for the CreateVpcPeeringConnection API operation.

func (CreateVpcPeeringConnectionRequest) Send

Send marshals and sends the CreateVpcPeeringConnection API request.

type CreateVpcPeeringConnectionResponse added in v0.9.0

type CreateVpcPeeringConnectionResponse struct {
	*CreateVpcPeeringConnectionOutput
	// contains filtered or unexported fields
}

CreateVpcPeeringConnectionResponse is the response type for the CreateVpcPeeringConnection API operation.

func (*CreateVpcPeeringConnectionResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateVpcPeeringConnectionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateVpcPeeringConnection request.

type CreateVpcRequest

type CreateVpcRequest struct {
	*aws.Request
	Input *CreateVpcInput
	Copy  func(*CreateVpcInput) CreateVpcRequest
}

CreateVpcRequest is the request type for the CreateVpc API operation.

func (CreateVpcRequest) Send

Send marshals and sends the CreateVpc API request.

type CreateVpcResponse added in v0.9.0

type CreateVpcResponse struct {
	*CreateVpcOutput
	// contains filtered or unexported fields
}

CreateVpcResponse is the response type for the CreateVpc API operation.

func (*CreateVpcResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateVpcResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateVpc request.

type CreateVpnConnectionInput

type CreateVpnConnectionInput struct {

	// The ID of the customer gateway.
	//
	// CustomerGatewayId is a required field
	CustomerGatewayId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The options for the VPN connection.
	Options *VpnConnectionOptionsSpecification `locationName:"options" type:"structure"`

	// The ID of the transit gateway. If you specify a transit gateway, you cannot
	// specify a virtual private gateway.
	TransitGatewayId *string `type:"string"`

	// The type of VPN connection (ipsec.1).
	//
	// Type is a required field
	Type *string `type:"string" required:"true"`

	// The ID of the virtual private gateway. If you specify a virtual private gateway,
	// you cannot specify a transit gateway.
	VpnGatewayId *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the parameters for CreateVpnConnection.

func (CreateVpnConnectionInput) String

func (s CreateVpnConnectionInput) String() string

String returns the string representation

func (*CreateVpnConnectionInput) Validate

func (s *CreateVpnConnectionInput) Validate() error

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

type CreateVpnConnectionOutput

type CreateVpnConnectionOutput struct {

	// Information about the VPN connection.
	VpnConnection *VpnConnection `locationName:"vpnConnection" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of CreateVpnConnection.

func (CreateVpnConnectionOutput) String

func (s CreateVpnConnectionOutput) String() string

String returns the string representation

type CreateVpnConnectionRequest

type CreateVpnConnectionRequest struct {
	*aws.Request
	Input *CreateVpnConnectionInput
	Copy  func(*CreateVpnConnectionInput) CreateVpnConnectionRequest
}

CreateVpnConnectionRequest is the request type for the CreateVpnConnection API operation.

func (CreateVpnConnectionRequest) Send

Send marshals and sends the CreateVpnConnection API request.

type CreateVpnConnectionResponse added in v0.9.0

type CreateVpnConnectionResponse struct {
	*CreateVpnConnectionOutput
	// contains filtered or unexported fields
}

CreateVpnConnectionResponse is the response type for the CreateVpnConnection API operation.

func (*CreateVpnConnectionResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateVpnConnectionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateVpnConnection request.

type CreateVpnConnectionRouteInput

type CreateVpnConnectionRouteInput struct {

	// The CIDR block associated with the local subnet of the customer network.
	//
	// DestinationCidrBlock is a required field
	DestinationCidrBlock *string `type:"string" required:"true"`

	// The ID of the VPN connection.
	//
	// VpnConnectionId is a required field
	VpnConnectionId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for CreateVpnConnectionRoute.

func (CreateVpnConnectionRouteInput) String

String returns the string representation

func (*CreateVpnConnectionRouteInput) Validate

func (s *CreateVpnConnectionRouteInput) Validate() error

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

type CreateVpnConnectionRouteOutput

type CreateVpnConnectionRouteOutput struct {
	// contains filtered or unexported fields
}

func (CreateVpnConnectionRouteOutput) String

String returns the string representation

type CreateVpnConnectionRouteRequest

type CreateVpnConnectionRouteRequest struct {
	*aws.Request
	Input *CreateVpnConnectionRouteInput
	Copy  func(*CreateVpnConnectionRouteInput) CreateVpnConnectionRouteRequest
}

CreateVpnConnectionRouteRequest is the request type for the CreateVpnConnectionRoute API operation.

func (CreateVpnConnectionRouteRequest) Send

Send marshals and sends the CreateVpnConnectionRoute API request.

type CreateVpnConnectionRouteResponse added in v0.9.0

type CreateVpnConnectionRouteResponse struct {
	*CreateVpnConnectionRouteOutput
	// contains filtered or unexported fields
}

CreateVpnConnectionRouteResponse is the response type for the CreateVpnConnectionRoute API operation.

func (*CreateVpnConnectionRouteResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateVpnConnectionRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateVpnConnectionRoute request.

type CreateVpnGatewayInput

type CreateVpnGatewayInput struct {

	// A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
	// If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If
	// you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
	//
	// Default: 64512
	AmazonSideAsn *int64 `type:"long"`

	// The Availability Zone for the virtual private gateway.
	AvailabilityZone *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The type of VPN connection this virtual private gateway supports.
	//
	// Type is a required field
	Type GatewayType `type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for CreateVpnGateway.

func (CreateVpnGatewayInput) String

func (s CreateVpnGatewayInput) String() string

String returns the string representation

func (*CreateVpnGatewayInput) Validate

func (s *CreateVpnGatewayInput) Validate() error

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

type CreateVpnGatewayOutput

type CreateVpnGatewayOutput struct {

	// Information about the virtual private gateway.
	VpnGateway *VpnGateway `locationName:"vpnGateway" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of CreateVpnGateway.

func (CreateVpnGatewayOutput) String

func (s CreateVpnGatewayOutput) String() string

String returns the string representation

type CreateVpnGatewayRequest

type CreateVpnGatewayRequest struct {
	*aws.Request
	Input *CreateVpnGatewayInput
	Copy  func(*CreateVpnGatewayInput) CreateVpnGatewayRequest
}

CreateVpnGatewayRequest is the request type for the CreateVpnGateway API operation.

func (CreateVpnGatewayRequest) Send

Send marshals and sends the CreateVpnGateway API request.

type CreateVpnGatewayResponse added in v0.9.0

type CreateVpnGatewayResponse struct {
	*CreateVpnGatewayOutput
	// contains filtered or unexported fields
}

CreateVpnGatewayResponse is the response type for the CreateVpnGateway API operation.

func (*CreateVpnGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateVpnGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateVpnGateway request.

type CreditSpecification added in v0.2.0

type CreditSpecification struct {

	// The credit option for CPU usage of a T2, T3, or T3a instance. Valid values
	// are standard and unlimited.
	CpuCredits *string `locationName:"cpuCredits" type:"string"`
	// contains filtered or unexported fields
}

Describes the credit option for CPU usage of a T2, T3, or T3a instance.

func (CreditSpecification) String added in v0.2.0

func (s CreditSpecification) String() string

String returns the string representation

type CreditSpecificationRequest added in v0.2.0

type CreditSpecificationRequest struct {

	// The credit option for CPU usage of a T2, T3, or T3a instance. Valid values
	// are standard and unlimited.
	//
	// CpuCredits is a required field
	CpuCredits *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

The credit option for CPU usage of a T2, T3, or T3a instance.

func (CreditSpecificationRequest) String added in v0.2.0

String returns the string representation

func (*CreditSpecificationRequest) Validate added in v0.2.0

func (s *CreditSpecificationRequest) Validate() error

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

type CurrencyCodeValues

type CurrencyCodeValues string
const (
	CurrencyCodeValuesUsd CurrencyCodeValues = "USD"
)

Enum values for CurrencyCodeValues

func (CurrencyCodeValues) MarshalValue added in v0.3.0

func (enum CurrencyCodeValues) MarshalValue() (string, error)

func (CurrencyCodeValues) MarshalValueBuf added in v0.3.0

func (enum CurrencyCodeValues) MarshalValueBuf(b []byte) ([]byte, error)

type CustomerGateway

type CustomerGateway struct {

	// The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number
	// (ASN).
	BgpAsn *string `locationName:"bgpAsn" type:"string"`

	// The Amazon Resource Name (ARN) for the customer gateway certificate.
	CertificateArn *string `locationName:"certificateArn" type:"string"`

	// The ID of the customer gateway.
	CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`

	// The name of customer gateway device.
	DeviceName *string `locationName:"deviceName" type:"string"`

	// The Internet-routable IP address of the customer gateway's outside interface.
	IpAddress *string `locationName:"ipAddress" type:"string"`

	// The current state of the customer gateway (pending | available | deleting
	// | deleted).
	State *string `locationName:"state" type:"string"`

	// Any tags assigned to the customer gateway.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The type of VPN connection the customer gateway supports (ipsec.1).
	Type *string `locationName:"type" type:"string"`
	// contains filtered or unexported fields
}

Describes a customer gateway.

func (CustomerGateway) String

func (s CustomerGateway) String() string

String returns the string representation

type Data added in v0.9.0

type Data struct {

	// A user-defined comment about the disk upload.
	Comment *string `type:"string"`

	// The time that the disk upload ends.
	UploadEnd *time.Time `type:"timestamp"`

	// The size of the uploaded disk image, in GiB.
	UploadSize *float64 `type:"double"`

	// The time that the disk upload starts.
	UploadStart *time.Time `type:"timestamp"`
	// contains filtered or unexported fields
}

Describes the client-specific data.

func (Data) String added in v0.9.0

func (s Data) String() string

String returns the string representation

type DatafeedSubscriptionState

type DatafeedSubscriptionState string
const (
	DatafeedSubscriptionStateActive   DatafeedSubscriptionState = "Active"
	DatafeedSubscriptionStateInactive DatafeedSubscriptionState = "Inactive"
)

Enum values for DatafeedSubscriptionState

func (DatafeedSubscriptionState) MarshalValue added in v0.3.0

func (enum DatafeedSubscriptionState) MarshalValue() (string, error)

func (DatafeedSubscriptionState) MarshalValueBuf added in v0.3.0

func (enum DatafeedSubscriptionState) MarshalValueBuf(b []byte) ([]byte, error)

type DefaultRouteTableAssociationValue added in v0.6.0

type DefaultRouteTableAssociationValue string
const (
	DefaultRouteTableAssociationValueEnable  DefaultRouteTableAssociationValue = "enable"
	DefaultRouteTableAssociationValueDisable DefaultRouteTableAssociationValue = "disable"
)

Enum values for DefaultRouteTableAssociationValue

func (DefaultRouteTableAssociationValue) MarshalValue added in v0.6.0

func (enum DefaultRouteTableAssociationValue) MarshalValue() (string, error)

func (DefaultRouteTableAssociationValue) MarshalValueBuf added in v0.6.0

func (enum DefaultRouteTableAssociationValue) MarshalValueBuf(b []byte) ([]byte, error)

type DefaultRouteTablePropagationValue added in v0.6.0

type DefaultRouteTablePropagationValue string
const (
	DefaultRouteTablePropagationValueEnable  DefaultRouteTablePropagationValue = "enable"
	DefaultRouteTablePropagationValueDisable DefaultRouteTablePropagationValue = "disable"
)

Enum values for DefaultRouteTablePropagationValue

func (DefaultRouteTablePropagationValue) MarshalValue added in v0.6.0

func (enum DefaultRouteTablePropagationValue) MarshalValue() (string, error)

func (DefaultRouteTablePropagationValue) MarshalValueBuf added in v0.6.0

func (enum DefaultRouteTablePropagationValue) MarshalValueBuf(b []byte) ([]byte, error)

type DefaultTargetCapacityType added in v0.4.0

type DefaultTargetCapacityType string
const (
	DefaultTargetCapacityTypeSpot     DefaultTargetCapacityType = "spot"
	DefaultTargetCapacityTypeOnDemand DefaultTargetCapacityType = "on-demand"
)

Enum values for DefaultTargetCapacityType

func (DefaultTargetCapacityType) MarshalValue added in v0.4.0

func (enum DefaultTargetCapacityType) MarshalValue() (string, error)

func (DefaultTargetCapacityType) MarshalValueBuf added in v0.4.0

func (enum DefaultTargetCapacityType) MarshalValueBuf(b []byte) ([]byte, error)

type DeleteClientVpnEndpointInput added in v0.7.0

type DeleteClientVpnEndpointInput struct {

	// The ID of the Client VPN to be deleted.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (DeleteClientVpnEndpointInput) String added in v0.7.0

String returns the string representation

func (*DeleteClientVpnEndpointInput) Validate added in v0.7.0

func (s *DeleteClientVpnEndpointInput) Validate() error

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

type DeleteClientVpnEndpointOutput added in v0.7.0

type DeleteClientVpnEndpointOutput struct {

	// The current state of the Client VPN endpoint.
	Status *VpnEndpointStatus `locationName:"status" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteClientVpnEndpointOutput) String added in v0.7.0

String returns the string representation

type DeleteClientVpnEndpointRequest added in v0.7.0

type DeleteClientVpnEndpointRequest struct {
	*aws.Request
	Input *DeleteClientVpnEndpointInput
	Copy  func(*DeleteClientVpnEndpointInput) DeleteClientVpnEndpointRequest
}

DeleteClientVpnEndpointRequest is the request type for the DeleteClientVpnEndpoint API operation.

func (DeleteClientVpnEndpointRequest) Send added in v0.7.0

Send marshals and sends the DeleteClientVpnEndpoint API request.

type DeleteClientVpnEndpointResponse added in v0.9.0

type DeleteClientVpnEndpointResponse struct {
	*DeleteClientVpnEndpointOutput
	// contains filtered or unexported fields
}

DeleteClientVpnEndpointResponse is the response type for the DeleteClientVpnEndpoint API operation.

func (*DeleteClientVpnEndpointResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteClientVpnEndpointResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteClientVpnEndpoint request.

type DeleteClientVpnRouteInput added in v0.7.0

type DeleteClientVpnRouteInput struct {

	// The ID of the Client VPN endpoint from which the route is to be deleted.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// The IPv4 address range, in CIDR notation, of the route to be deleted.
	//
	// DestinationCidrBlock is a required field
	DestinationCidrBlock *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the target subnet used by the route.
	TargetVpcSubnetId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DeleteClientVpnRouteInput) String added in v0.7.0

func (s DeleteClientVpnRouteInput) String() string

String returns the string representation

func (*DeleteClientVpnRouteInput) Validate added in v0.7.0

func (s *DeleteClientVpnRouteInput) Validate() error

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

type DeleteClientVpnRouteOutput added in v0.7.0

type DeleteClientVpnRouteOutput struct {

	// The current state of the route.
	Status *VpnRouteStatus `locationName:"status" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteClientVpnRouteOutput) String added in v0.7.0

String returns the string representation

type DeleteClientVpnRouteRequest added in v0.7.0

type DeleteClientVpnRouteRequest struct {
	*aws.Request
	Input *DeleteClientVpnRouteInput
	Copy  func(*DeleteClientVpnRouteInput) DeleteClientVpnRouteRequest
}

DeleteClientVpnRouteRequest is the request type for the DeleteClientVpnRoute API operation.

func (DeleteClientVpnRouteRequest) Send added in v0.7.0

Send marshals and sends the DeleteClientVpnRoute API request.

type DeleteClientVpnRouteResponse added in v0.9.0

type DeleteClientVpnRouteResponse struct {
	*DeleteClientVpnRouteOutput
	// contains filtered or unexported fields
}

DeleteClientVpnRouteResponse is the response type for the DeleteClientVpnRoute API operation.

func (*DeleteClientVpnRouteResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteClientVpnRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteClientVpnRoute request.

type DeleteCustomerGatewayInput

type DeleteCustomerGatewayInput struct {

	// The ID of the customer gateway.
	//
	// CustomerGatewayId is a required field
	CustomerGatewayId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`
	// contains filtered or unexported fields
}

Contains the parameters for DeleteCustomerGateway.

func (DeleteCustomerGatewayInput) String

String returns the string representation

func (*DeleteCustomerGatewayInput) Validate

func (s *DeleteCustomerGatewayInput) Validate() error

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

type DeleteCustomerGatewayOutput

type DeleteCustomerGatewayOutput struct {
	// contains filtered or unexported fields
}

func (DeleteCustomerGatewayOutput) String

String returns the string representation

type DeleteCustomerGatewayRequest

type DeleteCustomerGatewayRequest struct {
	*aws.Request
	Input *DeleteCustomerGatewayInput
	Copy  func(*DeleteCustomerGatewayInput) DeleteCustomerGatewayRequest
}

DeleteCustomerGatewayRequest is the request type for the DeleteCustomerGateway API operation.

func (DeleteCustomerGatewayRequest) Send

Send marshals and sends the DeleteCustomerGateway API request.

type DeleteCustomerGatewayResponse added in v0.9.0

type DeleteCustomerGatewayResponse struct {
	*DeleteCustomerGatewayOutput
	// contains filtered or unexported fields
}

DeleteCustomerGatewayResponse is the response type for the DeleteCustomerGateway API operation.

func (*DeleteCustomerGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteCustomerGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteCustomerGateway request.

type DeleteDhcpOptionsInput

type DeleteDhcpOptionsInput struct {

	// The ID of the DHCP options set.
	//
	// DhcpOptionsId is a required field
	DhcpOptionsId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`
	// contains filtered or unexported fields
}

func (DeleteDhcpOptionsInput) String

func (s DeleteDhcpOptionsInput) String() string

String returns the string representation

func (*DeleteDhcpOptionsInput) Validate

func (s *DeleteDhcpOptionsInput) Validate() error

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

type DeleteDhcpOptionsOutput

type DeleteDhcpOptionsOutput struct {
	// contains filtered or unexported fields
}

func (DeleteDhcpOptionsOutput) String

func (s DeleteDhcpOptionsOutput) String() string

String returns the string representation

type DeleteDhcpOptionsRequest

type DeleteDhcpOptionsRequest struct {
	*aws.Request
	Input *DeleteDhcpOptionsInput
	Copy  func(*DeleteDhcpOptionsInput) DeleteDhcpOptionsRequest
}

DeleteDhcpOptionsRequest is the request type for the DeleteDhcpOptions API operation.

func (DeleteDhcpOptionsRequest) Send

Send marshals and sends the DeleteDhcpOptions API request.

type DeleteDhcpOptionsResponse added in v0.9.0

type DeleteDhcpOptionsResponse struct {
	*DeleteDhcpOptionsOutput
	// contains filtered or unexported fields
}

DeleteDhcpOptionsResponse is the response type for the DeleteDhcpOptions API operation.

func (*DeleteDhcpOptionsResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteDhcpOptionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteDhcpOptions request.

type DeleteEgressOnlyInternetGatewayInput

type DeleteEgressOnlyInternetGatewayInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the egress-only internet gateway.
	//
	// EgressOnlyInternetGatewayId is a required field
	EgressOnlyInternetGatewayId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteEgressOnlyInternetGatewayInput) String

String returns the string representation

func (*DeleteEgressOnlyInternetGatewayInput) Validate

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

type DeleteEgressOnlyInternetGatewayOutput

type DeleteEgressOnlyInternetGatewayOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	ReturnCode *bool `locationName:"returnCode" type:"boolean"`
	// contains filtered or unexported fields
}

func (DeleteEgressOnlyInternetGatewayOutput) String

String returns the string representation

type DeleteEgressOnlyInternetGatewayRequest

type DeleteEgressOnlyInternetGatewayRequest struct {
	*aws.Request
	Input *DeleteEgressOnlyInternetGatewayInput
	Copy  func(*DeleteEgressOnlyInternetGatewayInput) DeleteEgressOnlyInternetGatewayRequest
}

DeleteEgressOnlyInternetGatewayRequest is the request type for the DeleteEgressOnlyInternetGateway API operation.

func (DeleteEgressOnlyInternetGatewayRequest) Send

Send marshals and sends the DeleteEgressOnlyInternetGateway API request.

type DeleteEgressOnlyInternetGatewayResponse added in v0.9.0

type DeleteEgressOnlyInternetGatewayResponse struct {
	*DeleteEgressOnlyInternetGatewayOutput
	// contains filtered or unexported fields
}

DeleteEgressOnlyInternetGatewayResponse is the response type for the DeleteEgressOnlyInternetGateway API operation.

func (*DeleteEgressOnlyInternetGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteEgressOnlyInternetGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteEgressOnlyInternetGateway request.

type DeleteFleetError added in v0.4.0

type DeleteFleetError struct {

	// The error code.
	Code DeleteFleetErrorCode `locationName:"code" type:"string" enum:"true"`

	// The description for the error code.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes an EC2 Fleet error.

func (DeleteFleetError) String added in v0.4.0

func (s DeleteFleetError) String() string

String returns the string representation

type DeleteFleetErrorCode added in v0.4.0

type DeleteFleetErrorCode string
const (
	DeleteFleetErrorCodeFleetIdDoesNotExist      DeleteFleetErrorCode = "fleetIdDoesNotExist"
	DeleteFleetErrorCodeFleetIdMalformed         DeleteFleetErrorCode = "fleetIdMalformed"
	DeleteFleetErrorCodeFleetNotInDeletableState DeleteFleetErrorCode = "fleetNotInDeletableState"
	DeleteFleetErrorCodeUnexpectedError          DeleteFleetErrorCode = "unexpectedError"
)

Enum values for DeleteFleetErrorCode

func (DeleteFleetErrorCode) MarshalValue added in v0.4.0

func (enum DeleteFleetErrorCode) MarshalValue() (string, error)

func (DeleteFleetErrorCode) MarshalValueBuf added in v0.4.0

func (enum DeleteFleetErrorCode) MarshalValueBuf(b []byte) ([]byte, error)

type DeleteFleetErrorItem added in v0.4.0

type DeleteFleetErrorItem struct {

	// The error.
	Error *DeleteFleetError `locationName:"error" type:"structure"`

	// The ID of the EC2 Fleet.
	FleetId *string `locationName:"fleetId" type:"string"`
	// contains filtered or unexported fields
}

Describes an EC2 Fleet that was not successfully deleted.

func (DeleteFleetErrorItem) String added in v0.4.0

func (s DeleteFleetErrorItem) String() string

String returns the string representation

type DeleteFleetSuccessItem added in v0.4.0

type DeleteFleetSuccessItem struct {

	// The current state of the EC2 Fleet.
	CurrentFleetState FleetStateCode `locationName:"currentFleetState" type:"string" enum:"true"`

	// The ID of the EC2 Fleet.
	FleetId *string `locationName:"fleetId" type:"string"`

	// The previous state of the EC2 Fleet.
	PreviousFleetState FleetStateCode `locationName:"previousFleetState" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes an EC2 Fleet that was successfully deleted.

func (DeleteFleetSuccessItem) String added in v0.4.0

func (s DeleteFleetSuccessItem) String() string

String returns the string representation

type DeleteFleetsInput added in v0.4.0

type DeleteFleetsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of the EC2 Fleets.
	//
	// FleetIds is a required field
	FleetIds []string `locationName:"FleetId" type:"list" required:"true"`

	// Indicates whether to terminate instances for an EC2 Fleet if it is deleted
	// successfully.
	//
	// TerminateInstances is a required field
	TerminateInstances *bool `type:"boolean" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteFleetsInput) String added in v0.4.0

func (s DeleteFleetsInput) String() string

String returns the string representation

func (*DeleteFleetsInput) Validate added in v0.4.0

func (s *DeleteFleetsInput) Validate() error

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

type DeleteFleetsOutput added in v0.4.0

type DeleteFleetsOutput struct {

	// Information about the EC2 Fleets that are successfully deleted.
	SuccessfulFleetDeletions []DeleteFleetSuccessItem `locationName:"successfulFleetDeletionSet" locationNameList:"item" type:"list"`

	// Information about the EC2 Fleets that are not successfully deleted.
	UnsuccessfulFleetDeletions []DeleteFleetErrorItem `locationName:"unsuccessfulFleetDeletionSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DeleteFleetsOutput) String added in v0.4.0

func (s DeleteFleetsOutput) String() string

String returns the string representation

type DeleteFleetsRequest added in v0.4.0

type DeleteFleetsRequest struct {
	*aws.Request
	Input *DeleteFleetsInput
	Copy  func(*DeleteFleetsInput) DeleteFleetsRequest
}

DeleteFleetsRequest is the request type for the DeleteFleets API operation.

func (DeleteFleetsRequest) Send added in v0.4.0

Send marshals and sends the DeleteFleets API request.

type DeleteFleetsResponse added in v0.9.0

type DeleteFleetsResponse struct {
	*DeleteFleetsOutput
	// contains filtered or unexported fields
}

DeleteFleetsResponse is the response type for the DeleteFleets API operation.

func (*DeleteFleetsResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteFleetsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteFleets request.

type DeleteFlowLogsInput

type DeleteFlowLogsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more flow log IDs.
	//
	// Constraint: Maximum of 1000 flow log IDs.
	//
	// FlowLogIds is a required field
	FlowLogIds []string `locationName:"FlowLogId" locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteFlowLogsInput) String

func (s DeleteFlowLogsInput) String() string

String returns the string representation

func (*DeleteFlowLogsInput) Validate

func (s *DeleteFlowLogsInput) Validate() error

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

type DeleteFlowLogsOutput

type DeleteFlowLogsOutput struct {

	// Information about the flow logs that could not be deleted successfully.
	Unsuccessful []UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DeleteFlowLogsOutput) String

func (s DeleteFlowLogsOutput) String() string

String returns the string representation

type DeleteFlowLogsRequest

type DeleteFlowLogsRequest struct {
	*aws.Request
	Input *DeleteFlowLogsInput
	Copy  func(*DeleteFlowLogsInput) DeleteFlowLogsRequest
}

DeleteFlowLogsRequest is the request type for the DeleteFlowLogs API operation.

func (DeleteFlowLogsRequest) Send

Send marshals and sends the DeleteFlowLogs API request.

type DeleteFlowLogsResponse added in v0.9.0

type DeleteFlowLogsResponse struct {
	*DeleteFlowLogsOutput
	// contains filtered or unexported fields
}

DeleteFlowLogsResponse is the response type for the DeleteFlowLogs API operation.

func (*DeleteFlowLogsResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteFlowLogsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteFlowLogs request.

type DeleteFpgaImageInput

type DeleteFpgaImageInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the AFI.
	//
	// FpgaImageId is a required field
	FpgaImageId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteFpgaImageInput) String

func (s DeleteFpgaImageInput) String() string

String returns the string representation

func (*DeleteFpgaImageInput) Validate

func (s *DeleteFpgaImageInput) Validate() error

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

type DeleteFpgaImageOutput

type DeleteFpgaImageOutput struct {

	// Is true if the request succeeds, and an error otherwise.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (DeleteFpgaImageOutput) String

func (s DeleteFpgaImageOutput) String() string

String returns the string representation

type DeleteFpgaImageRequest

type DeleteFpgaImageRequest struct {
	*aws.Request
	Input *DeleteFpgaImageInput
	Copy  func(*DeleteFpgaImageInput) DeleteFpgaImageRequest
}

DeleteFpgaImageRequest is the request type for the DeleteFpgaImage API operation.

func (DeleteFpgaImageRequest) Send

Send marshals and sends the DeleteFpgaImage API request.

type DeleteFpgaImageResponse added in v0.9.0

type DeleteFpgaImageResponse struct {
	*DeleteFpgaImageOutput
	// contains filtered or unexported fields
}

DeleteFpgaImageResponse is the response type for the DeleteFpgaImage API operation.

func (*DeleteFpgaImageResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteFpgaImageResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteFpgaImage request.

type DeleteInternetGatewayInput

type DeleteInternetGatewayInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the internet gateway.
	//
	// InternetGatewayId is a required field
	InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteInternetGatewayInput) String

String returns the string representation

func (*DeleteInternetGatewayInput) Validate

func (s *DeleteInternetGatewayInput) Validate() error

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

type DeleteInternetGatewayOutput

type DeleteInternetGatewayOutput struct {
	// contains filtered or unexported fields
}

func (DeleteInternetGatewayOutput) String

String returns the string representation

type DeleteInternetGatewayRequest

type DeleteInternetGatewayRequest struct {
	*aws.Request
	Input *DeleteInternetGatewayInput
	Copy  func(*DeleteInternetGatewayInput) DeleteInternetGatewayRequest
}

DeleteInternetGatewayRequest is the request type for the DeleteInternetGateway API operation.

func (DeleteInternetGatewayRequest) Send

Send marshals and sends the DeleteInternetGateway API request.

type DeleteInternetGatewayResponse added in v0.9.0

type DeleteInternetGatewayResponse struct {
	*DeleteInternetGatewayOutput
	// contains filtered or unexported fields
}

DeleteInternetGatewayResponse is the response type for the DeleteInternetGateway API operation.

func (*DeleteInternetGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteInternetGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteInternetGateway request.

type DeleteKeyPairInput

type DeleteKeyPairInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The name of the key pair.
	KeyName *string `type:"string"`

	// The ID of the key pair.
	KeyPairId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DeleteKeyPairInput) String

func (s DeleteKeyPairInput) String() string

String returns the string representation

type DeleteKeyPairOutput

type DeleteKeyPairOutput struct {
	// contains filtered or unexported fields
}

func (DeleteKeyPairOutput) String

func (s DeleteKeyPairOutput) String() string

String returns the string representation

type DeleteKeyPairRequest

type DeleteKeyPairRequest struct {
	*aws.Request
	Input *DeleteKeyPairInput
	Copy  func(*DeleteKeyPairInput) DeleteKeyPairRequest
}

DeleteKeyPairRequest is the request type for the DeleteKeyPair API operation.

func (DeleteKeyPairRequest) Send

Send marshals and sends the DeleteKeyPair API request.

type DeleteKeyPairResponse added in v0.9.0

type DeleteKeyPairResponse struct {
	*DeleteKeyPairOutput
	// contains filtered or unexported fields
}

DeleteKeyPairResponse is the response type for the DeleteKeyPair API operation.

func (*DeleteKeyPairResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteKeyPairResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteKeyPair request.

type DeleteLaunchTemplateInput added in v0.2.0

type DeleteLaunchTemplateInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the launch template. You must specify either the launch template
	// ID or launch template name in the request.
	LaunchTemplateId *string `type:"string"`

	// The name of the launch template. You must specify either the launch template
	// ID or launch template name in the request.
	LaunchTemplateName *string `min:"3" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteLaunchTemplateInput) String added in v0.2.0

func (s DeleteLaunchTemplateInput) String() string

String returns the string representation

func (*DeleteLaunchTemplateInput) Validate added in v0.2.0

func (s *DeleteLaunchTemplateInput) Validate() error

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

type DeleteLaunchTemplateOutput added in v0.2.0

type DeleteLaunchTemplateOutput struct {

	// Information about the launch template.
	LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteLaunchTemplateOutput) String added in v0.2.0

String returns the string representation

type DeleteLaunchTemplateRequest added in v0.2.0

type DeleteLaunchTemplateRequest struct {
	*aws.Request
	Input *DeleteLaunchTemplateInput
	Copy  func(*DeleteLaunchTemplateInput) DeleteLaunchTemplateRequest
}

DeleteLaunchTemplateRequest is the request type for the DeleteLaunchTemplate API operation.

func (DeleteLaunchTemplateRequest) Send added in v0.2.0

Send marshals and sends the DeleteLaunchTemplate API request.

type DeleteLaunchTemplateResponse added in v0.9.0

type DeleteLaunchTemplateResponse struct {
	*DeleteLaunchTemplateOutput
	// contains filtered or unexported fields
}

DeleteLaunchTemplateResponse is the response type for the DeleteLaunchTemplate API operation.

func (*DeleteLaunchTemplateResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteLaunchTemplateResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteLaunchTemplate request.

type DeleteLaunchTemplateVersionsInput added in v0.2.0

type DeleteLaunchTemplateVersionsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the launch template. You must specify either the launch template
	// ID or launch template name in the request.
	LaunchTemplateId *string `type:"string"`

	// The name of the launch template. You must specify either the launch template
	// ID or launch template name in the request.
	LaunchTemplateName *string `min:"3" type:"string"`

	// The version numbers of one or more launch template versions to delete.
	//
	// Versions is a required field
	Versions []string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteLaunchTemplateVersionsInput) String added in v0.2.0

String returns the string representation

func (*DeleteLaunchTemplateVersionsInput) Validate added in v0.2.0

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

type DeleteLaunchTemplateVersionsOutput added in v0.2.0

type DeleteLaunchTemplateVersionsOutput struct {

	// Information about the launch template versions that were successfully deleted.
	SuccessfullyDeletedLaunchTemplateVersions []DeleteLaunchTemplateVersionsResponseSuccessItem `locationName:"successfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"`

	// Information about the launch template versions that could not be deleted.
	UnsuccessfullyDeletedLaunchTemplateVersions []DeleteLaunchTemplateVersionsResponseErrorItem `locationName:"unsuccessfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DeleteLaunchTemplateVersionsOutput) String added in v0.2.0

String returns the string representation

type DeleteLaunchTemplateVersionsRequest added in v0.2.0

type DeleteLaunchTemplateVersionsRequest struct {
	*aws.Request
	Input *DeleteLaunchTemplateVersionsInput
	Copy  func(*DeleteLaunchTemplateVersionsInput) DeleteLaunchTemplateVersionsRequest
}

DeleteLaunchTemplateVersionsRequest is the request type for the DeleteLaunchTemplateVersions API operation.

func (DeleteLaunchTemplateVersionsRequest) Send added in v0.2.0

Send marshals and sends the DeleteLaunchTemplateVersions API request.

type DeleteLaunchTemplateVersionsResponse added in v0.9.0

type DeleteLaunchTemplateVersionsResponse struct {
	*DeleteLaunchTemplateVersionsOutput
	// contains filtered or unexported fields
}

DeleteLaunchTemplateVersionsResponse is the response type for the DeleteLaunchTemplateVersions API operation.

func (*DeleteLaunchTemplateVersionsResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteLaunchTemplateVersionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteLaunchTemplateVersions request.

type DeleteLaunchTemplateVersionsResponseErrorItem added in v0.2.0

type DeleteLaunchTemplateVersionsResponseErrorItem struct {

	// The ID of the launch template.
	LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`

	// The name of the launch template.
	LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"`

	// Information about the error.
	ResponseError *ResponseError `locationName:"responseError" type:"structure"`

	// The version number of the launch template.
	VersionNumber *int64 `locationName:"versionNumber" type:"long"`
	// contains filtered or unexported fields
}

Describes a launch template version that could not be deleted.

func (DeleteLaunchTemplateVersionsResponseErrorItem) String added in v0.2.0

String returns the string representation

type DeleteLaunchTemplateVersionsResponseSuccessItem added in v0.2.0

type DeleteLaunchTemplateVersionsResponseSuccessItem struct {

	// The ID of the launch template.
	LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`

	// The name of the launch template.
	LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"`

	// The version number of the launch template.
	VersionNumber *int64 `locationName:"versionNumber" type:"long"`
	// contains filtered or unexported fields
}

Describes a launch template version that was successfully deleted.

func (DeleteLaunchTemplateVersionsResponseSuccessItem) String added in v0.2.0

String returns the string representation

type DeleteLocalGatewayRouteInput added in v0.18.0

type DeleteLocalGatewayRouteInput struct {

	// The CIDR range for the route. This must match the CIDR for the route exactly.
	//
	// DestinationCidrBlock is a required field
	DestinationCidrBlock *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the local gateway route table.
	//
	// LocalGatewayRouteTableId is a required field
	LocalGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteLocalGatewayRouteInput) String added in v0.18.0

String returns the string representation

func (*DeleteLocalGatewayRouteInput) Validate added in v0.18.0

func (s *DeleteLocalGatewayRouteInput) Validate() error

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

type DeleteLocalGatewayRouteOutput added in v0.18.0

type DeleteLocalGatewayRouteOutput struct {

	// Information about the route.
	Route *LocalGatewayRoute `locationName:"route" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteLocalGatewayRouteOutput) String added in v0.18.0

String returns the string representation

type DeleteLocalGatewayRouteRequest added in v0.18.0

type DeleteLocalGatewayRouteRequest struct {
	*aws.Request
	Input *DeleteLocalGatewayRouteInput
	Copy  func(*DeleteLocalGatewayRouteInput) DeleteLocalGatewayRouteRequest
}

DeleteLocalGatewayRouteRequest is the request type for the DeleteLocalGatewayRoute API operation.

func (DeleteLocalGatewayRouteRequest) Send added in v0.18.0

Send marshals and sends the DeleteLocalGatewayRoute API request.

type DeleteLocalGatewayRouteResponse added in v0.18.0

type DeleteLocalGatewayRouteResponse struct {
	*DeleteLocalGatewayRouteOutput
	// contains filtered or unexported fields
}

DeleteLocalGatewayRouteResponse is the response type for the DeleteLocalGatewayRoute API operation.

func (*DeleteLocalGatewayRouteResponse) SDKResponseMetdata added in v0.18.0

func (r *DeleteLocalGatewayRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteLocalGatewayRoute request.

type DeleteLocalGatewayRouteTableVpcAssociationInput added in v0.18.0

type DeleteLocalGatewayRouteTableVpcAssociationInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the association.
	//
	// LocalGatewayRouteTableVpcAssociationId is a required field
	LocalGatewayRouteTableVpcAssociationId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteLocalGatewayRouteTableVpcAssociationInput) String added in v0.18.0

String returns the string representation

func (*DeleteLocalGatewayRouteTableVpcAssociationInput) Validate added in v0.18.0

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

type DeleteLocalGatewayRouteTableVpcAssociationOutput added in v0.18.0

type DeleteLocalGatewayRouteTableVpcAssociationOutput struct {

	// Information about the association.
	LocalGatewayRouteTableVpcAssociation *LocalGatewayRouteTableVpcAssociation `locationName:"localGatewayRouteTableVpcAssociation" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteLocalGatewayRouteTableVpcAssociationOutput) String added in v0.18.0

String returns the string representation

type DeleteLocalGatewayRouteTableVpcAssociationRequest added in v0.18.0

DeleteLocalGatewayRouteTableVpcAssociationRequest is the request type for the DeleteLocalGatewayRouteTableVpcAssociation API operation.

func (DeleteLocalGatewayRouteTableVpcAssociationRequest) Send added in v0.18.0

Send marshals and sends the DeleteLocalGatewayRouteTableVpcAssociation API request.

type DeleteLocalGatewayRouteTableVpcAssociationResponse added in v0.18.0

type DeleteLocalGatewayRouteTableVpcAssociationResponse struct {
	*DeleteLocalGatewayRouteTableVpcAssociationOutput
	// contains filtered or unexported fields
}

DeleteLocalGatewayRouteTableVpcAssociationResponse is the response type for the DeleteLocalGatewayRouteTableVpcAssociation API operation.

func (*DeleteLocalGatewayRouteTableVpcAssociationResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the DeleteLocalGatewayRouteTableVpcAssociation request.

type DeleteManagedPrefixListInput added in v0.24.0

type DeleteManagedPrefixListInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the prefix list.
	//
	// PrefixListId is a required field
	PrefixListId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteManagedPrefixListInput) String added in v0.24.0

String returns the string representation

func (*DeleteManagedPrefixListInput) Validate added in v0.24.0

func (s *DeleteManagedPrefixListInput) Validate() error

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

type DeleteManagedPrefixListOutput added in v0.24.0

type DeleteManagedPrefixListOutput struct {

	// Information about the prefix list.
	PrefixList *ManagedPrefixList `locationName:"prefixList" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteManagedPrefixListOutput) String added in v0.24.0

String returns the string representation

type DeleteManagedPrefixListRequest added in v0.24.0

type DeleteManagedPrefixListRequest struct {
	*aws.Request
	Input *DeleteManagedPrefixListInput
	Copy  func(*DeleteManagedPrefixListInput) DeleteManagedPrefixListRequest
}

DeleteManagedPrefixListRequest is the request type for the DeleteManagedPrefixList API operation.

func (DeleteManagedPrefixListRequest) Send added in v0.24.0

Send marshals and sends the DeleteManagedPrefixList API request.

type DeleteManagedPrefixListResponse added in v0.24.0

type DeleteManagedPrefixListResponse struct {
	*DeleteManagedPrefixListOutput
	// contains filtered or unexported fields
}

DeleteManagedPrefixListResponse is the response type for the DeleteManagedPrefixList API operation.

func (*DeleteManagedPrefixListResponse) SDKResponseMetdata added in v0.24.0

func (r *DeleteManagedPrefixListResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteManagedPrefixList request.

type DeleteNatGatewayInput

type DeleteNatGatewayInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the NAT gateway.
	//
	// NatGatewayId is a required field
	NatGatewayId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteNatGatewayInput) String

func (s DeleteNatGatewayInput) String() string

String returns the string representation

func (*DeleteNatGatewayInput) Validate

func (s *DeleteNatGatewayInput) Validate() error

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

type DeleteNatGatewayOutput

type DeleteNatGatewayOutput struct {

	// The ID of the NAT gateway.
	NatGatewayId *string `locationName:"natGatewayId" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteNatGatewayOutput) String

func (s DeleteNatGatewayOutput) String() string

String returns the string representation

type DeleteNatGatewayRequest

type DeleteNatGatewayRequest struct {
	*aws.Request
	Input *DeleteNatGatewayInput
	Copy  func(*DeleteNatGatewayInput) DeleteNatGatewayRequest
}

DeleteNatGatewayRequest is the request type for the DeleteNatGateway API operation.

func (DeleteNatGatewayRequest) Send

Send marshals and sends the DeleteNatGateway API request.

type DeleteNatGatewayResponse added in v0.9.0

type DeleteNatGatewayResponse struct {
	*DeleteNatGatewayOutput
	// contains filtered or unexported fields
}

DeleteNatGatewayResponse is the response type for the DeleteNatGateway API operation.

func (*DeleteNatGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteNatGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteNatGateway request.

type DeleteNetworkAclEntryInput

type DeleteNetworkAclEntryInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Indicates whether the rule is an egress rule.
	//
	// Egress is a required field
	Egress *bool `locationName:"egress" type:"boolean" required:"true"`

	// The ID of the network ACL.
	//
	// NetworkAclId is a required field
	NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`

	// The rule number of the entry to delete.
	//
	// RuleNumber is a required field
	RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteNetworkAclEntryInput) String

String returns the string representation

func (*DeleteNetworkAclEntryInput) Validate

func (s *DeleteNetworkAclEntryInput) Validate() error

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

type DeleteNetworkAclEntryOutput

type DeleteNetworkAclEntryOutput struct {
	// contains filtered or unexported fields
}

func (DeleteNetworkAclEntryOutput) String

String returns the string representation

type DeleteNetworkAclEntryRequest

type DeleteNetworkAclEntryRequest struct {
	*aws.Request
	Input *DeleteNetworkAclEntryInput
	Copy  func(*DeleteNetworkAclEntryInput) DeleteNetworkAclEntryRequest
}

DeleteNetworkAclEntryRequest is the request type for the DeleteNetworkAclEntry API operation.

func (DeleteNetworkAclEntryRequest) Send

Send marshals and sends the DeleteNetworkAclEntry API request.

type DeleteNetworkAclEntryResponse added in v0.9.0

type DeleteNetworkAclEntryResponse struct {
	*DeleteNetworkAclEntryOutput
	// contains filtered or unexported fields
}

DeleteNetworkAclEntryResponse is the response type for the DeleteNetworkAclEntry API operation.

func (*DeleteNetworkAclEntryResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteNetworkAclEntryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteNetworkAclEntry request.

type DeleteNetworkAclInput

type DeleteNetworkAclInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the network ACL.
	//
	// NetworkAclId is a required field
	NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteNetworkAclInput) String

func (s DeleteNetworkAclInput) String() string

String returns the string representation

func (*DeleteNetworkAclInput) Validate

func (s *DeleteNetworkAclInput) Validate() error

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

type DeleteNetworkAclOutput

type DeleteNetworkAclOutput struct {
	// contains filtered or unexported fields
}

func (DeleteNetworkAclOutput) String

func (s DeleteNetworkAclOutput) String() string

String returns the string representation

type DeleteNetworkAclRequest

type DeleteNetworkAclRequest struct {
	*aws.Request
	Input *DeleteNetworkAclInput
	Copy  func(*DeleteNetworkAclInput) DeleteNetworkAclRequest
}

DeleteNetworkAclRequest is the request type for the DeleteNetworkAcl API operation.

func (DeleteNetworkAclRequest) Send

Send marshals and sends the DeleteNetworkAcl API request.

type DeleteNetworkAclResponse added in v0.9.0

type DeleteNetworkAclResponse struct {
	*DeleteNetworkAclOutput
	// contains filtered or unexported fields
}

DeleteNetworkAclResponse is the response type for the DeleteNetworkAcl API operation.

func (*DeleteNetworkAclResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteNetworkAclResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteNetworkAcl request.

type DeleteNetworkInterfaceInput

type DeleteNetworkInterfaceInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the network interface.
	//
	// NetworkInterfaceId is a required field
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DeleteNetworkInterface.

func (DeleteNetworkInterfaceInput) String

String returns the string representation

func (*DeleteNetworkInterfaceInput) Validate

func (s *DeleteNetworkInterfaceInput) Validate() error

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

type DeleteNetworkInterfaceOutput

type DeleteNetworkInterfaceOutput struct {
	// contains filtered or unexported fields
}

func (DeleteNetworkInterfaceOutput) String

String returns the string representation

type DeleteNetworkInterfacePermissionInput

type DeleteNetworkInterfacePermissionInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Specify true to remove the permission even if the network interface is attached
	// to an instance.
	Force *bool `type:"boolean"`

	// The ID of the network interface permission.
	//
	// NetworkInterfacePermissionId is a required field
	NetworkInterfacePermissionId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DeleteNetworkInterfacePermission.

func (DeleteNetworkInterfacePermissionInput) String

String returns the string representation

func (*DeleteNetworkInterfacePermissionInput) Validate

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

type DeleteNetworkInterfacePermissionOutput

type DeleteNetworkInterfacePermissionOutput struct {

	// Returns true if the request succeeds, otherwise returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

Contains the output for DeleteNetworkInterfacePermission.

func (DeleteNetworkInterfacePermissionOutput) String

String returns the string representation

type DeleteNetworkInterfacePermissionRequest

type DeleteNetworkInterfacePermissionRequest struct {
	*aws.Request
	Input *DeleteNetworkInterfacePermissionInput
	Copy  func(*DeleteNetworkInterfacePermissionInput) DeleteNetworkInterfacePermissionRequest
}

DeleteNetworkInterfacePermissionRequest is the request type for the DeleteNetworkInterfacePermission API operation.

func (DeleteNetworkInterfacePermissionRequest) Send

Send marshals and sends the DeleteNetworkInterfacePermission API request.

type DeleteNetworkInterfacePermissionResponse added in v0.9.0

type DeleteNetworkInterfacePermissionResponse struct {
	*DeleteNetworkInterfacePermissionOutput
	// contains filtered or unexported fields
}

DeleteNetworkInterfacePermissionResponse is the response type for the DeleteNetworkInterfacePermission API operation.

func (*DeleteNetworkInterfacePermissionResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteNetworkInterfacePermissionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteNetworkInterfacePermission request.

type DeleteNetworkInterfaceRequest

type DeleteNetworkInterfaceRequest struct {
	*aws.Request
	Input *DeleteNetworkInterfaceInput
	Copy  func(*DeleteNetworkInterfaceInput) DeleteNetworkInterfaceRequest
}

DeleteNetworkInterfaceRequest is the request type for the DeleteNetworkInterface API operation.

func (DeleteNetworkInterfaceRequest) Send

Send marshals and sends the DeleteNetworkInterface API request.

type DeleteNetworkInterfaceResponse added in v0.9.0

type DeleteNetworkInterfaceResponse struct {
	*DeleteNetworkInterfaceOutput
	// contains filtered or unexported fields
}

DeleteNetworkInterfaceResponse is the response type for the DeleteNetworkInterface API operation.

func (*DeleteNetworkInterfaceResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteNetworkInterfaceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteNetworkInterface request.

type DeletePlacementGroupInput

type DeletePlacementGroupInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The name of the placement group.
	//
	// GroupName is a required field
	GroupName *string `locationName:"groupName" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeletePlacementGroupInput) String

func (s DeletePlacementGroupInput) String() string

String returns the string representation

func (*DeletePlacementGroupInput) Validate

func (s *DeletePlacementGroupInput) Validate() error

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

type DeletePlacementGroupOutput

type DeletePlacementGroupOutput struct {
	// contains filtered or unexported fields
}

func (DeletePlacementGroupOutput) String

String returns the string representation

type DeletePlacementGroupRequest

type DeletePlacementGroupRequest struct {
	*aws.Request
	Input *DeletePlacementGroupInput
	Copy  func(*DeletePlacementGroupInput) DeletePlacementGroupRequest
}

DeletePlacementGroupRequest is the request type for the DeletePlacementGroup API operation.

func (DeletePlacementGroupRequest) Send

Send marshals and sends the DeletePlacementGroup API request.

type DeletePlacementGroupResponse added in v0.9.0

type DeletePlacementGroupResponse struct {
	*DeletePlacementGroupOutput
	// contains filtered or unexported fields
}

DeletePlacementGroupResponse is the response type for the DeletePlacementGroup API operation.

func (*DeletePlacementGroupResponse) SDKResponseMetdata added in v0.9.0

func (r *DeletePlacementGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeletePlacementGroup request.

type DeleteQueuedReservedInstancesError added in v0.14.0

type DeleteQueuedReservedInstancesError struct {

	// The error code.
	Code DeleteQueuedReservedInstancesErrorCode `locationName:"code" type:"string" enum:"true"`

	// The error message.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes the error for a Reserved Instance whose queued purchase could not be deleted.

func (DeleteQueuedReservedInstancesError) String added in v0.14.0

String returns the string representation

type DeleteQueuedReservedInstancesErrorCode added in v0.14.0

type DeleteQueuedReservedInstancesErrorCode string
const (
	DeleteQueuedReservedInstancesErrorCodeReservedInstancesIdInvalid        DeleteQueuedReservedInstancesErrorCode = "reserved-instances-id-invalid"
	DeleteQueuedReservedInstancesErrorCodeReservedInstancesNotInQueuedState DeleteQueuedReservedInstancesErrorCode = "reserved-instances-not-in-queued-state"
	DeleteQueuedReservedInstancesErrorCodeUnexpectedError                   DeleteQueuedReservedInstancesErrorCode = "unexpected-error"
)

Enum values for DeleteQueuedReservedInstancesErrorCode

func (DeleteQueuedReservedInstancesErrorCode) MarshalValue added in v0.14.0

func (enum DeleteQueuedReservedInstancesErrorCode) MarshalValue() (string, error)

func (DeleteQueuedReservedInstancesErrorCode) MarshalValueBuf added in v0.14.0

func (enum DeleteQueuedReservedInstancesErrorCode) MarshalValueBuf(b []byte) ([]byte, error)

type DeleteQueuedReservedInstancesInput added in v0.14.0

type DeleteQueuedReservedInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of the Reserved Instances.
	//
	// ReservedInstancesIds is a required field
	ReservedInstancesIds []string `locationName:"ReservedInstancesId" locationNameList:"item" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteQueuedReservedInstancesInput) String added in v0.14.0

String returns the string representation

func (*DeleteQueuedReservedInstancesInput) Validate added in v0.14.0

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

type DeleteQueuedReservedInstancesOutput added in v0.14.0

type DeleteQueuedReservedInstancesOutput struct {

	// Information about the queued purchases that could not be deleted.
	FailedQueuedPurchaseDeletions []FailedQueuedPurchaseDeletion `locationName:"failedQueuedPurchaseDeletionSet" locationNameList:"item" type:"list"`

	// Information about the queued purchases that were successfully deleted.
	SuccessfulQueuedPurchaseDeletions []SuccessfulQueuedPurchaseDeletion `locationName:"successfulQueuedPurchaseDeletionSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DeleteQueuedReservedInstancesOutput) String added in v0.14.0

String returns the string representation

type DeleteQueuedReservedInstancesRequest added in v0.14.0

type DeleteQueuedReservedInstancesRequest struct {
	*aws.Request
	Input *DeleteQueuedReservedInstancesInput
	Copy  func(*DeleteQueuedReservedInstancesInput) DeleteQueuedReservedInstancesRequest
}

DeleteQueuedReservedInstancesRequest is the request type for the DeleteQueuedReservedInstances API operation.

func (DeleteQueuedReservedInstancesRequest) Send added in v0.14.0

Send marshals and sends the DeleteQueuedReservedInstances API request.

type DeleteQueuedReservedInstancesResponse added in v0.14.0

type DeleteQueuedReservedInstancesResponse struct {
	*DeleteQueuedReservedInstancesOutput
	// contains filtered or unexported fields
}

DeleteQueuedReservedInstancesResponse is the response type for the DeleteQueuedReservedInstances API operation.

func (*DeleteQueuedReservedInstancesResponse) SDKResponseMetdata added in v0.14.0

func (r *DeleteQueuedReservedInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteQueuedReservedInstances request.

type DeleteRouteInput

type DeleteRouteInput struct {

	// The IPv4 CIDR range for the route. The value you specify must match the CIDR
	// for the route exactly.
	DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`

	// The IPv6 CIDR range for the route. The value you specify must match the CIDR
	// for the route exactly.
	DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`

	// The ID of the prefix list for the route.
	DestinationPrefixListId *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the route table.
	//
	// RouteTableId is a required field
	RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteRouteInput) String

func (s DeleteRouteInput) String() string

String returns the string representation

func (*DeleteRouteInput) Validate

func (s *DeleteRouteInput) Validate() error

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

type DeleteRouteOutput

type DeleteRouteOutput struct {
	// contains filtered or unexported fields
}

func (DeleteRouteOutput) String

func (s DeleteRouteOutput) String() string

String returns the string representation

type DeleteRouteRequest

type DeleteRouteRequest struct {
	*aws.Request
	Input *DeleteRouteInput
	Copy  func(*DeleteRouteInput) DeleteRouteRequest
}

DeleteRouteRequest is the request type for the DeleteRoute API operation.

func (DeleteRouteRequest) Send

Send marshals and sends the DeleteRoute API request.

type DeleteRouteResponse added in v0.9.0

type DeleteRouteResponse struct {
	*DeleteRouteOutput
	// contains filtered or unexported fields
}

DeleteRouteResponse is the response type for the DeleteRoute API operation.

func (*DeleteRouteResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteRoute request.

type DeleteRouteTableInput

type DeleteRouteTableInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the route table.
	//
	// RouteTableId is a required field
	RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteRouteTableInput) String

func (s DeleteRouteTableInput) String() string

String returns the string representation

func (*DeleteRouteTableInput) Validate

func (s *DeleteRouteTableInput) Validate() error

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

type DeleteRouteTableOutput

type DeleteRouteTableOutput struct {
	// contains filtered or unexported fields
}

func (DeleteRouteTableOutput) String

func (s DeleteRouteTableOutput) String() string

String returns the string representation

type DeleteRouteTableRequest

type DeleteRouteTableRequest struct {
	*aws.Request
	Input *DeleteRouteTableInput
	Copy  func(*DeleteRouteTableInput) DeleteRouteTableRequest
}

DeleteRouteTableRequest is the request type for the DeleteRouteTable API operation.

func (DeleteRouteTableRequest) Send

Send marshals and sends the DeleteRouteTable API request.

type DeleteRouteTableResponse added in v0.9.0

type DeleteRouteTableResponse struct {
	*DeleteRouteTableOutput
	// contains filtered or unexported fields
}

DeleteRouteTableResponse is the response type for the DeleteRouteTable API operation.

func (*DeleteRouteTableResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteRouteTableResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteRouteTable request.

type DeleteSecurityGroupInput

type DeleteSecurityGroupInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the security group. Required for a nondefault VPC.
	GroupId *string `type:"string"`

	// [EC2-Classic, default VPC] The name of the security group. You can specify
	// either the security group name or the security group ID.
	GroupName *string `type:"string"`
	// contains filtered or unexported fields
}

func (DeleteSecurityGroupInput) String

func (s DeleteSecurityGroupInput) String() string

String returns the string representation

type DeleteSecurityGroupOutput

type DeleteSecurityGroupOutput struct {
	// contains filtered or unexported fields
}

func (DeleteSecurityGroupOutput) String

func (s DeleteSecurityGroupOutput) String() string

String returns the string representation

type DeleteSecurityGroupRequest

type DeleteSecurityGroupRequest struct {
	*aws.Request
	Input *DeleteSecurityGroupInput
	Copy  func(*DeleteSecurityGroupInput) DeleteSecurityGroupRequest
}

DeleteSecurityGroupRequest is the request type for the DeleteSecurityGroup API operation.

func (DeleteSecurityGroupRequest) Send

Send marshals and sends the DeleteSecurityGroup API request.

type DeleteSecurityGroupResponse added in v0.9.0

type DeleteSecurityGroupResponse struct {
	*DeleteSecurityGroupOutput
	// contains filtered or unexported fields
}

DeleteSecurityGroupResponse is the response type for the DeleteSecurityGroup API operation.

func (*DeleteSecurityGroupResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteSecurityGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteSecurityGroup request.

type DeleteSnapshotInput

type DeleteSnapshotInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the EBS snapshot.
	//
	// SnapshotId is a required field
	SnapshotId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteSnapshotInput) String

func (s DeleteSnapshotInput) String() string

String returns the string representation

func (*DeleteSnapshotInput) Validate

func (s *DeleteSnapshotInput) Validate() error

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

type DeleteSnapshotOutput

type DeleteSnapshotOutput struct {
	// contains filtered or unexported fields
}

func (DeleteSnapshotOutput) String

func (s DeleteSnapshotOutput) String() string

String returns the string representation

type DeleteSnapshotRequest

type DeleteSnapshotRequest struct {
	*aws.Request
	Input *DeleteSnapshotInput
	Copy  func(*DeleteSnapshotInput) DeleteSnapshotRequest
}

DeleteSnapshotRequest is the request type for the DeleteSnapshot API operation.

func (DeleteSnapshotRequest) Send

Send marshals and sends the DeleteSnapshot API request.

type DeleteSnapshotResponse added in v0.9.0

type DeleteSnapshotResponse struct {
	*DeleteSnapshotOutput
	// contains filtered or unexported fields
}

DeleteSnapshotResponse is the response type for the DeleteSnapshot API operation.

func (*DeleteSnapshotResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteSnapshotResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteSnapshot request.

type DeleteSpotDatafeedSubscriptionInput

type DeleteSpotDatafeedSubscriptionInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`
	// contains filtered or unexported fields
}

Contains the parameters for DeleteSpotDatafeedSubscription.

func (DeleteSpotDatafeedSubscriptionInput) String

String returns the string representation

type DeleteSpotDatafeedSubscriptionOutput

type DeleteSpotDatafeedSubscriptionOutput struct {
	// contains filtered or unexported fields
}

func (DeleteSpotDatafeedSubscriptionOutput) String

String returns the string representation

type DeleteSpotDatafeedSubscriptionRequest

type DeleteSpotDatafeedSubscriptionRequest struct {
	*aws.Request
	Input *DeleteSpotDatafeedSubscriptionInput
	Copy  func(*DeleteSpotDatafeedSubscriptionInput) DeleteSpotDatafeedSubscriptionRequest
}

DeleteSpotDatafeedSubscriptionRequest is the request type for the DeleteSpotDatafeedSubscription API operation.

func (DeleteSpotDatafeedSubscriptionRequest) Send

Send marshals and sends the DeleteSpotDatafeedSubscription API request.

type DeleteSpotDatafeedSubscriptionResponse added in v0.9.0

type DeleteSpotDatafeedSubscriptionResponse struct {
	*DeleteSpotDatafeedSubscriptionOutput
	// contains filtered or unexported fields
}

DeleteSpotDatafeedSubscriptionResponse is the response type for the DeleteSpotDatafeedSubscription API operation.

func (*DeleteSpotDatafeedSubscriptionResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteSpotDatafeedSubscriptionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteSpotDatafeedSubscription request.

type DeleteSubnetInput

type DeleteSubnetInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the subnet.
	//
	// SubnetId is a required field
	SubnetId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteSubnetInput) String

func (s DeleteSubnetInput) String() string

String returns the string representation

func (*DeleteSubnetInput) Validate

func (s *DeleteSubnetInput) Validate() error

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

type DeleteSubnetOutput

type DeleteSubnetOutput struct {
	// contains filtered or unexported fields
}

func (DeleteSubnetOutput) String

func (s DeleteSubnetOutput) String() string

String returns the string representation

type DeleteSubnetRequest

type DeleteSubnetRequest struct {
	*aws.Request
	Input *DeleteSubnetInput
	Copy  func(*DeleteSubnetInput) DeleteSubnetRequest
}

DeleteSubnetRequest is the request type for the DeleteSubnet API operation.

func (DeleteSubnetRequest) Send

Send marshals and sends the DeleteSubnet API request.

type DeleteSubnetResponse added in v0.9.0

type DeleteSubnetResponse struct {
	*DeleteSubnetOutput
	// contains filtered or unexported fields
}

DeleteSubnetResponse is the response type for the DeleteSubnet API operation.

func (*DeleteSubnetResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteSubnetResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteSubnet request.

type DeleteTagsInput

type DeleteTagsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The IDs of the resources, separated by spaces.
	//
	// Constraints: Up to 1000 resource IDs. We recommend breaking up this request
	// into smaller batches.
	//
	// Resources is a required field
	Resources []string `locationName:"resourceId" type:"list" required:"true"`

	// The tags to delete. Specify a tag key and an optional tag value to delete
	// specific tags. If you specify a tag key without a tag value, we delete any
	// tag with this key regardless of its value. If you specify a tag key with
	// an empty string as the tag value, we delete the tag only if its value is
	// an empty string.
	//
	// If you omit this parameter, we delete all user-defined tags for the specified
	// resources. We do not delete AWS-generated tags (tags that have the aws: prefix).
	Tags []Tag `locationName:"tag" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DeleteTagsInput) String

func (s DeleteTagsInput) String() string

String returns the string representation

func (*DeleteTagsInput) Validate

func (s *DeleteTagsInput) Validate() error

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

type DeleteTagsOutput

type DeleteTagsOutput struct {
	// contains filtered or unexported fields
}

func (DeleteTagsOutput) String

func (s DeleteTagsOutput) String() string

String returns the string representation

type DeleteTagsRequest

type DeleteTagsRequest struct {
	*aws.Request
	Input *DeleteTagsInput
	Copy  func(*DeleteTagsInput) DeleteTagsRequest
}

DeleteTagsRequest is the request type for the DeleteTags API operation.

func (DeleteTagsRequest) Send

Send marshals and sends the DeleteTags API request.

type DeleteTagsResponse added in v0.9.0

type DeleteTagsResponse struct {
	*DeleteTagsOutput
	// contains filtered or unexported fields
}

DeleteTagsResponse is the response type for the DeleteTags API operation.

func (*DeleteTagsResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteTagsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTags request.

type DeleteTrafficMirrorFilterInput added in v0.10.0

type DeleteTrafficMirrorFilterInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the Traffic Mirror filter.
	//
	// TrafficMirrorFilterId is a required field
	TrafficMirrorFilterId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTrafficMirrorFilterInput) String added in v0.10.0

String returns the string representation

func (*DeleteTrafficMirrorFilterInput) Validate added in v0.10.0

func (s *DeleteTrafficMirrorFilterInput) Validate() error

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

type DeleteTrafficMirrorFilterOutput added in v0.10.0

type DeleteTrafficMirrorFilterOutput struct {

	// The ID of the Traffic Mirror filter.
	TrafficMirrorFilterId *string `locationName:"trafficMirrorFilterId" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteTrafficMirrorFilterOutput) String added in v0.10.0

String returns the string representation

type DeleteTrafficMirrorFilterRequest added in v0.10.0

type DeleteTrafficMirrorFilterRequest struct {
	*aws.Request
	Input *DeleteTrafficMirrorFilterInput
	Copy  func(*DeleteTrafficMirrorFilterInput) DeleteTrafficMirrorFilterRequest
}

DeleteTrafficMirrorFilterRequest is the request type for the DeleteTrafficMirrorFilter API operation.

func (DeleteTrafficMirrorFilterRequest) Send added in v0.10.0

Send marshals and sends the DeleteTrafficMirrorFilter API request.

type DeleteTrafficMirrorFilterResponse added in v0.10.0

type DeleteTrafficMirrorFilterResponse struct {
	*DeleteTrafficMirrorFilterOutput
	// contains filtered or unexported fields
}

DeleteTrafficMirrorFilterResponse is the response type for the DeleteTrafficMirrorFilter API operation.

func (*DeleteTrafficMirrorFilterResponse) SDKResponseMetdata added in v0.10.0

func (r *DeleteTrafficMirrorFilterResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTrafficMirrorFilter request.

type DeleteTrafficMirrorFilterRuleInput added in v0.10.0

type DeleteTrafficMirrorFilterRuleInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the Traffic Mirror rule.
	//
	// TrafficMirrorFilterRuleId is a required field
	TrafficMirrorFilterRuleId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTrafficMirrorFilterRuleInput) String added in v0.10.0

String returns the string representation

func (*DeleteTrafficMirrorFilterRuleInput) Validate added in v0.10.0

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

type DeleteTrafficMirrorFilterRuleOutput added in v0.10.0

type DeleteTrafficMirrorFilterRuleOutput struct {

	// The ID of the deleted Traffic Mirror rule.
	TrafficMirrorFilterRuleId *string `locationName:"trafficMirrorFilterRuleId" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteTrafficMirrorFilterRuleOutput) String added in v0.10.0

String returns the string representation

type DeleteTrafficMirrorFilterRuleRequest added in v0.10.0

type DeleteTrafficMirrorFilterRuleRequest struct {
	*aws.Request
	Input *DeleteTrafficMirrorFilterRuleInput
	Copy  func(*DeleteTrafficMirrorFilterRuleInput) DeleteTrafficMirrorFilterRuleRequest
}

DeleteTrafficMirrorFilterRuleRequest is the request type for the DeleteTrafficMirrorFilterRule API operation.

func (DeleteTrafficMirrorFilterRuleRequest) Send added in v0.10.0

Send marshals and sends the DeleteTrafficMirrorFilterRule API request.

type DeleteTrafficMirrorFilterRuleResponse added in v0.10.0

type DeleteTrafficMirrorFilterRuleResponse struct {
	*DeleteTrafficMirrorFilterRuleOutput
	// contains filtered or unexported fields
}

DeleteTrafficMirrorFilterRuleResponse is the response type for the DeleteTrafficMirrorFilterRule API operation.

func (*DeleteTrafficMirrorFilterRuleResponse) SDKResponseMetdata added in v0.10.0

func (r *DeleteTrafficMirrorFilterRuleResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTrafficMirrorFilterRule request.

type DeleteTrafficMirrorSessionInput added in v0.10.0

type DeleteTrafficMirrorSessionInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the Traffic Mirror session.
	//
	// TrafficMirrorSessionId is a required field
	TrafficMirrorSessionId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTrafficMirrorSessionInput) String added in v0.10.0

String returns the string representation

func (*DeleteTrafficMirrorSessionInput) Validate added in v0.10.0

func (s *DeleteTrafficMirrorSessionInput) Validate() error

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

type DeleteTrafficMirrorSessionOutput added in v0.10.0

type DeleteTrafficMirrorSessionOutput struct {

	// The ID of the deleted Traffic Mirror session.
	TrafficMirrorSessionId *string `locationName:"trafficMirrorSessionId" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteTrafficMirrorSessionOutput) String added in v0.10.0

String returns the string representation

type DeleteTrafficMirrorSessionRequest added in v0.10.0

type DeleteTrafficMirrorSessionRequest struct {
	*aws.Request
	Input *DeleteTrafficMirrorSessionInput
	Copy  func(*DeleteTrafficMirrorSessionInput) DeleteTrafficMirrorSessionRequest
}

DeleteTrafficMirrorSessionRequest is the request type for the DeleteTrafficMirrorSession API operation.

func (DeleteTrafficMirrorSessionRequest) Send added in v0.10.0

Send marshals and sends the DeleteTrafficMirrorSession API request.

type DeleteTrafficMirrorSessionResponse added in v0.10.0

type DeleteTrafficMirrorSessionResponse struct {
	*DeleteTrafficMirrorSessionOutput
	// contains filtered or unexported fields
}

DeleteTrafficMirrorSessionResponse is the response type for the DeleteTrafficMirrorSession API operation.

func (*DeleteTrafficMirrorSessionResponse) SDKResponseMetdata added in v0.10.0

func (r *DeleteTrafficMirrorSessionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTrafficMirrorSession request.

type DeleteTrafficMirrorTargetInput added in v0.10.0

type DeleteTrafficMirrorTargetInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the Traffic Mirror target.
	//
	// TrafficMirrorTargetId is a required field
	TrafficMirrorTargetId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTrafficMirrorTargetInput) String added in v0.10.0

String returns the string representation

func (*DeleteTrafficMirrorTargetInput) Validate added in v0.10.0

func (s *DeleteTrafficMirrorTargetInput) Validate() error

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

type DeleteTrafficMirrorTargetOutput added in v0.10.0

type DeleteTrafficMirrorTargetOutput struct {

	// The ID of the deleted Traffic Mirror target.
	TrafficMirrorTargetId *string `locationName:"trafficMirrorTargetId" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteTrafficMirrorTargetOutput) String added in v0.10.0

String returns the string representation

type DeleteTrafficMirrorTargetRequest added in v0.10.0

type DeleteTrafficMirrorTargetRequest struct {
	*aws.Request
	Input *DeleteTrafficMirrorTargetInput
	Copy  func(*DeleteTrafficMirrorTargetInput) DeleteTrafficMirrorTargetRequest
}

DeleteTrafficMirrorTargetRequest is the request type for the DeleteTrafficMirrorTarget API operation.

func (DeleteTrafficMirrorTargetRequest) Send added in v0.10.0

Send marshals and sends the DeleteTrafficMirrorTarget API request.

type DeleteTrafficMirrorTargetResponse added in v0.10.0

type DeleteTrafficMirrorTargetResponse struct {
	*DeleteTrafficMirrorTargetOutput
	// contains filtered or unexported fields
}

DeleteTrafficMirrorTargetResponse is the response type for the DeleteTrafficMirrorTarget API operation.

func (*DeleteTrafficMirrorTargetResponse) SDKResponseMetdata added in v0.10.0

func (r *DeleteTrafficMirrorTargetResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTrafficMirrorTarget request.

type DeleteTransitGatewayInput added in v0.6.0

type DeleteTransitGatewayInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the transit gateway.
	//
	// TransitGatewayId is a required field
	TransitGatewayId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayInput) String added in v0.6.0

func (s DeleteTransitGatewayInput) String() string

String returns the string representation

func (*DeleteTransitGatewayInput) Validate added in v0.6.0

func (s *DeleteTransitGatewayInput) Validate() error

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

type DeleteTransitGatewayMulticastDomainInput added in v0.18.0

type DeleteTransitGatewayMulticastDomainInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the transit gateway multicast domain.
	//
	// TransitGatewayMulticastDomainId is a required field
	TransitGatewayMulticastDomainId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayMulticastDomainInput) String added in v0.18.0

String returns the string representation

func (*DeleteTransitGatewayMulticastDomainInput) Validate added in v0.18.0

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

type DeleteTransitGatewayMulticastDomainOutput added in v0.18.0

type DeleteTransitGatewayMulticastDomainOutput struct {

	// Information about the deleted transit gateway multicast domain.
	TransitGatewayMulticastDomain *TransitGatewayMulticastDomain `locationName:"transitGatewayMulticastDomain" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayMulticastDomainOutput) String added in v0.18.0

String returns the string representation

type DeleteTransitGatewayMulticastDomainRequest added in v0.18.0

DeleteTransitGatewayMulticastDomainRequest is the request type for the DeleteTransitGatewayMulticastDomain API operation.

func (DeleteTransitGatewayMulticastDomainRequest) Send added in v0.18.0

Send marshals and sends the DeleteTransitGatewayMulticastDomain API request.

type DeleteTransitGatewayMulticastDomainResponse added in v0.18.0

type DeleteTransitGatewayMulticastDomainResponse struct {
	*DeleteTransitGatewayMulticastDomainOutput
	// contains filtered or unexported fields
}

DeleteTransitGatewayMulticastDomainResponse is the response type for the DeleteTransitGatewayMulticastDomain API operation.

func (*DeleteTransitGatewayMulticastDomainResponse) SDKResponseMetdata added in v0.18.0

func (r *DeleteTransitGatewayMulticastDomainResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTransitGatewayMulticastDomain request.

type DeleteTransitGatewayOutput added in v0.6.0

type DeleteTransitGatewayOutput struct {

	// Information about the deleted transit gateway.
	TransitGateway *TransitGateway `locationName:"transitGateway" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayOutput) String added in v0.6.0

String returns the string representation

type DeleteTransitGatewayPeeringAttachmentInput added in v0.18.0

type DeleteTransitGatewayPeeringAttachmentInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the transit gateway peering attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayPeeringAttachmentInput) String added in v0.18.0

String returns the string representation

func (*DeleteTransitGatewayPeeringAttachmentInput) Validate added in v0.18.0

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

type DeleteTransitGatewayPeeringAttachmentOutput added in v0.18.0

type DeleteTransitGatewayPeeringAttachmentOutput struct {

	// The transit gateway peering attachment.
	TransitGatewayPeeringAttachment *TransitGatewayPeeringAttachment `locationName:"transitGatewayPeeringAttachment" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayPeeringAttachmentOutput) String added in v0.18.0

String returns the string representation

type DeleteTransitGatewayPeeringAttachmentRequest added in v0.18.0

DeleteTransitGatewayPeeringAttachmentRequest is the request type for the DeleteTransitGatewayPeeringAttachment API operation.

func (DeleteTransitGatewayPeeringAttachmentRequest) Send added in v0.18.0

Send marshals and sends the DeleteTransitGatewayPeeringAttachment API request.

type DeleteTransitGatewayPeeringAttachmentResponse added in v0.18.0

type DeleteTransitGatewayPeeringAttachmentResponse struct {
	*DeleteTransitGatewayPeeringAttachmentOutput
	// contains filtered or unexported fields
}

DeleteTransitGatewayPeeringAttachmentResponse is the response type for the DeleteTransitGatewayPeeringAttachment API operation.

func (*DeleteTransitGatewayPeeringAttachmentResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the DeleteTransitGatewayPeeringAttachment request.

type DeleteTransitGatewayRequest added in v0.6.0

type DeleteTransitGatewayRequest struct {
	*aws.Request
	Input *DeleteTransitGatewayInput
	Copy  func(*DeleteTransitGatewayInput) DeleteTransitGatewayRequest
}

DeleteTransitGatewayRequest is the request type for the DeleteTransitGateway API operation.

func (DeleteTransitGatewayRequest) Send added in v0.6.0

Send marshals and sends the DeleteTransitGateway API request.

type DeleteTransitGatewayResponse added in v0.9.0

type DeleteTransitGatewayResponse struct {
	*DeleteTransitGatewayOutput
	// contains filtered or unexported fields
}

DeleteTransitGatewayResponse is the response type for the DeleteTransitGateway API operation.

func (*DeleteTransitGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteTransitGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTransitGateway request.

type DeleteTransitGatewayRouteInput added in v0.6.0

type DeleteTransitGatewayRouteInput struct {

	// The CIDR range for the route. This must match the CIDR for the route exactly.
	//
	// DestinationCidrBlock is a required field
	DestinationCidrBlock *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the transit gateway route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayRouteInput) String added in v0.6.0

String returns the string representation

func (*DeleteTransitGatewayRouteInput) Validate added in v0.6.0

func (s *DeleteTransitGatewayRouteInput) Validate() error

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

type DeleteTransitGatewayRouteOutput added in v0.6.0

type DeleteTransitGatewayRouteOutput struct {

	// Information about the route.
	Route *TransitGatewayRoute `locationName:"route" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayRouteOutput) String added in v0.6.0

String returns the string representation

type DeleteTransitGatewayRouteRequest added in v0.6.0

type DeleteTransitGatewayRouteRequest struct {
	*aws.Request
	Input *DeleteTransitGatewayRouteInput
	Copy  func(*DeleteTransitGatewayRouteInput) DeleteTransitGatewayRouteRequest
}

DeleteTransitGatewayRouteRequest is the request type for the DeleteTransitGatewayRoute API operation.

func (DeleteTransitGatewayRouteRequest) Send added in v0.6.0

Send marshals and sends the DeleteTransitGatewayRoute API request.

type DeleteTransitGatewayRouteResponse added in v0.9.0

type DeleteTransitGatewayRouteResponse struct {
	*DeleteTransitGatewayRouteOutput
	// contains filtered or unexported fields
}

DeleteTransitGatewayRouteResponse is the response type for the DeleteTransitGatewayRoute API operation.

func (*DeleteTransitGatewayRouteResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteTransitGatewayRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTransitGatewayRoute request.

type DeleteTransitGatewayRouteTableInput added in v0.6.0

type DeleteTransitGatewayRouteTableInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the transit gateway route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayRouteTableInput) String added in v0.6.0

String returns the string representation

func (*DeleteTransitGatewayRouteTableInput) Validate added in v0.6.0

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

type DeleteTransitGatewayRouteTableOutput added in v0.6.0

type DeleteTransitGatewayRouteTableOutput struct {

	// Information about the deleted transit gateway route table.
	TransitGatewayRouteTable *TransitGatewayRouteTable `locationName:"transitGatewayRouteTable" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayRouteTableOutput) String added in v0.6.0

String returns the string representation

type DeleteTransitGatewayRouteTableRequest added in v0.6.0

type DeleteTransitGatewayRouteTableRequest struct {
	*aws.Request
	Input *DeleteTransitGatewayRouteTableInput
	Copy  func(*DeleteTransitGatewayRouteTableInput) DeleteTransitGatewayRouteTableRequest
}

DeleteTransitGatewayRouteTableRequest is the request type for the DeleteTransitGatewayRouteTable API operation.

func (DeleteTransitGatewayRouteTableRequest) Send added in v0.6.0

Send marshals and sends the DeleteTransitGatewayRouteTable API request.

type DeleteTransitGatewayRouteTableResponse added in v0.9.0

type DeleteTransitGatewayRouteTableResponse struct {
	*DeleteTransitGatewayRouteTableOutput
	// contains filtered or unexported fields
}

DeleteTransitGatewayRouteTableResponse is the response type for the DeleteTransitGatewayRouteTable API operation.

func (*DeleteTransitGatewayRouteTableResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteTransitGatewayRouteTableResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTransitGatewayRouteTable request.

type DeleteTransitGatewayVpcAttachmentInput added in v0.6.0

type DeleteTransitGatewayVpcAttachmentInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayVpcAttachmentInput) String added in v0.6.0

String returns the string representation

func (*DeleteTransitGatewayVpcAttachmentInput) Validate added in v0.6.0

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

type DeleteTransitGatewayVpcAttachmentOutput added in v0.6.0

type DeleteTransitGatewayVpcAttachmentOutput struct {

	// Information about the deleted VPC attachment.
	TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteTransitGatewayVpcAttachmentOutput) String added in v0.6.0

String returns the string representation

type DeleteTransitGatewayVpcAttachmentRequest added in v0.6.0

DeleteTransitGatewayVpcAttachmentRequest is the request type for the DeleteTransitGatewayVpcAttachment API operation.

func (DeleteTransitGatewayVpcAttachmentRequest) Send added in v0.6.0

Send marshals and sends the DeleteTransitGatewayVpcAttachment API request.

type DeleteTransitGatewayVpcAttachmentResponse added in v0.9.0

type DeleteTransitGatewayVpcAttachmentResponse struct {
	*DeleteTransitGatewayVpcAttachmentOutput
	// contains filtered or unexported fields
}

DeleteTransitGatewayVpcAttachmentResponse is the response type for the DeleteTransitGatewayVpcAttachment API operation.

func (*DeleteTransitGatewayVpcAttachmentResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteTransitGatewayVpcAttachmentResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteTransitGatewayVpcAttachment request.

type DeleteVolumeInput

type DeleteVolumeInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the volume.
	//
	// VolumeId is a required field
	VolumeId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteVolumeInput) String

func (s DeleteVolumeInput) String() string

String returns the string representation

func (*DeleteVolumeInput) Validate

func (s *DeleteVolumeInput) Validate() error

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

type DeleteVolumeOutput

type DeleteVolumeOutput struct {
	// contains filtered or unexported fields
}

func (DeleteVolumeOutput) String

func (s DeleteVolumeOutput) String() string

String returns the string representation

type DeleteVolumeRequest

type DeleteVolumeRequest struct {
	*aws.Request
	Input *DeleteVolumeInput
	Copy  func(*DeleteVolumeInput) DeleteVolumeRequest
}

DeleteVolumeRequest is the request type for the DeleteVolume API operation.

func (DeleteVolumeRequest) Send

Send marshals and sends the DeleteVolume API request.

type DeleteVolumeResponse added in v0.9.0

type DeleteVolumeResponse struct {
	*DeleteVolumeOutput
	// contains filtered or unexported fields
}

DeleteVolumeResponse is the response type for the DeleteVolume API operation.

func (*DeleteVolumeResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteVolumeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteVolume request.

type DeleteVpcEndpointConnectionNotificationsInput added in v0.2.0

type DeleteVpcEndpointConnectionNotificationsInput struct {

	// One or more notification IDs.
	//
	// ConnectionNotificationIds is a required field
	ConnectionNotificationIds []string `locationName:"ConnectionNotificationId" locationNameList:"item" type:"list" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (DeleteVpcEndpointConnectionNotificationsInput) String added in v0.2.0

String returns the string representation

func (*DeleteVpcEndpointConnectionNotificationsInput) Validate added in v0.2.0

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

type DeleteVpcEndpointConnectionNotificationsOutput added in v0.2.0

type DeleteVpcEndpointConnectionNotificationsOutput struct {

	// Information about the notifications that could not be deleted successfully.
	Unsuccessful []UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DeleteVpcEndpointConnectionNotificationsOutput) String added in v0.2.0

String returns the string representation

type DeleteVpcEndpointConnectionNotificationsRequest added in v0.2.0

DeleteVpcEndpointConnectionNotificationsRequest is the request type for the DeleteVpcEndpointConnectionNotifications API operation.

func (DeleteVpcEndpointConnectionNotificationsRequest) Send added in v0.2.0

Send marshals and sends the DeleteVpcEndpointConnectionNotifications API request.

type DeleteVpcEndpointConnectionNotificationsResponse added in v0.9.0

type DeleteVpcEndpointConnectionNotificationsResponse struct {
	*DeleteVpcEndpointConnectionNotificationsOutput
	// contains filtered or unexported fields
}

DeleteVpcEndpointConnectionNotificationsResponse is the response type for the DeleteVpcEndpointConnectionNotifications API operation.

func (*DeleteVpcEndpointConnectionNotificationsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DeleteVpcEndpointConnectionNotifications request.

type DeleteVpcEndpointServiceConfigurationsInput added in v0.2.0

type DeleteVpcEndpointServiceConfigurationsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of one or more services.
	//
	// ServiceIds is a required field
	ServiceIds []string `locationName:"ServiceId" locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteVpcEndpointServiceConfigurationsInput) String added in v0.2.0

String returns the string representation

func (*DeleteVpcEndpointServiceConfigurationsInput) Validate added in v0.2.0

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

type DeleteVpcEndpointServiceConfigurationsOutput added in v0.2.0

type DeleteVpcEndpointServiceConfigurationsOutput struct {

	// Information about the service configurations that were not deleted, if applicable.
	Unsuccessful []UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DeleteVpcEndpointServiceConfigurationsOutput) String added in v0.2.0

String returns the string representation

type DeleteVpcEndpointServiceConfigurationsRequest added in v0.2.0

DeleteVpcEndpointServiceConfigurationsRequest is the request type for the DeleteVpcEndpointServiceConfigurations API operation.

func (DeleteVpcEndpointServiceConfigurationsRequest) Send added in v0.2.0

Send marshals and sends the DeleteVpcEndpointServiceConfigurations API request.

type DeleteVpcEndpointServiceConfigurationsResponse added in v0.9.0

type DeleteVpcEndpointServiceConfigurationsResponse struct {
	*DeleteVpcEndpointServiceConfigurationsOutput
	// contains filtered or unexported fields
}

DeleteVpcEndpointServiceConfigurationsResponse is the response type for the DeleteVpcEndpointServiceConfigurations API operation.

func (*DeleteVpcEndpointServiceConfigurationsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DeleteVpcEndpointServiceConfigurations request.

type DeleteVpcEndpointsInput

type DeleteVpcEndpointsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more VPC endpoint IDs.
	//
	// VpcEndpointIds is a required field
	VpcEndpointIds []string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DeleteVpcEndpoints.

func (DeleteVpcEndpointsInput) String

func (s DeleteVpcEndpointsInput) String() string

String returns the string representation

func (*DeleteVpcEndpointsInput) Validate

func (s *DeleteVpcEndpointsInput) Validate() error

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

type DeleteVpcEndpointsOutput

type DeleteVpcEndpointsOutput struct {

	// Information about the VPC endpoints that were not successfully deleted.
	Unsuccessful []UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DeleteVpcEndpoints.

func (DeleteVpcEndpointsOutput) String

func (s DeleteVpcEndpointsOutput) String() string

String returns the string representation

type DeleteVpcEndpointsRequest

type DeleteVpcEndpointsRequest struct {
	*aws.Request
	Input *DeleteVpcEndpointsInput
	Copy  func(*DeleteVpcEndpointsInput) DeleteVpcEndpointsRequest
}

DeleteVpcEndpointsRequest is the request type for the DeleteVpcEndpoints API operation.

func (DeleteVpcEndpointsRequest) Send

Send marshals and sends the DeleteVpcEndpoints API request.

type DeleteVpcEndpointsResponse added in v0.9.0

type DeleteVpcEndpointsResponse struct {
	*DeleteVpcEndpointsOutput
	// contains filtered or unexported fields
}

DeleteVpcEndpointsResponse is the response type for the DeleteVpcEndpoints API operation.

func (*DeleteVpcEndpointsResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteVpcEndpointsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteVpcEndpoints request.

type DeleteVpcInput

type DeleteVpcInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteVpcInput) String

func (s DeleteVpcInput) String() string

String returns the string representation

func (*DeleteVpcInput) Validate

func (s *DeleteVpcInput) Validate() error

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

type DeleteVpcOutput

type DeleteVpcOutput struct {
	// contains filtered or unexported fields
}

func (DeleteVpcOutput) String

func (s DeleteVpcOutput) String() string

String returns the string representation

type DeleteVpcPeeringConnectionInput

type DeleteVpcPeeringConnectionInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the VPC peering connection.
	//
	// VpcPeeringConnectionId is a required field
	VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteVpcPeeringConnectionInput) String

String returns the string representation

func (*DeleteVpcPeeringConnectionInput) Validate

func (s *DeleteVpcPeeringConnectionInput) Validate() error

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

type DeleteVpcPeeringConnectionOutput

type DeleteVpcPeeringConnectionOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (DeleteVpcPeeringConnectionOutput) String

String returns the string representation

type DeleteVpcPeeringConnectionRequest

type DeleteVpcPeeringConnectionRequest struct {
	*aws.Request
	Input *DeleteVpcPeeringConnectionInput
	Copy  func(*DeleteVpcPeeringConnectionInput) DeleteVpcPeeringConnectionRequest
}

DeleteVpcPeeringConnectionRequest is the request type for the DeleteVpcPeeringConnection API operation.

func (DeleteVpcPeeringConnectionRequest) Send

Send marshals and sends the DeleteVpcPeeringConnection API request.

type DeleteVpcPeeringConnectionResponse added in v0.9.0

type DeleteVpcPeeringConnectionResponse struct {
	*DeleteVpcPeeringConnectionOutput
	// contains filtered or unexported fields
}

DeleteVpcPeeringConnectionResponse is the response type for the DeleteVpcPeeringConnection API operation.

func (*DeleteVpcPeeringConnectionResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteVpcPeeringConnectionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteVpcPeeringConnection request.

type DeleteVpcRequest

type DeleteVpcRequest struct {
	*aws.Request
	Input *DeleteVpcInput
	Copy  func(*DeleteVpcInput) DeleteVpcRequest
}

DeleteVpcRequest is the request type for the DeleteVpc API operation.

func (DeleteVpcRequest) Send

Send marshals and sends the DeleteVpc API request.

type DeleteVpcResponse added in v0.9.0

type DeleteVpcResponse struct {
	*DeleteVpcOutput
	// contains filtered or unexported fields
}

DeleteVpcResponse is the response type for the DeleteVpc API operation.

func (*DeleteVpcResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteVpcResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteVpc request.

type DeleteVpnConnectionInput

type DeleteVpnConnectionInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the VPN connection.
	//
	// VpnConnectionId is a required field
	VpnConnectionId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DeleteVpnConnection.

func (DeleteVpnConnectionInput) String

func (s DeleteVpnConnectionInput) String() string

String returns the string representation

func (*DeleteVpnConnectionInput) Validate

func (s *DeleteVpnConnectionInput) Validate() error

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

type DeleteVpnConnectionOutput

type DeleteVpnConnectionOutput struct {
	// contains filtered or unexported fields
}

func (DeleteVpnConnectionOutput) String

func (s DeleteVpnConnectionOutput) String() string

String returns the string representation

type DeleteVpnConnectionRequest

type DeleteVpnConnectionRequest struct {
	*aws.Request
	Input *DeleteVpnConnectionInput
	Copy  func(*DeleteVpnConnectionInput) DeleteVpnConnectionRequest
}

DeleteVpnConnectionRequest is the request type for the DeleteVpnConnection API operation.

func (DeleteVpnConnectionRequest) Send

Send marshals and sends the DeleteVpnConnection API request.

type DeleteVpnConnectionResponse added in v0.9.0

type DeleteVpnConnectionResponse struct {
	*DeleteVpnConnectionOutput
	// contains filtered or unexported fields
}

DeleteVpnConnectionResponse is the response type for the DeleteVpnConnection API operation.

func (*DeleteVpnConnectionResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteVpnConnectionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteVpnConnection request.

type DeleteVpnConnectionRouteInput

type DeleteVpnConnectionRouteInput struct {

	// The CIDR block associated with the local subnet of the customer network.
	//
	// DestinationCidrBlock is a required field
	DestinationCidrBlock *string `type:"string" required:"true"`

	// The ID of the VPN connection.
	//
	// VpnConnectionId is a required field
	VpnConnectionId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DeleteVpnConnectionRoute.

func (DeleteVpnConnectionRouteInput) String

String returns the string representation

func (*DeleteVpnConnectionRouteInput) Validate

func (s *DeleteVpnConnectionRouteInput) Validate() error

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

type DeleteVpnConnectionRouteOutput

type DeleteVpnConnectionRouteOutput struct {
	// contains filtered or unexported fields
}

func (DeleteVpnConnectionRouteOutput) String

String returns the string representation

type DeleteVpnConnectionRouteRequest

type DeleteVpnConnectionRouteRequest struct {
	*aws.Request
	Input *DeleteVpnConnectionRouteInput
	Copy  func(*DeleteVpnConnectionRouteInput) DeleteVpnConnectionRouteRequest
}

DeleteVpnConnectionRouteRequest is the request type for the DeleteVpnConnectionRoute API operation.

func (DeleteVpnConnectionRouteRequest) Send

Send marshals and sends the DeleteVpnConnectionRoute API request.

type DeleteVpnConnectionRouteResponse added in v0.9.0

type DeleteVpnConnectionRouteResponse struct {
	*DeleteVpnConnectionRouteOutput
	// contains filtered or unexported fields
}

DeleteVpnConnectionRouteResponse is the response type for the DeleteVpnConnectionRoute API operation.

func (*DeleteVpnConnectionRouteResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteVpnConnectionRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteVpnConnectionRoute request.

type DeleteVpnGatewayInput

type DeleteVpnGatewayInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the virtual private gateway.
	//
	// VpnGatewayId is a required field
	VpnGatewayId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DeleteVpnGateway.

func (DeleteVpnGatewayInput) String

func (s DeleteVpnGatewayInput) String() string

String returns the string representation

func (*DeleteVpnGatewayInput) Validate

func (s *DeleteVpnGatewayInput) Validate() error

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

type DeleteVpnGatewayOutput

type DeleteVpnGatewayOutput struct {
	// contains filtered or unexported fields
}

func (DeleteVpnGatewayOutput) String

func (s DeleteVpnGatewayOutput) String() string

String returns the string representation

type DeleteVpnGatewayRequest

type DeleteVpnGatewayRequest struct {
	*aws.Request
	Input *DeleteVpnGatewayInput
	Copy  func(*DeleteVpnGatewayInput) DeleteVpnGatewayRequest
}

DeleteVpnGatewayRequest is the request type for the DeleteVpnGateway API operation.

func (DeleteVpnGatewayRequest) Send

Send marshals and sends the DeleteVpnGateway API request.

type DeleteVpnGatewayResponse added in v0.9.0

type DeleteVpnGatewayResponse struct {
	*DeleteVpnGatewayOutput
	// contains filtered or unexported fields
}

DeleteVpnGatewayResponse is the response type for the DeleteVpnGateway API operation.

func (*DeleteVpnGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteVpnGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteVpnGateway request.

type DeprovisionByoipCidrInput added in v0.6.0

type DeprovisionByoipCidrInput struct {

	// The address range, in CIDR notation. The prefix must be the same prefix that
	// you specified when you provisioned the address range.
	//
	// Cidr is a required field
	Cidr *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (DeprovisionByoipCidrInput) String added in v0.6.0

func (s DeprovisionByoipCidrInput) String() string

String returns the string representation

func (*DeprovisionByoipCidrInput) Validate added in v0.6.0

func (s *DeprovisionByoipCidrInput) Validate() error

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

type DeprovisionByoipCidrOutput added in v0.6.0

type DeprovisionByoipCidrOutput struct {

	// Information about the address range.
	ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
	// contains filtered or unexported fields
}

func (DeprovisionByoipCidrOutput) String added in v0.6.0

String returns the string representation

type DeprovisionByoipCidrRequest added in v0.6.0

type DeprovisionByoipCidrRequest struct {
	*aws.Request
	Input *DeprovisionByoipCidrInput
	Copy  func(*DeprovisionByoipCidrInput) DeprovisionByoipCidrRequest
}

DeprovisionByoipCidrRequest is the request type for the DeprovisionByoipCidr API operation.

func (DeprovisionByoipCidrRequest) Send added in v0.6.0

Send marshals and sends the DeprovisionByoipCidr API request.

type DeprovisionByoipCidrResponse added in v0.9.0

type DeprovisionByoipCidrResponse struct {
	*DeprovisionByoipCidrOutput
	// contains filtered or unexported fields
}

DeprovisionByoipCidrResponse is the response type for the DeprovisionByoipCidr API operation.

func (*DeprovisionByoipCidrResponse) SDKResponseMetdata added in v0.9.0

func (r *DeprovisionByoipCidrResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeprovisionByoipCidr request.

type DeregisterImageInput

type DeregisterImageInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the AMI.
	//
	// ImageId is a required field
	ImageId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DeregisterImage.

func (DeregisterImageInput) String

func (s DeregisterImageInput) String() string

String returns the string representation

func (*DeregisterImageInput) Validate

func (s *DeregisterImageInput) Validate() error

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

type DeregisterImageOutput

type DeregisterImageOutput struct {
	// contains filtered or unexported fields
}

func (DeregisterImageOutput) String

func (s DeregisterImageOutput) String() string

String returns the string representation

type DeregisterImageRequest

type DeregisterImageRequest struct {
	*aws.Request
	Input *DeregisterImageInput
	Copy  func(*DeregisterImageInput) DeregisterImageRequest
}

DeregisterImageRequest is the request type for the DeregisterImage API operation.

func (DeregisterImageRequest) Send

Send marshals and sends the DeregisterImage API request.

type DeregisterImageResponse added in v0.9.0

type DeregisterImageResponse struct {
	*DeregisterImageOutput
	// contains filtered or unexported fields
}

DeregisterImageResponse is the response type for the DeregisterImage API operation.

func (*DeregisterImageResponse) SDKResponseMetdata added in v0.9.0

func (r *DeregisterImageResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeregisterImage request.

type DeregisterInstanceEventNotificationAttributesInput added in v0.21.0

type DeregisterInstanceEventNotificationAttributesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Information about the tag keys to deregister.
	InstanceTagAttribute *DeregisterInstanceTagAttributeRequest `type:"structure"`
	// contains filtered or unexported fields
}

func (DeregisterInstanceEventNotificationAttributesInput) String added in v0.21.0

String returns the string representation

type DeregisterInstanceEventNotificationAttributesOutput added in v0.21.0

type DeregisterInstanceEventNotificationAttributesOutput struct {

	// The resulting set of tag keys.
	InstanceTagAttribute *InstanceTagNotificationAttribute `locationName:"instanceTagAttribute" type:"structure"`
	// contains filtered or unexported fields
}

func (DeregisterInstanceEventNotificationAttributesOutput) String added in v0.21.0

String returns the string representation

type DeregisterInstanceEventNotificationAttributesRequest added in v0.21.0

DeregisterInstanceEventNotificationAttributesRequest is the request type for the DeregisterInstanceEventNotificationAttributes API operation.

func (DeregisterInstanceEventNotificationAttributesRequest) Send added in v0.21.0

Send marshals and sends the DeregisterInstanceEventNotificationAttributes API request.

type DeregisterInstanceEventNotificationAttributesResponse added in v0.21.0

type DeregisterInstanceEventNotificationAttributesResponse struct {
	*DeregisterInstanceEventNotificationAttributesOutput
	// contains filtered or unexported fields
}

DeregisterInstanceEventNotificationAttributesResponse is the response type for the DeregisterInstanceEventNotificationAttributes API operation.

func (*DeregisterInstanceEventNotificationAttributesResponse) SDKResponseMetdata added in v0.21.0

SDKResponseMetdata returns the response metadata for the DeregisterInstanceEventNotificationAttributes request.

type DeregisterInstanceTagAttributeRequest added in v0.21.0

type DeregisterInstanceTagAttributeRequest struct {

	// Indicates whether to deregister all tag keys in the current Region. Specify
	// false to deregister all tag keys.
	IncludeAllTagsOfInstance *bool `type:"boolean"`

	// Information about the tag keys to deregister.
	InstanceTagKeys []string `locationName:"InstanceTagKey" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Information about the tag keys to deregister for the current Region. You can either specify individual tag keys or deregister all tag keys in the current Region. You must specify either IncludeAllTagsOfInstance or InstanceTagKeys in the request

func (DeregisterInstanceTagAttributeRequest) String added in v0.21.0

String returns the string representation

type DeregisterTransitGatewayMulticastGroupMembersInput added in v0.18.0

type DeregisterTransitGatewayMulticastGroupMembersInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IP address assigned to the transit gateway multicast group.
	GroupIpAddress *string `type:"string"`

	// The IDs of the group members' network interfaces.
	NetworkInterfaceIds []string `locationNameList:"item" type:"list"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DeregisterTransitGatewayMulticastGroupMembersInput) String added in v0.18.0

String returns the string representation

type DeregisterTransitGatewayMulticastGroupMembersOutput added in v0.18.0

type DeregisterTransitGatewayMulticastGroupMembersOutput struct {

	// Information about the deregistered members.
	DeregisteredMulticastGroupMembers *TransitGatewayMulticastDeregisteredGroupMembers `locationName:"deregisteredMulticastGroupMembers" type:"structure"`
	// contains filtered or unexported fields
}

func (DeregisterTransitGatewayMulticastGroupMembersOutput) String added in v0.18.0

String returns the string representation

type DeregisterTransitGatewayMulticastGroupMembersRequest added in v0.18.0

DeregisterTransitGatewayMulticastGroupMembersRequest is the request type for the DeregisterTransitGatewayMulticastGroupMembers API operation.

func (DeregisterTransitGatewayMulticastGroupMembersRequest) Send added in v0.18.0

Send marshals and sends the DeregisterTransitGatewayMulticastGroupMembers API request.

type DeregisterTransitGatewayMulticastGroupMembersResponse added in v0.18.0

type DeregisterTransitGatewayMulticastGroupMembersResponse struct {
	*DeregisterTransitGatewayMulticastGroupMembersOutput
	// contains filtered or unexported fields
}

DeregisterTransitGatewayMulticastGroupMembersResponse is the response type for the DeregisterTransitGatewayMulticastGroupMembers API operation.

func (*DeregisterTransitGatewayMulticastGroupMembersResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the DeregisterTransitGatewayMulticastGroupMembers request.

type DeregisterTransitGatewayMulticastGroupSourcesInput added in v0.18.0

type DeregisterTransitGatewayMulticastGroupSourcesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IP address assigned to the transit gateway multicast group.
	GroupIpAddress *string `type:"string"`

	// The IDs of the group sources' network interfaces.
	NetworkInterfaceIds []string `locationNameList:"item" type:"list"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DeregisterTransitGatewayMulticastGroupSourcesInput) String added in v0.18.0

String returns the string representation

type DeregisterTransitGatewayMulticastGroupSourcesOutput added in v0.18.0

type DeregisterTransitGatewayMulticastGroupSourcesOutput struct {

	// Information about the deregistered group sources.
	DeregisteredMulticastGroupSources *TransitGatewayMulticastDeregisteredGroupSources `locationName:"deregisteredMulticastGroupSources" type:"structure"`
	// contains filtered or unexported fields
}

func (DeregisterTransitGatewayMulticastGroupSourcesOutput) String added in v0.18.0

String returns the string representation

type DeregisterTransitGatewayMulticastGroupSourcesRequest added in v0.18.0

DeregisterTransitGatewayMulticastGroupSourcesRequest is the request type for the DeregisterTransitGatewayMulticastGroupSources API operation.

func (DeregisterTransitGatewayMulticastGroupSourcesRequest) Send added in v0.18.0

Send marshals and sends the DeregisterTransitGatewayMulticastGroupSources API request.

type DeregisterTransitGatewayMulticastGroupSourcesResponse added in v0.18.0

type DeregisterTransitGatewayMulticastGroupSourcesResponse struct {
	*DeregisterTransitGatewayMulticastGroupSourcesOutput
	// contains filtered or unexported fields
}

DeregisterTransitGatewayMulticastGroupSourcesResponse is the response type for the DeregisterTransitGatewayMulticastGroupSources API operation.

func (*DeregisterTransitGatewayMulticastGroupSourcesResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the DeregisterTransitGatewayMulticastGroupSources request.

type DescribeAccountAttributesInput

type DescribeAccountAttributesInput struct {

	// The account attribute names.
	AttributeNames []AccountAttributeName `locationName:"attributeName" locationNameList:"attributeName" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`
	// contains filtered or unexported fields
}

func (DescribeAccountAttributesInput) String

String returns the string representation

type DescribeAccountAttributesOutput

type DescribeAccountAttributesOutput struct {

	// Information about the account attributes.
	AccountAttributes []AccountAttribute `locationName:"accountAttributeSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeAccountAttributesOutput) String

String returns the string representation

type DescribeAccountAttributesRequest

type DescribeAccountAttributesRequest struct {
	*aws.Request
	Input *DescribeAccountAttributesInput
	Copy  func(*DescribeAccountAttributesInput) DescribeAccountAttributesRequest
}

DescribeAccountAttributesRequest is the request type for the DescribeAccountAttributes API operation.

func (DescribeAccountAttributesRequest) Send

Send marshals and sends the DescribeAccountAttributes API request.

type DescribeAccountAttributesResponse added in v0.9.0

type DescribeAccountAttributesResponse struct {
	*DescribeAccountAttributesOutput
	// contains filtered or unexported fields
}

DescribeAccountAttributesResponse is the response type for the DescribeAccountAttributes API operation.

func (*DescribeAccountAttributesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeAccountAttributesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeAccountAttributes request.

type DescribeAddressesInput

type DescribeAddressesInput struct {

	// [EC2-VPC] Information about the allocation IDs.
	AllocationIds []string `locationName:"AllocationId" locationNameList:"AllocationId" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters. Filter names and values are case-sensitive.
	//
	//    * allocation-id - [EC2-VPC] The allocation ID for the address.
	//
	//    * association-id - [EC2-VPC] The association ID for the address.
	//
	//    * domain - Indicates whether the address is for use in EC2-Classic (standard)
	//    or in a VPC (vpc).
	//
	//    * instance-id - The ID of the instance the address is associated with,
	//    if any.
	//
	//    * network-border-group - The location from where the IP address is advertised.
	//
	//    * network-interface-id - [EC2-VPC] The ID of the network interface that
	//    the address is associated with, if any.
	//
	//    * network-interface-owner-id - The AWS account ID of the owner.
	//
	//    * private-ip-address - [EC2-VPC] The private IP address associated with
	//    the Elastic IP address.
	//
	//    * public-ip - The Elastic IP address.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// One or more Elastic IP addresses.
	//
	// Default: Describes all your Elastic IP addresses.
	PublicIps []string `locationName:"PublicIp" locationNameList:"PublicIp" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeAddressesInput) String

func (s DescribeAddressesInput) String() string

String returns the string representation

type DescribeAddressesOutput

type DescribeAddressesOutput struct {

	// Information about the Elastic IP addresses.
	Addresses []Address `locationName:"addressesSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeAddressesOutput) String

func (s DescribeAddressesOutput) String() string

String returns the string representation

type DescribeAddressesRequest

type DescribeAddressesRequest struct {
	*aws.Request
	Input *DescribeAddressesInput
	Copy  func(*DescribeAddressesInput) DescribeAddressesRequest
}

DescribeAddressesRequest is the request type for the DescribeAddresses API operation.

func (DescribeAddressesRequest) Send

Send marshals and sends the DescribeAddresses API request.

type DescribeAddressesResponse added in v0.9.0

type DescribeAddressesResponse struct {
	*DescribeAddressesOutput
	// contains filtered or unexported fields
}

DescribeAddressesResponse is the response type for the DescribeAddresses API operation.

func (*DescribeAddressesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeAddressesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeAddresses request.

type DescribeAggregateIdFormatInput added in v0.3.0

type DescribeAggregateIdFormatInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (DescribeAggregateIdFormatInput) String added in v0.3.0

String returns the string representation

type DescribeAggregateIdFormatOutput added in v0.3.0

type DescribeAggregateIdFormatOutput struct {

	// Information about each resource's ID format.
	Statuses []IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`

	// Indicates whether all resource types in the Region are configured to use
	// longer IDs. This value is only true if all users are configured to use longer
	// IDs for all resources types in the Region.
	UseLongIdsAggregated *bool `locationName:"useLongIdsAggregated" type:"boolean"`
	// contains filtered or unexported fields
}

func (DescribeAggregateIdFormatOutput) String added in v0.3.0

String returns the string representation

type DescribeAggregateIdFormatRequest added in v0.3.0

type DescribeAggregateIdFormatRequest struct {
	*aws.Request
	Input *DescribeAggregateIdFormatInput
	Copy  func(*DescribeAggregateIdFormatInput) DescribeAggregateIdFormatRequest
}

DescribeAggregateIdFormatRequest is the request type for the DescribeAggregateIdFormat API operation.

func (DescribeAggregateIdFormatRequest) Send added in v0.3.0

Send marshals and sends the DescribeAggregateIdFormat API request.

type DescribeAggregateIdFormatResponse added in v0.9.0

type DescribeAggregateIdFormatResponse struct {
	*DescribeAggregateIdFormatOutput
	// contains filtered or unexported fields
}

DescribeAggregateIdFormatResponse is the response type for the DescribeAggregateIdFormat API operation.

func (*DescribeAggregateIdFormatResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeAggregateIdFormatResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeAggregateIdFormat request.

type DescribeAvailabilityZonesInput

type DescribeAvailabilityZonesInput struct {

	// Include all Availability Zones and Local Zones regardless of your opt in
	// status.
	//
	// If you do not use this parameter, the results include only the zones for
	// the Regions where you have chosen the option to opt in.
	AllAvailabilityZones *bool `type:"boolean"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters.
	//
	//    * group-name - For Availability Zones, use the Region name. For Local
	//    Zones, use the name of the group associated with the Local Zone (for example,
	//    us-west-2-lax-1).
	//
	//    * message - The Zone message.
	//
	//    * opt-in-status - The opt in status (opted-in, and not-opted-in | opt-in-not-required).
	//
	//    * The ID of the zone that handles some of the Local Zone control plane
	//    operations, such as API calls.
	//
	//    * region-name - The name of the Region for the Zone (for example, us-east-1).
	//
	//    * state - The state of the Availability Zone or Local Zone (available
	//    | information | impaired | unavailable).
	//
	//    * zone-id - The ID of the Availability Zone (for example, use1-az1) or
	//    the Local Zone (for example, use usw2-lax1-az1).
	//
	//    * zone-type - The type of zone, for example, local-zone.
	//
	//    * zone-name - The name of the Availability Zone (for example, us-east-1a)
	//    or the Local Zone (for example, use us-west-2-lax-1a).
	//
	//    * zone-type - The type of zone, for example, local-zone.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The IDs of the Zones.
	ZoneIds []string `locationName:"ZoneId" locationNameList:"ZoneId" type:"list"`

	// The names of the Zones.
	ZoneNames []string `locationName:"ZoneName" locationNameList:"ZoneName" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeAvailabilityZonesInput) String

String returns the string representation

type DescribeAvailabilityZonesOutput

type DescribeAvailabilityZonesOutput struct {

	// Information about the Zones.
	AvailabilityZones []AvailabilityZone `locationName:"availabilityZoneInfo" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeAvailabilityZonesOutput) String

String returns the string representation

type DescribeAvailabilityZonesRequest

type DescribeAvailabilityZonesRequest struct {
	*aws.Request
	Input *DescribeAvailabilityZonesInput
	Copy  func(*DescribeAvailabilityZonesInput) DescribeAvailabilityZonesRequest
}

DescribeAvailabilityZonesRequest is the request type for the DescribeAvailabilityZones API operation.

func (DescribeAvailabilityZonesRequest) Send

Send marshals and sends the DescribeAvailabilityZones API request.

type DescribeAvailabilityZonesResponse added in v0.9.0

type DescribeAvailabilityZonesResponse struct {
	*DescribeAvailabilityZonesOutput
	// contains filtered or unexported fields
}

DescribeAvailabilityZonesResponse is the response type for the DescribeAvailabilityZones API operation.

func (*DescribeAvailabilityZonesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeAvailabilityZonesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeAvailabilityZones request.

type DescribeBundleTasksInput

type DescribeBundleTasksInput struct {

	// The bundle task IDs.
	//
	// Default: Describes all your bundle tasks.
	BundleIds []string `locationName:"BundleId" locationNameList:"BundleId" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters.
	//
	//    * bundle-id - The ID of the bundle task.
	//
	//    * error-code - If the task failed, the error code returned.
	//
	//    * error-message - If the task failed, the error message returned.
	//
	//    * instance-id - The ID of the instance.
	//
	//    * progress - The level of task completion, as a percentage (for example,
	//    20%).
	//
	//    * s3-bucket - The Amazon S3 bucket to store the AMI.
	//
	//    * s3-prefix - The beginning of the AMI name.
	//
	//    * start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z).
	//
	//    * state - The state of the task (pending | waiting-for-shutdown | bundling
	//    | storing | cancelling | complete | failed).
	//
	//    * update-time - The time of the most recent update for the task.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeBundleTasksInput) String

func (s DescribeBundleTasksInput) String() string

String returns the string representation

type DescribeBundleTasksOutput

type DescribeBundleTasksOutput struct {

	// Information about the bundle tasks.
	BundleTasks []BundleTask `locationName:"bundleInstanceTasksSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeBundleTasksOutput) String

func (s DescribeBundleTasksOutput) String() string

String returns the string representation

type DescribeBundleTasksRequest

type DescribeBundleTasksRequest struct {
	*aws.Request
	Input *DescribeBundleTasksInput
	Copy  func(*DescribeBundleTasksInput) DescribeBundleTasksRequest
}

DescribeBundleTasksRequest is the request type for the DescribeBundleTasks API operation.

func (DescribeBundleTasksRequest) Send

Send marshals and sends the DescribeBundleTasks API request.

type DescribeBundleTasksResponse added in v0.9.0

type DescribeBundleTasksResponse struct {
	*DescribeBundleTasksOutput
	// contains filtered or unexported fields
}

DescribeBundleTasksResponse is the response type for the DescribeBundleTasks API operation.

func (*DescribeBundleTasksResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeBundleTasksResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeBundleTasks request.

type DescribeByoipCidrsInput added in v0.6.0

type DescribeByoipCidrsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	//
	// MaxResults is a required field
	MaxResults *int64 `min:"1" type:"integer" required:"true"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeByoipCidrsInput) String added in v0.6.0

func (s DescribeByoipCidrsInput) String() string

String returns the string representation

func (*DescribeByoipCidrsInput) Validate added in v0.6.0

func (s *DescribeByoipCidrsInput) Validate() error

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

type DescribeByoipCidrsOutput added in v0.6.0

type DescribeByoipCidrsOutput struct {

	// Information about your address ranges.
	ByoipCidrs []ByoipCidr `locationName:"byoipCidrSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeByoipCidrsOutput) String added in v0.6.0

func (s DescribeByoipCidrsOutput) String() string

String returns the string representation

type DescribeByoipCidrsPaginator added in v0.9.0

type DescribeByoipCidrsPaginator struct {
	aws.Pager
}

DescribeByoipCidrsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeByoipCidrsPaginator added in v0.9.0

func NewDescribeByoipCidrsPaginator(req DescribeByoipCidrsRequest) DescribeByoipCidrsPaginator

NewDescribeByoipCidrsRequestPaginator returns a paginator for DescribeByoipCidrs. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeByoipCidrsRequest(input)
p := ec2.NewDescribeByoipCidrsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeByoipCidrsPaginator) CurrentPage added in v0.9.0

type DescribeByoipCidrsRequest added in v0.6.0

type DescribeByoipCidrsRequest struct {
	*aws.Request
	Input *DescribeByoipCidrsInput
	Copy  func(*DescribeByoipCidrsInput) DescribeByoipCidrsRequest
}

DescribeByoipCidrsRequest is the request type for the DescribeByoipCidrs API operation.

func (DescribeByoipCidrsRequest) Send added in v0.6.0

Send marshals and sends the DescribeByoipCidrs API request.

type DescribeByoipCidrsResponse added in v0.9.0

type DescribeByoipCidrsResponse struct {
	*DescribeByoipCidrsOutput
	// contains filtered or unexported fields
}

DescribeByoipCidrsResponse is the response type for the DescribeByoipCidrs API operation.

func (*DescribeByoipCidrsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeByoipCidrsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeByoipCidrs request.

type DescribeCapacityReservationsInput added in v0.6.0

type DescribeCapacityReservationsInput struct {

	// The ID of the Capacity Reservation.
	CapacityReservationIds []string `locationName:"CapacityReservationId" locationNameList:"item" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * instance-type - The type of instance for which the Capacity Reservation
	//    reserves capacity.
	//
	//    * owner-id - The ID of the AWS account that owns the Capacity Reservation.
	//
	//    * availability-zone-id - The Availability Zone ID of the Capacity Reservation.
	//
	//    * instance-platform - The type of operating system for which the Capacity
	//    Reservation reserves capacity.
	//
	//    * availability-zone - The Availability Zone ID of the Capacity Reservation.
	//
	//    * tenancy - Indicates the tenancy of the Capacity Reservation. A Capacity
	//    Reservation can have one of the following tenancy settings: default -
	//    The Capacity Reservation is created on hardware that is shared with other
	//    AWS accounts. dedicated - The Capacity Reservation is created on single-tenant
	//    hardware that is dedicated to a single AWS account.
	//
	//    * state - The current state of the Capacity Reservation. A Capacity Reservation
	//    can be in one of the following states: active- The Capacity Reservation
	//    is active and the capacity is available for your use. expired - The Capacity
	//    Reservation expired automatically at the date and time specified in your
	//    request. The reserved capacity is no longer available for your use. cancelled
	//    - The Capacity Reservation was manually cancelled. The reserved capacity
	//    is no longer available for your use. pending - The Capacity Reservation
	//    request was successful but the capacity provisioning is still pending.
	//    failed - The Capacity Reservation request has failed. A request might
	//    fail due to invalid request parameters, capacity constraints, or instance
	//    limit constraints. Failed requests are retained for 60 minutes.
	//
	//    * end-date - The date and time at which the Capacity Reservation expires.
	//    When a Capacity Reservation expires, the reserved capacity is released
	//    and you can no longer launch instances into it. The Capacity Reservation's
	//    state changes to expired when it reaches its end date and time.
	//
	//    * end-date-type - Indicates the way in which the Capacity Reservation
	//    ends. A Capacity Reservation can have one of the following end types:
	//    unlimited - The Capacity Reservation remains active until you explicitly
	//    cancel it. limited - The Capacity Reservation expires automatically at
	//    a specified date and time.
	//
	//    * instance-match-criteria - Indicates the type of instance launches that
	//    the Capacity Reservation accepts. The options include: open - The Capacity
	//    Reservation accepts all instances that have matching attributes (instance
	//    type, platform, and Availability Zone). Instances that have matching attributes
	//    launch into the Capacity Reservation automatically without specifying
	//    any additional parameters. targeted - The Capacity Reservation only accepts
	//    instances that have matching attributes (instance type, platform, and
	//    Availability Zone), and explicitly target the Capacity Reservation. This
	//    ensures that only permitted instances can use the reserved capacity.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the returned
	// nextToken value.
	MaxResults *int64 `min:"1" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeCapacityReservationsInput) String added in v0.6.0

String returns the string representation

func (*DescribeCapacityReservationsInput) Validate added in v0.9.0

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

type DescribeCapacityReservationsOutput added in v0.6.0

type DescribeCapacityReservationsOutput struct {

	// Information about the Capacity Reservations.
	CapacityReservations []CapacityReservation `locationName:"capacityReservationSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeCapacityReservationsOutput) String added in v0.6.0

String returns the string representation

type DescribeCapacityReservationsPaginator added in v0.9.0

type DescribeCapacityReservationsPaginator struct {
	aws.Pager
}

DescribeCapacityReservationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeCapacityReservationsPaginator added in v0.9.0

func NewDescribeCapacityReservationsPaginator(req DescribeCapacityReservationsRequest) DescribeCapacityReservationsPaginator

NewDescribeCapacityReservationsRequestPaginator returns a paginator for DescribeCapacityReservations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeCapacityReservationsRequest(input)
p := ec2.NewDescribeCapacityReservationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeCapacityReservationsPaginator) CurrentPage added in v0.9.0

type DescribeCapacityReservationsRequest added in v0.6.0

type DescribeCapacityReservationsRequest struct {
	*aws.Request
	Input *DescribeCapacityReservationsInput
	Copy  func(*DescribeCapacityReservationsInput) DescribeCapacityReservationsRequest
}

DescribeCapacityReservationsRequest is the request type for the DescribeCapacityReservations API operation.

func (DescribeCapacityReservationsRequest) Send added in v0.6.0

Send marshals and sends the DescribeCapacityReservations API request.

type DescribeCapacityReservationsResponse added in v0.9.0

type DescribeCapacityReservationsResponse struct {
	*DescribeCapacityReservationsOutput
	// contains filtered or unexported fields
}

DescribeCapacityReservationsResponse is the response type for the DescribeCapacityReservations API operation.

func (*DescribeCapacityReservationsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeCapacityReservationsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeCapacityReservations request.

type DescribeClassicLinkInstancesInput

type DescribeClassicLinkInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * group-id - The ID of a VPC security group that's associated with the
	//    instance.
	//
	//    * instance-id - The ID of the instance.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * vpc-id - The ID of the VPC to which the instance is linked. vpc-id -
	//    The ID of the VPC that the instance is linked to.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// One or more instance IDs. Must be instances linked to a VPC through ClassicLink.
	InstanceIds []string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	//
	// Constraint: If the value is greater than 1000, we return only 1000 items.
	MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeClassicLinkInstancesInput) String

String returns the string representation

func (*DescribeClassicLinkInstancesInput) Validate added in v0.10.0

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

type DescribeClassicLinkInstancesOutput

type DescribeClassicLinkInstancesOutput struct {

	// Information about one or more linked EC2-Classic instances.
	Instances []ClassicLinkInstance `locationName:"instancesSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeClassicLinkInstancesOutput) String

String returns the string representation

type DescribeClassicLinkInstancesPaginator added in v0.9.0

type DescribeClassicLinkInstancesPaginator struct {
	aws.Pager
}

DescribeClassicLinkInstancesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeClassicLinkInstancesPaginator added in v0.9.0

func NewDescribeClassicLinkInstancesPaginator(req DescribeClassicLinkInstancesRequest) DescribeClassicLinkInstancesPaginator

NewDescribeClassicLinkInstancesRequestPaginator returns a paginator for DescribeClassicLinkInstances. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeClassicLinkInstancesRequest(input)
p := ec2.NewDescribeClassicLinkInstancesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeClassicLinkInstancesPaginator) CurrentPage added in v0.9.0

type DescribeClassicLinkInstancesRequest

type DescribeClassicLinkInstancesRequest struct {
	*aws.Request
	Input *DescribeClassicLinkInstancesInput
	Copy  func(*DescribeClassicLinkInstancesInput) DescribeClassicLinkInstancesRequest
}

DescribeClassicLinkInstancesRequest is the request type for the DescribeClassicLinkInstances API operation.

func (DescribeClassicLinkInstancesRequest) Send

Send marshals and sends the DescribeClassicLinkInstances API request.

type DescribeClassicLinkInstancesResponse added in v0.9.0

type DescribeClassicLinkInstancesResponse struct {
	*DescribeClassicLinkInstancesOutput
	// contains filtered or unexported fields
}

DescribeClassicLinkInstancesResponse is the response type for the DescribeClassicLinkInstances API operation.

func (*DescribeClassicLinkInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeClassicLinkInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeClassicLinkInstances request.

type DescribeClientVpnAuthorizationRulesInput added in v0.7.0

type DescribeClientVpnAuthorizationRulesInput struct {

	// The ID of the Client VPN endpoint.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. Filter names and values are case-sensitive.
	//
	//    * description - The description of the authorization rule.
	//
	//    * destination-cidr - The CIDR of the network to which the authorization
	//    rule applies.
	//
	//    * group-id - The ID of the Active Directory group to which the authorization
	//    rule grants access.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the nextToken
	// value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeClientVpnAuthorizationRulesInput) String added in v0.7.0

String returns the string representation

func (*DescribeClientVpnAuthorizationRulesInput) Validate added in v0.7.0

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

type DescribeClientVpnAuthorizationRulesOutput added in v0.7.0

type DescribeClientVpnAuthorizationRulesOutput struct {

	// Information about the authorization rules.
	AuthorizationRules []AuthorizationRule `locationName:"authorizationRule" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeClientVpnAuthorizationRulesOutput) String added in v0.7.0

String returns the string representation

type DescribeClientVpnAuthorizationRulesPaginator added in v0.9.0

type DescribeClientVpnAuthorizationRulesPaginator struct {
	aws.Pager
}

DescribeClientVpnAuthorizationRulesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeClientVpnAuthorizationRulesPaginator added in v0.9.0

func NewDescribeClientVpnAuthorizationRulesPaginator(req DescribeClientVpnAuthorizationRulesRequest) DescribeClientVpnAuthorizationRulesPaginator

NewDescribeClientVpnAuthorizationRulesRequestPaginator returns a paginator for DescribeClientVpnAuthorizationRules. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeClientVpnAuthorizationRulesRequest(input)
p := ec2.NewDescribeClientVpnAuthorizationRulesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeClientVpnAuthorizationRulesPaginator) CurrentPage added in v0.9.0

type DescribeClientVpnAuthorizationRulesRequest added in v0.7.0

DescribeClientVpnAuthorizationRulesRequest is the request type for the DescribeClientVpnAuthorizationRules API operation.

func (DescribeClientVpnAuthorizationRulesRequest) Send added in v0.7.0

Send marshals and sends the DescribeClientVpnAuthorizationRules API request.

type DescribeClientVpnAuthorizationRulesResponse added in v0.9.0

type DescribeClientVpnAuthorizationRulesResponse struct {
	*DescribeClientVpnAuthorizationRulesOutput
	// contains filtered or unexported fields
}

DescribeClientVpnAuthorizationRulesResponse is the response type for the DescribeClientVpnAuthorizationRules API operation.

func (*DescribeClientVpnAuthorizationRulesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeClientVpnAuthorizationRulesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeClientVpnAuthorizationRules request.

type DescribeClientVpnConnectionsInput added in v0.7.0

type DescribeClientVpnConnectionsInput struct {

	// The ID of the Client VPN endpoint.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. Filter names and values are case-sensitive.
	//
	//    * connection-id - The ID of the connection.
	//
	//    * username - For Active Directory client authentication, the user name
	//    of the client who established the client connection.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the nextToken
	// value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeClientVpnConnectionsInput) String added in v0.7.0

String returns the string representation

func (*DescribeClientVpnConnectionsInput) Validate added in v0.7.0

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

type DescribeClientVpnConnectionsOutput added in v0.7.0

type DescribeClientVpnConnectionsOutput struct {

	// Information about the active and terminated client connections.
	Connections []VpnConnection `locationName:"connections" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeClientVpnConnectionsOutput) String added in v0.7.0

String returns the string representation

type DescribeClientVpnConnectionsPaginator added in v0.9.0

type DescribeClientVpnConnectionsPaginator struct {
	aws.Pager
}

DescribeClientVpnConnectionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeClientVpnConnectionsPaginator added in v0.9.0

func NewDescribeClientVpnConnectionsPaginator(req DescribeClientVpnConnectionsRequest) DescribeClientVpnConnectionsPaginator

NewDescribeClientVpnConnectionsRequestPaginator returns a paginator for DescribeClientVpnConnections. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeClientVpnConnectionsRequest(input)
p := ec2.NewDescribeClientVpnConnectionsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeClientVpnConnectionsPaginator) CurrentPage added in v0.9.0

type DescribeClientVpnConnectionsRequest added in v0.7.0

type DescribeClientVpnConnectionsRequest struct {
	*aws.Request
	Input *DescribeClientVpnConnectionsInput
	Copy  func(*DescribeClientVpnConnectionsInput) DescribeClientVpnConnectionsRequest
}

DescribeClientVpnConnectionsRequest is the request type for the DescribeClientVpnConnections API operation.

func (DescribeClientVpnConnectionsRequest) Send added in v0.7.0

Send marshals and sends the DescribeClientVpnConnections API request.

type DescribeClientVpnConnectionsResponse added in v0.9.0

type DescribeClientVpnConnectionsResponse struct {
	*DescribeClientVpnConnectionsOutput
	// contains filtered or unexported fields
}

DescribeClientVpnConnectionsResponse is the response type for the DescribeClientVpnConnections API operation.

func (*DescribeClientVpnConnectionsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeClientVpnConnectionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeClientVpnConnections request.

type DescribeClientVpnEndpointsInput added in v0.7.0

type DescribeClientVpnEndpointsInput struct {

	// The ID of the Client VPN endpoint.
	ClientVpnEndpointIds []string `locationName:"ClientVpnEndpointId" locationNameList:"item" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. Filter names and values are case-sensitive.
	//
	//    * endpoint-id - The ID of the Client VPN endpoint.
	//
	//    * transport-protocol - The transport protocol (tcp | udp).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the nextToken
	// value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeClientVpnEndpointsInput) String added in v0.7.0

String returns the string representation

func (*DescribeClientVpnEndpointsInput) Validate added in v0.7.0

func (s *DescribeClientVpnEndpointsInput) Validate() error

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

type DescribeClientVpnEndpointsOutput added in v0.7.0

type DescribeClientVpnEndpointsOutput struct {

	// Information about the Client VPN endpoints.
	ClientVpnEndpoints []VpnEndpoint `locationName:"clientVpnEndpoint" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeClientVpnEndpointsOutput) String added in v0.7.0

String returns the string representation

type DescribeClientVpnEndpointsPaginator added in v0.9.0

type DescribeClientVpnEndpointsPaginator struct {
	aws.Pager
}

DescribeClientVpnEndpointsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeClientVpnEndpointsPaginator added in v0.9.0

func NewDescribeClientVpnEndpointsPaginator(req DescribeClientVpnEndpointsRequest) DescribeClientVpnEndpointsPaginator

NewDescribeClientVpnEndpointsRequestPaginator returns a paginator for DescribeClientVpnEndpoints. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeClientVpnEndpointsRequest(input)
p := ec2.NewDescribeClientVpnEndpointsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeClientVpnEndpointsPaginator) CurrentPage added in v0.9.0

type DescribeClientVpnEndpointsRequest added in v0.7.0

type DescribeClientVpnEndpointsRequest struct {
	*aws.Request
	Input *DescribeClientVpnEndpointsInput
	Copy  func(*DescribeClientVpnEndpointsInput) DescribeClientVpnEndpointsRequest
}

DescribeClientVpnEndpointsRequest is the request type for the DescribeClientVpnEndpoints API operation.

func (DescribeClientVpnEndpointsRequest) Send added in v0.7.0

Send marshals and sends the DescribeClientVpnEndpoints API request.

type DescribeClientVpnEndpointsResponse added in v0.9.0

type DescribeClientVpnEndpointsResponse struct {
	*DescribeClientVpnEndpointsOutput
	// contains filtered or unexported fields
}

DescribeClientVpnEndpointsResponse is the response type for the DescribeClientVpnEndpoints API operation.

func (*DescribeClientVpnEndpointsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeClientVpnEndpointsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeClientVpnEndpoints request.

type DescribeClientVpnRoutesInput added in v0.7.0

type DescribeClientVpnRoutesInput struct {

	// The ID of the Client VPN endpoint.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. Filter names and values are case-sensitive.
	//
	//    * destination-cidr - The CIDR of the route destination.
	//
	//    * origin - How the route was associated with the Client VPN endpoint (associate
	//    | add-route).
	//
	//    * target-subnet - The ID of the subnet through which traffic is routed.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the nextToken
	// value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeClientVpnRoutesInput) String added in v0.7.0

String returns the string representation

func (*DescribeClientVpnRoutesInput) Validate added in v0.7.0

func (s *DescribeClientVpnRoutesInput) Validate() error

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

type DescribeClientVpnRoutesOutput added in v0.7.0

type DescribeClientVpnRoutesOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the Client VPN endpoint routes.
	Routes []VpnRoute `locationName:"routes" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeClientVpnRoutesOutput) String added in v0.7.0

String returns the string representation

type DescribeClientVpnRoutesPaginator added in v0.9.0

type DescribeClientVpnRoutesPaginator struct {
	aws.Pager
}

DescribeClientVpnRoutesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeClientVpnRoutesPaginator added in v0.9.0

func NewDescribeClientVpnRoutesPaginator(req DescribeClientVpnRoutesRequest) DescribeClientVpnRoutesPaginator

NewDescribeClientVpnRoutesRequestPaginator returns a paginator for DescribeClientVpnRoutes. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeClientVpnRoutesRequest(input)
p := ec2.NewDescribeClientVpnRoutesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeClientVpnRoutesPaginator) CurrentPage added in v0.9.0

type DescribeClientVpnRoutesRequest added in v0.7.0

type DescribeClientVpnRoutesRequest struct {
	*aws.Request
	Input *DescribeClientVpnRoutesInput
	Copy  func(*DescribeClientVpnRoutesInput) DescribeClientVpnRoutesRequest
}

DescribeClientVpnRoutesRequest is the request type for the DescribeClientVpnRoutes API operation.

func (DescribeClientVpnRoutesRequest) Send added in v0.7.0

Send marshals and sends the DescribeClientVpnRoutes API request.

type DescribeClientVpnRoutesResponse added in v0.9.0

type DescribeClientVpnRoutesResponse struct {
	*DescribeClientVpnRoutesOutput
	// contains filtered or unexported fields
}

DescribeClientVpnRoutesResponse is the response type for the DescribeClientVpnRoutes API operation.

func (*DescribeClientVpnRoutesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeClientVpnRoutesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeClientVpnRoutes request.

type DescribeClientVpnTargetNetworksInput added in v0.7.0

type DescribeClientVpnTargetNetworksInput struct {

	// The IDs of the target network associations.
	AssociationIds []string `locationNameList:"item" type:"list"`

	// The ID of the Client VPN endpoint.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. Filter names and values are case-sensitive.
	//
	//    * association-id - The ID of the association.
	//
	//    * target-network-id - The ID of the subnet specified as the target network.
	//
	//    * vpc-id - The ID of the VPC in which the target network is located.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the nextToken
	// value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeClientVpnTargetNetworksInput) String added in v0.7.0

String returns the string representation

func (*DescribeClientVpnTargetNetworksInput) Validate added in v0.7.0

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

type DescribeClientVpnTargetNetworksOutput added in v0.7.0

type DescribeClientVpnTargetNetworksOutput struct {

	// Information about the associated target networks.
	ClientVpnTargetNetworks []TargetNetwork `locationName:"clientVpnTargetNetworks" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeClientVpnTargetNetworksOutput) String added in v0.7.0

String returns the string representation

type DescribeClientVpnTargetNetworksPaginator added in v0.9.0

type DescribeClientVpnTargetNetworksPaginator struct {
	aws.Pager
}

DescribeClientVpnTargetNetworksPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeClientVpnTargetNetworksPaginator added in v0.9.0

func NewDescribeClientVpnTargetNetworksPaginator(req DescribeClientVpnTargetNetworksRequest) DescribeClientVpnTargetNetworksPaginator

NewDescribeClientVpnTargetNetworksRequestPaginator returns a paginator for DescribeClientVpnTargetNetworks. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeClientVpnTargetNetworksRequest(input)
p := ec2.NewDescribeClientVpnTargetNetworksRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeClientVpnTargetNetworksPaginator) CurrentPage added in v0.9.0

type DescribeClientVpnTargetNetworksRequest added in v0.7.0

type DescribeClientVpnTargetNetworksRequest struct {
	*aws.Request
	Input *DescribeClientVpnTargetNetworksInput
	Copy  func(*DescribeClientVpnTargetNetworksInput) DescribeClientVpnTargetNetworksRequest
}

DescribeClientVpnTargetNetworksRequest is the request type for the DescribeClientVpnTargetNetworks API operation.

func (DescribeClientVpnTargetNetworksRequest) Send added in v0.7.0

Send marshals and sends the DescribeClientVpnTargetNetworks API request.

type DescribeClientVpnTargetNetworksResponse added in v0.9.0

type DescribeClientVpnTargetNetworksResponse struct {
	*DescribeClientVpnTargetNetworksOutput
	// contains filtered or unexported fields
}

DescribeClientVpnTargetNetworksResponse is the response type for the DescribeClientVpnTargetNetworks API operation.

func (*DescribeClientVpnTargetNetworksResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeClientVpnTargetNetworksResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeClientVpnTargetNetworks request.

type DescribeCoipPoolsInput added in v0.18.0

type DescribeCoipPoolsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The filters. The following are the possible values:
	//
	//    * coip-pool.pool-id
	//
	//    * coip-pool.local-gateway-route-table-id
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The IDs of the address pools.
	PoolIds []string `locationName:"PoolId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeCoipPoolsInput) String added in v0.18.0

func (s DescribeCoipPoolsInput) String() string

String returns the string representation

func (*DescribeCoipPoolsInput) Validate added in v0.18.0

func (s *DescribeCoipPoolsInput) Validate() error

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

type DescribeCoipPoolsOutput added in v0.18.0

type DescribeCoipPoolsOutput struct {

	// Information about the address pools.
	CoipPools []CoipPool `locationName:"coipPoolSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeCoipPoolsOutput) String added in v0.18.0

func (s DescribeCoipPoolsOutput) String() string

String returns the string representation

type DescribeCoipPoolsPaginator added in v0.20.0

type DescribeCoipPoolsPaginator struct {
	aws.Pager
}

DescribeCoipPoolsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeCoipPoolsPaginator added in v0.20.0

func NewDescribeCoipPoolsPaginator(req DescribeCoipPoolsRequest) DescribeCoipPoolsPaginator

NewDescribeCoipPoolsRequestPaginator returns a paginator for DescribeCoipPools. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeCoipPoolsRequest(input)
p := ec2.NewDescribeCoipPoolsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeCoipPoolsPaginator) CurrentPage added in v0.20.0

type DescribeCoipPoolsRequest added in v0.18.0

type DescribeCoipPoolsRequest struct {
	*aws.Request
	Input *DescribeCoipPoolsInput
	Copy  func(*DescribeCoipPoolsInput) DescribeCoipPoolsRequest
}

DescribeCoipPoolsRequest is the request type for the DescribeCoipPools API operation.

func (DescribeCoipPoolsRequest) Send added in v0.18.0

Send marshals and sends the DescribeCoipPools API request.

type DescribeCoipPoolsResponse added in v0.18.0

type DescribeCoipPoolsResponse struct {
	*DescribeCoipPoolsOutput
	// contains filtered or unexported fields
}

DescribeCoipPoolsResponse is the response type for the DescribeCoipPools API operation.

func (*DescribeCoipPoolsResponse) SDKResponseMetdata added in v0.18.0

func (r *DescribeCoipPoolsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeCoipPools request.

type DescribeConversionTasksInput

type DescribeConversionTasksInput struct {

	// The conversion task IDs.
	ConversionTaskIds []string `locationName:"conversionTaskId" locationNameList:"item" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`
	// contains filtered or unexported fields
}

func (DescribeConversionTasksInput) String

String returns the string representation

type DescribeConversionTasksOutput

type DescribeConversionTasksOutput struct {

	// Information about the conversion tasks.
	ConversionTasks []ConversionTask `locationName:"conversionTasks" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeConversionTasksOutput) String

String returns the string representation

type DescribeConversionTasksRequest

type DescribeConversionTasksRequest struct {
	*aws.Request
	Input *DescribeConversionTasksInput
	Copy  func(*DescribeConversionTasksInput) DescribeConversionTasksRequest
}

DescribeConversionTasksRequest is the request type for the DescribeConversionTasks API operation.

func (DescribeConversionTasksRequest) Send

Send marshals and sends the DescribeConversionTasks API request.

type DescribeConversionTasksResponse added in v0.9.0

type DescribeConversionTasksResponse struct {
	*DescribeConversionTasksOutput
	// contains filtered or unexported fields
}

DescribeConversionTasksResponse is the response type for the DescribeConversionTasks API operation.

func (*DescribeConversionTasksResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeConversionTasksResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeConversionTasks request.

type DescribeCustomerGatewaysInput

type DescribeCustomerGatewaysInput struct {

	// One or more customer gateway IDs.
	//
	// Default: Describes all your customer gateways.
	CustomerGatewayIds []string `locationName:"CustomerGatewayId" locationNameList:"CustomerGatewayId" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous
	//    System Number (ASN).
	//
	//    * customer-gateway-id - The ID of the customer gateway.
	//
	//    * ip-address - The IP address of the customer gateway's Internet-routable
	//    external interface.
	//
	//    * state - The state of the customer gateway (pending | available | deleting
	//    | deleted).
	//
	//    * type - The type of customer gateway. Currently, the only supported type
	//    is ipsec.1.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeCustomerGateways.

func (DescribeCustomerGatewaysInput) String

String returns the string representation

type DescribeCustomerGatewaysOutput

type DescribeCustomerGatewaysOutput struct {

	// Information about one or more customer gateways.
	CustomerGateways []CustomerGateway `locationName:"customerGatewaySet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeCustomerGateways.

func (DescribeCustomerGatewaysOutput) String

String returns the string representation

type DescribeCustomerGatewaysRequest

type DescribeCustomerGatewaysRequest struct {
	*aws.Request
	Input *DescribeCustomerGatewaysInput
	Copy  func(*DescribeCustomerGatewaysInput) DescribeCustomerGatewaysRequest
}

DescribeCustomerGatewaysRequest is the request type for the DescribeCustomerGateways API operation.

func (DescribeCustomerGatewaysRequest) Send

Send marshals and sends the DescribeCustomerGateways API request.

type DescribeCustomerGatewaysResponse added in v0.9.0

type DescribeCustomerGatewaysResponse struct {
	*DescribeCustomerGatewaysOutput
	// contains filtered or unexported fields
}

DescribeCustomerGatewaysResponse is the response type for the DescribeCustomerGateways API operation.

func (*DescribeCustomerGatewaysResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeCustomerGatewaysResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeCustomerGateways request.

type DescribeDhcpOptionsInput

type DescribeDhcpOptionsInput struct {

	// The IDs of one or more DHCP options sets.
	//
	// Default: Describes all your DHCP options sets.
	DhcpOptionsIds []string `locationName:"DhcpOptionsId" locationNameList:"DhcpOptionsId" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * dhcp-options-id - The ID of a DHCP options set.
	//
	//    * key - The key for one of the options (for example, domain-name).
	//
	//    * value - The value for one of the options.
	//
	//    * owner-id - The ID of the AWS account that owns the DHCP options set.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeDhcpOptionsInput) String

func (s DescribeDhcpOptionsInput) String() string

String returns the string representation

func (*DescribeDhcpOptionsInput) Validate added in v0.9.0

func (s *DescribeDhcpOptionsInput) Validate() error

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

type DescribeDhcpOptionsOutput

type DescribeDhcpOptionsOutput struct {

	// Information about one or more DHCP options sets.
	DhcpOptions []DhcpOptions `locationName:"dhcpOptionsSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeDhcpOptionsOutput) String

func (s DescribeDhcpOptionsOutput) String() string

String returns the string representation

type DescribeDhcpOptionsPaginator added in v0.9.0

type DescribeDhcpOptionsPaginator struct {
	aws.Pager
}

DescribeDhcpOptionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeDhcpOptionsPaginator added in v0.9.0

func NewDescribeDhcpOptionsPaginator(req DescribeDhcpOptionsRequest) DescribeDhcpOptionsPaginator

NewDescribeDhcpOptionsRequestPaginator returns a paginator for DescribeDhcpOptions. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeDhcpOptionsRequest(input)
p := ec2.NewDescribeDhcpOptionsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeDhcpOptionsPaginator) CurrentPage added in v0.9.0

type DescribeDhcpOptionsRequest

type DescribeDhcpOptionsRequest struct {
	*aws.Request
	Input *DescribeDhcpOptionsInput
	Copy  func(*DescribeDhcpOptionsInput) DescribeDhcpOptionsRequest
}

DescribeDhcpOptionsRequest is the request type for the DescribeDhcpOptions API operation.

func (DescribeDhcpOptionsRequest) Send

Send marshals and sends the DescribeDhcpOptions API request.

type DescribeDhcpOptionsResponse added in v0.9.0

type DescribeDhcpOptionsResponse struct {
	*DescribeDhcpOptionsOutput
	// contains filtered or unexported fields
}

DescribeDhcpOptionsResponse is the response type for the DescribeDhcpOptions API operation.

func (*DescribeDhcpOptionsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeDhcpOptionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeDhcpOptions request.

type DescribeEgressOnlyInternetGatewaysInput

type DescribeEgressOnlyInternetGatewaysInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more egress-only internet gateway IDs.
	EgressOnlyInternetGatewayIds []string `locationName:"EgressOnlyInternetGatewayId" locationNameList:"item" type:"list"`

	// One or more filters.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeEgressOnlyInternetGatewaysInput) String

String returns the string representation

func (*DescribeEgressOnlyInternetGatewaysInput) Validate added in v0.10.0

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

type DescribeEgressOnlyInternetGatewaysOutput

type DescribeEgressOnlyInternetGatewaysOutput struct {

	// Information about the egress-only internet gateways.
	EgressOnlyInternetGateways []EgressOnlyInternetGateway `locationName:"egressOnlyInternetGatewaySet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeEgressOnlyInternetGatewaysOutput) String

String returns the string representation

type DescribeEgressOnlyInternetGatewaysPaginator added in v0.9.0

type DescribeEgressOnlyInternetGatewaysPaginator struct {
	aws.Pager
}

DescribeEgressOnlyInternetGatewaysPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeEgressOnlyInternetGatewaysPaginator added in v0.9.0

func NewDescribeEgressOnlyInternetGatewaysPaginator(req DescribeEgressOnlyInternetGatewaysRequest) DescribeEgressOnlyInternetGatewaysPaginator

NewDescribeEgressOnlyInternetGatewaysRequestPaginator returns a paginator for DescribeEgressOnlyInternetGateways. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeEgressOnlyInternetGatewaysRequest(input)
p := ec2.NewDescribeEgressOnlyInternetGatewaysRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeEgressOnlyInternetGatewaysPaginator) CurrentPage added in v0.9.0

type DescribeEgressOnlyInternetGatewaysRequest

DescribeEgressOnlyInternetGatewaysRequest is the request type for the DescribeEgressOnlyInternetGateways API operation.

func (DescribeEgressOnlyInternetGatewaysRequest) Send

Send marshals and sends the DescribeEgressOnlyInternetGateways API request.

type DescribeEgressOnlyInternetGatewaysResponse added in v0.9.0

type DescribeEgressOnlyInternetGatewaysResponse struct {
	*DescribeEgressOnlyInternetGatewaysOutput
	// contains filtered or unexported fields
}

DescribeEgressOnlyInternetGatewaysResponse is the response type for the DescribeEgressOnlyInternetGateways API operation.

func (*DescribeEgressOnlyInternetGatewaysResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeEgressOnlyInternetGatewaysResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeEgressOnlyInternetGateways request.

type DescribeElasticGpusInput

type DescribeElasticGpusInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The Elastic Graphics accelerator IDs.
	ElasticGpuIds []string `locationName:"ElasticGpuId" locationNameList:"item" type:"list"`

	// The filters.
	//
	//    * availability-zone - The Availability Zone in which the Elastic Graphics
	//    accelerator resides.
	//
	//    * elastic-gpu-health - The status of the Elastic Graphics accelerator
	//    (OK | IMPAIRED).
	//
	//    * elastic-gpu-state - The state of the Elastic Graphics accelerator (ATTACHED).
	//
	//    * elastic-gpu-type - The type of Elastic Graphics accelerator; for example,
	//    eg1.medium.
	//
	//    * instance-id - The ID of the instance to which the Elastic Graphics accelerator
	//    is associated.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned NextToken value. This
	// value can be between 5 and 1000.
	MaxResults *int64 `min:"10" type:"integer"`

	// The token to request the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeElasticGpusInput) String

func (s DescribeElasticGpusInput) String() string

String returns the string representation

func (*DescribeElasticGpusInput) Validate added in v0.9.0

func (s *DescribeElasticGpusInput) Validate() error

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

type DescribeElasticGpusOutput

type DescribeElasticGpusOutput struct {

	// Information about the Elastic Graphics accelerators.
	ElasticGpuSet []ElasticGpus `locationName:"elasticGpuSet" locationNameList:"item" type:"list"`

	// The total number of items to return. If the total number of items available
	// is more than the value specified in max-items then a Next-Token will be provided
	// in the output that you can use to resume pagination.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeElasticGpusOutput) String

func (s DescribeElasticGpusOutput) String() string

String returns the string representation

type DescribeElasticGpusRequest

type DescribeElasticGpusRequest struct {
	*aws.Request
	Input *DescribeElasticGpusInput
	Copy  func(*DescribeElasticGpusInput) DescribeElasticGpusRequest
}

DescribeElasticGpusRequest is the request type for the DescribeElasticGpus API operation.

func (DescribeElasticGpusRequest) Send

Send marshals and sends the DescribeElasticGpus API request.

type DescribeElasticGpusResponse added in v0.9.0

type DescribeElasticGpusResponse struct {
	*DescribeElasticGpusOutput
	// contains filtered or unexported fields
}

DescribeElasticGpusResponse is the response type for the DescribeElasticGpus API operation.

func (*DescribeElasticGpusResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeElasticGpusResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeElasticGpus request.

type DescribeExportImageTasksInput added in v0.12.0

type DescribeExportImageTasksInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of the export image tasks.
	ExportImageTaskIds []string `locationName:"ExportImageTaskId" locationNameList:"ExportImageTaskId" type:"list"`

	// Filter tasks using the task-state filter and one of the following values:
	// active, completed, deleting, or deleted.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return in a single call.
	MaxResults *int64 `min:"1" type:"integer"`

	// A token that indicates the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeExportImageTasksInput) String added in v0.12.0

String returns the string representation

func (*DescribeExportImageTasksInput) Validate added in v0.12.0

func (s *DescribeExportImageTasksInput) Validate() error

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

type DescribeExportImageTasksOutput added in v0.12.0

type DescribeExportImageTasksOutput struct {

	// Information about the export image tasks.
	ExportImageTasks []ExportImageTask `locationName:"exportImageTaskSet" locationNameList:"item" type:"list"`

	// The token to use to get the next page of results. This value is null when
	// there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeExportImageTasksOutput) String added in v0.12.0

String returns the string representation

type DescribeExportImageTasksPaginator added in v0.17.0

type DescribeExportImageTasksPaginator struct {
	aws.Pager
}

DescribeExportImageTasksPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeExportImageTasksPaginator added in v0.17.0

func NewDescribeExportImageTasksPaginator(req DescribeExportImageTasksRequest) DescribeExportImageTasksPaginator

NewDescribeExportImageTasksRequestPaginator returns a paginator for DescribeExportImageTasks. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeExportImageTasksRequest(input)
p := ec2.NewDescribeExportImageTasksRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeExportImageTasksPaginator) CurrentPage added in v0.17.0

type DescribeExportImageTasksRequest added in v0.12.0

type DescribeExportImageTasksRequest struct {
	*aws.Request
	Input *DescribeExportImageTasksInput
	Copy  func(*DescribeExportImageTasksInput) DescribeExportImageTasksRequest
}

DescribeExportImageTasksRequest is the request type for the DescribeExportImageTasks API operation.

func (DescribeExportImageTasksRequest) Send added in v0.12.0

Send marshals and sends the DescribeExportImageTasks API request.

type DescribeExportImageTasksResponse added in v0.12.0

type DescribeExportImageTasksResponse struct {
	*DescribeExportImageTasksOutput
	// contains filtered or unexported fields
}

DescribeExportImageTasksResponse is the response type for the DescribeExportImageTasks API operation.

func (*DescribeExportImageTasksResponse) SDKResponseMetdata added in v0.12.0

func (r *DescribeExportImageTasksResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeExportImageTasks request.

type DescribeExportTasksInput

type DescribeExportTasksInput struct {

	// The export task IDs.
	ExportTaskIds []string `locationName:"exportTaskId" locationNameList:"ExportTaskId" type:"list"`

	// the filters for the export tasks.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeExportTasksInput) String

func (s DescribeExportTasksInput) String() string

String returns the string representation

type DescribeExportTasksOutput

type DescribeExportTasksOutput struct {

	// Information about the export tasks.
	ExportTasks []ExportTask `locationName:"exportTaskSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeExportTasksOutput) String

func (s DescribeExportTasksOutput) String() string

String returns the string representation

type DescribeExportTasksRequest

type DescribeExportTasksRequest struct {
	*aws.Request
	Input *DescribeExportTasksInput
	Copy  func(*DescribeExportTasksInput) DescribeExportTasksRequest
}

DescribeExportTasksRequest is the request type for the DescribeExportTasks API operation.

func (DescribeExportTasksRequest) Send

Send marshals and sends the DescribeExportTasks API request.

type DescribeExportTasksResponse added in v0.9.0

type DescribeExportTasksResponse struct {
	*DescribeExportTasksOutput
	// contains filtered or unexported fields
}

DescribeExportTasksResponse is the response type for the DescribeExportTasks API operation.

func (*DescribeExportTasksResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeExportTasksResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeExportTasks request.

type DescribeFastSnapshotRestoreSuccessItem added in v0.17.0

type DescribeFastSnapshotRestoreSuccessItem struct {

	// The Availability Zone.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The time at which fast snapshot restores entered the disabled state.
	DisabledTime *time.Time `locationName:"disabledTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the disabling state.
	DisablingTime *time.Time `locationName:"disablingTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the enabled state.
	EnabledTime *time.Time `locationName:"enabledTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the enabling state.
	EnablingTime *time.Time `locationName:"enablingTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the optimizing state.
	OptimizingTime *time.Time `locationName:"optimizingTime" type:"timestamp"`

	// The AWS owner alias that enabled fast snapshot restores on the snapshot.
	// This is intended for future use.
	OwnerAlias *string `locationName:"ownerAlias" type:"string"`

	// The ID of the AWS account that enabled fast snapshot restores on the snapshot.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The ID of the snapshot.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// The state of fast snapshot restores.
	State FastSnapshotRestoreStateCode `locationName:"state" type:"string" enum:"true"`

	// The reason for the state transition. The possible values are as follows:
	//
	//    * Client.UserInitiated - The state successfully transitioned to enabling
	//    or disabling.
	//
	//    * Client.UserInitiated - Lifecycle state transition - The state successfully
	//    transitioned to optimizing, enabled, or disabled.
	StateTransitionReason *string `locationName:"stateTransitionReason" type:"string"`
	// contains filtered or unexported fields
}

Describes fast snapshot restores for a snapshot.

func (DescribeFastSnapshotRestoreSuccessItem) String added in v0.17.0

String returns the string representation

type DescribeFastSnapshotRestoresInput added in v0.17.0

type DescribeFastSnapshotRestoresInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The filters. The possible values are:
	//
	//    * availability-zone: The Availability Zone of the snapshot.
	//
	//    * owner-id: The ID of the AWS account that enabled fast snapshot restore
	//    on the snapshot.
	//
	//    * snapshot-id: The ID of the snapshot.
	//
	//    * state: The state of fast snapshot restores for the snapshot (enabling
	//    | optimizing | enabled | disabling | disabled).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeFastSnapshotRestoresInput) String added in v0.17.0

String returns the string representation

type DescribeFastSnapshotRestoresOutput added in v0.17.0

type DescribeFastSnapshotRestoresOutput struct {

	// Information about the state of fast snapshot restores.
	FastSnapshotRestores []DescribeFastSnapshotRestoreSuccessItem `locationName:"fastSnapshotRestoreSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeFastSnapshotRestoresOutput) String added in v0.17.0

String returns the string representation

type DescribeFastSnapshotRestoresPaginator added in v0.17.0

type DescribeFastSnapshotRestoresPaginator struct {
	aws.Pager
}

DescribeFastSnapshotRestoresPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeFastSnapshotRestoresPaginator added in v0.17.0

func NewDescribeFastSnapshotRestoresPaginator(req DescribeFastSnapshotRestoresRequest) DescribeFastSnapshotRestoresPaginator

NewDescribeFastSnapshotRestoresRequestPaginator returns a paginator for DescribeFastSnapshotRestores. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeFastSnapshotRestoresRequest(input)
p := ec2.NewDescribeFastSnapshotRestoresRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeFastSnapshotRestoresPaginator) CurrentPage added in v0.17.0

type DescribeFastSnapshotRestoresRequest added in v0.17.0

type DescribeFastSnapshotRestoresRequest struct {
	*aws.Request
	Input *DescribeFastSnapshotRestoresInput
	Copy  func(*DescribeFastSnapshotRestoresInput) DescribeFastSnapshotRestoresRequest
}

DescribeFastSnapshotRestoresRequest is the request type for the DescribeFastSnapshotRestores API operation.

func (DescribeFastSnapshotRestoresRequest) Send added in v0.17.0

Send marshals and sends the DescribeFastSnapshotRestores API request.

type DescribeFastSnapshotRestoresResponse added in v0.17.0

type DescribeFastSnapshotRestoresResponse struct {
	*DescribeFastSnapshotRestoresOutput
	// contains filtered or unexported fields
}

DescribeFastSnapshotRestoresResponse is the response type for the DescribeFastSnapshotRestores API operation.

func (*DescribeFastSnapshotRestoresResponse) SDKResponseMetdata added in v0.17.0

func (r *DescribeFastSnapshotRestoresResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeFastSnapshotRestores request.

type DescribeFleetError added in v0.6.0

type DescribeFleetError struct {

	// The error code that indicates why the instance could not be launched. For
	// more information about error codes, see Error Codes (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
	ErrorCode *string `locationName:"errorCode" type:"string"`

	// The error message that describes why the instance could not be launched.
	// For more information about error messages, see Error Codes (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
	ErrorMessage *string `locationName:"errorMessage" type:"string"`

	// The launch templates and overrides that were used for launching the instances.
	// The values that you specify in the Overrides replace the values in the launch
	// template.
	LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`

	// Indicates if the instance that could not be launched was a Spot Instance
	// or On-Demand Instance.
	Lifecycle InstanceLifecycle `locationName:"lifecycle" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the instances that could not be launched by the fleet.

func (DescribeFleetError) String added in v0.6.0

func (s DescribeFleetError) String() string

String returns the string representation

type DescribeFleetHistoryInput added in v0.4.0

type DescribeFleetHistoryInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The type of events to describe. By default, all events are described.
	EventType FleetEventType `type:"string" enum:"true"`

	// The ID of the EC2 Fleet.
	//
	// FleetId is a required field
	FleetId *string `type:"string" required:"true"`

	// The maximum number of results to return in a single call. Specify a value
	// between 1 and 1000. The default value is 1000. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// The token for the next set of results.
	NextToken *string `type:"string"`

	// The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	//
	// StartTime is a required field
	StartTime *time.Time `type:"timestamp" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeFleetHistoryInput) String added in v0.4.0

func (s DescribeFleetHistoryInput) String() string

String returns the string representation

func (*DescribeFleetHistoryInput) Validate added in v0.4.0

func (s *DescribeFleetHistoryInput) Validate() error

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

type DescribeFleetHistoryOutput added in v0.4.0

type DescribeFleetHistoryOutput struct {

	// The ID of the EC Fleet.
	FleetId *string `locationName:"fleetId" type:"string"`

	// Information about the events in the history of the EC2 Fleet.
	HistoryRecords []HistoryRecordEntry `locationName:"historyRecordSet" locationNameList:"item" type:"list"`

	// The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	// All records up to this time were retrieved.
	//
	// If nextToken indicates that there are more results, this value is not present.
	LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp"`

	// The token for the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	StartTime *time.Time `locationName:"startTime" type:"timestamp"`
	// contains filtered or unexported fields
}

func (DescribeFleetHistoryOutput) String added in v0.4.0

String returns the string representation

type DescribeFleetHistoryRequest added in v0.4.0

type DescribeFleetHistoryRequest struct {
	*aws.Request
	Input *DescribeFleetHistoryInput
	Copy  func(*DescribeFleetHistoryInput) DescribeFleetHistoryRequest
}

DescribeFleetHistoryRequest is the request type for the DescribeFleetHistory API operation.

func (DescribeFleetHistoryRequest) Send added in v0.4.0

Send marshals and sends the DescribeFleetHistory API request.

type DescribeFleetHistoryResponse added in v0.9.0

type DescribeFleetHistoryResponse struct {
	*DescribeFleetHistoryOutput
	// contains filtered or unexported fields
}

DescribeFleetHistoryResponse is the response type for the DescribeFleetHistory API operation.

func (*DescribeFleetHistoryResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeFleetHistoryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeFleetHistory request.

type DescribeFleetInstancesInput added in v0.4.0

type DescribeFleetInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The filters.
	//
	//    * instance-type - The instance type.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The ID of the EC2 Fleet.
	//
	// FleetId is a required field
	FleetId *string `type:"string" required:"true"`

	// The maximum number of results to return in a single call. Specify a value
	// between 1 and 1000. The default value is 1000. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// The token for the next set of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeFleetInstancesInput) String added in v0.4.0

String returns the string representation

func (*DescribeFleetInstancesInput) Validate added in v0.4.0

func (s *DescribeFleetInstancesInput) Validate() error

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

type DescribeFleetInstancesOutput added in v0.4.0

type DescribeFleetInstancesOutput struct {

	// The running instances. This list is refreshed periodically and might be out
	// of date.
	ActiveInstances []ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list"`

	// The ID of the EC2 Fleet.
	FleetId *string `locationName:"fleetId" type:"string"`

	// The token for the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeFleetInstancesOutput) String added in v0.4.0

String returns the string representation

type DescribeFleetInstancesRequest added in v0.4.0

type DescribeFleetInstancesRequest struct {
	*aws.Request
	Input *DescribeFleetInstancesInput
	Copy  func(*DescribeFleetInstancesInput) DescribeFleetInstancesRequest
}

DescribeFleetInstancesRequest is the request type for the DescribeFleetInstances API operation.

func (DescribeFleetInstancesRequest) Send added in v0.4.0

Send marshals and sends the DescribeFleetInstances API request.

type DescribeFleetInstancesResponse added in v0.9.0

type DescribeFleetInstancesResponse struct {
	*DescribeFleetInstancesOutput
	// contains filtered or unexported fields
}

DescribeFleetInstancesResponse is the response type for the DescribeFleetInstances API operation.

func (*DescribeFleetInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeFleetInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeFleetInstances request.

type DescribeFleetsInput added in v0.4.0

type DescribeFleetsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The filters.
	//
	//    * activity-status - The progress of the EC2 Fleet ( error | pending-fulfillment
	//    | pending-termination | fulfilled).
	//
	//    * excess-capacity-termination-policy - Indicates whether to terminate
	//    running instances if the target capacity is decreased below the current
	//    EC2 Fleet size (true | false).
	//
	//    * fleet-state - The state of the EC2 Fleet (submitted | active | deleted
	//    | failed | deleted-running | deleted-terminating | modifying).
	//
	//    * replace-unhealthy-instances - Indicates whether EC2 Fleet should replace
	//    unhealthy instances (true | false).
	//
	//    * type - The type of request (instant | request | maintain).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The ID of the EC2 Fleets.
	FleetIds []string `locationName:"FleetId" type:"list"`

	// The maximum number of results to return in a single call. Specify a value
	// between 1 and 1000. The default value is 1000. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// The token for the next set of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeFleetsInput) String added in v0.4.0

func (s DescribeFleetsInput) String() string

String returns the string representation

type DescribeFleetsInstances added in v0.6.0

type DescribeFleetsInstances struct {

	// The IDs of the instances.
	InstanceIds []string `locationName:"instanceIds" locationNameList:"item" type:"list"`

	// The instance type.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The launch templates and overrides that were used for launching the instances.
	// The values that you specify in the Overrides replace the values in the launch
	// template.
	LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`

	// Indicates if the instance that was launched is a Spot Instance or On-Demand
	// Instance.
	Lifecycle InstanceLifecycle `locationName:"lifecycle" type:"string" enum:"true"`

	// The value is Windows for Windows instances. Otherwise, the value is blank.
	Platform PlatformValues `locationName:"platform" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the instances that were launched by the fleet.

func (DescribeFleetsInstances) String added in v0.6.0

func (s DescribeFleetsInstances) String() string

String returns the string representation

type DescribeFleetsOutput added in v0.4.0

type DescribeFleetsOutput struct {

	// Information about the EC2 Fleets.
	Fleets []FleetData `locationName:"fleetSet" locationNameList:"item" type:"list"`

	// The token for the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeFleetsOutput) String added in v0.4.0

func (s DescribeFleetsOutput) String() string

String returns the string representation

type DescribeFleetsPaginator added in v0.9.0

type DescribeFleetsPaginator struct {
	aws.Pager
}

DescribeFleetsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeFleetsPaginator added in v0.9.0

func NewDescribeFleetsPaginator(req DescribeFleetsRequest) DescribeFleetsPaginator

NewDescribeFleetsRequestPaginator returns a paginator for DescribeFleets. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeFleetsRequest(input)
p := ec2.NewDescribeFleetsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeFleetsPaginator) CurrentPage added in v0.9.0

type DescribeFleetsRequest added in v0.4.0

type DescribeFleetsRequest struct {
	*aws.Request
	Input *DescribeFleetsInput
	Copy  func(*DescribeFleetsInput) DescribeFleetsRequest
}

DescribeFleetsRequest is the request type for the DescribeFleets API operation.

func (DescribeFleetsRequest) Send added in v0.4.0

Send marshals and sends the DescribeFleets API request.

type DescribeFleetsResponse added in v0.9.0

type DescribeFleetsResponse struct {
	*DescribeFleetsOutput
	// contains filtered or unexported fields
}

DescribeFleetsResponse is the response type for the DescribeFleets API operation.

func (*DescribeFleetsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeFleetsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeFleets request.

type DescribeFlowLogsInput

type DescribeFlowLogsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * deliver-log-status - The status of the logs delivery (SUCCESS | FAILED).
	//
	//    * log-destination-type - The type of destination to which the flow log
	//    publishes data. Possible destination types include cloud-watch-logs and
	//    S3.
	//
	//    * flow-log-id - The ID of the flow log.
	//
	//    * log-group-name - The name of the log group.
	//
	//    * resource-id - The ID of the VPC, subnet, or network interface.
	//
	//    * traffic-type - The type of traffic (ACCEPT | REJECT | ALL).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filter []Filter `locationNameList:"Filter" type:"list"`

	// One or more flow log IDs.
	//
	// Constraint: Maximum of 1000 flow log IDs.
	FlowLogIds []string `locationName:"FlowLogId" locationNameList:"item" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeFlowLogsInput) String

func (s DescribeFlowLogsInput) String() string

String returns the string representation

type DescribeFlowLogsOutput

type DescribeFlowLogsOutput struct {

	// Information about the flow logs.
	FlowLogs []FlowLog `locationName:"flowLogSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeFlowLogsOutput) String

func (s DescribeFlowLogsOutput) String() string

String returns the string representation

type DescribeFlowLogsPaginator added in v0.9.0

type DescribeFlowLogsPaginator struct {
	aws.Pager
}

DescribeFlowLogsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeFlowLogsPaginator added in v0.9.0

func NewDescribeFlowLogsPaginator(req DescribeFlowLogsRequest) DescribeFlowLogsPaginator

NewDescribeFlowLogsRequestPaginator returns a paginator for DescribeFlowLogs. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeFlowLogsRequest(input)
p := ec2.NewDescribeFlowLogsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeFlowLogsPaginator) CurrentPage added in v0.9.0

type DescribeFlowLogsRequest

type DescribeFlowLogsRequest struct {
	*aws.Request
	Input *DescribeFlowLogsInput
	Copy  func(*DescribeFlowLogsInput) DescribeFlowLogsRequest
}

DescribeFlowLogsRequest is the request type for the DescribeFlowLogs API operation.

func (DescribeFlowLogsRequest) Send

Send marshals and sends the DescribeFlowLogs API request.

type DescribeFlowLogsResponse added in v0.9.0

type DescribeFlowLogsResponse struct {
	*DescribeFlowLogsOutput
	// contains filtered or unexported fields
}

DescribeFlowLogsResponse is the response type for the DescribeFlowLogs API operation.

func (*DescribeFlowLogsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeFlowLogsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeFlowLogs request.

type DescribeFpgaImageAttributeInput

type DescribeFpgaImageAttributeInput struct {

	// The AFI attribute.
	//
	// Attribute is a required field
	Attribute FpgaImageAttributeName `type:"string" required:"true" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the AFI.
	//
	// FpgaImageId is a required field
	FpgaImageId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeFpgaImageAttributeInput) String

String returns the string representation

func (*DescribeFpgaImageAttributeInput) Validate

func (s *DescribeFpgaImageAttributeInput) Validate() error

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

type DescribeFpgaImageAttributeOutput

type DescribeFpgaImageAttributeOutput struct {

	// Information about the attribute.
	FpgaImageAttribute *FpgaImageAttribute `locationName:"fpgaImageAttribute" type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeFpgaImageAttributeOutput) String

String returns the string representation

type DescribeFpgaImageAttributeRequest

type DescribeFpgaImageAttributeRequest struct {
	*aws.Request
	Input *DescribeFpgaImageAttributeInput
	Copy  func(*DescribeFpgaImageAttributeInput) DescribeFpgaImageAttributeRequest
}

DescribeFpgaImageAttributeRequest is the request type for the DescribeFpgaImageAttribute API operation.

func (DescribeFpgaImageAttributeRequest) Send

Send marshals and sends the DescribeFpgaImageAttribute API request.

type DescribeFpgaImageAttributeResponse added in v0.9.0

type DescribeFpgaImageAttributeResponse struct {
	*DescribeFpgaImageAttributeOutput
	// contains filtered or unexported fields
}

DescribeFpgaImageAttributeResponse is the response type for the DescribeFpgaImageAttribute API operation.

func (*DescribeFpgaImageAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeFpgaImageAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeFpgaImageAttribute request.

type DescribeFpgaImagesInput

type DescribeFpgaImagesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The filters.
	//
	//    * create-time - The creation time of the AFI.
	//
	//    * fpga-image-id - The FPGA image identifier (AFI ID).
	//
	//    * fpga-image-global-id - The global FPGA image identifier (AGFI ID).
	//
	//    * name - The name of the AFI.
	//
	//    * owner-id - The AWS account ID of the AFI owner.
	//
	//    * product-code - The product code.
	//
	//    * shell-version - The version of the AWS Shell that was used to create
	//    the bitstream.
	//
	//    * state - The state of the AFI (pending | failed | available | unavailable).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * update-time - The time of the most recent update.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The AFI IDs.
	FpgaImageIds []string `locationName:"FpgaImageId" locationNameList:"item" type:"list"`

	// The maximum number of results to return in a single call.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`

	// Filters the AFI by owner. Specify an AWS account ID, self (owner is the sender
	// of the request), or an AWS owner alias (valid values are amazon | aws-marketplace).
	Owners []string `locationName:"Owner" locationNameList:"Owner" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeFpgaImagesInput) String

func (s DescribeFpgaImagesInput) String() string

String returns the string representation

func (*DescribeFpgaImagesInput) Validate

func (s *DescribeFpgaImagesInput) Validate() error

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

type DescribeFpgaImagesOutput

type DescribeFpgaImagesOutput struct {

	// Information about the FPGA images.
	FpgaImages []FpgaImage `locationName:"fpgaImageSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeFpgaImagesOutput) String

func (s DescribeFpgaImagesOutput) String() string

String returns the string representation

type DescribeFpgaImagesPaginator added in v0.9.0

type DescribeFpgaImagesPaginator struct {
	aws.Pager
}

DescribeFpgaImagesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeFpgaImagesPaginator added in v0.9.0

func NewDescribeFpgaImagesPaginator(req DescribeFpgaImagesRequest) DescribeFpgaImagesPaginator

NewDescribeFpgaImagesRequestPaginator returns a paginator for DescribeFpgaImages. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeFpgaImagesRequest(input)
p := ec2.NewDescribeFpgaImagesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeFpgaImagesPaginator) CurrentPage added in v0.9.0

type DescribeFpgaImagesRequest

type DescribeFpgaImagesRequest struct {
	*aws.Request
	Input *DescribeFpgaImagesInput
	Copy  func(*DescribeFpgaImagesInput) DescribeFpgaImagesRequest
}

DescribeFpgaImagesRequest is the request type for the DescribeFpgaImages API operation.

func (DescribeFpgaImagesRequest) Send

Send marshals and sends the DescribeFpgaImages API request.

type DescribeFpgaImagesResponse added in v0.9.0

type DescribeFpgaImagesResponse struct {
	*DescribeFpgaImagesOutput
	// contains filtered or unexported fields
}

DescribeFpgaImagesResponse is the response type for the DescribeFpgaImages API operation.

func (*DescribeFpgaImagesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeFpgaImagesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeFpgaImages request.

type DescribeHostReservationOfferingsInput

type DescribeHostReservationOfferingsInput struct {

	// The filters.
	//
	//    * instance-family - The instance family of the offering (for example,
	//    m4).
	//
	//    * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
	Filter []Filter `locationNameList:"Filter" type:"list"`

	// This is the maximum duration of the reservation to purchase, specified in
	// seconds. Reservations are available in one-year and three-year terms. The
	// number of seconds specified must be the number of seconds in a year (365x24x60x60)
	// times one of the supported durations (1 or 3). For example, specify 94608000
	// for three years.
	MaxDuration *int64 `type:"integer"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the returned
	// nextToken value. This value can be between 5 and 500. If maxResults is given
	// a larger value than 500, you receive an error.
	MaxResults *int64 `min:"5" type:"integer"`

	// This is the minimum duration of the reservation you'd like to purchase, specified
	// in seconds. Reservations are available in one-year and three-year terms.
	// The number of seconds specified must be the number of seconds in a year (365x24x60x60)
	// times one of the supported durations (1 or 3). For example, specify 31536000
	// for one year.
	MinDuration *int64 `type:"integer"`

	// The token to use to retrieve the next page of results.
	NextToken *string `type:"string"`

	// The ID of the reservation offering.
	OfferingId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeHostReservationOfferingsInput) String

String returns the string representation

func (*DescribeHostReservationOfferingsInput) Validate added in v0.8.0

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

type DescribeHostReservationOfferingsOutput

type DescribeHostReservationOfferingsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the offerings.
	OfferingSet []HostOffering `locationName:"offeringSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeHostReservationOfferingsOutput) String

String returns the string representation

type DescribeHostReservationOfferingsPaginator added in v0.9.0

type DescribeHostReservationOfferingsPaginator struct {
	aws.Pager
}

DescribeHostReservationOfferingsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeHostReservationOfferingsPaginator added in v0.9.0

func NewDescribeHostReservationOfferingsPaginator(req DescribeHostReservationOfferingsRequest) DescribeHostReservationOfferingsPaginator

NewDescribeHostReservationOfferingsRequestPaginator returns a paginator for DescribeHostReservationOfferings. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeHostReservationOfferingsRequest(input)
p := ec2.NewDescribeHostReservationOfferingsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeHostReservationOfferingsPaginator) CurrentPage added in v0.9.0

type DescribeHostReservationOfferingsRequest

type DescribeHostReservationOfferingsRequest struct {
	*aws.Request
	Input *DescribeHostReservationOfferingsInput
	Copy  func(*DescribeHostReservationOfferingsInput) DescribeHostReservationOfferingsRequest
}

DescribeHostReservationOfferingsRequest is the request type for the DescribeHostReservationOfferings API operation.

func (DescribeHostReservationOfferingsRequest) Send

Send marshals and sends the DescribeHostReservationOfferings API request.

type DescribeHostReservationOfferingsResponse added in v0.9.0

type DescribeHostReservationOfferingsResponse struct {
	*DescribeHostReservationOfferingsOutput
	// contains filtered or unexported fields
}

DescribeHostReservationOfferingsResponse is the response type for the DescribeHostReservationOfferings API operation.

func (*DescribeHostReservationOfferingsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeHostReservationOfferingsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeHostReservationOfferings request.

type DescribeHostReservationsInput

type DescribeHostReservationsInput struct {

	// The filters.
	//
	//    * instance-family - The instance family (for example, m4).
	//
	//    * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
	//
	//    * state - The state of the reservation (payment-pending | payment-failed
	//    | active | retired).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filter []Filter `locationNameList:"Filter" type:"list"`

	// The host reservation IDs.
	HostReservationIdSet []string `locationNameList:"item" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the returned
	// nextToken value. This value can be between 5 and 500. If maxResults is given
	// a larger value than 500, you receive an error.
	MaxResults *int64 `type:"integer"`

	// The token to use to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeHostReservationsInput) String

String returns the string representation

type DescribeHostReservationsOutput

type DescribeHostReservationsOutput struct {

	// Details about the reservation's configuration.
	HostReservationSet []HostReservation `locationName:"hostReservationSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeHostReservationsOutput) String

String returns the string representation

type DescribeHostReservationsPaginator added in v0.9.0

type DescribeHostReservationsPaginator struct {
	aws.Pager
}

DescribeHostReservationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeHostReservationsPaginator added in v0.9.0

func NewDescribeHostReservationsPaginator(req DescribeHostReservationsRequest) DescribeHostReservationsPaginator

NewDescribeHostReservationsRequestPaginator returns a paginator for DescribeHostReservations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeHostReservationsRequest(input)
p := ec2.NewDescribeHostReservationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeHostReservationsPaginator) CurrentPage added in v0.9.0

type DescribeHostReservationsRequest

type DescribeHostReservationsRequest struct {
	*aws.Request
	Input *DescribeHostReservationsInput
	Copy  func(*DescribeHostReservationsInput) DescribeHostReservationsRequest
}

DescribeHostReservationsRequest is the request type for the DescribeHostReservations API operation.

func (DescribeHostReservationsRequest) Send

Send marshals and sends the DescribeHostReservations API request.

type DescribeHostReservationsResponse added in v0.9.0

type DescribeHostReservationsResponse struct {
	*DescribeHostReservationsOutput
	// contains filtered or unexported fields
}

DescribeHostReservationsResponse is the response type for the DescribeHostReservations API operation.

func (*DescribeHostReservationsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeHostReservationsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeHostReservations request.

type DescribeHostsInput

type DescribeHostsInput struct {

	// The filters.
	//
	//    * auto-placement - Whether auto-placement is enabled or disabled (on |
	//    off).
	//
	//    * availability-zone - The Availability Zone of the host.
	//
	//    * client-token - The idempotency token that you provided when you allocated
	//    the host.
	//
	//    * host-reservation-id - The ID of the reservation assigned to this host.
	//
	//    * instance-type - The instance type size that the Dedicated Host is configured
	//    to support.
	//
	//    * state - The allocation state of the Dedicated Host (available | under-assessment
	//    | permanent-failure | released | released-permanent-failure).
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filter []Filter `locationName:"filter" locationNameList:"Filter" type:"list"`

	// The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches.
	HostIds []string `locationName:"hostId" locationNameList:"item" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the returned
	// nextToken value. This value can be between 5 and 500. If maxResults is given
	// a larger value than 500, you receive an error.
	//
	// You cannot specify this parameter and the host IDs parameter in the same
	// request.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// The token to use to retrieve the next page of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeHostsInput) String

func (s DescribeHostsInput) String() string

String returns the string representation

type DescribeHostsOutput

type DescribeHostsOutput struct {

	// Information about the Dedicated Hosts.
	Hosts []Host `locationName:"hostSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeHostsOutput) String

func (s DescribeHostsOutput) String() string

String returns the string representation

type DescribeHostsPaginator added in v0.9.0

type DescribeHostsPaginator struct {
	aws.Pager
}

DescribeHostsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeHostsPaginator added in v0.9.0

func NewDescribeHostsPaginator(req DescribeHostsRequest) DescribeHostsPaginator

NewDescribeHostsRequestPaginator returns a paginator for DescribeHosts. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeHostsRequest(input)
p := ec2.NewDescribeHostsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeHostsPaginator) CurrentPage added in v0.9.0

func (p *DescribeHostsPaginator) CurrentPage() *DescribeHostsOutput

type DescribeHostsRequest

type DescribeHostsRequest struct {
	*aws.Request
	Input *DescribeHostsInput
	Copy  func(*DescribeHostsInput) DescribeHostsRequest
}

DescribeHostsRequest is the request type for the DescribeHosts API operation.

func (DescribeHostsRequest) Send

Send marshals and sends the DescribeHosts API request.

type DescribeHostsResponse added in v0.9.0

type DescribeHostsResponse struct {
	*DescribeHostsOutput
	// contains filtered or unexported fields
}

DescribeHostsResponse is the response type for the DescribeHosts API operation.

func (*DescribeHostsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeHostsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeHosts request.

type DescribeIamInstanceProfileAssociationsInput

type DescribeIamInstanceProfileAssociationsInput struct {

	// The IAM instance profile associations.
	AssociationIds []string `locationName:"AssociationId" locationNameList:"AssociationId" type:"list"`

	// The filters.
	//
	//    * instance-id - The ID of the instance.
	//
	//    * state - The state of the association (associating | associated | disassociating).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned NextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token to request the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeIamInstanceProfileAssociationsInput) String

String returns the string representation

func (*DescribeIamInstanceProfileAssociationsInput) Validate

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

type DescribeIamInstanceProfileAssociationsOutput

type DescribeIamInstanceProfileAssociationsOutput struct {

	// Information about the IAM instance profile associations.
	IamInstanceProfileAssociations []IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociationSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeIamInstanceProfileAssociationsOutput) String

String returns the string representation

type DescribeIamInstanceProfileAssociationsPaginator added in v0.9.0

type DescribeIamInstanceProfileAssociationsPaginator struct {
	aws.Pager
}

DescribeIamInstanceProfileAssociationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeIamInstanceProfileAssociationsPaginator added in v0.9.0

func NewDescribeIamInstanceProfileAssociationsPaginator(req DescribeIamInstanceProfileAssociationsRequest) DescribeIamInstanceProfileAssociationsPaginator

NewDescribeIamInstanceProfileAssociationsRequestPaginator returns a paginator for DescribeIamInstanceProfileAssociations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeIamInstanceProfileAssociationsRequest(input)
p := ec2.NewDescribeIamInstanceProfileAssociationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeIamInstanceProfileAssociationsPaginator) CurrentPage added in v0.9.0

type DescribeIamInstanceProfileAssociationsRequest

DescribeIamInstanceProfileAssociationsRequest is the request type for the DescribeIamInstanceProfileAssociations API operation.

func (DescribeIamInstanceProfileAssociationsRequest) Send

Send marshals and sends the DescribeIamInstanceProfileAssociations API request.

type DescribeIamInstanceProfileAssociationsResponse added in v0.9.0

type DescribeIamInstanceProfileAssociationsResponse struct {
	*DescribeIamInstanceProfileAssociationsOutput
	// contains filtered or unexported fields
}

DescribeIamInstanceProfileAssociationsResponse is the response type for the DescribeIamInstanceProfileAssociations API operation.

func (*DescribeIamInstanceProfileAssociationsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DescribeIamInstanceProfileAssociations request.

type DescribeIdFormatInput

type DescribeIdFormatInput struct {

	// The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
	// | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
	// | image | import-task | instance | internet-gateway | network-acl | network-acl-association
	// | network-interface | network-interface-attachment | prefix-list | reservation
	// | route-table | route-table-association | security-group | snapshot | subnet
	// | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
	// | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
	Resource *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeIdFormatInput) String

func (s DescribeIdFormatInput) String() string

String returns the string representation

type DescribeIdFormatOutput

type DescribeIdFormatOutput struct {

	// Information about the ID format for the resource.
	Statuses []IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeIdFormatOutput) String

func (s DescribeIdFormatOutput) String() string

String returns the string representation

type DescribeIdFormatRequest

type DescribeIdFormatRequest struct {
	*aws.Request
	Input *DescribeIdFormatInput
	Copy  func(*DescribeIdFormatInput) DescribeIdFormatRequest
}

DescribeIdFormatRequest is the request type for the DescribeIdFormat API operation.

func (DescribeIdFormatRequest) Send

Send marshals and sends the DescribeIdFormat API request.

type DescribeIdFormatResponse added in v0.9.0

type DescribeIdFormatResponse struct {
	*DescribeIdFormatOutput
	// contains filtered or unexported fields
}

DescribeIdFormatResponse is the response type for the DescribeIdFormat API operation.

func (*DescribeIdFormatResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeIdFormatResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeIdFormat request.

type DescribeIdentityIdFormatInput

type DescribeIdentityIdFormatInput struct {

	// The ARN of the principal, which can be an IAM role, IAM user, or the root
	// user.
	//
	// PrincipalArn is a required field
	PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`

	// The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
	// | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
	// | image | import-task | instance | internet-gateway | network-acl | network-acl-association
	// | network-interface | network-interface-attachment | prefix-list | reservation
	// | route-table | route-table-association | security-group | snapshot | subnet
	// | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
	// | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
	Resource *string `locationName:"resource" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeIdentityIdFormatInput) String

String returns the string representation

func (*DescribeIdentityIdFormatInput) Validate

func (s *DescribeIdentityIdFormatInput) Validate() error

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

type DescribeIdentityIdFormatOutput

type DescribeIdentityIdFormatOutput struct {

	// Information about the ID format for the resources.
	Statuses []IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeIdentityIdFormatOutput) String

String returns the string representation

type DescribeIdentityIdFormatRequest

type DescribeIdentityIdFormatRequest struct {
	*aws.Request
	Input *DescribeIdentityIdFormatInput
	Copy  func(*DescribeIdentityIdFormatInput) DescribeIdentityIdFormatRequest
}

DescribeIdentityIdFormatRequest is the request type for the DescribeIdentityIdFormat API operation.

func (DescribeIdentityIdFormatRequest) Send

Send marshals and sends the DescribeIdentityIdFormat API request.

type DescribeIdentityIdFormatResponse added in v0.9.0

type DescribeIdentityIdFormatResponse struct {
	*DescribeIdentityIdFormatOutput
	// contains filtered or unexported fields
}

DescribeIdentityIdFormatResponse is the response type for the DescribeIdentityIdFormat API operation.

func (*DescribeIdentityIdFormatResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeIdentityIdFormatResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeIdentityIdFormat request.

type DescribeImageAttributeInput

type DescribeImageAttributeInput struct {

	// The AMI attribute.
	//
	// Note: Depending on your account privileges, the blockDeviceMapping attribute
	// may return a Client.AuthFailure error. If this happens, use DescribeImages
	// to get information about the block device mapping for the AMI.
	//
	// Attribute is a required field
	Attribute ImageAttributeName `type:"string" required:"true" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the AMI.
	//
	// ImageId is a required field
	ImageId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeImageAttribute.

func (DescribeImageAttributeInput) String

String returns the string representation

func (*DescribeImageAttributeInput) Validate

func (s *DescribeImageAttributeInput) Validate() error

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

type DescribeImageAttributeOutput

type DescribeImageAttributeOutput struct {

	// The block device mapping entries.
	BlockDeviceMappings []BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`

	// A description for the AMI.
	Description *AttributeValue `locationName:"description" type:"structure"`

	// The ID of the AMI.
	ImageId *string `locationName:"imageId" type:"string"`

	// The kernel ID.
	KernelId *AttributeValue `locationName:"kernel" type:"structure"`

	// The launch permissions.
	LaunchPermissions []LaunchPermission `locationName:"launchPermission" locationNameList:"item" type:"list"`

	// The product codes.
	ProductCodes []ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`

	// The RAM disk ID.
	RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`

	// Indicates whether enhanced networking with the Intel 82599 Virtual Function
	// interface is enabled.
	SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
	// contains filtered or unexported fields
}

Describes an image attribute.

func (DescribeImageAttributeOutput) String

String returns the string representation

type DescribeImageAttributeRequest

type DescribeImageAttributeRequest struct {
	*aws.Request
	Input *DescribeImageAttributeInput
	Copy  func(*DescribeImageAttributeInput) DescribeImageAttributeRequest
}

DescribeImageAttributeRequest is the request type for the DescribeImageAttribute API operation.

func (DescribeImageAttributeRequest) Send

Send marshals and sends the DescribeImageAttribute API request.

type DescribeImageAttributeResponse added in v0.9.0

type DescribeImageAttributeResponse struct {
	*DescribeImageAttributeOutput
	// contains filtered or unexported fields
}

DescribeImageAttributeResponse is the response type for the DescribeImageAttribute API operation.

func (*DescribeImageAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeImageAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeImageAttribute request.

type DescribeImagesInput

type DescribeImagesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Scopes the images by users with explicit launch permissions. Specify an AWS
	// account ID, self (the sender of the request), or all (public AMIs).
	ExecutableUsers []string `locationName:"ExecutableBy" locationNameList:"ExecutableBy" type:"list"`

	// The filters.
	//
	//    * architecture - The image architecture (i386 | x86_64 | arm64).
	//
	//    * block-device-mapping.delete-on-termination - A Boolean value that indicates
	//    whether the Amazon EBS volume is deleted on instance termination.
	//
	//    * block-device-mapping.device-name - The device name specified in the
	//    block device mapping (for example, /dev/sdh or xvdh).
	//
	//    * block-device-mapping.snapshot-id - The ID of the snapshot used for the
	//    EBS volume.
	//
	//    * block-device-mapping.volume-size - The volume size of the EBS volume,
	//    in GiB.
	//
	//    * block-device-mapping.volume-type - The volume type of the EBS volume
	//    (gp2 | io1 | st1 | sc1 | standard).
	//
	//    * block-device-mapping.encrypted - A Boolean that indicates whether the
	//    EBS volume is encrypted.
	//
	//    * description - The description of the image (provided during image creation).
	//
	//    * ena-support - A Boolean that indicates whether enhanced networking with
	//    ENA is enabled.
	//
	//    * hypervisor - The hypervisor type (ovm | xen).
	//
	//    * image-id - The ID of the image.
	//
	//    * image-type - The image type (machine | kernel | ramdisk).
	//
	//    * is-public - A Boolean that indicates whether the image is public.
	//
	//    * kernel-id - The kernel ID.
	//
	//    * manifest-location - The location of the image manifest.
	//
	//    * name - The name of the AMI (provided during image creation).
	//
	//    * owner-alias - The owner alias, from an Amazon-maintained list (amazon
	//    | aws-marketplace). This is not the user-configured AWS account alias
	//    set using the IAM console. We recommend that you use the related parameter
	//    instead of this filter.
	//
	//    * owner-id - The AWS account ID of the owner. We recommend that you use
	//    the related parameter instead of this filter.
	//
	//    * platform - The platform. To only list Windows-based AMIs, use windows.
	//
	//    * product-code - The product code.
	//
	//    * product-code.type - The type of the product code (devpay | marketplace).
	//
	//    * ramdisk-id - The RAM disk ID.
	//
	//    * root-device-name - The device name of the root device volume (for example,
	//    /dev/sda1).
	//
	//    * root-device-type - The type of the root device volume (ebs | instance-store).
	//
	//    * state - The state of the image (available | pending | failed).
	//
	//    * state-reason-code - The reason code for the state change.
	//
	//    * state-reason-message - The message for the state change.
	//
	//    * sriov-net-support - A value of simple indicates that enhanced networking
	//    with the Intel 82599 VF interface is enabled.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * virtualization-type - The virtualization type (paravirtual | hvm).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The image IDs.
	//
	// Default: Describes all images available to you.
	ImageIds []string `locationName:"ImageId" locationNameList:"ImageId" type:"list"`

	// Scopes the results to images with the specified owners. You can specify a
	// combination of AWS account IDs, self, amazon, and aws-marketplace. If you
	// omit this parameter, the results include all images for which you have launch
	// permissions, regardless of ownership.
	Owners []string `locationName:"Owner" locationNameList:"Owner" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeImagesInput) String

func (s DescribeImagesInput) String() string

String returns the string representation

type DescribeImagesOutput

type DescribeImagesOutput struct {

	// Information about the images.
	Images []Image `locationName:"imagesSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeImagesOutput) String

func (s DescribeImagesOutput) String() string

String returns the string representation

type DescribeImagesRequest

type DescribeImagesRequest struct {
	*aws.Request
	Input *DescribeImagesInput
	Copy  func(*DescribeImagesInput) DescribeImagesRequest
}

DescribeImagesRequest is the request type for the DescribeImages API operation.

func (DescribeImagesRequest) Send

Send marshals and sends the DescribeImages API request.

type DescribeImagesResponse added in v0.9.0

type DescribeImagesResponse struct {
	*DescribeImagesOutput
	// contains filtered or unexported fields
}

DescribeImagesResponse is the response type for the DescribeImages API operation.

func (*DescribeImagesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeImagesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeImages request.

type DescribeImportImageTasksInput

type DescribeImportImageTasksInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Filter tasks using the task-state filter and one of the following values:
	// active, completed, deleting, or deleted.
	Filters []Filter `locationNameList:"Filter" type:"list"`

	// The IDs of the import image tasks.
	ImportTaskIds []string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`

	// The maximum number of results to return in a single call.
	MaxResults *int64 `type:"integer"`

	// A token that indicates the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeImportImageTasksInput) String

String returns the string representation

type DescribeImportImageTasksOutput

type DescribeImportImageTasksOutput struct {

	// A list of zero or more import image tasks that are currently active or were
	// completed or canceled in the previous 7 days.
	ImportImageTasks []ImportImageTask `locationName:"importImageTaskSet" locationNameList:"item" type:"list"`

	// The token to use to get the next page of results. This value is null when
	// there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeImportImageTasksOutput) String

String returns the string representation

type DescribeImportImageTasksPaginator added in v0.9.0

type DescribeImportImageTasksPaginator struct {
	aws.Pager
}

DescribeImportImageTasksPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeImportImageTasksPaginator added in v0.9.0

func NewDescribeImportImageTasksPaginator(req DescribeImportImageTasksRequest) DescribeImportImageTasksPaginator

NewDescribeImportImageTasksRequestPaginator returns a paginator for DescribeImportImageTasks. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeImportImageTasksRequest(input)
p := ec2.NewDescribeImportImageTasksRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeImportImageTasksPaginator) CurrentPage added in v0.9.0

type DescribeImportImageTasksRequest

type DescribeImportImageTasksRequest struct {
	*aws.Request
	Input *DescribeImportImageTasksInput
	Copy  func(*DescribeImportImageTasksInput) DescribeImportImageTasksRequest
}

DescribeImportImageTasksRequest is the request type for the DescribeImportImageTasks API operation.

func (DescribeImportImageTasksRequest) Send

Send marshals and sends the DescribeImportImageTasks API request.

type DescribeImportImageTasksResponse added in v0.9.0

type DescribeImportImageTasksResponse struct {
	*DescribeImportImageTasksOutput
	// contains filtered or unexported fields
}

DescribeImportImageTasksResponse is the response type for the DescribeImportImageTasks API operation.

func (*DescribeImportImageTasksResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeImportImageTasksResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeImportImageTasks request.

type DescribeImportSnapshotTasksInput

type DescribeImportSnapshotTasksInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The filters.
	Filters []Filter `locationNameList:"Filter" type:"list"`

	// A list of import snapshot task IDs.
	ImportTaskIds []string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// A token that indicates the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeImportSnapshotTasksInput) String

String returns the string representation

type DescribeImportSnapshotTasksOutput

type DescribeImportSnapshotTasksOutput struct {

	// A list of zero or more import snapshot tasks that are currently active or
	// were completed or canceled in the previous 7 days.
	ImportSnapshotTasks []ImportSnapshotTask `locationName:"importSnapshotTaskSet" locationNameList:"item" type:"list"`

	// The token to use to get the next page of results. This value is null when
	// there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeImportSnapshotTasksOutput) String

String returns the string representation

type DescribeImportSnapshotTasksPaginator added in v0.9.0

type DescribeImportSnapshotTasksPaginator struct {
	aws.Pager
}

DescribeImportSnapshotTasksPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeImportSnapshotTasksPaginator added in v0.9.0

func NewDescribeImportSnapshotTasksPaginator(req DescribeImportSnapshotTasksRequest) DescribeImportSnapshotTasksPaginator

NewDescribeImportSnapshotTasksRequestPaginator returns a paginator for DescribeImportSnapshotTasks. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeImportSnapshotTasksRequest(input)
p := ec2.NewDescribeImportSnapshotTasksRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeImportSnapshotTasksPaginator) CurrentPage added in v0.9.0

type DescribeImportSnapshotTasksRequest

type DescribeImportSnapshotTasksRequest struct {
	*aws.Request
	Input *DescribeImportSnapshotTasksInput
	Copy  func(*DescribeImportSnapshotTasksInput) DescribeImportSnapshotTasksRequest
}

DescribeImportSnapshotTasksRequest is the request type for the DescribeImportSnapshotTasks API operation.

func (DescribeImportSnapshotTasksRequest) Send

Send marshals and sends the DescribeImportSnapshotTasks API request.

type DescribeImportSnapshotTasksResponse added in v0.9.0

type DescribeImportSnapshotTasksResponse struct {
	*DescribeImportSnapshotTasksOutput
	// contains filtered or unexported fields
}

DescribeImportSnapshotTasksResponse is the response type for the DescribeImportSnapshotTasks API operation.

func (*DescribeImportSnapshotTasksResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeImportSnapshotTasksResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeImportSnapshotTasks request.

type DescribeInstanceAttributeInput

type DescribeInstanceAttributeInput struct {

	// The instance attribute.
	//
	// Note: The enaSupport attribute is not supported at this time.
	//
	// Attribute is a required field
	Attribute InstanceAttributeName `locationName:"attribute" type:"string" required:"true" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeInstanceAttributeInput) String

String returns the string representation

func (*DescribeInstanceAttributeInput) Validate

func (s *DescribeInstanceAttributeInput) Validate() error

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

type DescribeInstanceAttributeOutput

type DescribeInstanceAttributeOutput struct {

	// The block device mapping of the instance.
	BlockDeviceMappings []InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`

	// If the value is true, you can't terminate the instance through the Amazon
	// EC2 console, CLI, or API; otherwise, you can.
	DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`

	// Indicates whether the instance is optimized for Amazon EBS I/O.
	EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`

	// Indicates whether enhanced networking with ENA is enabled.
	EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`

	// The security groups associated with the instance.
	Groups []GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// Indicates whether an instance stops or terminates when you initiate shutdown
	// from the instance (using the operating system command for system shutdown).
	InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`

	// The instance type.
	InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`

	// The kernel ID.
	KernelId *AttributeValue `locationName:"kernel" type:"structure"`

	// A list of product codes.
	ProductCodes []ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`

	// The RAM disk ID.
	RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`

	// The device name of the root device volume (for example, /dev/sda1).
	RootDeviceName *AttributeValue `locationName:"rootDeviceName" type:"structure"`

	// Indicates whether source/destination checking is enabled. A value of true
	// means that checking is enabled, and false means that checking is disabled.
	// This value must be false for a NAT instance to perform NAT.
	SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`

	// Indicates whether enhanced networking with the Intel 82599 Virtual Function
	// interface is enabled.
	SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`

	// The user data.
	UserData *AttributeValue `locationName:"userData" type:"structure"`
	// contains filtered or unexported fields
}

Describes an instance attribute.

func (DescribeInstanceAttributeOutput) String

String returns the string representation

type DescribeInstanceAttributeRequest

type DescribeInstanceAttributeRequest struct {
	*aws.Request
	Input *DescribeInstanceAttributeInput
	Copy  func(*DescribeInstanceAttributeInput) DescribeInstanceAttributeRequest
}

DescribeInstanceAttributeRequest is the request type for the DescribeInstanceAttribute API operation.

func (DescribeInstanceAttributeRequest) Send

Send marshals and sends the DescribeInstanceAttribute API request.

type DescribeInstanceAttributeResponse added in v0.9.0

type DescribeInstanceAttributeResponse struct {
	*DescribeInstanceAttributeOutput
	// contains filtered or unexported fields
}

DescribeInstanceAttributeResponse is the response type for the DescribeInstanceAttribute API operation.

func (*DescribeInstanceAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeInstanceAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeInstanceAttribute request.

type DescribeInstanceCreditSpecificationsInput added in v0.2.0

type DescribeInstanceCreditSpecificationsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The filters.
	//
	//    * instance-id - The ID of the instance.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The instance IDs.
	//
	// Default: Describes all your instances.
	//
	// Constraints: Maximum 1000 explicitly specified instance IDs.
	InstanceIds []string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned NextToken value. This
	// value can be between 5 and 1000. You cannot specify this parameter and the
	// instance IDs parameter in the same call.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInstanceCreditSpecificationsInput) String added in v0.2.0

String returns the string representation

func (*DescribeInstanceCreditSpecificationsInput) Validate added in v0.8.0

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

type DescribeInstanceCreditSpecificationsOutput added in v0.2.0

type DescribeInstanceCreditSpecificationsOutput struct {

	// Information about the credit option for CPU usage of an instance.
	InstanceCreditSpecifications []InstanceCreditSpecification `locationName:"instanceCreditSpecificationSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInstanceCreditSpecificationsOutput) String added in v0.2.0

String returns the string representation

type DescribeInstanceCreditSpecificationsPaginator added in v0.9.0

type DescribeInstanceCreditSpecificationsPaginator struct {
	aws.Pager
}

DescribeInstanceCreditSpecificationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeInstanceCreditSpecificationsPaginator added in v0.9.0

func NewDescribeInstanceCreditSpecificationsPaginator(req DescribeInstanceCreditSpecificationsRequest) DescribeInstanceCreditSpecificationsPaginator

NewDescribeInstanceCreditSpecificationsRequestPaginator returns a paginator for DescribeInstanceCreditSpecifications. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeInstanceCreditSpecificationsRequest(input)
p := ec2.NewDescribeInstanceCreditSpecificationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeInstanceCreditSpecificationsPaginator) CurrentPage added in v0.9.0

type DescribeInstanceCreditSpecificationsRequest added in v0.2.0

DescribeInstanceCreditSpecificationsRequest is the request type for the DescribeInstanceCreditSpecifications API operation.

func (DescribeInstanceCreditSpecificationsRequest) Send added in v0.2.0

Send marshals and sends the DescribeInstanceCreditSpecifications API request.

type DescribeInstanceCreditSpecificationsResponse added in v0.9.0

type DescribeInstanceCreditSpecificationsResponse struct {
	*DescribeInstanceCreditSpecificationsOutput
	// contains filtered or unexported fields
}

DescribeInstanceCreditSpecificationsResponse is the response type for the DescribeInstanceCreditSpecifications API operation.

func (*DescribeInstanceCreditSpecificationsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DescribeInstanceCreditSpecifications request.

type DescribeInstanceEventNotificationAttributesInput added in v0.21.0

type DescribeInstanceEventNotificationAttributesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (DescribeInstanceEventNotificationAttributesInput) String added in v0.21.0

String returns the string representation

type DescribeInstanceEventNotificationAttributesOutput added in v0.21.0

type DescribeInstanceEventNotificationAttributesOutput struct {

	// Information about the registered tag keys.
	InstanceTagAttribute *InstanceTagNotificationAttribute `locationName:"instanceTagAttribute" type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeInstanceEventNotificationAttributesOutput) String added in v0.21.0

String returns the string representation

type DescribeInstanceEventNotificationAttributesRequest added in v0.21.0

DescribeInstanceEventNotificationAttributesRequest is the request type for the DescribeInstanceEventNotificationAttributes API operation.

func (DescribeInstanceEventNotificationAttributesRequest) Send added in v0.21.0

Send marshals and sends the DescribeInstanceEventNotificationAttributes API request.

type DescribeInstanceEventNotificationAttributesResponse added in v0.21.0

type DescribeInstanceEventNotificationAttributesResponse struct {
	*DescribeInstanceEventNotificationAttributesOutput
	// contains filtered or unexported fields
}

DescribeInstanceEventNotificationAttributesResponse is the response type for the DescribeInstanceEventNotificationAttributes API operation.

func (*DescribeInstanceEventNotificationAttributesResponse) SDKResponseMetdata added in v0.21.0

SDKResponseMetdata returns the response metadata for the DescribeInstanceEventNotificationAttributes request.

type DescribeInstanceStatusInput

type DescribeInstanceStatusInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters.
	//
	//    * availability-zone - The Availability Zone of the instance.
	//
	//    * event.code - The code for the scheduled event (instance-reboot | system-reboot
	//    | system-maintenance | instance-retirement | instance-stop).
	//
	//    * event.description - A description of the event.
	//
	//    * event.instance-event-id - The ID of the event whose date and time you
	//    are modifying.
	//
	//    * event.not-after - The latest end time for the scheduled event (for example,
	//    2014-09-15T17:15:20.000Z).
	//
	//    * event.not-before - The earliest start time for the scheduled event (for
	//    example, 2014-09-15T17:15:20.000Z).
	//
	//    * event.not-before-deadline - The deadline for starting the event (for
	//    example, 2014-09-15T17:15:20.000Z).
	//
	//    * instance-state-code - The code for the instance state, as a 16-bit unsigned
	//    integer. The high byte is used for internal purposes and should be ignored.
	//    The low byte is set based on the state represented. The valid values are
	//    0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
	//    and 80 (stopped).
	//
	//    * instance-state-name - The state of the instance (pending | running |
	//    shutting-down | terminated | stopping | stopped).
	//
	//    * instance-status.reachability - Filters on instance status where the
	//    name is reachability (passed | failed | initializing | insufficient-data).
	//
	//    * instance-status.status - The status of the instance (ok | impaired |
	//    initializing | insufficient-data | not-applicable).
	//
	//    * system-status.reachability - Filters on system status where the name
	//    is reachability (passed | failed | initializing | insufficient-data).
	//
	//    * system-status.status - The system status of the instance (ok | impaired
	//    | initializing | insufficient-data | not-applicable).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// When true, includes the health status for all instances. When false, includes
	// the health status for running instances only.
	//
	// Default: false
	IncludeAllInstances *bool `locationName:"includeAllInstances" type:"boolean"`

	// The instance IDs.
	//
	// Default: Describes all your instances.
	//
	// Constraints: Maximum 100 explicitly specified instance IDs.
	InstanceIds []string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned NextToken value. This
	// value can be between 5 and 1000. You cannot specify this parameter and the
	// instance IDs parameter in the same call.
	MaxResults *int64 `type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInstanceStatusInput) String

String returns the string representation

type DescribeInstanceStatusOutput

type DescribeInstanceStatusOutput struct {

	// Information about the status of the instances.
	InstanceStatuses []InstanceStatus `locationName:"instanceStatusSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInstanceStatusOutput) String

String returns the string representation

type DescribeInstanceStatusPaginator added in v0.9.0

type DescribeInstanceStatusPaginator struct {
	aws.Pager
}

DescribeInstanceStatusPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeInstanceStatusPaginator added in v0.9.0

func NewDescribeInstanceStatusPaginator(req DescribeInstanceStatusRequest) DescribeInstanceStatusPaginator

NewDescribeInstanceStatusRequestPaginator returns a paginator for DescribeInstanceStatus. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeInstanceStatusRequest(input)
p := ec2.NewDescribeInstanceStatusRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeInstanceStatusPaginator) CurrentPage added in v0.9.0

type DescribeInstanceStatusRequest

type DescribeInstanceStatusRequest struct {
	*aws.Request
	Input *DescribeInstanceStatusInput
	Copy  func(*DescribeInstanceStatusInput) DescribeInstanceStatusRequest
}

DescribeInstanceStatusRequest is the request type for the DescribeInstanceStatus API operation.

func (DescribeInstanceStatusRequest) Send

Send marshals and sends the DescribeInstanceStatus API request.

type DescribeInstanceStatusResponse added in v0.9.0

type DescribeInstanceStatusResponse struct {
	*DescribeInstanceStatusOutput
	// contains filtered or unexported fields
}

DescribeInstanceStatusResponse is the response type for the DescribeInstanceStatus API operation.

func (*DescribeInstanceStatusResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeInstanceStatusResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeInstanceStatus request.

type DescribeInstanceTypeOfferingsInput added in v0.18.0

type DescribeInstanceTypeOfferingsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. Filter names and values are case-sensitive.
	//
	//    * location - This depends on the location type. For example, if the location
	//    type is region (default), the location is the Region code (for example,
	//    us-east-2.)
	//
	//    * instance-type - The instance type.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The location type.
	LocationType LocationType `type:"string" enum:"true"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the next
	// token value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInstanceTypeOfferingsInput) String added in v0.18.0

String returns the string representation

func (*DescribeInstanceTypeOfferingsInput) Validate added in v0.18.0

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

type DescribeInstanceTypeOfferingsOutput added in v0.18.0

type DescribeInstanceTypeOfferingsOutput struct {

	// The instance types offered.
	InstanceTypeOfferings []InstanceTypeOffering `locationName:"instanceTypeOfferingSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInstanceTypeOfferingsOutput) String added in v0.18.0

String returns the string representation

type DescribeInstanceTypeOfferingsPaginator added in v0.20.0

type DescribeInstanceTypeOfferingsPaginator struct {
	aws.Pager
}

DescribeInstanceTypeOfferingsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeInstanceTypeOfferingsPaginator added in v0.20.0

func NewDescribeInstanceTypeOfferingsPaginator(req DescribeInstanceTypeOfferingsRequest) DescribeInstanceTypeOfferingsPaginator

NewDescribeInstanceTypeOfferingsRequestPaginator returns a paginator for DescribeInstanceTypeOfferings. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeInstanceTypeOfferingsRequest(input)
p := ec2.NewDescribeInstanceTypeOfferingsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeInstanceTypeOfferingsPaginator) CurrentPage added in v0.20.0

type DescribeInstanceTypeOfferingsRequest added in v0.18.0

type DescribeInstanceTypeOfferingsRequest struct {
	*aws.Request
	Input *DescribeInstanceTypeOfferingsInput
	Copy  func(*DescribeInstanceTypeOfferingsInput) DescribeInstanceTypeOfferingsRequest
}

DescribeInstanceTypeOfferingsRequest is the request type for the DescribeInstanceTypeOfferings API operation.

func (DescribeInstanceTypeOfferingsRequest) Send added in v0.18.0

Send marshals and sends the DescribeInstanceTypeOfferings API request.

type DescribeInstanceTypeOfferingsResponse added in v0.18.0

type DescribeInstanceTypeOfferingsResponse struct {
	*DescribeInstanceTypeOfferingsOutput
	// contains filtered or unexported fields
}

DescribeInstanceTypeOfferingsResponse is the response type for the DescribeInstanceTypeOfferings API operation.

func (*DescribeInstanceTypeOfferingsResponse) SDKResponseMetdata added in v0.18.0

func (r *DescribeInstanceTypeOfferingsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeInstanceTypeOfferings request.

type DescribeInstanceTypesInput added in v0.18.0

type DescribeInstanceTypesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. Filter names and values are case-sensitive.
	//
	//    * auto-recovery-supported - Indicates whether auto recovery is supported.
	//    (true | false)
	//
	//    * bare-metal - Indicates whether it is a bare metal instance type. (true
	//    | false)
	//
	//    * burstable-performance-supported - Indicates whether it is a burstable
	//    performance instance type. (true | false)
	//
	//    * current-generation - Indicates whether this instance type is the latest
	//    generation instance type of an instance family. (true | false)
	//
	//    * ebs-info.ebs-optimized-info.baseline-bandwidth-in-mbps - The baseline
	//    bandwidth performance for an EBS-optimized instance type, in Mbps.
	//
	//    * ebs-info.ebs-optimized-info.baseline-throughput-in-mbps - The baseline
	//    throughput performance for an EBS-optimized instance type, in MBps.
	//
	//    * ebs-info.ebs-optimized-info.baseline-iops - The baseline input/output
	//    storage operations per second for an EBS-optimized instance type.
	//
	//    * ebs-info.ebs-optimized-info.maximum-bandwidth-in-mbps - The maximum
	//    bandwidth performance for an EBS-optimized instance type, in Mbps.
	//
	//    * ebs-info.ebs-optimized-info.maximum-throughput-in-mbps - The maximum
	//    throughput performance for an EBS-optimized instance type, in MBps.
	//
	//    * ebs-info.ebs-optimized-info.maximum-iops - The maximum input/output
	//    storage operations per second for an EBS-optimized instance type.
	//
	//    * ebs-info.ebs-optimized-support - Indicates whether the instance type
	//    is EBS-optimized. (supported | unsupported | default)
	//
	//    * ebs-info.encryption-support - Indicates whether EBS encryption is supported.
	//    (supported | unsupported)
	//
	//    * ebs-info.nvme-support - Indicates whether non-volatile memory express
	//    (NVMe) is supported or required. (required | supported | unsupported)
	//
	//    * free-tier-eligible - Indicates whether the instance type is eligible
	//    to use in the free tier. (true | false)
	//
	//    * hibernation-supported - Indicates whether On-Demand hibernation is supported.
	//    (true | false)
	//
	//    * hypervisor - The hypervisor used. (nitro | xen)
	//
	//    * instance-storage-info.disk.count - The number of local disks.
	//
	//    * instance-storage-info.disk.size-in-gb - The storage size of each instance
	//    storage disk, in GB.
	//
	//    * instance-storage-info.disk.type - The storage technology for the local
	//    instance storage disks. (hdd | ssd)
	//
	//    * instance-storage-info.total-size-in-gb - The total amount of storage
	//    available from all local instance storage, in GB.
	//
	//    * instance-storage-supported - Indicates whether the instance type has
	//    local instance storage. (true | false)
	//
	//    * memory-info.size-in-mib - The memory size.
	//
	//    * network-info.ena-support - Indicates whether Elastic Network Adapter
	//    (ENA) is supported or required. (required | supported | unsupported)
	//
	//    * network-info.efa-supported - Indicates whether the instance type supports
	//    Elastic Fabric Adapter (EFA). (true | false)
	//
	//    * network-info.ipv4-addresses-per-interface - The maximum number of private
	//    IPv4 addresses per network interface.
	//
	//    * network-info.ipv6-addresses-per-interface - The maximum number of private
	//    IPv6 addresses per network interface.
	//
	//    * network-info.ipv6-supported - Indicates whether the instance type supports
	//    IPv6. (true | false)
	//
	//    * network-info.maximum-network-interfaces - The maximum number of network
	//    interfaces per instance.
	//
	//    * network-info.network-performance - Describes the network performance.
	//
	//    * processor-info.sustained-clock-speed-in-ghz - The CPU clock speed, in
	//    GHz.
	//
	//    * vcpu-info.default-cores - The default number of cores for the instance
	//    type.
	//
	//    * vcpu-info.default-threads-per-core - The default number of threads per
	//    core for the instance type.
	//
	//    * vcpu-info.default-vcpus - The default number of vCPUs for the instance
	//    type.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The instance types. For more information, see Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	InstanceTypes []InstanceType `locationName:"InstanceType" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the next
	// token value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInstanceTypesInput) String added in v0.18.0

String returns the string representation

func (*DescribeInstanceTypesInput) Validate added in v0.18.0

func (s *DescribeInstanceTypesInput) Validate() error

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

type DescribeInstanceTypesOutput added in v0.18.0

type DescribeInstanceTypesOutput struct {

	// The instance type. For more information, see Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	InstanceTypes []InstanceTypeInfo `locationName:"instanceTypeSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInstanceTypesOutput) String added in v0.18.0

String returns the string representation

type DescribeInstanceTypesPaginator added in v0.20.0

type DescribeInstanceTypesPaginator struct {
	aws.Pager
}

DescribeInstanceTypesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeInstanceTypesPaginator added in v0.20.0

func NewDescribeInstanceTypesPaginator(req DescribeInstanceTypesRequest) DescribeInstanceTypesPaginator

NewDescribeInstanceTypesRequestPaginator returns a paginator for DescribeInstanceTypes. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeInstanceTypesRequest(input)
p := ec2.NewDescribeInstanceTypesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeInstanceTypesPaginator) CurrentPage added in v0.20.0

type DescribeInstanceTypesRequest added in v0.18.0

type DescribeInstanceTypesRequest struct {
	*aws.Request
	Input *DescribeInstanceTypesInput
	Copy  func(*DescribeInstanceTypesInput) DescribeInstanceTypesRequest
}

DescribeInstanceTypesRequest is the request type for the DescribeInstanceTypes API operation.

func (DescribeInstanceTypesRequest) Send added in v0.18.0

Send marshals and sends the DescribeInstanceTypes API request.

type DescribeInstanceTypesResponse added in v0.18.0

type DescribeInstanceTypesResponse struct {
	*DescribeInstanceTypesOutput
	// contains filtered or unexported fields
}

DescribeInstanceTypesResponse is the response type for the DescribeInstanceTypes API operation.

func (*DescribeInstanceTypesResponse) SDKResponseMetdata added in v0.18.0

func (r *DescribeInstanceTypesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeInstanceTypes request.

type DescribeInstancesInput

type DescribeInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters.
	//
	//    * affinity - The affinity setting for an instance running on a Dedicated
	//    Host (default | host).
	//
	//    * architecture - The instance architecture (i386 | x86_64 | arm64).
	//
	//    * availability-zone - The Availability Zone of the instance.
	//
	//    * block-device-mapping.attach-time - The attach time for an EBS volume
	//    mapped to the instance, for example, 2010-09-15T17:15:20.000Z.
	//
	//    * block-device-mapping.delete-on-termination - A Boolean that indicates
	//    whether the EBS volume is deleted on instance termination.
	//
	//    * block-device-mapping.device-name - The device name specified in the
	//    block device mapping (for example, /dev/sdh or xvdh).
	//
	//    * block-device-mapping.status - The status for the EBS volume (attaching
	//    | attached | detaching | detached).
	//
	//    * block-device-mapping.volume-id - The volume ID of the EBS volume.
	//
	//    * client-token - The idempotency token you provided when you launched
	//    the instance.
	//
	//    * dns-name - The public DNS name of the instance.
	//
	//    * group-id - The ID of the security group for the instance. EC2-Classic
	//    only.
	//
	//    * group-name - The name of the security group for the instance. EC2-Classic
	//    only.
	//
	//    * hibernation-options.configured - A Boolean that indicates whether the
	//    instance is enabled for hibernation. A value of true means that the instance
	//    is enabled for hibernation.
	//
	//    * host-id - The ID of the Dedicated Host on which the instance is running,
	//    if applicable.
	//
	//    * hypervisor - The hypervisor type of the instance (ovm | xen). The value
	//    xen is used for both Xen and Nitro hypervisors.
	//
	//    * iam-instance-profile.arn - The instance profile associated with the
	//    instance. Specified as an ARN.
	//
	//    * image-id - The ID of the image used to launch the instance.
	//
	//    * instance-id - The ID of the instance.
	//
	//    * instance-lifecycle - Indicates whether this is a Spot Instance or a
	//    Scheduled Instance (spot | scheduled).
	//
	//    * instance-state-code - The state of the instance, as a 16-bit unsigned
	//    integer. The high byte is used for internal purposes and should be ignored.
	//    The low byte is set based on the state represented. The valid values are:
	//    0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
	//    and 80 (stopped).
	//
	//    * instance-state-name - The state of the instance (pending | running |
	//    shutting-down | terminated | stopping | stopped).
	//
	//    * instance-type - The type of instance (for example, t2.micro).
	//
	//    * instance.group-id - The ID of the security group for the instance.
	//
	//    * instance.group-name - The name of the security group for the instance.
	//
	//    * ip-address - The public IPv4 address of the instance.
	//
	//    * kernel-id - The kernel ID.
	//
	//    * key-name - The name of the key pair used when the instance was launched.
	//
	//    * launch-index - When launching multiple instances, this is the index
	//    for the instance in the launch group (for example, 0, 1, 2, and so on).
	//
	//    * launch-time - The time when the instance was launched.
	//
	//    * metadata-options.http-tokens - The metadata request authorization state
	//    (optional | required)
	//
	//    * metadata-options.http-put-response-hop-limit - The http metadata request
	//    put response hop limit (integer, possible values 1 to 64)
	//
	//    * metadata-options.http-endpoint - Enable or disable metadata access on
	//    http endpoint (enabled | disabled)
	//
	//    * monitoring-state - Indicates whether detailed monitoring is enabled
	//    (disabled | enabled).
	//
	//    * network-interface.addresses.private-ip-address - The private IPv4 address
	//    associated with the network interface.
	//
	//    * network-interface.addresses.primary - Specifies whether the IPv4 address
	//    of the network interface is the primary private IPv4 address.
	//
	//    * network-interface.addresses.association.public-ip - The ID of the association
	//    of an Elastic IP address (IPv4) with a network interface.
	//
	//    * network-interface.addresses.association.ip-owner-id - The owner ID of
	//    the private IPv4 address associated with the network interface.
	//
	//    * network-interface.association.public-ip - The address of the Elastic
	//    IP address (IPv4) bound to the network interface.
	//
	//    * network-interface.association.ip-owner-id - The owner of the Elastic
	//    IP address (IPv4) associated with the network interface.
	//
	//    * network-interface.association.allocation-id - The allocation ID returned
	//    when you allocated the Elastic IP address (IPv4) for your network interface.
	//
	//    * network-interface.association.association-id - The association ID returned
	//    when the network interface was associated with an IPv4 address.
	//
	//    * network-interface.attachment.attachment-id - The ID of the interface
	//    attachment.
	//
	//    * network-interface.attachment.instance-id - The ID of the instance to
	//    which the network interface is attached.
	//
	//    * network-interface.attachment.instance-owner-id - The owner ID of the
	//    instance to which the network interface is attached.
	//
	//    * network-interface.attachment.device-index - The device index to which
	//    the network interface is attached.
	//
	//    * network-interface.attachment.status - The status of the attachment (attaching
	//    | attached | detaching | detached).
	//
	//    * network-interface.attachment.attach-time - The time that the network
	//    interface was attached to an instance.
	//
	//    * network-interface.attachment.delete-on-termination - Specifies whether
	//    the attachment is deleted when an instance is terminated.
	//
	//    * network-interface.availability-zone - The Availability Zone for the
	//    network interface.
	//
	//    * network-interface.description - The description of the network interface.
	//
	//    * network-interface.group-id - The ID of a security group associated with
	//    the network interface.
	//
	//    * network-interface.group-name - The name of a security group associated
	//    with the network interface.
	//
	//    * network-interface.ipv6-addresses.ipv6-address - The IPv6 address associated
	//    with the network interface.
	//
	//    * network-interface.mac-address - The MAC address of the network interface.
	//
	//    * network-interface.network-interface-id - The ID of the network interface.
	//
	//    * network-interface.owner-id - The ID of the owner of the network interface.
	//
	//    * network-interface.private-dns-name - The private DNS name of the network
	//    interface.
	//
	//    * network-interface.requester-id - The requester ID for the network interface.
	//
	//    * network-interface.requester-managed - Indicates whether the network
	//    interface is being managed by AWS.
	//
	//    * network-interface.status - The status of the network interface (available)
	//    | in-use).
	//
	//    * network-interface.source-dest-check - Whether the network interface
	//    performs source/destination checking. A value of true means that checking
	//    is enabled, and false means that checking is disabled. The value must
	//    be false for the network interface to perform network address translation
	//    (NAT) in your VPC.
	//
	//    * network-interface.subnet-id - The ID of the subnet for the network interface.
	//
	//    * network-interface.vpc-id - The ID of the VPC for the network interface.
	//
	//    * owner-id - The AWS account ID of the instance owner.
	//
	//    * placement-group-name - The name of the placement group for the instance.
	//
	//    * placement-partition-number - The partition in which the instance is
	//    located.
	//
	//    * platform - The platform. To list only Windows instances, use windows.
	//
	//    * private-dns-name - The private IPv4 DNS name of the instance.
	//
	//    * private-ip-address - The private IPv4 address of the instance.
	//
	//    * product-code - The product code associated with the AMI used to launch
	//    the instance.
	//
	//    * product-code.type - The type of product code (devpay | marketplace).
	//
	//    * ramdisk-id - The RAM disk ID.
	//
	//    * reason - The reason for the current state of the instance (for example,
	//    shows "User Initiated [date]" when you stop or terminate the instance).
	//    Similar to the state-reason-code filter.
	//
	//    * requester-id - The ID of the entity that launched the instance on your
	//    behalf (for example, AWS Management Console, Auto Scaling, and so on).
	//
	//    * reservation-id - The ID of the instance's reservation. A reservation
	//    ID is created any time you launch an instance. A reservation ID has a
	//    one-to-one relationship with an instance launch request, but can be associated
	//    with more than one instance if you launch multiple instances using the
	//    same launch request. For example, if you launch one instance, you get
	//    one reservation ID. If you launch ten instances using the same launch
	//    request, you also get one reservation ID.
	//
	//    * root-device-name - The device name of the root device volume (for example,
	//    /dev/sda1).
	//
	//    * root-device-type - The type of the root device volume (ebs | instance-store).
	//
	//    * source-dest-check - Indicates whether the instance performs source/destination
	//    checking. A value of true means that checking is enabled, and false means
	//    that checking is disabled. The value must be false for the instance to
	//    perform network address translation (NAT) in your VPC.
	//
	//    * spot-instance-request-id - The ID of the Spot Instance request.
	//
	//    * state-reason-code - The reason code for the state change.
	//
	//    * state-reason-message - A message that describes the state change.
	//
	//    * subnet-id - The ID of the subnet for the instance.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources that have a tag with a specific key, regardless
	//    of the tag value.
	//
	//    * tenancy - The tenancy of an instance (dedicated | default | host).
	//
	//    * virtualization-type - The virtualization type of the instance (paravirtual
	//    | hvm).
	//
	//    * vpc-id - The ID of the VPC that the instance is running in.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The instance IDs.
	//
	// Default: Describes all your instances.
	InstanceIds []string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned NextToken value. This
	// value can be between 5 and 1000. You cannot specify this parameter and the
	// instance IDs parameter in the same call.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// The token to request the next page of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInstancesInput) String

func (s DescribeInstancesInput) String() string

String returns the string representation

type DescribeInstancesOutput

type DescribeInstancesOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the reservations.
	Reservations []Reservation `locationName:"reservationSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeInstancesOutput) String

func (s DescribeInstancesOutput) String() string

String returns the string representation

type DescribeInstancesPaginator added in v0.9.0

type DescribeInstancesPaginator struct {
	aws.Pager
}

DescribeInstancesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeInstancesPaginator added in v0.9.0

func NewDescribeInstancesPaginator(req DescribeInstancesRequest) DescribeInstancesPaginator

NewDescribeInstancesRequestPaginator returns a paginator for DescribeInstances. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeInstancesRequest(input)
p := ec2.NewDescribeInstancesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeInstancesPaginator) CurrentPage added in v0.9.0

type DescribeInstancesRequest

type DescribeInstancesRequest struct {
	*aws.Request
	Input *DescribeInstancesInput
	Copy  func(*DescribeInstancesInput) DescribeInstancesRequest
}

DescribeInstancesRequest is the request type for the DescribeInstances API operation.

func (DescribeInstancesRequest) Send

Send marshals and sends the DescribeInstances API request.

type DescribeInstancesResponse added in v0.9.0

type DescribeInstancesResponse struct {
	*DescribeInstancesOutput
	// contains filtered or unexported fields
}

DescribeInstancesResponse is the response type for the DescribeInstances API operation.

func (*DescribeInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeInstances request.

type DescribeInternetGatewaysInput

type DescribeInternetGatewaysInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * attachment.state - The current state of the attachment between the gateway
	//    and the VPC (available). Present only if a VPC is attached.
	//
	//    * attachment.vpc-id - The ID of an attached VPC.
	//
	//    * internet-gateway-id - The ID of the Internet gateway.
	//
	//    * owner-id - The ID of the AWS account that owns the internet gateway.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// One or more internet gateway IDs.
	//
	// Default: Describes all your internet gateways.
	InternetGatewayIds []string `locationName:"internetGatewayId" locationNameList:"item" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInternetGatewaysInput) String

String returns the string representation

func (*DescribeInternetGatewaysInput) Validate added in v0.8.0

func (s *DescribeInternetGatewaysInput) Validate() error

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

type DescribeInternetGatewaysOutput

type DescribeInternetGatewaysOutput struct {

	// Information about one or more internet gateways.
	InternetGateways []InternetGateway `locationName:"internetGatewaySet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInternetGatewaysOutput) String

String returns the string representation

type DescribeInternetGatewaysPaginator added in v0.9.0

type DescribeInternetGatewaysPaginator struct {
	aws.Pager
}

DescribeInternetGatewaysPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeInternetGatewaysPaginator added in v0.9.0

func NewDescribeInternetGatewaysPaginator(req DescribeInternetGatewaysRequest) DescribeInternetGatewaysPaginator

NewDescribeInternetGatewaysRequestPaginator returns a paginator for DescribeInternetGateways. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeInternetGatewaysRequest(input)
p := ec2.NewDescribeInternetGatewaysRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeInternetGatewaysPaginator) CurrentPage added in v0.9.0

type DescribeInternetGatewaysRequest

type DescribeInternetGatewaysRequest struct {
	*aws.Request
	Input *DescribeInternetGatewaysInput
	Copy  func(*DescribeInternetGatewaysInput) DescribeInternetGatewaysRequest
}

DescribeInternetGatewaysRequest is the request type for the DescribeInternetGateways API operation.

func (DescribeInternetGatewaysRequest) Send

Send marshals and sends the DescribeInternetGateways API request.

type DescribeInternetGatewaysResponse added in v0.9.0

type DescribeInternetGatewaysResponse struct {
	*DescribeInternetGatewaysOutput
	// contains filtered or unexported fields
}

DescribeInternetGatewaysResponse is the response type for the DescribeInternetGateways API operation.

func (*DescribeInternetGatewaysResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeInternetGatewaysResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeInternetGateways request.

type DescribeIpv6PoolsInput added in v0.19.0

type DescribeIpv6PoolsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"1" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The IDs of the IPv6 address pools.
	PoolIds []string `locationName:"PoolId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeIpv6PoolsInput) String added in v0.19.0

func (s DescribeIpv6PoolsInput) String() string

String returns the string representation

func (*DescribeIpv6PoolsInput) Validate added in v0.19.0

func (s *DescribeIpv6PoolsInput) Validate() error

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

type DescribeIpv6PoolsOutput added in v0.19.0

type DescribeIpv6PoolsOutput struct {

	// Information about the IPv6 address pools.
	Ipv6Pools []Ipv6Pool `locationName:"ipv6PoolSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeIpv6PoolsOutput) String added in v0.19.0

func (s DescribeIpv6PoolsOutput) String() string

String returns the string representation

type DescribeIpv6PoolsPaginator added in v0.19.0

type DescribeIpv6PoolsPaginator struct {
	aws.Pager
}

DescribeIpv6PoolsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeIpv6PoolsPaginator added in v0.19.0

func NewDescribeIpv6PoolsPaginator(req DescribeIpv6PoolsRequest) DescribeIpv6PoolsPaginator

NewDescribeIpv6PoolsRequestPaginator returns a paginator for DescribeIpv6Pools. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeIpv6PoolsRequest(input)
p := ec2.NewDescribeIpv6PoolsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeIpv6PoolsPaginator) CurrentPage added in v0.19.0

type DescribeIpv6PoolsRequest added in v0.19.0

type DescribeIpv6PoolsRequest struct {
	*aws.Request
	Input *DescribeIpv6PoolsInput
	Copy  func(*DescribeIpv6PoolsInput) DescribeIpv6PoolsRequest
}

DescribeIpv6PoolsRequest is the request type for the DescribeIpv6Pools API operation.

func (DescribeIpv6PoolsRequest) Send added in v0.19.0

Send marshals and sends the DescribeIpv6Pools API request.

type DescribeIpv6PoolsResponse added in v0.19.0

type DescribeIpv6PoolsResponse struct {
	*DescribeIpv6PoolsOutput
	// contains filtered or unexported fields
}

DescribeIpv6PoolsResponse is the response type for the DescribeIpv6Pools API operation.

func (*DescribeIpv6PoolsResponse) SDKResponseMetdata added in v0.19.0

func (r *DescribeIpv6PoolsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeIpv6Pools request.

type DescribeKeyPairsInput

type DescribeKeyPairsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters.
	//
	//    * key-pair-id - The ID of the key pair.
	//
	//    * fingerprint - The fingerprint of the key pair.
	//
	//    * key-name - The name of the key pair.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The key pair names.
	//
	// Default: Describes all your key pairs.
	KeyNames []string `locationName:"KeyName" locationNameList:"KeyName" type:"list"`

	// The IDs of the key pairs.
	KeyPairIds []string `locationName:"KeyPairId" locationNameList:"KeyPairId" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeKeyPairsInput) String

func (s DescribeKeyPairsInput) String() string

String returns the string representation

type DescribeKeyPairsOutput

type DescribeKeyPairsOutput struct {

	// Information about the key pairs.
	KeyPairs []KeyPairInfo `locationName:"keySet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeKeyPairsOutput) String

func (s DescribeKeyPairsOutput) String() string

String returns the string representation

type DescribeKeyPairsRequest

type DescribeKeyPairsRequest struct {
	*aws.Request
	Input *DescribeKeyPairsInput
	Copy  func(*DescribeKeyPairsInput) DescribeKeyPairsRequest
}

DescribeKeyPairsRequest is the request type for the DescribeKeyPairs API operation.

func (DescribeKeyPairsRequest) Send

Send marshals and sends the DescribeKeyPairs API request.

type DescribeKeyPairsResponse added in v0.9.0

type DescribeKeyPairsResponse struct {
	*DescribeKeyPairsOutput
	// contains filtered or unexported fields
}

DescribeKeyPairsResponse is the response type for the DescribeKeyPairs API operation.

func (*DescribeKeyPairsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeKeyPairsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeKeyPairs request.

type DescribeLaunchTemplateVersionsInput added in v0.2.0

type DescribeLaunchTemplateVersionsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * create-time - The time the launch template version was created.
	//
	//    * ebs-optimized - A boolean that indicates whether the instance is optimized
	//    for Amazon EBS I/O.
	//
	//    * iam-instance-profile - The ARN of the IAM instance profile.
	//
	//    * image-id - The ID of the AMI.
	//
	//    * instance-type - The instance type.
	//
	//    * is-default-version - A boolean that indicates whether the launch template
	//    version is the default version.
	//
	//    * kernel-id - The kernel ID.
	//
	//    * ram-disk-id - The RAM disk ID.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The ID of the launch template. To describe one or more versions of a specified
	// launch template, you must specify either the launch template ID or the launch
	// template name in the request. To describe all the latest or default launch
	// template versions in your account, you must omit this parameter.
	LaunchTemplateId *string `type:"string"`

	// The name of the launch template. To describe one or more versions of a specified
	// launch template, you must specify either the launch template ID or the launch
	// template name in the request. To describe all the latest or default launch
	// template versions in your account, you must omit this parameter.
	LaunchTemplateName *string `min:"3" type:"string"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned NextToken value. This
	// value can be between 1 and 200.
	MaxResults *int64 `type:"integer"`

	// The version number up to which to describe launch template versions.
	MaxVersion *string `type:"string"`

	// The version number after which to describe launch template versions.
	MinVersion *string `type:"string"`

	// The token to request the next page of results.
	NextToken *string `type:"string"`

	// One or more versions of the launch template. Valid values depend on whether
	// you are describing a specified launch template (by ID or name) or all launch
	// templates in your account.
	//
	// To describe one or more versions of a specified launch template, valid values
	// are $Latest, $Default, and numbers.
	//
	// To describe all launch templates in your account that are defined as the
	// latest version, the valid value is $Latest. To describe all launch templates
	// in your account that are defined as the default version, the valid value
	// is $Default. You can specify $Latest and $Default in the same call. You cannot
	// specify numbers.
	Versions []string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeLaunchTemplateVersionsInput) String added in v0.2.0

String returns the string representation

func (*DescribeLaunchTemplateVersionsInput) Validate added in v0.2.0

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

type DescribeLaunchTemplateVersionsOutput added in v0.2.0

type DescribeLaunchTemplateVersionsOutput struct {

	// Information about the launch template versions.
	LaunchTemplateVersions []LaunchTemplateVersion `locationName:"launchTemplateVersionSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLaunchTemplateVersionsOutput) String added in v0.2.0

String returns the string representation

type DescribeLaunchTemplateVersionsPaginator added in v0.9.0

type DescribeLaunchTemplateVersionsPaginator struct {
	aws.Pager
}

DescribeLaunchTemplateVersionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeLaunchTemplateVersionsPaginator added in v0.9.0

func NewDescribeLaunchTemplateVersionsPaginator(req DescribeLaunchTemplateVersionsRequest) DescribeLaunchTemplateVersionsPaginator

NewDescribeLaunchTemplateVersionsRequestPaginator returns a paginator for DescribeLaunchTemplateVersions. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeLaunchTemplateVersionsRequest(input)
p := ec2.NewDescribeLaunchTemplateVersionsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeLaunchTemplateVersionsPaginator) CurrentPage added in v0.9.0

type DescribeLaunchTemplateVersionsRequest added in v0.2.0

type DescribeLaunchTemplateVersionsRequest struct {
	*aws.Request
	Input *DescribeLaunchTemplateVersionsInput
	Copy  func(*DescribeLaunchTemplateVersionsInput) DescribeLaunchTemplateVersionsRequest
}

DescribeLaunchTemplateVersionsRequest is the request type for the DescribeLaunchTemplateVersions API operation.

func (DescribeLaunchTemplateVersionsRequest) Send added in v0.2.0

Send marshals and sends the DescribeLaunchTemplateVersions API request.

type DescribeLaunchTemplateVersionsResponse added in v0.9.0

type DescribeLaunchTemplateVersionsResponse struct {
	*DescribeLaunchTemplateVersionsOutput
	// contains filtered or unexported fields
}

DescribeLaunchTemplateVersionsResponse is the response type for the DescribeLaunchTemplateVersions API operation.

func (*DescribeLaunchTemplateVersionsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeLaunchTemplateVersionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeLaunchTemplateVersions request.

type DescribeLaunchTemplatesInput added in v0.2.0

type DescribeLaunchTemplatesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * create-time - The time the launch template was created.
	//
	//    * launch-template-name - The name of the launch template.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// One or more launch template IDs.
	LaunchTemplateIds []string `locationName:"LaunchTemplateId" locationNameList:"item" type:"list"`

	// One or more launch template names.
	LaunchTemplateNames []string `locationName:"LaunchTemplateName" locationNameList:"item" type:"list"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned NextToken value. This
	// value can be between 1 and 200.
	MaxResults *int64 `min:"1" type:"integer"`

	// The token to request the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLaunchTemplatesInput) String added in v0.2.0

String returns the string representation

func (*DescribeLaunchTemplatesInput) Validate added in v0.9.0

func (s *DescribeLaunchTemplatesInput) Validate() error

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

type DescribeLaunchTemplatesOutput added in v0.2.0

type DescribeLaunchTemplatesOutput struct {

	// Information about the launch templates.
	LaunchTemplates []LaunchTemplate `locationName:"launchTemplates" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLaunchTemplatesOutput) String added in v0.2.0

String returns the string representation

type DescribeLaunchTemplatesPaginator added in v0.9.0

type DescribeLaunchTemplatesPaginator struct {
	aws.Pager
}

DescribeLaunchTemplatesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeLaunchTemplatesPaginator added in v0.9.0

func NewDescribeLaunchTemplatesPaginator(req DescribeLaunchTemplatesRequest) DescribeLaunchTemplatesPaginator

NewDescribeLaunchTemplatesRequestPaginator returns a paginator for DescribeLaunchTemplates. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeLaunchTemplatesRequest(input)
p := ec2.NewDescribeLaunchTemplatesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeLaunchTemplatesPaginator) CurrentPage added in v0.9.0

type DescribeLaunchTemplatesRequest added in v0.2.0

type DescribeLaunchTemplatesRequest struct {
	*aws.Request
	Input *DescribeLaunchTemplatesInput
	Copy  func(*DescribeLaunchTemplatesInput) DescribeLaunchTemplatesRequest
}

DescribeLaunchTemplatesRequest is the request type for the DescribeLaunchTemplates API operation.

func (DescribeLaunchTemplatesRequest) Send added in v0.2.0

Send marshals and sends the DescribeLaunchTemplates API request.

type DescribeLaunchTemplatesResponse added in v0.9.0

type DescribeLaunchTemplatesResponse struct {
	*DescribeLaunchTemplatesOutput
	// contains filtered or unexported fields
}

DescribeLaunchTemplatesResponse is the response type for the DescribeLaunchTemplates API operation.

func (*DescribeLaunchTemplatesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeLaunchTemplatesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeLaunchTemplates request.

type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput added in v0.18.0

type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * local-gateway-id - The ID of a local gateway.
	//
	//    * local-gateway-route-table-id - The ID of the local gateway route table.
	//
	//    * local-gateway-route-table-virtual-interface-group-association-id - The
	//    ID of the association.
	//
	//    * local-gateway-route-table-virtual-interface-group-id - The ID of the
	//    virtual interface group.
	//
	//    * state - The state of the association.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The IDs of the associations.
	LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds []string `locationName:"LocalGatewayRouteTableVirtualInterfaceGroupAssociationId" locationNameList:"item" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) String added in v0.18.0

String returns the string representation

func (*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) Validate added in v0.18.0

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

type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput added in v0.18.0

type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput struct {

	// Information about the associations.
	LocalGatewayRouteTableVirtualInterfaceGroupAssociations []LocalGatewayRouteTableVirtualInterfaceGroupAssociation `locationName:"localGatewayRouteTableVirtualInterfaceGroupAssociationSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput) String added in v0.18.0

String returns the string representation

type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator added in v0.20.0

type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator struct {
	aws.Pager
}

DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator added in v0.20.0

NewDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequestPaginator returns a paginator for DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest(input)
p := ec2.NewDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator) CurrentPage added in v0.20.0

type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest added in v0.18.0

DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest is the request type for the DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations API operation.

func (DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest) Send added in v0.18.0

Send marshals and sends the DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations API request.

type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResponse added in v0.18.0

type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResponse struct {
	*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput
	// contains filtered or unexported fields
}

DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResponse is the response type for the DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations API operation.

func (*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations request.

type DescribeLocalGatewayRouteTableVpcAssociationsInput added in v0.18.0

type DescribeLocalGatewayRouteTableVpcAssociationsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * local-gateway-id - The ID of a local gateway.
	//
	//    * local-gateway-route-table-id - The ID of the local gateway route table.
	//
	//    * local-gateway-route-table-vpc-association-id - The ID of the association.
	//
	//    * state - The state of the association.
	//
	//    * vpc-id - The ID of the VPC.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The IDs of the associations.
	LocalGatewayRouteTableVpcAssociationIds []string `locationName:"LocalGatewayRouteTableVpcAssociationId" locationNameList:"item" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewayRouteTableVpcAssociationsInput) String added in v0.18.0

String returns the string representation

func (*DescribeLocalGatewayRouteTableVpcAssociationsInput) Validate added in v0.18.0

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

type DescribeLocalGatewayRouteTableVpcAssociationsOutput added in v0.18.0

type DescribeLocalGatewayRouteTableVpcAssociationsOutput struct {

	// Information about the associations.
	LocalGatewayRouteTableVpcAssociations []LocalGatewayRouteTableVpcAssociation `locationName:"localGatewayRouteTableVpcAssociationSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewayRouteTableVpcAssociationsOutput) String added in v0.18.0

String returns the string representation

type DescribeLocalGatewayRouteTableVpcAssociationsPaginator added in v0.20.0

type DescribeLocalGatewayRouteTableVpcAssociationsPaginator struct {
	aws.Pager
}

DescribeLocalGatewayRouteTableVpcAssociationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeLocalGatewayRouteTableVpcAssociationsPaginator added in v0.20.0

func NewDescribeLocalGatewayRouteTableVpcAssociationsPaginator(req DescribeLocalGatewayRouteTableVpcAssociationsRequest) DescribeLocalGatewayRouteTableVpcAssociationsPaginator

NewDescribeLocalGatewayRouteTableVpcAssociationsRequestPaginator returns a paginator for DescribeLocalGatewayRouteTableVpcAssociations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeLocalGatewayRouteTableVpcAssociationsRequest(input)
p := ec2.NewDescribeLocalGatewayRouteTableVpcAssociationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeLocalGatewayRouteTableVpcAssociationsPaginator) CurrentPage added in v0.20.0

type DescribeLocalGatewayRouteTableVpcAssociationsRequest added in v0.18.0

DescribeLocalGatewayRouteTableVpcAssociationsRequest is the request type for the DescribeLocalGatewayRouteTableVpcAssociations API operation.

func (DescribeLocalGatewayRouteTableVpcAssociationsRequest) Send added in v0.18.0

Send marshals and sends the DescribeLocalGatewayRouteTableVpcAssociations API request.

type DescribeLocalGatewayRouteTableVpcAssociationsResponse added in v0.18.0

type DescribeLocalGatewayRouteTableVpcAssociationsResponse struct {
	*DescribeLocalGatewayRouteTableVpcAssociationsOutput
	// contains filtered or unexported fields
}

DescribeLocalGatewayRouteTableVpcAssociationsResponse is the response type for the DescribeLocalGatewayRouteTableVpcAssociations API operation.

func (*DescribeLocalGatewayRouteTableVpcAssociationsResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the DescribeLocalGatewayRouteTableVpcAssociations request.

type DescribeLocalGatewayRouteTablesInput added in v0.18.0

type DescribeLocalGatewayRouteTablesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * local-gateway-id - The ID of a local gateway.
	//
	//    * local-gateway-route-table-id - The ID of a local gateway route table.
	//
	//    * outpost-arn - The Amazon Resource Name (ARN) of the Outpost.
	//
	//    * state - The state of the local gateway route table.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The IDs of the local gateway route tables.
	LocalGatewayRouteTableIds []string `locationName:"LocalGatewayRouteTableId" locationNameList:"item" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewayRouteTablesInput) String added in v0.18.0

String returns the string representation

func (*DescribeLocalGatewayRouteTablesInput) Validate added in v0.18.0

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

type DescribeLocalGatewayRouteTablesOutput added in v0.18.0

type DescribeLocalGatewayRouteTablesOutput struct {

	// Information about the local gateway route tables.
	LocalGatewayRouteTables []LocalGatewayRouteTable `locationName:"localGatewayRouteTableSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewayRouteTablesOutput) String added in v0.18.0

String returns the string representation

type DescribeLocalGatewayRouteTablesPaginator added in v0.20.0

type DescribeLocalGatewayRouteTablesPaginator struct {
	aws.Pager
}

DescribeLocalGatewayRouteTablesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeLocalGatewayRouteTablesPaginator added in v0.20.0

func NewDescribeLocalGatewayRouteTablesPaginator(req DescribeLocalGatewayRouteTablesRequest) DescribeLocalGatewayRouteTablesPaginator

NewDescribeLocalGatewayRouteTablesRequestPaginator returns a paginator for DescribeLocalGatewayRouteTables. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeLocalGatewayRouteTablesRequest(input)
p := ec2.NewDescribeLocalGatewayRouteTablesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeLocalGatewayRouteTablesPaginator) CurrentPage added in v0.20.0

type DescribeLocalGatewayRouteTablesRequest added in v0.18.0

type DescribeLocalGatewayRouteTablesRequest struct {
	*aws.Request
	Input *DescribeLocalGatewayRouteTablesInput
	Copy  func(*DescribeLocalGatewayRouteTablesInput) DescribeLocalGatewayRouteTablesRequest
}

DescribeLocalGatewayRouteTablesRequest is the request type for the DescribeLocalGatewayRouteTables API operation.

func (DescribeLocalGatewayRouteTablesRequest) Send added in v0.18.0

Send marshals and sends the DescribeLocalGatewayRouteTables API request.

type DescribeLocalGatewayRouteTablesResponse added in v0.18.0

type DescribeLocalGatewayRouteTablesResponse struct {
	*DescribeLocalGatewayRouteTablesOutput
	// contains filtered or unexported fields
}

DescribeLocalGatewayRouteTablesResponse is the response type for the DescribeLocalGatewayRouteTables API operation.

func (*DescribeLocalGatewayRouteTablesResponse) SDKResponseMetdata added in v0.18.0

func (r *DescribeLocalGatewayRouteTablesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeLocalGatewayRouteTables request.

type DescribeLocalGatewayVirtualInterfaceGroupsInput added in v0.18.0

type DescribeLocalGatewayVirtualInterfaceGroupsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * local-gateway-id - The ID of a local gateway.
	//
	//    * local-gateway-virtual-interface-id - The ID of the virtual interface.
	//
	//    * local-gateway-virtual-interface-group-id - The ID of the virtual interface
	//    group.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The IDs of the virtual interface groups.
	LocalGatewayVirtualInterfaceGroupIds []string `locationName:"LocalGatewayVirtualInterfaceGroupId" locationNameList:"item" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewayVirtualInterfaceGroupsInput) String added in v0.18.0

String returns the string representation

func (*DescribeLocalGatewayVirtualInterfaceGroupsInput) Validate added in v0.18.0

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

type DescribeLocalGatewayVirtualInterfaceGroupsOutput added in v0.18.0

type DescribeLocalGatewayVirtualInterfaceGroupsOutput struct {

	// The virtual interface groups.
	LocalGatewayVirtualInterfaceGroups []LocalGatewayVirtualInterfaceGroup `locationName:"localGatewayVirtualInterfaceGroupSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewayVirtualInterfaceGroupsOutput) String added in v0.18.0

String returns the string representation

type DescribeLocalGatewayVirtualInterfaceGroupsPaginator added in v0.20.0

type DescribeLocalGatewayVirtualInterfaceGroupsPaginator struct {
	aws.Pager
}

DescribeLocalGatewayVirtualInterfaceGroupsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeLocalGatewayVirtualInterfaceGroupsPaginator added in v0.20.0

func NewDescribeLocalGatewayVirtualInterfaceGroupsPaginator(req DescribeLocalGatewayVirtualInterfaceGroupsRequest) DescribeLocalGatewayVirtualInterfaceGroupsPaginator

NewDescribeLocalGatewayVirtualInterfaceGroupsRequestPaginator returns a paginator for DescribeLocalGatewayVirtualInterfaceGroups. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeLocalGatewayVirtualInterfaceGroupsRequest(input)
p := ec2.NewDescribeLocalGatewayVirtualInterfaceGroupsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeLocalGatewayVirtualInterfaceGroupsPaginator) CurrentPage added in v0.20.0

type DescribeLocalGatewayVirtualInterfaceGroupsRequest added in v0.18.0

DescribeLocalGatewayVirtualInterfaceGroupsRequest is the request type for the DescribeLocalGatewayVirtualInterfaceGroups API operation.

func (DescribeLocalGatewayVirtualInterfaceGroupsRequest) Send added in v0.18.0

Send marshals and sends the DescribeLocalGatewayVirtualInterfaceGroups API request.

type DescribeLocalGatewayVirtualInterfaceGroupsResponse added in v0.18.0

type DescribeLocalGatewayVirtualInterfaceGroupsResponse struct {
	*DescribeLocalGatewayVirtualInterfaceGroupsOutput
	// contains filtered or unexported fields
}

DescribeLocalGatewayVirtualInterfaceGroupsResponse is the response type for the DescribeLocalGatewayVirtualInterfaceGroups API operation.

func (*DescribeLocalGatewayVirtualInterfaceGroupsResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the DescribeLocalGatewayVirtualInterfaceGroups request.

type DescribeLocalGatewayVirtualInterfacesInput added in v0.18.0

type DescribeLocalGatewayVirtualInterfacesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The IDs of the virtual interfaces.
	LocalGatewayVirtualInterfaceIds []string `locationName:"LocalGatewayVirtualInterfaceId" locationNameList:"item" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewayVirtualInterfacesInput) String added in v0.18.0

String returns the string representation

func (*DescribeLocalGatewayVirtualInterfacesInput) Validate added in v0.18.0

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

type DescribeLocalGatewayVirtualInterfacesOutput added in v0.18.0

type DescribeLocalGatewayVirtualInterfacesOutput struct {

	// Information about the virtual interfaces.
	LocalGatewayVirtualInterfaces []LocalGatewayVirtualInterface `locationName:"localGatewayVirtualInterfaceSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewayVirtualInterfacesOutput) String added in v0.18.0

String returns the string representation

type DescribeLocalGatewayVirtualInterfacesPaginator added in v0.20.0

type DescribeLocalGatewayVirtualInterfacesPaginator struct {
	aws.Pager
}

DescribeLocalGatewayVirtualInterfacesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeLocalGatewayVirtualInterfacesPaginator added in v0.20.0

func NewDescribeLocalGatewayVirtualInterfacesPaginator(req DescribeLocalGatewayVirtualInterfacesRequest) DescribeLocalGatewayVirtualInterfacesPaginator

NewDescribeLocalGatewayVirtualInterfacesRequestPaginator returns a paginator for DescribeLocalGatewayVirtualInterfaces. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeLocalGatewayVirtualInterfacesRequest(input)
p := ec2.NewDescribeLocalGatewayVirtualInterfacesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeLocalGatewayVirtualInterfacesPaginator) CurrentPage added in v0.20.0

type DescribeLocalGatewayVirtualInterfacesRequest added in v0.18.0

DescribeLocalGatewayVirtualInterfacesRequest is the request type for the DescribeLocalGatewayVirtualInterfaces API operation.

func (DescribeLocalGatewayVirtualInterfacesRequest) Send added in v0.18.0

Send marshals and sends the DescribeLocalGatewayVirtualInterfaces API request.

type DescribeLocalGatewayVirtualInterfacesResponse added in v0.18.0

type DescribeLocalGatewayVirtualInterfacesResponse struct {
	*DescribeLocalGatewayVirtualInterfacesOutput
	// contains filtered or unexported fields
}

DescribeLocalGatewayVirtualInterfacesResponse is the response type for the DescribeLocalGatewayVirtualInterfaces API operation.

func (*DescribeLocalGatewayVirtualInterfacesResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the DescribeLocalGatewayVirtualInterfaces request.

type DescribeLocalGatewaysInput added in v0.18.0

type DescribeLocalGatewaysInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// One or more filters.
	//
	//    * local-gateway-id - The ID of a local gateway.
	//
	//    * local-gateway-route-table-id - The ID of the local gateway route table.
	//
	//    * local-gateway-route-table-virtual-interface-group-association-id - The
	//    ID of the association.
	//
	//    * local-gateway-route-table-virtual-interface-group-id - The ID of the
	//    virtual interface group.
	//
	//    * outpost-arn - The Amazon Resource Name (ARN) of the Outpost.
	//
	//    * state - The state of the association.
	LocalGatewayIds []string `locationName:"LocalGatewayId" locationNameList:"item" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewaysInput) String added in v0.18.0

String returns the string representation

func (*DescribeLocalGatewaysInput) Validate added in v0.18.0

func (s *DescribeLocalGatewaysInput) Validate() error

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

type DescribeLocalGatewaysOutput added in v0.18.0

type DescribeLocalGatewaysOutput struct {

	// Information about the local gateways.
	LocalGateways []LocalGateway `locationName:"localGatewaySet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLocalGatewaysOutput) String added in v0.18.0

String returns the string representation

type DescribeLocalGatewaysPaginator added in v0.20.0

type DescribeLocalGatewaysPaginator struct {
	aws.Pager
}

DescribeLocalGatewaysPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeLocalGatewaysPaginator added in v0.20.0

func NewDescribeLocalGatewaysPaginator(req DescribeLocalGatewaysRequest) DescribeLocalGatewaysPaginator

NewDescribeLocalGatewaysRequestPaginator returns a paginator for DescribeLocalGateways. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeLocalGatewaysRequest(input)
p := ec2.NewDescribeLocalGatewaysRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeLocalGatewaysPaginator) CurrentPage added in v0.20.0

type DescribeLocalGatewaysRequest added in v0.18.0

type DescribeLocalGatewaysRequest struct {
	*aws.Request
	Input *DescribeLocalGatewaysInput
	Copy  func(*DescribeLocalGatewaysInput) DescribeLocalGatewaysRequest
}

DescribeLocalGatewaysRequest is the request type for the DescribeLocalGateways API operation.

func (DescribeLocalGatewaysRequest) Send added in v0.18.0

Send marshals and sends the DescribeLocalGateways API request.

type DescribeLocalGatewaysResponse added in v0.18.0

type DescribeLocalGatewaysResponse struct {
	*DescribeLocalGatewaysOutput
	// contains filtered or unexported fields
}

DescribeLocalGatewaysResponse is the response type for the DescribeLocalGateways API operation.

func (*DescribeLocalGatewaysResponse) SDKResponseMetdata added in v0.18.0

func (r *DescribeLocalGatewaysResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeLocalGateways request.

type DescribeManagedPrefixListsInput added in v0.24.0

type DescribeManagedPrefixListsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * owner-id - The ID of the prefix list owner.
	//
	//    * prefix-list-id - The ID of the prefix list.
	//
	//    * prefix-list-name - The name of the prefix list.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"1" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// One or more prefix list IDs.
	PrefixListIds []string `locationName:"PrefixListId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeManagedPrefixListsInput) String added in v0.24.0

String returns the string representation

func (*DescribeManagedPrefixListsInput) Validate added in v0.24.0

func (s *DescribeManagedPrefixListsInput) Validate() error

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

type DescribeManagedPrefixListsOutput added in v0.24.0

type DescribeManagedPrefixListsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the prefix lists.
	PrefixLists []ManagedPrefixList `locationName:"prefixListSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeManagedPrefixListsOutput) String added in v0.24.0

String returns the string representation

type DescribeManagedPrefixListsPaginator added in v0.24.0

type DescribeManagedPrefixListsPaginator struct {
	aws.Pager
}

DescribeManagedPrefixListsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeManagedPrefixListsPaginator added in v0.24.0

func NewDescribeManagedPrefixListsPaginator(req DescribeManagedPrefixListsRequest) DescribeManagedPrefixListsPaginator

NewDescribeManagedPrefixListsRequestPaginator returns a paginator for DescribeManagedPrefixLists. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeManagedPrefixListsRequest(input)
p := ec2.NewDescribeManagedPrefixListsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeManagedPrefixListsPaginator) CurrentPage added in v0.24.0

type DescribeManagedPrefixListsRequest added in v0.24.0

type DescribeManagedPrefixListsRequest struct {
	*aws.Request
	Input *DescribeManagedPrefixListsInput
	Copy  func(*DescribeManagedPrefixListsInput) DescribeManagedPrefixListsRequest
}

DescribeManagedPrefixListsRequest is the request type for the DescribeManagedPrefixLists API operation.

func (DescribeManagedPrefixListsRequest) Send added in v0.24.0

Send marshals and sends the DescribeManagedPrefixLists API request.

type DescribeManagedPrefixListsResponse added in v0.24.0

type DescribeManagedPrefixListsResponse struct {
	*DescribeManagedPrefixListsOutput
	// contains filtered or unexported fields
}

DescribeManagedPrefixListsResponse is the response type for the DescribeManagedPrefixLists API operation.

func (*DescribeManagedPrefixListsResponse) SDKResponseMetdata added in v0.24.0

func (r *DescribeManagedPrefixListsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeManagedPrefixLists request.

type DescribeMovingAddressesInput

type DescribeMovingAddressesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * moving-status - The status of the Elastic IP address (MovingToVpc |
	//    RestoringToClassic).
	Filters []Filter `locationName:"filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results of the initial request can be seen by sending another
	// request with the returned NextToken value. This value can be between 5 and
	// 1000; if MaxResults is given a value outside of this range, an error is returned.
	//
	// Default: If no value is provided, the default is 1000.
	MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `locationName:"nextToken" type:"string"`

	// One or more Elastic IP addresses.
	PublicIps []string `locationName:"publicIp" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeMovingAddressesInput) String

String returns the string representation

func (*DescribeMovingAddressesInput) Validate added in v0.10.0

func (s *DescribeMovingAddressesInput) Validate() error

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

type DescribeMovingAddressesOutput

type DescribeMovingAddressesOutput struct {

	// The status for each Elastic IP address.
	MovingAddressStatuses []MovingAddressStatus `locationName:"movingAddressStatusSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeMovingAddressesOutput) String

String returns the string representation

type DescribeMovingAddressesPaginator added in v0.9.0

type DescribeMovingAddressesPaginator struct {
	aws.Pager
}

DescribeMovingAddressesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeMovingAddressesPaginator added in v0.9.0

func NewDescribeMovingAddressesPaginator(req DescribeMovingAddressesRequest) DescribeMovingAddressesPaginator

NewDescribeMovingAddressesRequestPaginator returns a paginator for DescribeMovingAddresses. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeMovingAddressesRequest(input)
p := ec2.NewDescribeMovingAddressesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeMovingAddressesPaginator) CurrentPage added in v0.9.0

type DescribeMovingAddressesRequest

type DescribeMovingAddressesRequest struct {
	*aws.Request
	Input *DescribeMovingAddressesInput
	Copy  func(*DescribeMovingAddressesInput) DescribeMovingAddressesRequest
}

DescribeMovingAddressesRequest is the request type for the DescribeMovingAddresses API operation.

func (DescribeMovingAddressesRequest) Send

Send marshals and sends the DescribeMovingAddresses API request.

type DescribeMovingAddressesResponse added in v0.9.0

type DescribeMovingAddressesResponse struct {
	*DescribeMovingAddressesOutput
	// contains filtered or unexported fields
}

DescribeMovingAddressesResponse is the response type for the DescribeMovingAddresses API operation.

func (*DescribeMovingAddressesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeMovingAddressesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeMovingAddresses request.

type DescribeNatGatewaysInput

type DescribeNatGatewaysInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * nat-gateway-id - The ID of the NAT gateway.
	//
	//    * state - The state of the NAT gateway (pending | failed | available |
	//    deleting | deleted).
	//
	//    * subnet-id - The ID of the subnet in which the NAT gateway resides.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * vpc-id - The ID of the VPC in which the NAT gateway resides.
	Filter []Filter `locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// One or more NAT gateway IDs.
	NatGatewayIds []string `locationName:"NatGatewayId" locationNameList:"item" type:"list"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeNatGatewaysInput) String

func (s DescribeNatGatewaysInput) String() string

String returns the string representation

func (*DescribeNatGatewaysInput) Validate added in v0.10.0

func (s *DescribeNatGatewaysInput) Validate() error

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

type DescribeNatGatewaysOutput

type DescribeNatGatewaysOutput struct {

	// Information about the NAT gateways.
	NatGateways []NatGateway `locationName:"natGatewaySet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeNatGatewaysOutput) String

func (s DescribeNatGatewaysOutput) String() string

String returns the string representation

type DescribeNatGatewaysPaginator added in v0.9.0

type DescribeNatGatewaysPaginator struct {
	aws.Pager
}

DescribeNatGatewaysPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeNatGatewaysPaginator added in v0.9.0

func NewDescribeNatGatewaysPaginator(req DescribeNatGatewaysRequest) DescribeNatGatewaysPaginator

NewDescribeNatGatewaysRequestPaginator returns a paginator for DescribeNatGateways. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeNatGatewaysRequest(input)
p := ec2.NewDescribeNatGatewaysRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeNatGatewaysPaginator) CurrentPage added in v0.9.0

type DescribeNatGatewaysRequest

type DescribeNatGatewaysRequest struct {
	*aws.Request
	Input *DescribeNatGatewaysInput
	Copy  func(*DescribeNatGatewaysInput) DescribeNatGatewaysRequest
}

DescribeNatGatewaysRequest is the request type for the DescribeNatGateways API operation.

func (DescribeNatGatewaysRequest) Send

Send marshals and sends the DescribeNatGateways API request.

type DescribeNatGatewaysResponse added in v0.9.0

type DescribeNatGatewaysResponse struct {
	*DescribeNatGatewaysOutput
	// contains filtered or unexported fields
}

DescribeNatGatewaysResponse is the response type for the DescribeNatGateways API operation.

func (*DescribeNatGatewaysResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeNatGatewaysResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeNatGateways request.

type DescribeNetworkAclsInput

type DescribeNetworkAclsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * association.association-id - The ID of an association ID for the ACL.
	//
	//    * association.network-acl-id - The ID of the network ACL involved in the
	//    association.
	//
	//    * association.subnet-id - The ID of the subnet involved in the association.
	//
	//    * default - Indicates whether the ACL is the default network ACL for the
	//    VPC.
	//
	//    * entry.cidr - The IPv4 CIDR range specified in the entry.
	//
	//    * entry.icmp.code - The ICMP code specified in the entry, if any.
	//
	//    * entry.icmp.type - The ICMP type specified in the entry, if any.
	//
	//    * entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.
	//
	//    * entry.port-range.from - The start of the port range specified in the
	//    entry.
	//
	//    * entry.port-range.to - The end of the port range specified in the entry.
	//
	//    * entry.protocol - The protocol specified in the entry (tcp | udp | icmp
	//    or a protocol number).
	//
	//    * entry.rule-action - Allows or denies the matching traffic (allow | deny).
	//
	//    * entry.rule-number - The number of an entry (in other words, rule) in
	//    the set of ACL entries.
	//
	//    * network-acl-id - The ID of the network ACL.
	//
	//    * owner-id - The ID of the AWS account that owns the network ACL.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * vpc-id - The ID of the VPC for the network ACL.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// One or more network ACL IDs.
	//
	// Default: Describes all your network ACLs.
	NetworkAclIds []string `locationName:"NetworkAclId" locationNameList:"item" type:"list"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeNetworkAclsInput) String

func (s DescribeNetworkAclsInput) String() string

String returns the string representation

func (*DescribeNetworkAclsInput) Validate added in v0.8.0

func (s *DescribeNetworkAclsInput) Validate() error

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

type DescribeNetworkAclsOutput

type DescribeNetworkAclsOutput struct {

	// Information about one or more network ACLs.
	NetworkAcls []NetworkAcl `locationName:"networkAclSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeNetworkAclsOutput) String

func (s DescribeNetworkAclsOutput) String() string

String returns the string representation

type DescribeNetworkAclsPaginator added in v0.9.0

type DescribeNetworkAclsPaginator struct {
	aws.Pager
}

DescribeNetworkAclsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeNetworkAclsPaginator added in v0.9.0

func NewDescribeNetworkAclsPaginator(req DescribeNetworkAclsRequest) DescribeNetworkAclsPaginator

NewDescribeNetworkAclsRequestPaginator returns a paginator for DescribeNetworkAcls. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeNetworkAclsRequest(input)
p := ec2.NewDescribeNetworkAclsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeNetworkAclsPaginator) CurrentPage added in v0.9.0

type DescribeNetworkAclsRequest

type DescribeNetworkAclsRequest struct {
	*aws.Request
	Input *DescribeNetworkAclsInput
	Copy  func(*DescribeNetworkAclsInput) DescribeNetworkAclsRequest
}

DescribeNetworkAclsRequest is the request type for the DescribeNetworkAcls API operation.

func (DescribeNetworkAclsRequest) Send

Send marshals and sends the DescribeNetworkAcls API request.

type DescribeNetworkAclsResponse added in v0.9.0

type DescribeNetworkAclsResponse struct {
	*DescribeNetworkAclsOutput
	// contains filtered or unexported fields
}

DescribeNetworkAclsResponse is the response type for the DescribeNetworkAcls API operation.

func (*DescribeNetworkAclsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeNetworkAclsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeNetworkAcls request.

type DescribeNetworkInterfaceAttributeInput

type DescribeNetworkInterfaceAttributeInput struct {

	// The attribute of the network interface. This parameter is required.
	Attribute NetworkInterfaceAttribute `locationName:"attribute" type:"string" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the network interface.
	//
	// NetworkInterfaceId is a required field
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeNetworkInterfaceAttribute.

func (DescribeNetworkInterfaceAttributeInput) String

String returns the string representation

func (*DescribeNetworkInterfaceAttributeInput) Validate

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

type DescribeNetworkInterfaceAttributeOutput

type DescribeNetworkInterfaceAttributeOutput struct {

	// The attachment (if any) of the network interface.
	Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`

	// The description of the network interface.
	Description *AttributeValue `locationName:"description" type:"structure"`

	// The security groups associated with the network interface.
	Groups []GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`

	// The ID of the network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// Indicates whether source/destination checking is enabled.
	SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of DescribeNetworkInterfaceAttribute.

func (DescribeNetworkInterfaceAttributeOutput) String

String returns the string representation

type DescribeNetworkInterfaceAttributeRequest

DescribeNetworkInterfaceAttributeRequest is the request type for the DescribeNetworkInterfaceAttribute API operation.

func (DescribeNetworkInterfaceAttributeRequest) Send

Send marshals and sends the DescribeNetworkInterfaceAttribute API request.

type DescribeNetworkInterfaceAttributeResponse added in v0.9.0

type DescribeNetworkInterfaceAttributeResponse struct {
	*DescribeNetworkInterfaceAttributeOutput
	// contains filtered or unexported fields
}

DescribeNetworkInterfaceAttributeResponse is the response type for the DescribeNetworkInterfaceAttribute API operation.

func (*DescribeNetworkInterfaceAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeNetworkInterfaceAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeNetworkInterfaceAttribute request.

type DescribeNetworkInterfacePermissionsInput

type DescribeNetworkInterfacePermissionsInput struct {

	// One or more filters.
	//
	//    * network-interface-permission.network-interface-permission-id - The ID
	//    of the permission.
	//
	//    * network-interface-permission.network-interface-id - The ID of the network
	//    interface.
	//
	//    * network-interface-permission.aws-account-id - The AWS account ID.
	//
	//    * network-interface-permission.aws-service - The AWS service.
	//
	//    * network-interface-permission.permission - The type of permission (INSTANCE-ATTACH
	//    | EIP-ASSOCIATE).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned NextToken value. If
	// this parameter is not specified, up to 50 results are returned by default.
	MaxResults *int64 `min:"5" type:"integer"`

	// One or more network interface permission IDs.
	NetworkInterfacePermissionIds []string `locationName:"NetworkInterfacePermissionId" type:"list"`

	// The token to request the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeNetworkInterfacePermissions.

func (DescribeNetworkInterfacePermissionsInput) String

String returns the string representation

func (*DescribeNetworkInterfacePermissionsInput) Validate added in v0.9.0

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

type DescribeNetworkInterfacePermissionsOutput

type DescribeNetworkInterfacePermissionsOutput struct {

	// The network interface permissions.
	NetworkInterfacePermissions []NetworkInterfacePermission `locationName:"networkInterfacePermissions" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Contains the output for DescribeNetworkInterfacePermissions.

func (DescribeNetworkInterfacePermissionsOutput) String

String returns the string representation

type DescribeNetworkInterfacePermissionsPaginator added in v0.9.0

type DescribeNetworkInterfacePermissionsPaginator struct {
	aws.Pager
}

DescribeNetworkInterfacePermissionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeNetworkInterfacePermissionsPaginator added in v0.9.0

func NewDescribeNetworkInterfacePermissionsPaginator(req DescribeNetworkInterfacePermissionsRequest) DescribeNetworkInterfacePermissionsPaginator

NewDescribeNetworkInterfacePermissionsRequestPaginator returns a paginator for DescribeNetworkInterfacePermissions. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeNetworkInterfacePermissionsRequest(input)
p := ec2.NewDescribeNetworkInterfacePermissionsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeNetworkInterfacePermissionsPaginator) CurrentPage added in v0.9.0

type DescribeNetworkInterfacePermissionsRequest

DescribeNetworkInterfacePermissionsRequest is the request type for the DescribeNetworkInterfacePermissions API operation.

func (DescribeNetworkInterfacePermissionsRequest) Send

Send marshals and sends the DescribeNetworkInterfacePermissions API request.

type DescribeNetworkInterfacePermissionsResponse added in v0.9.0

type DescribeNetworkInterfacePermissionsResponse struct {
	*DescribeNetworkInterfacePermissionsOutput
	// contains filtered or unexported fields
}

DescribeNetworkInterfacePermissionsResponse is the response type for the DescribeNetworkInterfacePermissions API operation.

func (*DescribeNetworkInterfacePermissionsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeNetworkInterfacePermissionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeNetworkInterfacePermissions request.

type DescribeNetworkInterfacesInput

type DescribeNetworkInterfacesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * addresses.private-ip-address - The private IPv4 addresses associated
	//    with the network interface.
	//
	//    * addresses.primary - Whether the private IPv4 address is the primary
	//    IP address associated with the network interface.
	//
	//    * addresses.association.public-ip - The association ID returned when the
	//    network interface was associated with the Elastic IP address (IPv4).
	//
	//    * addresses.association.owner-id - The owner ID of the addresses associated
	//    with the network interface.
	//
	//    * association.association-id - The association ID returned when the network
	//    interface was associated with an IPv4 address.
	//
	//    * association.allocation-id - The allocation ID returned when you allocated
	//    the Elastic IP address (IPv4) for your network interface.
	//
	//    * association.ip-owner-id - The owner of the Elastic IP address (IPv4)
	//    associated with the network interface.
	//
	//    * association.public-ip - The address of the Elastic IP address (IPv4)
	//    bound to the network interface.
	//
	//    * association.public-dns-name - The public DNS name for the network interface
	//    (IPv4).
	//
	//    * attachment.attachment-id - The ID of the interface attachment.
	//
	//    * attachment.attach-time - The time that the network interface was attached
	//    to an instance.
	//
	//    * attachment.delete-on-termination - Indicates whether the attachment
	//    is deleted when an instance is terminated.
	//
	//    * attachment.device-index - The device index to which the network interface
	//    is attached.
	//
	//    * attachment.instance-id - The ID of the instance to which the network
	//    interface is attached.
	//
	//    * attachment.instance-owner-id - The owner ID of the instance to which
	//    the network interface is attached.
	//
	//    * attachment.status - The status of the attachment (attaching | attached
	//    | detaching | detached).
	//
	//    * availability-zone - The Availability Zone of the network interface.
	//
	//    * description - The description of the network interface.
	//
	//    * group-id - The ID of a security group associated with the network interface.
	//
	//    * group-name - The name of a security group associated with the network
	//    interface.
	//
	//    * ipv6-addresses.ipv6-address - An IPv6 address associated with the network
	//    interface.
	//
	//    * mac-address - The MAC address of the network interface.
	//
	//    * network-interface-id - The ID of the network interface.
	//
	//    * owner-id - The AWS account ID of the network interface owner.
	//
	//    * private-ip-address - The private IPv4 address or addresses of the network
	//    interface.
	//
	//    * private-dns-name - The private DNS name of the network interface (IPv4).
	//
	//    * requester-id - The ID of the entity that launched the instance on your
	//    behalf (for example, AWS Management Console, Auto Scaling, and so on).
	//
	//    * requester-managed - Indicates whether the network interface is being
	//    managed by an AWS service (for example, AWS Management Console, Auto Scaling,
	//    and so on).
	//
	//    * source-dest-check - Indicates whether the network interface performs
	//    source/destination checking. A value of true means checking is enabled,
	//    and false means checking is disabled. The value must be false for the
	//    network interface to perform network address translation (NAT) in your
	//    VPC.
	//
	//    * status - The status of the network interface. If the network interface
	//    is not attached to an instance, the status is available; if a network
	//    interface is attached to an instance the status is in-use.
	//
	//    * subnet-id - The ID of the subnet for the network interface.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * vpc-id - The ID of the VPC for the network interface.
	Filters []Filter `locationName:"filter" locationNameList:"Filter" type:"list"`

	// The maximum number of items to return for this request. The request returns
	// a token that you can specify in a subsequent call to get the next set of
	// results. You cannot specify this parameter and the network interface IDs
	// parameter in the same request.
	MaxResults *int64 `min:"5" type:"integer"`

	// One or more network interface IDs.
	//
	// Default: Describes all your network interfaces.
	NetworkInterfaceIds []string `locationName:"NetworkInterfaceId" locationNameList:"item" type:"list"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeNetworkInterfaces.

func (DescribeNetworkInterfacesInput) String

String returns the string representation

func (*DescribeNetworkInterfacesInput) Validate added in v0.9.0

func (s *DescribeNetworkInterfacesInput) Validate() error

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

type DescribeNetworkInterfacesOutput

type DescribeNetworkInterfacesOutput struct {

	// Information about one or more network interfaces.
	NetworkInterfaces []NetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Contains the output of DescribeNetworkInterfaces.

func (DescribeNetworkInterfacesOutput) String

String returns the string representation

type DescribeNetworkInterfacesPaginator added in v0.9.0

type DescribeNetworkInterfacesPaginator struct {
	aws.Pager
}

DescribeNetworkInterfacesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeNetworkInterfacesPaginator added in v0.9.0

func NewDescribeNetworkInterfacesPaginator(req DescribeNetworkInterfacesRequest) DescribeNetworkInterfacesPaginator

NewDescribeNetworkInterfacesRequestPaginator returns a paginator for DescribeNetworkInterfaces. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeNetworkInterfacesRequest(input)
p := ec2.NewDescribeNetworkInterfacesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeNetworkInterfacesPaginator) CurrentPage added in v0.9.0

type DescribeNetworkInterfacesRequest

type DescribeNetworkInterfacesRequest struct {
	*aws.Request
	Input *DescribeNetworkInterfacesInput
	Copy  func(*DescribeNetworkInterfacesInput) DescribeNetworkInterfacesRequest
}

DescribeNetworkInterfacesRequest is the request type for the DescribeNetworkInterfaces API operation.

func (DescribeNetworkInterfacesRequest) Send

Send marshals and sends the DescribeNetworkInterfaces API request.

type DescribeNetworkInterfacesResponse added in v0.9.0

type DescribeNetworkInterfacesResponse struct {
	*DescribeNetworkInterfacesOutput
	// contains filtered or unexported fields
}

DescribeNetworkInterfacesResponse is the response type for the DescribeNetworkInterfaces API operation.

func (*DescribeNetworkInterfacesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeNetworkInterfacesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeNetworkInterfaces request.

type DescribePlacementGroupsInput

type DescribePlacementGroupsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters.
	//
	//    * group-name - The name of the placement group.
	//
	//    * state - The state of the placement group (pending | available | deleting
	//    | deleted).
	//
	//    * strategy - The strategy of the placement group (cluster | spread | partition).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources that have a tag with a specific key, regardless
	//    of the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The IDs of the placement groups.
	GroupIds []string `locationName:"GroupId" locationNameList:"GroupId" type:"list"`

	// The names of the placement groups.
	//
	// Default: Describes all your placement groups, or only those otherwise specified.
	GroupNames []string `locationName:"groupName" type:"list"`
	// contains filtered or unexported fields
}

func (DescribePlacementGroupsInput) String

String returns the string representation

type DescribePlacementGroupsOutput

type DescribePlacementGroupsOutput struct {

	// Information about the placement groups.
	PlacementGroups []PlacementGroup `locationName:"placementGroupSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribePlacementGroupsOutput) String

String returns the string representation

type DescribePlacementGroupsRequest

type DescribePlacementGroupsRequest struct {
	*aws.Request
	Input *DescribePlacementGroupsInput
	Copy  func(*DescribePlacementGroupsInput) DescribePlacementGroupsRequest
}

DescribePlacementGroupsRequest is the request type for the DescribePlacementGroups API operation.

func (DescribePlacementGroupsRequest) Send

Send marshals and sends the DescribePlacementGroups API request.

type DescribePlacementGroupsResponse added in v0.9.0

type DescribePlacementGroupsResponse struct {
	*DescribePlacementGroupsOutput
	// contains filtered or unexported fields
}

DescribePlacementGroupsResponse is the response type for the DescribePlacementGroups API operation.

func (*DescribePlacementGroupsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribePlacementGroupsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribePlacementGroups request.

type DescribePrefixListsInput

type DescribePrefixListsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * prefix-list-id: The ID of a prefix list.
	//
	//    * prefix-list-name: The name of a prefix list.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// One or more prefix list IDs.
	PrefixListIds []string `locationName:"PrefixListId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribePrefixListsInput) String

func (s DescribePrefixListsInput) String() string

String returns the string representation

type DescribePrefixListsOutput

type DescribePrefixListsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// All available prefix lists.
	PrefixLists []PrefixList `locationName:"prefixListSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribePrefixListsOutput) String

func (s DescribePrefixListsOutput) String() string

String returns the string representation

type DescribePrefixListsPaginator added in v0.9.0

type DescribePrefixListsPaginator struct {
	aws.Pager
}

DescribePrefixListsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribePrefixListsPaginator added in v0.9.0

func NewDescribePrefixListsPaginator(req DescribePrefixListsRequest) DescribePrefixListsPaginator

NewDescribePrefixListsRequestPaginator returns a paginator for DescribePrefixLists. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribePrefixListsRequest(input)
p := ec2.NewDescribePrefixListsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribePrefixListsPaginator) CurrentPage added in v0.9.0

type DescribePrefixListsRequest

type DescribePrefixListsRequest struct {
	*aws.Request
	Input *DescribePrefixListsInput
	Copy  func(*DescribePrefixListsInput) DescribePrefixListsRequest
}

DescribePrefixListsRequest is the request type for the DescribePrefixLists API operation.

func (DescribePrefixListsRequest) Send

Send marshals and sends the DescribePrefixLists API request.

type DescribePrefixListsResponse added in v0.9.0

type DescribePrefixListsResponse struct {
	*DescribePrefixListsOutput
	// contains filtered or unexported fields
}

DescribePrefixListsResponse is the response type for the DescribePrefixLists API operation.

func (*DescribePrefixListsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribePrefixListsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribePrefixLists request.

type DescribePrincipalIdFormatInput added in v0.3.0

type DescribePrincipalIdFormatInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another call with the returned NextToken value.
	MaxResults *int64 `min:"1" type:"integer"`

	// The token to request the next page of results.
	NextToken *string `type:"string"`

	// The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
	// | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
	// | image | import-task | instance | internet-gateway | network-acl | network-acl-association
	// | network-interface | network-interface-attachment | prefix-list | reservation
	// | route-table | route-table-association | security-group | snapshot | subnet
	// | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
	// | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
	Resources []string `locationName:"Resource" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribePrincipalIdFormatInput) String added in v0.3.0

String returns the string representation

func (*DescribePrincipalIdFormatInput) Validate added in v0.10.0

func (s *DescribePrincipalIdFormatInput) Validate() error

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

type DescribePrincipalIdFormatOutput added in v0.3.0

type DescribePrincipalIdFormatOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the ID format settings for the ARN.
	Principals []PrincipalIdFormat `locationName:"principalSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribePrincipalIdFormatOutput) String added in v0.3.0

String returns the string representation

type DescribePrincipalIdFormatPaginator added in v0.9.0

type DescribePrincipalIdFormatPaginator struct {
	aws.Pager
}

DescribePrincipalIdFormatPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribePrincipalIdFormatPaginator added in v0.9.0

func NewDescribePrincipalIdFormatPaginator(req DescribePrincipalIdFormatRequest) DescribePrincipalIdFormatPaginator

NewDescribePrincipalIdFormatRequestPaginator returns a paginator for DescribePrincipalIdFormat. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribePrincipalIdFormatRequest(input)
p := ec2.NewDescribePrincipalIdFormatRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribePrincipalIdFormatPaginator) CurrentPage added in v0.9.0

type DescribePrincipalIdFormatRequest added in v0.3.0

type DescribePrincipalIdFormatRequest struct {
	*aws.Request
	Input *DescribePrincipalIdFormatInput
	Copy  func(*DescribePrincipalIdFormatInput) DescribePrincipalIdFormatRequest
}

DescribePrincipalIdFormatRequest is the request type for the DescribePrincipalIdFormat API operation.

func (DescribePrincipalIdFormatRequest) Send added in v0.3.0

Send marshals and sends the DescribePrincipalIdFormat API request.

type DescribePrincipalIdFormatResponse added in v0.9.0

type DescribePrincipalIdFormatResponse struct {
	*DescribePrincipalIdFormatOutput
	// contains filtered or unexported fields
}

DescribePrincipalIdFormatResponse is the response type for the DescribePrincipalIdFormat API operation.

func (*DescribePrincipalIdFormatResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribePrincipalIdFormatResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribePrincipalIdFormat request.

type DescribePublicIpv4PoolsInput added in v0.6.0

type DescribePublicIpv4PoolsInput struct {

	// One or more filters.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"1" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The IDs of the address pools.
	PoolIds []string `locationName:"PoolId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribePublicIpv4PoolsInput) String added in v0.6.0

String returns the string representation

func (*DescribePublicIpv4PoolsInput) Validate added in v0.6.0

func (s *DescribePublicIpv4PoolsInput) Validate() error

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

type DescribePublicIpv4PoolsOutput added in v0.6.0

type DescribePublicIpv4PoolsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the address pools.
	PublicIpv4Pools []PublicIpv4Pool `locationName:"publicIpv4PoolSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribePublicIpv4PoolsOutput) String added in v0.6.0

String returns the string representation

type DescribePublicIpv4PoolsPaginator added in v0.9.0

type DescribePublicIpv4PoolsPaginator struct {
	aws.Pager
}

DescribePublicIpv4PoolsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribePublicIpv4PoolsPaginator added in v0.9.0

func NewDescribePublicIpv4PoolsPaginator(req DescribePublicIpv4PoolsRequest) DescribePublicIpv4PoolsPaginator

NewDescribePublicIpv4PoolsRequestPaginator returns a paginator for DescribePublicIpv4Pools. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribePublicIpv4PoolsRequest(input)
p := ec2.NewDescribePublicIpv4PoolsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribePublicIpv4PoolsPaginator) CurrentPage added in v0.9.0

type DescribePublicIpv4PoolsRequest added in v0.6.0

type DescribePublicIpv4PoolsRequest struct {
	*aws.Request
	Input *DescribePublicIpv4PoolsInput
	Copy  func(*DescribePublicIpv4PoolsInput) DescribePublicIpv4PoolsRequest
}

DescribePublicIpv4PoolsRequest is the request type for the DescribePublicIpv4Pools API operation.

func (DescribePublicIpv4PoolsRequest) Send added in v0.6.0

Send marshals and sends the DescribePublicIpv4Pools API request.

type DescribePublicIpv4PoolsResponse added in v0.9.0

type DescribePublicIpv4PoolsResponse struct {
	*DescribePublicIpv4PoolsOutput
	// contains filtered or unexported fields
}

DescribePublicIpv4PoolsResponse is the response type for the DescribePublicIpv4Pools API operation.

func (*DescribePublicIpv4PoolsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribePublicIpv4PoolsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribePublicIpv4Pools request.

type DescribeRegionsInput

type DescribeRegionsInput struct {

	// Indicates whether to display all Regions, including Regions that are disabled
	// for your account.
	AllRegions *bool `type:"boolean"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters.
	//
	//    * endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).
	//
	//    * opt-in-status - The opt-in status of the Region (opt-in-not-required
	//    | opted-in | not-opted-in).
	//
	//    * region-name - The name of the Region (for example, us-east-1).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The names of the Regions. You can specify any Regions, whether they are enabled
	// and disabled for your account.
	RegionNames []string `locationName:"RegionName" locationNameList:"RegionName" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeRegionsInput) String

func (s DescribeRegionsInput) String() string

String returns the string representation

type DescribeRegionsOutput

type DescribeRegionsOutput struct {

	// Information about the Regions.
	Regions []Region `locationName:"regionInfo" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeRegionsOutput) String

func (s DescribeRegionsOutput) String() string

String returns the string representation

type DescribeRegionsRequest

type DescribeRegionsRequest struct {
	*aws.Request
	Input *DescribeRegionsInput
	Copy  func(*DescribeRegionsInput) DescribeRegionsRequest
}

DescribeRegionsRequest is the request type for the DescribeRegions API operation.

func (DescribeRegionsRequest) Send

Send marshals and sends the DescribeRegions API request.

type DescribeRegionsResponse added in v0.9.0

type DescribeRegionsResponse struct {
	*DescribeRegionsOutput
	// contains filtered or unexported fields
}

DescribeRegionsResponse is the response type for the DescribeRegions API operation.

func (*DescribeRegionsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeRegionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeRegions request.

type DescribeReservedInstancesInput

type DescribeReservedInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * availability-zone - The Availability Zone where the Reserved Instance
	//    can be used.
	//
	//    * duration - The duration of the Reserved Instance (one year or three
	//    years), in seconds (31536000 | 94608000).
	//
	//    * end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).
	//
	//    * fixed-price - The purchase price of the Reserved Instance (for example,
	//    9800.0).
	//
	//    * instance-type - The instance type that is covered by the reservation.
	//
	//    * scope - The scope of the Reserved Instance (Region or Availability Zone).
	//
	//    * product-description - The Reserved Instance product platform description.
	//    Instances that include (Amazon VPC) in the product platform description
	//    will only be displayed to EC2-Classic account holders and are for use
	//    with Amazon VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE
	//    Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux
	//    (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server
	//    Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with
	//    SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with
	//    SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)).
	//
	//    * reserved-instances-id - The ID of the Reserved Instance.
	//
	//    * start - The time at which the Reserved Instance purchase request was
	//    placed (for example, 2014-08-07T11:54:42.000Z).
	//
	//    * state - The state of the Reserved Instance (payment-pending | active
	//    | payment-failed | retired).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * usage-price - The usage price of the Reserved Instance, per hour (for
	//    example, 0.84).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// Describes whether the Reserved Instance is Standard or Convertible.
	OfferingClass OfferingClassType `type:"string" enum:"true"`

	// The Reserved Instance offering type. If you are using tools that predate
	// the 2011-11-01 API version, you only have access to the Medium Utilization
	// Reserved Instance offering type.
	OfferingType OfferingTypeValues `locationName:"offeringType" type:"string" enum:"true"`

	// One or more Reserved Instance IDs.
	//
	// Default: Describes all your Reserved Instances, or only those otherwise specified.
	ReservedInstancesIds []string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeReservedInstances.

func (DescribeReservedInstancesInput) String

String returns the string representation

type DescribeReservedInstancesListingsInput

type DescribeReservedInstancesListingsInput struct {

	// One or more filters.
	//
	//    * reserved-instances-id - The ID of the Reserved Instances.
	//
	//    * reserved-instances-listing-id - The ID of the Reserved Instances listing.
	//
	//    * status - The status of the Reserved Instance listing (pending | active
	//    | cancelled | closed).
	//
	//    * status-message - The reason for the status.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// One or more Reserved Instance IDs.
	ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`

	// One or more Reserved Instance listing IDs.
	ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeReservedInstancesListings.

func (DescribeReservedInstancesListingsInput) String

String returns the string representation

type DescribeReservedInstancesListingsOutput

type DescribeReservedInstancesListingsOutput struct {

	// Information about the Reserved Instance listing.
	ReservedInstancesListings []ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeReservedInstancesListings.

func (DescribeReservedInstancesListingsOutput) String

String returns the string representation

type DescribeReservedInstancesListingsRequest

DescribeReservedInstancesListingsRequest is the request type for the DescribeReservedInstancesListings API operation.

func (DescribeReservedInstancesListingsRequest) Send

Send marshals and sends the DescribeReservedInstancesListings API request.

type DescribeReservedInstancesListingsResponse added in v0.9.0

type DescribeReservedInstancesListingsResponse struct {
	*DescribeReservedInstancesListingsOutput
	// contains filtered or unexported fields
}

DescribeReservedInstancesListingsResponse is the response type for the DescribeReservedInstancesListings API operation.

func (*DescribeReservedInstancesListingsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeReservedInstancesListingsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeReservedInstancesListings request.

type DescribeReservedInstancesModificationsInput

type DescribeReservedInstancesModificationsInput struct {

	// One or more filters.
	//
	//    * client-token - The idempotency token for the modification request.
	//
	//    * create-date - The time when the modification request was created.
	//
	//    * effective-date - The time when the modification becomes effective.
	//
	//    * modification-result.reserved-instances-id - The ID for the Reserved
	//    Instances created as part of the modification request. This ID is only
	//    available when the status of the modification is fulfilled.
	//
	//    * modification-result.target-configuration.availability-zone - The Availability
	//    Zone for the new Reserved Instances.
	//
	//    * modification-result.target-configuration.instance-count - The number
	//    of new Reserved Instances.
	//
	//    * modification-result.target-configuration.instance-type - The instance
	//    type of the new Reserved Instances.
	//
	//    * modification-result.target-configuration.platform - The network platform
	//    of the new Reserved Instances (EC2-Classic | EC2-VPC).
	//
	//    * reserved-instances-id - The ID of the Reserved Instances modified.
	//
	//    * reserved-instances-modification-id - The ID of the modification request.
	//
	//    * status - The status of the Reserved Instances modification request (processing
	//    | fulfilled | failed).
	//
	//    * status-message - The reason for the status.
	//
	//    * update-date - The time when the modification request was last updated.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The token to retrieve the next page of results.
	NextToken *string `locationName:"nextToken" type:"string"`

	// IDs for the submitted modification request.
	ReservedInstancesModificationIds []string `locationName:"ReservedInstancesModificationId" locationNameList:"ReservedInstancesModificationId" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeReservedInstancesModifications.

func (DescribeReservedInstancesModificationsInput) String

String returns the string representation

type DescribeReservedInstancesModificationsOutput

type DescribeReservedInstancesModificationsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The Reserved Instance modification information.
	ReservedInstancesModifications []ReservedInstancesModification `locationName:"reservedInstancesModificationsSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeReservedInstancesModifications.

func (DescribeReservedInstancesModificationsOutput) String

String returns the string representation

type DescribeReservedInstancesModificationsPaginator added in v0.9.0

type DescribeReservedInstancesModificationsPaginator struct {
	aws.Pager
}

DescribeReservedInstancesModificationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeReservedInstancesModificationsPaginator added in v0.9.0

func NewDescribeReservedInstancesModificationsPaginator(req DescribeReservedInstancesModificationsRequest) DescribeReservedInstancesModificationsPaginator

NewDescribeReservedInstancesModificationsRequestPaginator returns a paginator for DescribeReservedInstancesModifications. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeReservedInstancesModificationsRequest(input)
p := ec2.NewDescribeReservedInstancesModificationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeReservedInstancesModificationsPaginator) CurrentPage added in v0.9.0

type DescribeReservedInstancesModificationsRequest

DescribeReservedInstancesModificationsRequest is the request type for the DescribeReservedInstancesModifications API operation.

func (DescribeReservedInstancesModificationsRequest) Send

Send marshals and sends the DescribeReservedInstancesModifications API request.

type DescribeReservedInstancesModificationsResponse added in v0.9.0

type DescribeReservedInstancesModificationsResponse struct {
	*DescribeReservedInstancesModificationsOutput
	// contains filtered or unexported fields
}

DescribeReservedInstancesModificationsResponse is the response type for the DescribeReservedInstancesModifications API operation.

func (*DescribeReservedInstancesModificationsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DescribeReservedInstancesModifications request.

type DescribeReservedInstancesOfferingsInput

type DescribeReservedInstancesOfferingsInput struct {

	// The Availability Zone in which the Reserved Instance can be used.
	AvailabilityZone *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * availability-zone - The Availability Zone where the Reserved Instance
	//    can be used.
	//
	//    * duration - The duration of the Reserved Instance (for example, one year
	//    or three years), in seconds (31536000 | 94608000).
	//
	//    * fixed-price - The purchase price of the Reserved Instance (for example,
	//    9800.0).
	//
	//    * instance-type - The instance type that is covered by the reservation.
	//
	//    * marketplace - Set to true to show only Reserved Instance Marketplace
	//    offerings. When this filter is not used, which is the default behavior,
	//    all offerings from both AWS and the Reserved Instance Marketplace are
	//    listed.
	//
	//    * product-description - The Reserved Instance product platform description.
	//    Instances that include (Amazon VPC) in the product platform description
	//    will only be displayed to EC2-Classic account holders and are for use
	//    with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux |
	//    SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise
	//    Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL
	//    Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows
	//    with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows
	//    with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon
	//    VPC))
	//
	//    * reserved-instances-offering-id - The Reserved Instances offering ID.
	//
	//    * scope - The scope of the Reserved Instance (Availability Zone or Region).
	//
	//    * usage-price - The usage price of the Reserved Instance, per hour (for
	//    example, 0.84).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// Include Reserved Instance Marketplace offerings in the response.
	IncludeMarketplace *bool `type:"boolean"`

	// The tenancy of the instances covered by the reservation. A Reserved Instance
	// with a tenancy of dedicated is applied to instances that run in a VPC on
	// single-tenant hardware (i.e., Dedicated Instances).
	//
	// Important: The host value cannot be used with this parameter. Use the default
	// or dedicated values only.
	//
	// Default: default
	InstanceTenancy Tenancy `locationName:"instanceTenancy" type:"string" enum:"true"`

	// The instance type that the reservation will cover (for example, m1.small).
	// For more information, see Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	InstanceType InstanceType `type:"string" enum:"true"`

	// The maximum duration (in seconds) to filter when searching for offerings.
	//
	// Default: 94608000 (3 years)
	MaxDuration *int64 `type:"long"`

	// The maximum number of instances to filter when searching for offerings.
	//
	// Default: 20
	MaxInstanceCount *int64 `type:"integer"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results of the initial request can be seen by sending another
	// request with the returned NextToken value. The maximum is 100.
	//
	// Default: 100
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// The minimum duration (in seconds) to filter when searching for offerings.
	//
	// Default: 2592000 (1 month)
	MinDuration *int64 `type:"long"`

	// The token to retrieve the next page of results.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The offering class of the Reserved Instance. Can be standard or convertible.
	OfferingClass OfferingClassType `type:"string" enum:"true"`

	// The Reserved Instance offering type. If you are using tools that predate
	// the 2011-11-01 API version, you only have access to the Medium Utilization
	// Reserved Instance offering type.
	OfferingType OfferingTypeValues `locationName:"offeringType" type:"string" enum:"true"`

	// The Reserved Instance product platform description. Instances that include
	// (Amazon VPC) in the description are for use with Amazon VPC.
	ProductDescription RIProductDescription `type:"string" enum:"true"`

	// One or more Reserved Instances offering IDs.
	ReservedInstancesOfferingIds []string `locationName:"ReservedInstancesOfferingId" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeReservedInstancesOfferings.

func (DescribeReservedInstancesOfferingsInput) String

String returns the string representation

type DescribeReservedInstancesOfferingsOutput

type DescribeReservedInstancesOfferingsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// A list of Reserved Instances offerings.
	ReservedInstancesOfferings []ReservedInstancesOffering `locationName:"reservedInstancesOfferingsSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeReservedInstancesOfferings.

func (DescribeReservedInstancesOfferingsOutput) String

String returns the string representation

type DescribeReservedInstancesOfferingsPaginator added in v0.9.0

type DescribeReservedInstancesOfferingsPaginator struct {
	aws.Pager
}

DescribeReservedInstancesOfferingsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeReservedInstancesOfferingsPaginator added in v0.9.0

func NewDescribeReservedInstancesOfferingsPaginator(req DescribeReservedInstancesOfferingsRequest) DescribeReservedInstancesOfferingsPaginator

NewDescribeReservedInstancesOfferingsRequestPaginator returns a paginator for DescribeReservedInstancesOfferings. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeReservedInstancesOfferingsRequest(input)
p := ec2.NewDescribeReservedInstancesOfferingsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeReservedInstancesOfferingsPaginator) CurrentPage added in v0.9.0

type DescribeReservedInstancesOfferingsRequest

DescribeReservedInstancesOfferingsRequest is the request type for the DescribeReservedInstancesOfferings API operation.

func (DescribeReservedInstancesOfferingsRequest) Send

Send marshals and sends the DescribeReservedInstancesOfferings API request.

type DescribeReservedInstancesOfferingsResponse added in v0.9.0

type DescribeReservedInstancesOfferingsResponse struct {
	*DescribeReservedInstancesOfferingsOutput
	// contains filtered or unexported fields
}

DescribeReservedInstancesOfferingsResponse is the response type for the DescribeReservedInstancesOfferings API operation.

func (*DescribeReservedInstancesOfferingsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeReservedInstancesOfferingsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeReservedInstancesOfferings request.

type DescribeReservedInstancesOutput

type DescribeReservedInstancesOutput struct {

	// A list of Reserved Instances.
	ReservedInstances []ReservedInstances `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output for DescribeReservedInstances.

func (DescribeReservedInstancesOutput) String

String returns the string representation

type DescribeReservedInstancesRequest

type DescribeReservedInstancesRequest struct {
	*aws.Request
	Input *DescribeReservedInstancesInput
	Copy  func(*DescribeReservedInstancesInput) DescribeReservedInstancesRequest
}

DescribeReservedInstancesRequest is the request type for the DescribeReservedInstances API operation.

func (DescribeReservedInstancesRequest) Send

Send marshals and sends the DescribeReservedInstances API request.

type DescribeReservedInstancesResponse added in v0.9.0

type DescribeReservedInstancesResponse struct {
	*DescribeReservedInstancesOutput
	// contains filtered or unexported fields
}

DescribeReservedInstancesResponse is the response type for the DescribeReservedInstances API operation.

func (*DescribeReservedInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeReservedInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeReservedInstances request.

type DescribeRouteTablesInput

type DescribeRouteTablesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * association.route-table-association-id - The ID of an association ID
	//    for the route table.
	//
	//    * association.route-table-id - The ID of the route table involved in the
	//    association.
	//
	//    * association.subnet-id - The ID of the subnet involved in the association.
	//
	//    * association.main - Indicates whether the route table is the main route
	//    table for the VPC (true | false). Route tables that do not have an association
	//    ID are not returned in the response.
	//
	//    * owner-id - The ID of the AWS account that owns the route table.
	//
	//    * route-table-id - The ID of the route table.
	//
	//    * route.destination-cidr-block - The IPv4 CIDR range specified in a route
	//    in the table.
	//
	//    * route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in
	//    a route in the route table.
	//
	//    * route.destination-prefix-list-id - The ID (prefix) of the AWS service
	//    specified in a route in the table.
	//
	//    * route.egress-only-internet-gateway-id - The ID of an egress-only Internet
	//    gateway specified in a route in the route table.
	//
	//    * route.gateway-id - The ID of a gateway specified in a route in the table.
	//
	//    * route.instance-id - The ID of an instance specified in a route in the
	//    table.
	//
	//    * route.nat-gateway-id - The ID of a NAT gateway.
	//
	//    * route.transit-gateway-id - The ID of a transit gateway.
	//
	//    * route.origin - Describes how the route was created. CreateRouteTable
	//    indicates that the route was automatically created when the route table
	//    was created; CreateRoute indicates that the route was manually added to
	//    the route table; EnableVgwRoutePropagation indicates that the route was
	//    propagated by route propagation.
	//
	//    * route.state - The state of a route in the route table (active | blackhole).
	//    The blackhole state indicates that the route's target isn't available
	//    (for example, the specified gateway isn't attached to the VPC, the specified
	//    NAT instance has been terminated, and so on).
	//
	//    * route.vpc-peering-connection-id - The ID of a VPC peering connection
	//    specified in a route in the table.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * vpc-id - The ID of the VPC for the route table.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// One or more route table IDs.
	//
	// Default: Describes all your route tables.
	RouteTableIds []string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeRouteTablesInput) String

func (s DescribeRouteTablesInput) String() string

String returns the string representation

func (*DescribeRouteTablesInput) Validate added in v0.9.0

func (s *DescribeRouteTablesInput) Validate() error

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

type DescribeRouteTablesOutput

type DescribeRouteTablesOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about one or more route tables.
	RouteTables []RouteTable `locationName:"routeTableSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeRouteTables.

func (DescribeRouteTablesOutput) String

func (s DescribeRouteTablesOutput) String() string

String returns the string representation

type DescribeRouteTablesPaginator added in v0.9.0

type DescribeRouteTablesPaginator struct {
	aws.Pager
}

DescribeRouteTablesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeRouteTablesPaginator added in v0.9.0

func NewDescribeRouteTablesPaginator(req DescribeRouteTablesRequest) DescribeRouteTablesPaginator

NewDescribeRouteTablesRequestPaginator returns a paginator for DescribeRouteTables. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeRouteTablesRequest(input)
p := ec2.NewDescribeRouteTablesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeRouteTablesPaginator) CurrentPage added in v0.9.0

type DescribeRouteTablesRequest

type DescribeRouteTablesRequest struct {
	*aws.Request
	Input *DescribeRouteTablesInput
	Copy  func(*DescribeRouteTablesInput) DescribeRouteTablesRequest
}

DescribeRouteTablesRequest is the request type for the DescribeRouteTables API operation.

func (DescribeRouteTablesRequest) Send

Send marshals and sends the DescribeRouteTables API request.

type DescribeRouteTablesResponse added in v0.9.0

type DescribeRouteTablesResponse struct {
	*DescribeRouteTablesOutput
	// contains filtered or unexported fields
}

DescribeRouteTablesResponse is the response type for the DescribeRouteTables API operation.

func (*DescribeRouteTablesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeRouteTablesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeRouteTables request.

type DescribeScheduledInstanceAvailabilityInput

type DescribeScheduledInstanceAvailabilityInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The filters.
	//
	//    * availability-zone - The Availability Zone (for example, us-west-2a).
	//
	//    * instance-type - The instance type (for example, c4.large).
	//
	//    * network-platform - The network platform (EC2-Classic or EC2-VPC).
	//
	//    * platform - The platform (Linux/UNIX or Windows).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The time period for the first schedule to start.
	//
	// FirstSlotStartTimeRange is a required field
	FirstSlotStartTimeRange *SlotDateTimeRangeRequest `type:"structure" required:"true"`

	// The maximum number of results to return in a single call. This value can
	// be between 5 and 300. The default value is 300. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The maximum available duration, in hours. This value must be greater than
	// MinSlotDurationInHours and less than 1,720.
	MaxSlotDurationInHours *int64 `type:"integer"`

	// The minimum available duration, in hours. The minimum required duration is
	// 1,200 hours per year. For example, the minimum daily schedule is 4 hours,
	// the minimum weekly schedule is 24 hours, and the minimum monthly schedule
	// is 100 hours.
	MinSlotDurationInHours *int64 `type:"integer"`

	// The token for the next set of results.
	NextToken *string `type:"string"`

	// The schedule recurrence.
	//
	// Recurrence is a required field
	Recurrence *ScheduledInstanceRecurrenceRequest `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeScheduledInstanceAvailability.

func (DescribeScheduledInstanceAvailabilityInput) String

String returns the string representation

func (*DescribeScheduledInstanceAvailabilityInput) Validate

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

type DescribeScheduledInstanceAvailabilityOutput

type DescribeScheduledInstanceAvailabilityOutput struct {

	// The token required to retrieve the next set of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the available Scheduled Instances.
	ScheduledInstanceAvailabilitySet []ScheduledInstanceAvailability `locationName:"scheduledInstanceAvailabilitySet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeScheduledInstanceAvailability.

func (DescribeScheduledInstanceAvailabilityOutput) String

String returns the string representation

type DescribeScheduledInstanceAvailabilityPaginator added in v0.9.0

type DescribeScheduledInstanceAvailabilityPaginator struct {
	aws.Pager
}

DescribeScheduledInstanceAvailabilityPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeScheduledInstanceAvailabilityPaginator added in v0.9.0

func NewDescribeScheduledInstanceAvailabilityPaginator(req DescribeScheduledInstanceAvailabilityRequest) DescribeScheduledInstanceAvailabilityPaginator

NewDescribeScheduledInstanceAvailabilityRequestPaginator returns a paginator for DescribeScheduledInstanceAvailability. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeScheduledInstanceAvailabilityRequest(input)
p := ec2.NewDescribeScheduledInstanceAvailabilityRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeScheduledInstanceAvailabilityPaginator) CurrentPage added in v0.9.0

type DescribeScheduledInstanceAvailabilityRequest

DescribeScheduledInstanceAvailabilityRequest is the request type for the DescribeScheduledInstanceAvailability API operation.

func (DescribeScheduledInstanceAvailabilityRequest) Send

Send marshals and sends the DescribeScheduledInstanceAvailability API request.

type DescribeScheduledInstanceAvailabilityResponse added in v0.9.0

type DescribeScheduledInstanceAvailabilityResponse struct {
	*DescribeScheduledInstanceAvailabilityOutput
	// contains filtered or unexported fields
}

DescribeScheduledInstanceAvailabilityResponse is the response type for the DescribeScheduledInstanceAvailability API operation.

func (*DescribeScheduledInstanceAvailabilityResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DescribeScheduledInstanceAvailability request.

type DescribeScheduledInstancesInput

type DescribeScheduledInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The filters.
	//
	//    * availability-zone - The Availability Zone (for example, us-west-2a).
	//
	//    * instance-type - The instance type (for example, c4.large).
	//
	//    * network-platform - The network platform (EC2-Classic or EC2-VPC).
	//
	//    * platform - The platform (Linux/UNIX or Windows).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return in a single call. This value can
	// be between 5 and 300. The default value is 100. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// The token for the next set of results.
	NextToken *string `type:"string"`

	// The Scheduled Instance IDs.
	ScheduledInstanceIds []string `locationName:"ScheduledInstanceId" locationNameList:"ScheduledInstanceId" type:"list"`

	// The time period for the first schedule to start.
	SlotStartTimeRange *SlotStartTimeRangeRequest `type:"structure"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeScheduledInstances.

func (DescribeScheduledInstancesInput) String

String returns the string representation

type DescribeScheduledInstancesOutput

type DescribeScheduledInstancesOutput struct {

	// The token required to retrieve the next set of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the Scheduled Instances.
	ScheduledInstanceSet []ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeScheduledInstances.

func (DescribeScheduledInstancesOutput) String

String returns the string representation

type DescribeScheduledInstancesPaginator added in v0.9.0

type DescribeScheduledInstancesPaginator struct {
	aws.Pager
}

DescribeScheduledInstancesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeScheduledInstancesPaginator added in v0.9.0

func NewDescribeScheduledInstancesPaginator(req DescribeScheduledInstancesRequest) DescribeScheduledInstancesPaginator

NewDescribeScheduledInstancesRequestPaginator returns a paginator for DescribeScheduledInstances. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeScheduledInstancesRequest(input)
p := ec2.NewDescribeScheduledInstancesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeScheduledInstancesPaginator) CurrentPage added in v0.9.0

type DescribeScheduledInstancesRequest

type DescribeScheduledInstancesRequest struct {
	*aws.Request
	Input *DescribeScheduledInstancesInput
	Copy  func(*DescribeScheduledInstancesInput) DescribeScheduledInstancesRequest
}

DescribeScheduledInstancesRequest is the request type for the DescribeScheduledInstances API operation.

func (DescribeScheduledInstancesRequest) Send

Send marshals and sends the DescribeScheduledInstances API request.

type DescribeScheduledInstancesResponse added in v0.9.0

type DescribeScheduledInstancesResponse struct {
	*DescribeScheduledInstancesOutput
	// contains filtered or unexported fields
}

DescribeScheduledInstancesResponse is the response type for the DescribeScheduledInstances API operation.

func (*DescribeScheduledInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeScheduledInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeScheduledInstances request.

type DescribeSecurityGroupReferencesInput

type DescribeSecurityGroupReferencesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of the security groups in your account.
	//
	// GroupId is a required field
	GroupId []string `locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeSecurityGroupReferencesInput) String

String returns the string representation

func (*DescribeSecurityGroupReferencesInput) Validate

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

type DescribeSecurityGroupReferencesOutput

type DescribeSecurityGroupReferencesOutput struct {

	// Information about the VPCs with the referencing security groups.
	SecurityGroupReferenceSet []SecurityGroupReference `locationName:"securityGroupReferenceSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeSecurityGroupReferencesOutput) String

String returns the string representation

type DescribeSecurityGroupReferencesRequest

type DescribeSecurityGroupReferencesRequest struct {
	*aws.Request
	Input *DescribeSecurityGroupReferencesInput
	Copy  func(*DescribeSecurityGroupReferencesInput) DescribeSecurityGroupReferencesRequest
}

DescribeSecurityGroupReferencesRequest is the request type for the DescribeSecurityGroupReferences API operation.

func (DescribeSecurityGroupReferencesRequest) Send

Send marshals and sends the DescribeSecurityGroupReferences API request.

type DescribeSecurityGroupReferencesResponse added in v0.9.0

type DescribeSecurityGroupReferencesResponse struct {
	*DescribeSecurityGroupReferencesOutput
	// contains filtered or unexported fields
}

DescribeSecurityGroupReferencesResponse is the response type for the DescribeSecurityGroupReferences API operation.

func (*DescribeSecurityGroupReferencesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSecurityGroupReferencesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSecurityGroupReferences request.

type DescribeSecurityGroupsInput

type DescribeSecurityGroupsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters. If using multiple filters for rules, the results include security
	// groups for which any combination of rules - not necessarily a single rule
	// - match all filters.
	//
	//    * description - The description of the security group.
	//
	//    * egress.ip-permission.cidr - An IPv4 CIDR block for an outbound security
	//    group rule.
	//
	//    * egress.ip-permission.from-port - For an outbound rule, the start of
	//    port range for the TCP and UDP protocols, or an ICMP type number.
	//
	//    * egress.ip-permission.group-id - The ID of a security group that has
	//    been referenced in an outbound security group rule.
	//
	//    * egress.ip-permission.group-name - The name of a security group that
	//    has been referenced in an outbound security group rule.
	//
	//    * egress.ip-permission.ipv6-cidr - An IPv6 CIDR block for an outbound
	//    security group rule.
	//
	//    * egress.ip-permission.prefix-list-id - The ID of a prefix list to which
	//    a security group rule allows outbound access.
	//
	//    * egress.ip-permission.protocol - The IP protocol for an outbound security
	//    group rule (tcp | udp | icmp or a protocol number).
	//
	//    * egress.ip-permission.to-port - For an outbound rule, the end of port
	//    range for the TCP and UDP protocols, or an ICMP code.
	//
	//    * egress.ip-permission.user-id - The ID of an AWS account that has been
	//    referenced in an outbound security group rule.
	//
	//    * group-id - The ID of the security group.
	//
	//    * group-name - The name of the security group.
	//
	//    * ip-permission.cidr - An IPv4 CIDR block for an inbound security group
	//    rule.
	//
	//    * ip-permission.from-port - For an inbound rule, the start of port range
	//    for the TCP and UDP protocols, or an ICMP type number.
	//
	//    * ip-permission.group-id - The ID of a security group that has been referenced
	//    in an inbound security group rule.
	//
	//    * ip-permission.group-name - The name of a security group that has been
	//    referenced in an inbound security group rule.
	//
	//    * ip-permission.ipv6-cidr - An IPv6 CIDR block for an inbound security
	//    group rule.
	//
	//    * ip-permission.prefix-list-id - The ID of a prefix list from which a
	//    security group rule allows inbound access.
	//
	//    * ip-permission.protocol - The IP protocol for an inbound security group
	//    rule (tcp | udp | icmp or a protocol number).
	//
	//    * ip-permission.to-port - For an inbound rule, the end of port range for
	//    the TCP and UDP protocols, or an ICMP code.
	//
	//    * ip-permission.user-id - The ID of an AWS account that has been referenced
	//    in an inbound security group rule.
	//
	//    * owner-id - The AWS account ID of the owner of the security group.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * vpc-id - The ID of the VPC specified when the security group was created.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The IDs of the security groups. Required for security groups in a nondefault
	// VPC.
	//
	// Default: Describes all your security groups.
	GroupIds []string `locationName:"GroupId" locationNameList:"groupId" type:"list"`

	// [EC2-Classic and default VPC only] The names of the security groups. You
	// can specify either the security group name or the security group ID. For
	// security groups in a nondefault VPC, use the group-name filter to describe
	// security groups by name.
	//
	// Default: Describes all your security groups.
	GroupNames []string `locationName:"GroupName" locationNameList:"GroupName" type:"list"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another request with the returned NextToken value.
	// This value can be between 5 and 1000. If this parameter is not specified,
	// then all results are returned.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token to request the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeSecurityGroupsInput) String

String returns the string representation

func (*DescribeSecurityGroupsInput) Validate added in v0.9.0

func (s *DescribeSecurityGroupsInput) Validate() error

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

type DescribeSecurityGroupsOutput

type DescribeSecurityGroupsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the security groups.
	SecurityGroups []SecurityGroup `locationName:"securityGroupInfo" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeSecurityGroupsOutput) String

String returns the string representation

type DescribeSecurityGroupsPaginator added in v0.9.0

type DescribeSecurityGroupsPaginator struct {
	aws.Pager
}

DescribeSecurityGroupsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeSecurityGroupsPaginator added in v0.9.0

func NewDescribeSecurityGroupsPaginator(req DescribeSecurityGroupsRequest) DescribeSecurityGroupsPaginator

NewDescribeSecurityGroupsRequestPaginator returns a paginator for DescribeSecurityGroups. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeSecurityGroupsRequest(input)
p := ec2.NewDescribeSecurityGroupsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeSecurityGroupsPaginator) CurrentPage added in v0.9.0

type DescribeSecurityGroupsRequest

type DescribeSecurityGroupsRequest struct {
	*aws.Request
	Input *DescribeSecurityGroupsInput
	Copy  func(*DescribeSecurityGroupsInput) DescribeSecurityGroupsRequest
}

DescribeSecurityGroupsRequest is the request type for the DescribeSecurityGroups API operation.

func (DescribeSecurityGroupsRequest) Send

Send marshals and sends the DescribeSecurityGroups API request.

type DescribeSecurityGroupsResponse added in v0.9.0

type DescribeSecurityGroupsResponse struct {
	*DescribeSecurityGroupsOutput
	// contains filtered or unexported fields
}

DescribeSecurityGroupsResponse is the response type for the DescribeSecurityGroups API operation.

func (*DescribeSecurityGroupsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSecurityGroupsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSecurityGroups request.

type DescribeSnapshotAttributeInput

type DescribeSnapshotAttributeInput struct {

	// The snapshot attribute you would like to view.
	//
	// Attribute is a required field
	Attribute SnapshotAttributeName `type:"string" required:"true" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the EBS snapshot.
	//
	// SnapshotId is a required field
	SnapshotId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeSnapshotAttributeInput) String

String returns the string representation

func (*DescribeSnapshotAttributeInput) Validate

func (s *DescribeSnapshotAttributeInput) Validate() error

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

type DescribeSnapshotAttributeOutput

type DescribeSnapshotAttributeOutput struct {

	// The users and groups that have the permissions for creating volumes from
	// the snapshot.
	CreateVolumePermissions []CreateVolumePermission `locationName:"createVolumePermission" locationNameList:"item" type:"list"`

	// The product codes.
	ProductCodes []ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`

	// The ID of the EBS snapshot.
	SnapshotId *string `locationName:"snapshotId" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeSnapshotAttributeOutput) String

String returns the string representation

type DescribeSnapshotAttributeRequest

type DescribeSnapshotAttributeRequest struct {
	*aws.Request
	Input *DescribeSnapshotAttributeInput
	Copy  func(*DescribeSnapshotAttributeInput) DescribeSnapshotAttributeRequest
}

DescribeSnapshotAttributeRequest is the request type for the DescribeSnapshotAttribute API operation.

func (DescribeSnapshotAttributeRequest) Send

Send marshals and sends the DescribeSnapshotAttribute API request.

type DescribeSnapshotAttributeResponse added in v0.9.0

type DescribeSnapshotAttributeResponse struct {
	*DescribeSnapshotAttributeOutput
	// contains filtered or unexported fields
}

DescribeSnapshotAttributeResponse is the response type for the DescribeSnapshotAttribute API operation.

func (*DescribeSnapshotAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSnapshotAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSnapshotAttribute request.

type DescribeSnapshotsInput

type DescribeSnapshotsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters.
	//
	//    * description - A description of the snapshot.
	//
	//    * encrypted - Indicates whether the snapshot is encrypted (true | false)
	//
	//    * owner-alias - The owner alias, from an Amazon-maintained list (amazon).
	//    This is not the user-configured AWS account alias set using the IAM console.
	//    We recommend that you use the related parameter instead of this filter.
	//
	//    * owner-id - The AWS account ID of the owner. We recommend that you use
	//    the related parameter instead of this filter.
	//
	//    * progress - The progress of the snapshot, as a percentage (for example,
	//    80%).
	//
	//    * snapshot-id - The snapshot ID.
	//
	//    * start-time - The time stamp when the snapshot was initiated.
	//
	//    * status - The status of the snapshot (pending | completed | error).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * volume-id - The ID of the volume the snapshot is for.
	//
	//    * volume-size - The size of the volume, in GiB.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of snapshot results returned by DescribeSnapshots in paginated
	// output. When this parameter is used, DescribeSnapshots only returns MaxResults
	// results in a single page along with a NextToken response element. The remaining
	// results of the initial request can be seen by sending another DescribeSnapshots
	// request with the returned NextToken value. This value can be between 5 and
	// 1000; if MaxResults is given a value larger than 1000, only 1000 results
	// are returned. If this parameter is not used, then DescribeSnapshots returns
	// all results. You cannot specify this parameter and the snapshot IDs parameter
	// in the same request.
	MaxResults *int64 `type:"integer"`

	// The NextToken value returned from a previous paginated DescribeSnapshots
	// request where MaxResults was used and the results exceeded the value of that
	// parameter. Pagination continues from the end of the previous results that
	// returned the NextToken value. This value is null when there are no more results
	// to return.
	NextToken *string `type:"string"`

	// Scopes the results to snapshots with the specified owners. You can specify
	// a combination of AWS account IDs, self, and amazon.
	OwnerIds []string `locationName:"Owner" locationNameList:"Owner" type:"list"`

	// The IDs of the AWS accounts that can create volumes from the snapshot.
	RestorableByUserIds []string `locationName:"RestorableBy" type:"list"`

	// The snapshot IDs.
	//
	// Default: Describes the snapshots for which you have create volume permissions.
	SnapshotIds []string `locationName:"SnapshotId" locationNameList:"SnapshotId" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeSnapshotsInput) String

func (s DescribeSnapshotsInput) String() string

String returns the string representation

type DescribeSnapshotsOutput

type DescribeSnapshotsOutput struct {

	// The NextToken value to include in a future DescribeSnapshots request. When
	// the results of a DescribeSnapshots request exceed MaxResults, this value
	// can be used to retrieve the next page of results. This value is null when
	// there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the snapshots.
	Snapshots []Snapshot `locationName:"snapshotSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeSnapshotsOutput) String

func (s DescribeSnapshotsOutput) String() string

String returns the string representation

type DescribeSnapshotsPaginator added in v0.9.0

type DescribeSnapshotsPaginator struct {
	aws.Pager
}

DescribeSnapshotsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeSnapshotsPaginator added in v0.9.0

func NewDescribeSnapshotsPaginator(req DescribeSnapshotsRequest) DescribeSnapshotsPaginator

NewDescribeSnapshotsRequestPaginator returns a paginator for DescribeSnapshots. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeSnapshotsRequest(input)
p := ec2.NewDescribeSnapshotsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeSnapshotsPaginator) CurrentPage added in v0.9.0

type DescribeSnapshotsRequest

type DescribeSnapshotsRequest struct {
	*aws.Request
	Input *DescribeSnapshotsInput
	Copy  func(*DescribeSnapshotsInput) DescribeSnapshotsRequest
}

DescribeSnapshotsRequest is the request type for the DescribeSnapshots API operation.

func (DescribeSnapshotsRequest) Send

Send marshals and sends the DescribeSnapshots API request.

type DescribeSnapshotsResponse added in v0.9.0

type DescribeSnapshotsResponse struct {
	*DescribeSnapshotsOutput
	// contains filtered or unexported fields
}

DescribeSnapshotsResponse is the response type for the DescribeSnapshots API operation.

func (*DescribeSnapshotsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSnapshotsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSnapshots request.

type DescribeSpotDatafeedSubscriptionInput

type DescribeSpotDatafeedSubscriptionInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeSpotDatafeedSubscription.

func (DescribeSpotDatafeedSubscriptionInput) String

String returns the string representation

type DescribeSpotDatafeedSubscriptionOutput

type DescribeSpotDatafeedSubscriptionOutput struct {

	// The Spot Instance data feed subscription.
	SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
	// contains filtered or unexported fields
}

Contains the output of DescribeSpotDatafeedSubscription.

func (DescribeSpotDatafeedSubscriptionOutput) String

String returns the string representation

type DescribeSpotDatafeedSubscriptionRequest

type DescribeSpotDatafeedSubscriptionRequest struct {
	*aws.Request
	Input *DescribeSpotDatafeedSubscriptionInput
	Copy  func(*DescribeSpotDatafeedSubscriptionInput) DescribeSpotDatafeedSubscriptionRequest
}

DescribeSpotDatafeedSubscriptionRequest is the request type for the DescribeSpotDatafeedSubscription API operation.

func (DescribeSpotDatafeedSubscriptionRequest) Send

Send marshals and sends the DescribeSpotDatafeedSubscription API request.

type DescribeSpotDatafeedSubscriptionResponse added in v0.9.0

type DescribeSpotDatafeedSubscriptionResponse struct {
	*DescribeSpotDatafeedSubscriptionOutput
	// contains filtered or unexported fields
}

DescribeSpotDatafeedSubscriptionResponse is the response type for the DescribeSpotDatafeedSubscription API operation.

func (*DescribeSpotDatafeedSubscriptionResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSpotDatafeedSubscriptionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSpotDatafeedSubscription request.

type DescribeSpotFleetInstancesInput

type DescribeSpotFleetInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The maximum number of results to return in a single call. Specify a value
	// between 1 and 1000. The default value is 1000. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The token for the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The ID of the Spot Fleet request.
	//
	// SpotFleetRequestId is a required field
	SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeSpotFleetInstances.

func (DescribeSpotFleetInstancesInput) String

String returns the string representation

func (*DescribeSpotFleetInstancesInput) Validate

func (s *DescribeSpotFleetInstancesInput) Validate() error

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

type DescribeSpotFleetInstancesOutput

type DescribeSpotFleetInstancesOutput struct {

	// The running instances. This list is refreshed periodically and might be out
	// of date.
	ActiveInstances []ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list"`

	// The token required to retrieve the next set of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The ID of the Spot Fleet request.
	SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
	// contains filtered or unexported fields
}

Contains the output of DescribeSpotFleetInstances.

func (DescribeSpotFleetInstancesOutput) String

String returns the string representation

type DescribeSpotFleetInstancesRequest

type DescribeSpotFleetInstancesRequest struct {
	*aws.Request
	Input *DescribeSpotFleetInstancesInput
	Copy  func(*DescribeSpotFleetInstancesInput) DescribeSpotFleetInstancesRequest
}

DescribeSpotFleetInstancesRequest is the request type for the DescribeSpotFleetInstances API operation.

func (DescribeSpotFleetInstancesRequest) Send

Send marshals and sends the DescribeSpotFleetInstances API request.

type DescribeSpotFleetInstancesResponse added in v0.9.0

type DescribeSpotFleetInstancesResponse struct {
	*DescribeSpotFleetInstancesOutput
	// contains filtered or unexported fields
}

DescribeSpotFleetInstancesResponse is the response type for the DescribeSpotFleetInstances API operation.

func (*DescribeSpotFleetInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSpotFleetInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSpotFleetInstances request.

type DescribeSpotFleetRequestHistoryInput

type DescribeSpotFleetRequestHistoryInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The type of events to describe. By default, all events are described.
	EventType EventType `locationName:"eventType" type:"string" enum:"true"`

	// The maximum number of results to return in a single call. Specify a value
	// between 1 and 1000. The default value is 1000. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The token for the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The ID of the Spot Fleet request.
	//
	// SpotFleetRequestId is a required field
	SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`

	// The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	//
	// StartTime is a required field
	StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeSpotFleetRequestHistory.

func (DescribeSpotFleetRequestHistoryInput) String

String returns the string representation

func (*DescribeSpotFleetRequestHistoryInput) Validate

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

type DescribeSpotFleetRequestHistoryOutput

type DescribeSpotFleetRequestHistoryOutput struct {

	// Information about the events in the history of the Spot Fleet request.
	HistoryRecords []HistoryRecord `locationName:"historyRecordSet" locationNameList:"item" type:"list"`

	// The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	// All records up to this time were retrieved.
	//
	// If nextToken indicates that there are more results, this value is not present.
	LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp"`

	// The token required to retrieve the next set of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The ID of the Spot Fleet request.
	SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`

	// The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	StartTime *time.Time `locationName:"startTime" type:"timestamp"`
	// contains filtered or unexported fields
}

Contains the output of DescribeSpotFleetRequestHistory.

func (DescribeSpotFleetRequestHistoryOutput) String

String returns the string representation

type DescribeSpotFleetRequestHistoryRequest

type DescribeSpotFleetRequestHistoryRequest struct {
	*aws.Request
	Input *DescribeSpotFleetRequestHistoryInput
	Copy  func(*DescribeSpotFleetRequestHistoryInput) DescribeSpotFleetRequestHistoryRequest
}

DescribeSpotFleetRequestHistoryRequest is the request type for the DescribeSpotFleetRequestHistory API operation.

func (DescribeSpotFleetRequestHistoryRequest) Send

Send marshals and sends the DescribeSpotFleetRequestHistory API request.

type DescribeSpotFleetRequestHistoryResponse added in v0.9.0

type DescribeSpotFleetRequestHistoryResponse struct {
	*DescribeSpotFleetRequestHistoryOutput
	// contains filtered or unexported fields
}

DescribeSpotFleetRequestHistoryResponse is the response type for the DescribeSpotFleetRequestHistory API operation.

func (*DescribeSpotFleetRequestHistoryResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSpotFleetRequestHistoryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSpotFleetRequestHistory request.

type DescribeSpotFleetRequestsInput

type DescribeSpotFleetRequestsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The maximum number of results to return in a single call. Specify a value
	// between 1 and 1000. The default value is 1000. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// The token for the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The IDs of the Spot Fleet requests.
	SpotFleetRequestIds []string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeSpotFleetRequests.

func (DescribeSpotFleetRequestsInput) String

String returns the string representation

type DescribeSpotFleetRequestsOutput

type DescribeSpotFleetRequestsOutput struct {

	// The token required to retrieve the next set of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the configuration of your Spot Fleet.
	SpotFleetRequestConfigs []SpotFleetRequestConfig `locationName:"spotFleetRequestConfigSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeSpotFleetRequests.

func (DescribeSpotFleetRequestsOutput) String

String returns the string representation

type DescribeSpotFleetRequestsPaginator added in v0.9.0

type DescribeSpotFleetRequestsPaginator struct {
	aws.Pager
}

DescribeSpotFleetRequestsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeSpotFleetRequestsPaginator added in v0.9.0

func NewDescribeSpotFleetRequestsPaginator(req DescribeSpotFleetRequestsRequest) DescribeSpotFleetRequestsPaginator

NewDescribeSpotFleetRequestsRequestPaginator returns a paginator for DescribeSpotFleetRequests. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeSpotFleetRequestsRequest(input)
p := ec2.NewDescribeSpotFleetRequestsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeSpotFleetRequestsPaginator) CurrentPage added in v0.9.0

type DescribeSpotFleetRequestsRequest

type DescribeSpotFleetRequestsRequest struct {
	*aws.Request
	Input *DescribeSpotFleetRequestsInput
	Copy  func(*DescribeSpotFleetRequestsInput) DescribeSpotFleetRequestsRequest
}

DescribeSpotFleetRequestsRequest is the request type for the DescribeSpotFleetRequests API operation.

func (DescribeSpotFleetRequestsRequest) Send

Send marshals and sends the DescribeSpotFleetRequests API request.

type DescribeSpotFleetRequestsResponse added in v0.9.0

type DescribeSpotFleetRequestsResponse struct {
	*DescribeSpotFleetRequestsOutput
	// contains filtered or unexported fields
}

DescribeSpotFleetRequestsResponse is the response type for the DescribeSpotFleetRequests API operation.

func (*DescribeSpotFleetRequestsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSpotFleetRequestsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSpotFleetRequests request.

type DescribeSpotInstanceRequestsInput

type DescribeSpotInstanceRequestsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * availability-zone-group - The Availability Zone group.
	//
	//    * create-time - The time stamp when the Spot Instance request was created.
	//
	//    * fault-code - The fault code related to the request.
	//
	//    * fault-message - The fault message related to the request.
	//
	//    * instance-id - The ID of the instance that fulfilled the request.
	//
	//    * launch-group - The Spot Instance launch group.
	//
	//    * launch.block-device-mapping.delete-on-termination - Indicates whether
	//    the EBS volume is deleted on instance termination.
	//
	//    * launch.block-device-mapping.device-name - The device name for the volume
	//    in the block device mapping (for example, /dev/sdh or xvdh).
	//
	//    * launch.block-device-mapping.snapshot-id - The ID of the snapshot for
	//    the EBS volume.
	//
	//    * launch.block-device-mapping.volume-size - The size of the EBS volume,
	//    in GiB.
	//
	//    * launch.block-device-mapping.volume-type - The type of EBS volume: gp2
	//    for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput
	//    Optimized HDD, sc1for Cold HDD, or standard for Magnetic.
	//
	//    * launch.group-id - The ID of the security group for the instance.
	//
	//    * launch.group-name - The name of the security group for the instance.
	//
	//    * launch.image-id - The ID of the AMI.
	//
	//    * launch.instance-type - The type of instance (for example, m3.medium).
	//
	//    * launch.kernel-id - The kernel ID.
	//
	//    * launch.key-name - The name of the key pair the instance launched with.
	//
	//    * launch.monitoring-enabled - Whether detailed monitoring is enabled for
	//    the Spot Instance.
	//
	//    * launch.ramdisk-id - The RAM disk ID.
	//
	//    * launched-availability-zone - The Availability Zone in which the request
	//    is launched.
	//
	//    * network-interface.addresses.primary - Indicates whether the IP address
	//    is the primary private IP address.
	//
	//    * network-interface.delete-on-termination - Indicates whether the network
	//    interface is deleted when the instance is terminated.
	//
	//    * network-interface.description - A description of the network interface.
	//
	//    * network-interface.device-index - The index of the device for the network
	//    interface attachment on the instance.
	//
	//    * network-interface.group-id - The ID of the security group associated
	//    with the network interface.
	//
	//    * network-interface.network-interface-id - The ID of the network interface.
	//
	//    * network-interface.private-ip-address - The primary private IP address
	//    of the network interface.
	//
	//    * network-interface.subnet-id - The ID of the subnet for the instance.
	//
	//    * product-description - The product description associated with the instance
	//    (Linux/UNIX | Windows).
	//
	//    * spot-instance-request-id - The Spot Instance request ID.
	//
	//    * spot-price - The maximum hourly price for any Spot Instance launched
	//    to fulfill the request.
	//
	//    * state - The state of the Spot Instance request (open | active | closed
	//    | cancelled | failed). Spot request status information can help you track
	//    your Amazon EC2 Spot Instance requests. For more information, see Spot
	//    request status (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
	//    in the Amazon EC2 User Guide for Linux Instances.
	//
	//    * status-code - The short code describing the most recent evaluation of
	//    your Spot Instance request.
	//
	//    * status-message - The message explaining the status of the Spot Instance
	//    request.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * type - The type of Spot Instance request (one-time | persistent).
	//
	//    * valid-from - The start date of the request.
	//
	//    * valid-until - The end date of the request.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return in a single call. Specify a value
	// between 5 and 1000. To retrieve the remaining results, make another call
	// with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// The token to request the next set of results. This value is null when there
	// are no more results to return.
	NextToken *string `type:"string"`

	// One or more Spot Instance request IDs.
	SpotInstanceRequestIds []string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeSpotInstanceRequests.

func (DescribeSpotInstanceRequestsInput) String

String returns the string representation

type DescribeSpotInstanceRequestsOutput

type DescribeSpotInstanceRequestsOutput struct {

	// The token to use to retrieve the next set of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// One or more Spot Instance requests.
	SpotInstanceRequests []SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeSpotInstanceRequests.

func (DescribeSpotInstanceRequestsOutput) String

String returns the string representation

type DescribeSpotInstanceRequestsPaginator added in v0.9.0

type DescribeSpotInstanceRequestsPaginator struct {
	aws.Pager
}

DescribeSpotInstanceRequestsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeSpotInstanceRequestsPaginator added in v0.9.0

func NewDescribeSpotInstanceRequestsPaginator(req DescribeSpotInstanceRequestsRequest) DescribeSpotInstanceRequestsPaginator

NewDescribeSpotInstanceRequestsRequestPaginator returns a paginator for DescribeSpotInstanceRequests. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeSpotInstanceRequestsRequest(input)
p := ec2.NewDescribeSpotInstanceRequestsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeSpotInstanceRequestsPaginator) CurrentPage added in v0.9.0

type DescribeSpotInstanceRequestsRequest

type DescribeSpotInstanceRequestsRequest struct {
	*aws.Request
	Input *DescribeSpotInstanceRequestsInput
	Copy  func(*DescribeSpotInstanceRequestsInput) DescribeSpotInstanceRequestsRequest
}

DescribeSpotInstanceRequestsRequest is the request type for the DescribeSpotInstanceRequests API operation.

func (DescribeSpotInstanceRequestsRequest) Send

Send marshals and sends the DescribeSpotInstanceRequests API request.

type DescribeSpotInstanceRequestsResponse added in v0.9.0

type DescribeSpotInstanceRequestsResponse struct {
	*DescribeSpotInstanceRequestsOutput
	// contains filtered or unexported fields
}

DescribeSpotInstanceRequestsResponse is the response type for the DescribeSpotInstanceRequests API operation.

func (*DescribeSpotInstanceRequestsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSpotInstanceRequestsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSpotInstanceRequests request.

type DescribeSpotPriceHistoryInput

type DescribeSpotPriceHistoryInput struct {

	// Filters the results by the specified Availability Zone.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The date and time, up to the current date, from which to stop retrieving
	// the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	EndTime *time.Time `locationName:"endTime" type:"timestamp"`

	// One or more filters.
	//
	//    * availability-zone - The Availability Zone for which prices should be
	//    returned.
	//
	//    * instance-type - The type of instance (for example, m3.medium).
	//
	//    * product-description - The product description for the Spot price (Linux/UNIX
	//    | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon
	//    VPC) | Windows (Amazon VPC)).
	//
	//    * spot-price - The Spot price. The value must match exactly (or use wildcards;
	//    greater than or less than comparison is not supported).
	//
	//    * timestamp - The time stamp of the Spot price history, in UTC format
	//    (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?).
	//    Greater than or less than comparison is not supported.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// Filters the results by the specified instance types.
	InstanceTypes []InstanceType `locationName:"InstanceType" type:"list"`

	// The maximum number of results to return in a single call. Specify a value
	// between 1 and 1000. The default value is 1000. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// The token for the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Filters the results by the specified basic product descriptions.
	ProductDescriptions []string `locationName:"ProductDescription" type:"list"`

	// The date and time, up to the past 90 days, from which to start retrieving
	// the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	StartTime *time.Time `locationName:"startTime" type:"timestamp"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeSpotPriceHistory.

func (DescribeSpotPriceHistoryInput) String

String returns the string representation

type DescribeSpotPriceHistoryOutput

type DescribeSpotPriceHistoryOutput struct {

	// The token required to retrieve the next set of results. This value is null
	// or an empty string when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The historical Spot prices.
	SpotPriceHistory []SpotPrice `locationName:"spotPriceHistorySet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeSpotPriceHistory.

func (DescribeSpotPriceHistoryOutput) String

String returns the string representation

type DescribeSpotPriceHistoryPaginator added in v0.9.0

type DescribeSpotPriceHistoryPaginator struct {
	aws.Pager
}

DescribeSpotPriceHistoryPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeSpotPriceHistoryPaginator added in v0.9.0

func NewDescribeSpotPriceHistoryPaginator(req DescribeSpotPriceHistoryRequest) DescribeSpotPriceHistoryPaginator

NewDescribeSpotPriceHistoryRequestPaginator returns a paginator for DescribeSpotPriceHistory. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeSpotPriceHistoryRequest(input)
p := ec2.NewDescribeSpotPriceHistoryRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeSpotPriceHistoryPaginator) CurrentPage added in v0.9.0

type DescribeSpotPriceHistoryRequest

type DescribeSpotPriceHistoryRequest struct {
	*aws.Request
	Input *DescribeSpotPriceHistoryInput
	Copy  func(*DescribeSpotPriceHistoryInput) DescribeSpotPriceHistoryRequest
}

DescribeSpotPriceHistoryRequest is the request type for the DescribeSpotPriceHistory API operation.

func (DescribeSpotPriceHistoryRequest) Send

Send marshals and sends the DescribeSpotPriceHistory API request.

type DescribeSpotPriceHistoryResponse added in v0.9.0

type DescribeSpotPriceHistoryResponse struct {
	*DescribeSpotPriceHistoryOutput
	// contains filtered or unexported fields
}

DescribeSpotPriceHistoryResponse is the response type for the DescribeSpotPriceHistory API operation.

func (*DescribeSpotPriceHistoryResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSpotPriceHistoryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSpotPriceHistory request.

type DescribeStaleSecurityGroupsInput

type DescribeStaleSecurityGroupsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The maximum number of items to return for this request. The request returns
	// a token that you can specify in a subsequent call to get the next set of
	// results.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next set of items to return. (You received this token from
	// a prior call.)
	NextToken *string `min:"1" type:"string"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeStaleSecurityGroupsInput) String

String returns the string representation

func (*DescribeStaleSecurityGroupsInput) Validate

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

type DescribeStaleSecurityGroupsOutput

type DescribeStaleSecurityGroupsOutput struct {

	// The token to use when requesting the next set of items. If there are no additional
	// items to return, the string is empty.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the stale security groups.
	StaleSecurityGroupSet []StaleSecurityGroup `locationName:"staleSecurityGroupSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeStaleSecurityGroupsOutput) String

String returns the string representation

type DescribeStaleSecurityGroupsPaginator added in v0.9.0

type DescribeStaleSecurityGroupsPaginator struct {
	aws.Pager
}

DescribeStaleSecurityGroupsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeStaleSecurityGroupsPaginator added in v0.9.0

func NewDescribeStaleSecurityGroupsPaginator(req DescribeStaleSecurityGroupsRequest) DescribeStaleSecurityGroupsPaginator

NewDescribeStaleSecurityGroupsRequestPaginator returns a paginator for DescribeStaleSecurityGroups. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeStaleSecurityGroupsRequest(input)
p := ec2.NewDescribeStaleSecurityGroupsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeStaleSecurityGroupsPaginator) CurrentPage added in v0.9.0

type DescribeStaleSecurityGroupsRequest

type DescribeStaleSecurityGroupsRequest struct {
	*aws.Request
	Input *DescribeStaleSecurityGroupsInput
	Copy  func(*DescribeStaleSecurityGroupsInput) DescribeStaleSecurityGroupsRequest
}

DescribeStaleSecurityGroupsRequest is the request type for the DescribeStaleSecurityGroups API operation.

func (DescribeStaleSecurityGroupsRequest) Send

Send marshals and sends the DescribeStaleSecurityGroups API request.

type DescribeStaleSecurityGroupsResponse added in v0.9.0

type DescribeStaleSecurityGroupsResponse struct {
	*DescribeStaleSecurityGroupsOutput
	// contains filtered or unexported fields
}

DescribeStaleSecurityGroupsResponse is the response type for the DescribeStaleSecurityGroups API operation.

func (*DescribeStaleSecurityGroupsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeStaleSecurityGroupsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeStaleSecurityGroups request.

type DescribeSubnetsInput

type DescribeSubnetsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * availability-zone - The Availability Zone for the subnet. You can also
	//    use availabilityZone as the filter name.
	//
	//    * availability-zone-id - The ID of the Availability Zone for the subnet.
	//    You can also use availabilityZoneId as the filter name.
	//
	//    * available-ip-address-count - The number of IPv4 addresses in the subnet
	//    that are available.
	//
	//    * cidr-block - The IPv4 CIDR block of the subnet. The CIDR block you specify
	//    must exactly match the subnet's CIDR block for information to be returned
	//    for the subnet. You can also use cidr or cidrBlock as the filter names.
	//
	//    * default-for-az - Indicates whether this is the default subnet for the
	//    Availability Zone. You can also use defaultForAz as the filter name.
	//
	//    * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
	//    with the subnet.
	//
	//    * ipv6-cidr-block-association.association-id - An association ID for an
	//    IPv6 CIDR block associated with the subnet.
	//
	//    * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
	//    associated with the subnet.
	//
	//    * owner-id - The ID of the AWS account that owns the subnet.
	//
	//    * state - The state of the subnet (pending | available).
	//
	//    * subnet-arn - The Amazon Resource Name (ARN) of the subnet.
	//
	//    * subnet-id - The ID of the subnet.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * vpc-id - The ID of the VPC for the subnet.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// One or more subnet IDs.
	//
	// Default: Describes all your subnets.
	SubnetIds []string `locationName:"SubnetId" locationNameList:"SubnetId" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeSubnetsInput) String

func (s DescribeSubnetsInput) String() string

String returns the string representation

func (*DescribeSubnetsInput) Validate added in v0.9.0

func (s *DescribeSubnetsInput) Validate() error

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

type DescribeSubnetsOutput

type DescribeSubnetsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about one or more subnets.
	Subnets []Subnet `locationName:"subnetSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeSubnetsOutput) String

func (s DescribeSubnetsOutput) String() string

String returns the string representation

type DescribeSubnetsPaginator added in v0.9.0

type DescribeSubnetsPaginator struct {
	aws.Pager
}

DescribeSubnetsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeSubnetsPaginator added in v0.9.0

func NewDescribeSubnetsPaginator(req DescribeSubnetsRequest) DescribeSubnetsPaginator

NewDescribeSubnetsRequestPaginator returns a paginator for DescribeSubnets. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeSubnetsRequest(input)
p := ec2.NewDescribeSubnetsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeSubnetsPaginator) CurrentPage added in v0.9.0

type DescribeSubnetsRequest

type DescribeSubnetsRequest struct {
	*aws.Request
	Input *DescribeSubnetsInput
	Copy  func(*DescribeSubnetsInput) DescribeSubnetsRequest
}

DescribeSubnetsRequest is the request type for the DescribeSubnets API operation.

func (DescribeSubnetsRequest) Send

Send marshals and sends the DescribeSubnets API request.

type DescribeSubnetsResponse added in v0.9.0

type DescribeSubnetsResponse struct {
	*DescribeSubnetsOutput
	// contains filtered or unexported fields
}

DescribeSubnetsResponse is the response type for the DescribeSubnets API operation.

func (*DescribeSubnetsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSubnetsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSubnets request.

type DescribeTagsInput

type DescribeTagsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters.
	//
	//    * key - The tag key.
	//
	//    * resource-id - The ID of the resource.
	//
	//    * resource-type - The resource type (customer-gateway | dedicated-host
	//    | dhcp-options | elastic-ip | fleet | fpga-image | host-reservation |
	//    image | instance | internet-gateway | key-pair | launch-template | natgateway
	//    | network-acl | network-interface | placement-group | reserved-instances
	//    | route-table | security-group | snapshot | spot-instances-request | subnet
	//    | volume | vpc | vpc-endpoint | vpc-endpoint-service | vpc-peering-connection
	//    | vpn-connection | vpn-gateway).
	//
	//    * tag:<key> - The key/value combination of the tag. For example, specify
	//    "tag:Owner" for the filter name and "TeamA" for the filter value to find
	//    resources with the tag "Owner=TeamA".
	//
	//    * value - The tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return in a single call. This value can
	// be between 5 and 1000. To retrieve the remaining results, make another call
	// with the returned NextToken value.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeTagsInput) String

func (s DescribeTagsInput) String() string

String returns the string representation

type DescribeTagsOutput

type DescribeTagsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The tags.
	Tags []TagDescription `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTagsOutput) String

func (s DescribeTagsOutput) String() string

String returns the string representation

type DescribeTagsPaginator added in v0.9.0

type DescribeTagsPaginator struct {
	aws.Pager
}

DescribeTagsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeTagsPaginator added in v0.9.0

func NewDescribeTagsPaginator(req DescribeTagsRequest) DescribeTagsPaginator

NewDescribeTagsRequestPaginator returns a paginator for DescribeTags. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeTagsRequest(input)
p := ec2.NewDescribeTagsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeTagsPaginator) CurrentPage added in v0.9.0

func (p *DescribeTagsPaginator) CurrentPage() *DescribeTagsOutput

type DescribeTagsRequest

type DescribeTagsRequest struct {
	*aws.Request
	Input *DescribeTagsInput
	Copy  func(*DescribeTagsInput) DescribeTagsRequest
}

DescribeTagsRequest is the request type for the DescribeTags API operation.

func (DescribeTagsRequest) Send

Send marshals and sends the DescribeTags API request.

type DescribeTagsResponse added in v0.9.0

type DescribeTagsResponse struct {
	*DescribeTagsOutput
	// contains filtered or unexported fields
}

DescribeTagsResponse is the response type for the DescribeTags API operation.

func (*DescribeTagsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeTagsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeTags request.

type DescribeTrafficMirrorFiltersInput added in v0.10.0

type DescribeTrafficMirrorFiltersInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * description: The Traffic Mirror filter description.
	//
	//    * traffic-mirror-filter-id: The ID of the Traffic Mirror filter.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the Traffic Mirror filter.
	TrafficMirrorFilterIds []string `locationName:"TrafficMirrorFilterId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTrafficMirrorFiltersInput) String added in v0.10.0

String returns the string representation

func (*DescribeTrafficMirrorFiltersInput) Validate added in v0.10.0

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

type DescribeTrafficMirrorFiltersOutput added in v0.10.0

type DescribeTrafficMirrorFiltersOutput struct {

	// The token to use to retrieve the next page of results. The value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about one or more Traffic Mirror filters.
	TrafficMirrorFilters []TrafficMirrorFilter `locationName:"trafficMirrorFilterSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTrafficMirrorFiltersOutput) String added in v0.10.0

String returns the string representation

type DescribeTrafficMirrorFiltersPaginator added in v0.10.0

type DescribeTrafficMirrorFiltersPaginator struct {
	aws.Pager
}

DescribeTrafficMirrorFiltersPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeTrafficMirrorFiltersPaginator added in v0.10.0

func NewDescribeTrafficMirrorFiltersPaginator(req DescribeTrafficMirrorFiltersRequest) DescribeTrafficMirrorFiltersPaginator

NewDescribeTrafficMirrorFiltersRequestPaginator returns a paginator for DescribeTrafficMirrorFilters. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeTrafficMirrorFiltersRequest(input)
p := ec2.NewDescribeTrafficMirrorFiltersRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeTrafficMirrorFiltersPaginator) CurrentPage added in v0.10.0

type DescribeTrafficMirrorFiltersRequest added in v0.10.0

type DescribeTrafficMirrorFiltersRequest struct {
	*aws.Request
	Input *DescribeTrafficMirrorFiltersInput
	Copy  func(*DescribeTrafficMirrorFiltersInput) DescribeTrafficMirrorFiltersRequest
}

DescribeTrafficMirrorFiltersRequest is the request type for the DescribeTrafficMirrorFilters API operation.

func (DescribeTrafficMirrorFiltersRequest) Send added in v0.10.0

Send marshals and sends the DescribeTrafficMirrorFilters API request.

type DescribeTrafficMirrorFiltersResponse added in v0.10.0

type DescribeTrafficMirrorFiltersResponse struct {
	*DescribeTrafficMirrorFiltersOutput
	// contains filtered or unexported fields
}

DescribeTrafficMirrorFiltersResponse is the response type for the DescribeTrafficMirrorFilters API operation.

func (*DescribeTrafficMirrorFiltersResponse) SDKResponseMetdata added in v0.10.0

func (r *DescribeTrafficMirrorFiltersResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeTrafficMirrorFilters request.

type DescribeTrafficMirrorSessionsInput added in v0.10.0

type DescribeTrafficMirrorSessionsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * description: The Traffic Mirror session description.
	//
	//    * network-interface-id: The ID of the Traffic Mirror session network interface.
	//
	//    * owner-id: The ID of the account that owns the Traffic Mirror session.
	//
	//    * packet-length: The assigned number of packets to mirror.
	//
	//    * session-number: The assigned session number.
	//
	//    * traffic-mirror-filter-id: The ID of the Traffic Mirror filter.
	//
	//    * traffic-mirror-session-id: The ID of the Traffic Mirror session.
	//
	//    * traffic-mirror-target-id: The ID of the Traffic Mirror target.
	//
	//    * virtual-network-id: The virtual network ID of the Traffic Mirror session.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the Traffic Mirror session.
	TrafficMirrorSessionIds []string `locationName:"TrafficMirrorSessionId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTrafficMirrorSessionsInput) String added in v0.10.0

String returns the string representation

func (*DescribeTrafficMirrorSessionsInput) Validate added in v0.10.0

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

type DescribeTrafficMirrorSessionsOutput added in v0.10.0

type DescribeTrafficMirrorSessionsOutput struct {

	// The token to use to retrieve the next page of results. The value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror
	// sessions are described. Alternatively, you can filter the results.
	TrafficMirrorSessions []TrafficMirrorSession `locationName:"trafficMirrorSessionSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTrafficMirrorSessionsOutput) String added in v0.10.0

String returns the string representation

type DescribeTrafficMirrorSessionsPaginator added in v0.10.0

type DescribeTrafficMirrorSessionsPaginator struct {
	aws.Pager
}

DescribeTrafficMirrorSessionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeTrafficMirrorSessionsPaginator added in v0.10.0

func NewDescribeTrafficMirrorSessionsPaginator(req DescribeTrafficMirrorSessionsRequest) DescribeTrafficMirrorSessionsPaginator

NewDescribeTrafficMirrorSessionsRequestPaginator returns a paginator for DescribeTrafficMirrorSessions. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeTrafficMirrorSessionsRequest(input)
p := ec2.NewDescribeTrafficMirrorSessionsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeTrafficMirrorSessionsPaginator) CurrentPage added in v0.10.0

type DescribeTrafficMirrorSessionsRequest added in v0.10.0

type DescribeTrafficMirrorSessionsRequest struct {
	*aws.Request
	Input *DescribeTrafficMirrorSessionsInput
	Copy  func(*DescribeTrafficMirrorSessionsInput) DescribeTrafficMirrorSessionsRequest
}

DescribeTrafficMirrorSessionsRequest is the request type for the DescribeTrafficMirrorSessions API operation.

func (DescribeTrafficMirrorSessionsRequest) Send added in v0.10.0

Send marshals and sends the DescribeTrafficMirrorSessions API request.

type DescribeTrafficMirrorSessionsResponse added in v0.10.0

type DescribeTrafficMirrorSessionsResponse struct {
	*DescribeTrafficMirrorSessionsOutput
	// contains filtered or unexported fields
}

DescribeTrafficMirrorSessionsResponse is the response type for the DescribeTrafficMirrorSessions API operation.

func (*DescribeTrafficMirrorSessionsResponse) SDKResponseMetdata added in v0.10.0

func (r *DescribeTrafficMirrorSessionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeTrafficMirrorSessions request.

type DescribeTrafficMirrorTargetsInput added in v0.10.0

type DescribeTrafficMirrorTargetsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * description: The Traffic Mirror target description.
	//
	//    * network-interface-id: The ID of the Traffic Mirror session network interface.
	//
	//    * network-load-balancer-arn: The Amazon Resource Name (ARN) of the Network
	//    Load Balancer that is associated with the session.
	//
	//    * owner-id: The ID of the account that owns the Traffic Mirror session.
	//
	//    * traffic-mirror-target-id: The ID of the Traffic Mirror target.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the Traffic Mirror targets.
	TrafficMirrorTargetIds []string `locationName:"TrafficMirrorTargetId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTrafficMirrorTargetsInput) String added in v0.10.0

String returns the string representation

func (*DescribeTrafficMirrorTargetsInput) Validate added in v0.10.0

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

type DescribeTrafficMirrorTargetsOutput added in v0.10.0

type DescribeTrafficMirrorTargetsOutput struct {

	// The token to use to retrieve the next page of results. The value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about one or more Traffic Mirror targets.
	TrafficMirrorTargets []TrafficMirrorTarget `locationName:"trafficMirrorTargetSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTrafficMirrorTargetsOutput) String added in v0.10.0

String returns the string representation

type DescribeTrafficMirrorTargetsPaginator added in v0.10.0

type DescribeTrafficMirrorTargetsPaginator struct {
	aws.Pager
}

DescribeTrafficMirrorTargetsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeTrafficMirrorTargetsPaginator added in v0.10.0

func NewDescribeTrafficMirrorTargetsPaginator(req DescribeTrafficMirrorTargetsRequest) DescribeTrafficMirrorTargetsPaginator

NewDescribeTrafficMirrorTargetsRequestPaginator returns a paginator for DescribeTrafficMirrorTargets. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeTrafficMirrorTargetsRequest(input)
p := ec2.NewDescribeTrafficMirrorTargetsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeTrafficMirrorTargetsPaginator) CurrentPage added in v0.10.0

type DescribeTrafficMirrorTargetsRequest added in v0.10.0

type DescribeTrafficMirrorTargetsRequest struct {
	*aws.Request
	Input *DescribeTrafficMirrorTargetsInput
	Copy  func(*DescribeTrafficMirrorTargetsInput) DescribeTrafficMirrorTargetsRequest
}

DescribeTrafficMirrorTargetsRequest is the request type for the DescribeTrafficMirrorTargets API operation.

func (DescribeTrafficMirrorTargetsRequest) Send added in v0.10.0

Send marshals and sends the DescribeTrafficMirrorTargets API request.

type DescribeTrafficMirrorTargetsResponse added in v0.10.0

type DescribeTrafficMirrorTargetsResponse struct {
	*DescribeTrafficMirrorTargetsOutput
	// contains filtered or unexported fields
}

DescribeTrafficMirrorTargetsResponse is the response type for the DescribeTrafficMirrorTargets API operation.

func (*DescribeTrafficMirrorTargetsResponse) SDKResponseMetdata added in v0.10.0

func (r *DescribeTrafficMirrorTargetsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeTrafficMirrorTargets request.

type DescribeTransitGatewayAttachmentsInput added in v0.6.0

type DescribeTransitGatewayAttachmentsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * association.state - The state of the association (associating | associated
	//    | disassociating).
	//
	//    * association.transit-gateway-route-table-id - The ID of the route table
	//    for the transit gateway.
	//
	//    * resource-id - The ID of the resource.
	//
	//    * resource-owner-id - The ID of the AWS account that owns the resource.
	//
	//    * resource-type - The resource type (vpc | vpn).
	//
	//    * state - The state of the attachment (available | deleted | deleting
	//    | failed | modifying | pendingAcceptance | pending | rollingBack | rejected
	//    | rejecting).
	//
	//    * transit-gateway-attachment-id - The ID of the attachment.
	//
	//    * transit-gateway-id - The ID of the transit gateway.
	//
	//    * transit-gateway-owner-id - The ID of the AWS account that owns the transit
	//    gateway.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The IDs of the attachments.
	TransitGatewayAttachmentIds []string `type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewayAttachmentsInput) String added in v0.6.0

String returns the string representation

func (*DescribeTransitGatewayAttachmentsInput) Validate added in v0.6.0

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

type DescribeTransitGatewayAttachmentsOutput added in v0.6.0

type DescribeTransitGatewayAttachmentsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the attachments.
	TransitGatewayAttachments []TransitGatewayAttachment `locationName:"transitGatewayAttachments" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewayAttachmentsOutput) String added in v0.6.0

String returns the string representation

type DescribeTransitGatewayAttachmentsPaginator added in v0.9.0

type DescribeTransitGatewayAttachmentsPaginator struct {
	aws.Pager
}

DescribeTransitGatewayAttachmentsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeTransitGatewayAttachmentsPaginator added in v0.9.0

func NewDescribeTransitGatewayAttachmentsPaginator(req DescribeTransitGatewayAttachmentsRequest) DescribeTransitGatewayAttachmentsPaginator

NewDescribeTransitGatewayAttachmentsRequestPaginator returns a paginator for DescribeTransitGatewayAttachments. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeTransitGatewayAttachmentsRequest(input)
p := ec2.NewDescribeTransitGatewayAttachmentsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeTransitGatewayAttachmentsPaginator) CurrentPage added in v0.9.0

type DescribeTransitGatewayAttachmentsRequest added in v0.6.0

DescribeTransitGatewayAttachmentsRequest is the request type for the DescribeTransitGatewayAttachments API operation.

func (DescribeTransitGatewayAttachmentsRequest) Send added in v0.6.0

Send marshals and sends the DescribeTransitGatewayAttachments API request.

type DescribeTransitGatewayAttachmentsResponse added in v0.9.0

type DescribeTransitGatewayAttachmentsResponse struct {
	*DescribeTransitGatewayAttachmentsOutput
	// contains filtered or unexported fields
}

DescribeTransitGatewayAttachmentsResponse is the response type for the DescribeTransitGatewayAttachments API operation.

func (*DescribeTransitGatewayAttachmentsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeTransitGatewayAttachmentsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeTransitGatewayAttachments request.

type DescribeTransitGatewayMulticastDomainsInput added in v0.18.0

type DescribeTransitGatewayMulticastDomainsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * state - The state of the transit gateway multicast domain. Valid values
	//    are pending | available | deleting | deleted.
	//
	//    * transit-gateway-id - The ID of the transit gateway.
	//
	//    * transit-gateway-multicast-domain-id - The ID of the transit gateway
	//    multicast domain.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainIds []string `locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewayMulticastDomainsInput) String added in v0.18.0

String returns the string representation

func (*DescribeTransitGatewayMulticastDomainsInput) Validate added in v0.18.0

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

type DescribeTransitGatewayMulticastDomainsOutput added in v0.18.0

type DescribeTransitGatewayMulticastDomainsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the transit gateway multicast domains.
	TransitGatewayMulticastDomains []TransitGatewayMulticastDomain `locationName:"transitGatewayMulticastDomains" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewayMulticastDomainsOutput) String added in v0.18.0

String returns the string representation

type DescribeTransitGatewayMulticastDomainsPaginator added in v0.20.0

type DescribeTransitGatewayMulticastDomainsPaginator struct {
	aws.Pager
}

DescribeTransitGatewayMulticastDomainsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeTransitGatewayMulticastDomainsPaginator added in v0.20.0

func NewDescribeTransitGatewayMulticastDomainsPaginator(req DescribeTransitGatewayMulticastDomainsRequest) DescribeTransitGatewayMulticastDomainsPaginator

NewDescribeTransitGatewayMulticastDomainsRequestPaginator returns a paginator for DescribeTransitGatewayMulticastDomains. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeTransitGatewayMulticastDomainsRequest(input)
p := ec2.NewDescribeTransitGatewayMulticastDomainsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeTransitGatewayMulticastDomainsPaginator) CurrentPage added in v0.20.0

type DescribeTransitGatewayMulticastDomainsRequest added in v0.18.0

DescribeTransitGatewayMulticastDomainsRequest is the request type for the DescribeTransitGatewayMulticastDomains API operation.

func (DescribeTransitGatewayMulticastDomainsRequest) Send added in v0.18.0

Send marshals and sends the DescribeTransitGatewayMulticastDomains API request.

type DescribeTransitGatewayMulticastDomainsResponse added in v0.18.0

type DescribeTransitGatewayMulticastDomainsResponse struct {
	*DescribeTransitGatewayMulticastDomainsOutput
	// contains filtered or unexported fields
}

DescribeTransitGatewayMulticastDomainsResponse is the response type for the DescribeTransitGatewayMulticastDomains API operation.

func (*DescribeTransitGatewayMulticastDomainsResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the DescribeTransitGatewayMulticastDomains request.

type DescribeTransitGatewayPeeringAttachmentsInput added in v0.18.0

type DescribeTransitGatewayPeeringAttachmentsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * transit-gateway-attachment-id - The ID of the transit gateway attachment.
	//
	//    * local-owner-id - The ID of your AWS account.
	//
	//    * remote-owner-id - The ID of the AWS account in the remote Region that
	//    owns the transit gateway.
	//
	//    * state - The state of the peering attachment (available | deleted | deleting
	//    | failed | modifying | pendingAcceptance | pending | rollingBack | rejected
	//    | rejecting).
	//
	//    * transit-gateway-id - The ID of the transit gateway.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// One or more IDs of the transit gateway peering attachments.
	TransitGatewayAttachmentIds []string `type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewayPeeringAttachmentsInput) String added in v0.18.0

String returns the string representation

func (*DescribeTransitGatewayPeeringAttachmentsInput) Validate added in v0.18.0

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

type DescribeTransitGatewayPeeringAttachmentsOutput added in v0.18.0

type DescribeTransitGatewayPeeringAttachmentsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The transit gateway peering attachments.
	TransitGatewayPeeringAttachments []TransitGatewayPeeringAttachment `locationName:"transitGatewayPeeringAttachments" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewayPeeringAttachmentsOutput) String added in v0.18.0

String returns the string representation

type DescribeTransitGatewayPeeringAttachmentsPaginator added in v0.20.0

type DescribeTransitGatewayPeeringAttachmentsPaginator struct {
	aws.Pager
}

DescribeTransitGatewayPeeringAttachmentsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeTransitGatewayPeeringAttachmentsPaginator added in v0.20.0

func NewDescribeTransitGatewayPeeringAttachmentsPaginator(req DescribeTransitGatewayPeeringAttachmentsRequest) DescribeTransitGatewayPeeringAttachmentsPaginator

NewDescribeTransitGatewayPeeringAttachmentsRequestPaginator returns a paginator for DescribeTransitGatewayPeeringAttachments. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeTransitGatewayPeeringAttachmentsRequest(input)
p := ec2.NewDescribeTransitGatewayPeeringAttachmentsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeTransitGatewayPeeringAttachmentsPaginator) CurrentPage added in v0.20.0

type DescribeTransitGatewayPeeringAttachmentsRequest added in v0.18.0

DescribeTransitGatewayPeeringAttachmentsRequest is the request type for the DescribeTransitGatewayPeeringAttachments API operation.

func (DescribeTransitGatewayPeeringAttachmentsRequest) Send added in v0.18.0

Send marshals and sends the DescribeTransitGatewayPeeringAttachments API request.

type DescribeTransitGatewayPeeringAttachmentsResponse added in v0.18.0

type DescribeTransitGatewayPeeringAttachmentsResponse struct {
	*DescribeTransitGatewayPeeringAttachmentsOutput
	// contains filtered or unexported fields
}

DescribeTransitGatewayPeeringAttachmentsResponse is the response type for the DescribeTransitGatewayPeeringAttachments API operation.

func (*DescribeTransitGatewayPeeringAttachmentsResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the DescribeTransitGatewayPeeringAttachments request.

type DescribeTransitGatewayRouteTablesInput added in v0.6.0

type DescribeTransitGatewayRouteTablesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * default-association-route-table - Indicates whether this is the default
	//    association route table for the transit gateway (true | false).
	//
	//    * default-propagation-route-table - Indicates whether this is the default
	//    propagation route table for the transit gateway (true | false).
	//
	//    * state - The state of the attachment (available | deleted | deleting
	//    | failed | modifying | pendingAcceptance | pending | rollingBack | rejected
	//    | rejecting).
	//
	//    * transit-gateway-id - The ID of the transit gateway.
	//
	//    * transit-gateway-route-table-id - The ID of the transit gateway route
	//    table.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The IDs of the transit gateway route tables.
	TransitGatewayRouteTableIds []string `locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewayRouteTablesInput) String added in v0.6.0

String returns the string representation

func (*DescribeTransitGatewayRouteTablesInput) Validate added in v0.6.0

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

type DescribeTransitGatewayRouteTablesOutput added in v0.6.0

type DescribeTransitGatewayRouteTablesOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the transit gateway route tables.
	TransitGatewayRouteTables []TransitGatewayRouteTable `locationName:"transitGatewayRouteTables" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewayRouteTablesOutput) String added in v0.6.0

String returns the string representation

type DescribeTransitGatewayRouteTablesPaginator added in v0.9.0

type DescribeTransitGatewayRouteTablesPaginator struct {
	aws.Pager
}

DescribeTransitGatewayRouteTablesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeTransitGatewayRouteTablesPaginator added in v0.9.0

func NewDescribeTransitGatewayRouteTablesPaginator(req DescribeTransitGatewayRouteTablesRequest) DescribeTransitGatewayRouteTablesPaginator

NewDescribeTransitGatewayRouteTablesRequestPaginator returns a paginator for DescribeTransitGatewayRouteTables. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeTransitGatewayRouteTablesRequest(input)
p := ec2.NewDescribeTransitGatewayRouteTablesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeTransitGatewayRouteTablesPaginator) CurrentPage added in v0.9.0

type DescribeTransitGatewayRouteTablesRequest added in v0.6.0

DescribeTransitGatewayRouteTablesRequest is the request type for the DescribeTransitGatewayRouteTables API operation.

func (DescribeTransitGatewayRouteTablesRequest) Send added in v0.6.0

Send marshals and sends the DescribeTransitGatewayRouteTables API request.

type DescribeTransitGatewayRouteTablesResponse added in v0.9.0

type DescribeTransitGatewayRouteTablesResponse struct {
	*DescribeTransitGatewayRouteTablesOutput
	// contains filtered or unexported fields
}

DescribeTransitGatewayRouteTablesResponse is the response type for the DescribeTransitGatewayRouteTables API operation.

func (*DescribeTransitGatewayRouteTablesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeTransitGatewayRouteTablesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeTransitGatewayRouteTables request.

type DescribeTransitGatewayVpcAttachmentsInput added in v0.6.0

type DescribeTransitGatewayVpcAttachmentsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * state - The state of the attachment (available | deleted | deleting
	//    | failed | modifying | pendingAcceptance | pending | rollingBack | rejected
	//    | rejecting).
	//
	//    * transit-gateway-attachment-id - The ID of the attachment.
	//
	//    * transit-gateway-id - The ID of the transit gateway.
	//
	//    * vpc-id - The ID of the VPC.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The IDs of the attachments.
	TransitGatewayAttachmentIds []string `type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewayVpcAttachmentsInput) String added in v0.6.0

String returns the string representation

func (*DescribeTransitGatewayVpcAttachmentsInput) Validate added in v0.6.0

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

type DescribeTransitGatewayVpcAttachmentsOutput added in v0.6.0

type DescribeTransitGatewayVpcAttachmentsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the VPC attachments.
	TransitGatewayVpcAttachments []TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachments" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewayVpcAttachmentsOutput) String added in v0.6.0

String returns the string representation

type DescribeTransitGatewayVpcAttachmentsPaginator added in v0.9.0

type DescribeTransitGatewayVpcAttachmentsPaginator struct {
	aws.Pager
}

DescribeTransitGatewayVpcAttachmentsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeTransitGatewayVpcAttachmentsPaginator added in v0.9.0

func NewDescribeTransitGatewayVpcAttachmentsPaginator(req DescribeTransitGatewayVpcAttachmentsRequest) DescribeTransitGatewayVpcAttachmentsPaginator

NewDescribeTransitGatewayVpcAttachmentsRequestPaginator returns a paginator for DescribeTransitGatewayVpcAttachments. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeTransitGatewayVpcAttachmentsRequest(input)
p := ec2.NewDescribeTransitGatewayVpcAttachmentsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeTransitGatewayVpcAttachmentsPaginator) CurrentPage added in v0.9.0

type DescribeTransitGatewayVpcAttachmentsRequest added in v0.6.0

DescribeTransitGatewayVpcAttachmentsRequest is the request type for the DescribeTransitGatewayVpcAttachments API operation.

func (DescribeTransitGatewayVpcAttachmentsRequest) Send added in v0.6.0

Send marshals and sends the DescribeTransitGatewayVpcAttachments API request.

type DescribeTransitGatewayVpcAttachmentsResponse added in v0.9.0

type DescribeTransitGatewayVpcAttachmentsResponse struct {
	*DescribeTransitGatewayVpcAttachmentsOutput
	// contains filtered or unexported fields
}

DescribeTransitGatewayVpcAttachmentsResponse is the response type for the DescribeTransitGatewayVpcAttachments API operation.

func (*DescribeTransitGatewayVpcAttachmentsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DescribeTransitGatewayVpcAttachments request.

type DescribeTransitGatewaysInput added in v0.6.0

type DescribeTransitGatewaysInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * options.propagation-default-route-table-id - The ID of the default propagation
	//    route table.
	//
	//    * options.amazon-side-asn - The private ASN for the Amazon side of a BGP
	//    session.
	//
	//    * options.association-default-route-table-id - The ID of the default association
	//    route table.
	//
	//    * options.auto-accept-shared-attachments - Indicates whether there is
	//    automatic acceptance of attachment requests (enable | disable).
	//
	//    * options.default-route-table-association - Indicates whether resource
	//    attachments are automatically associated with the default association
	//    route table (enable | disable).
	//
	//    * options.default-route-table-propagation - Indicates whether resource
	//    attachments automatically propagate routes to the default propagation
	//    route table (enable | disable).
	//
	//    * options.dns-support - Indicates whether DNS support is enabled (enable
	//    | disable).
	//
	//    * options.vpn-ecmp-support - Indicates whether Equal Cost Multipath Protocol
	//    support is enabled (enable | disable).
	//
	//    * owner-id - The ID of the AWS account that owns the transit gateway.
	//
	//    * state - The state of the attachment (available | deleted | deleting
	//    | failed | modifying | pendingAcceptance | pending | rollingBack | rejected
	//    | rejecting).
	//
	//    * transit-gateway-id - The ID of the transit gateway.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The IDs of the transit gateways.
	TransitGatewayIds []string `locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewaysInput) String added in v0.6.0

String returns the string representation

func (*DescribeTransitGatewaysInput) Validate added in v0.6.0

func (s *DescribeTransitGatewaysInput) Validate() error

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

type DescribeTransitGatewaysOutput added in v0.6.0

type DescribeTransitGatewaysOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the transit gateways.
	TransitGateways []TransitGateway `locationName:"transitGatewaySet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeTransitGatewaysOutput) String added in v0.6.0

String returns the string representation

type DescribeTransitGatewaysPaginator added in v0.9.0

type DescribeTransitGatewaysPaginator struct {
	aws.Pager
}

DescribeTransitGatewaysPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeTransitGatewaysPaginator added in v0.9.0

func NewDescribeTransitGatewaysPaginator(req DescribeTransitGatewaysRequest) DescribeTransitGatewaysPaginator

NewDescribeTransitGatewaysRequestPaginator returns a paginator for DescribeTransitGateways. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeTransitGatewaysRequest(input)
p := ec2.NewDescribeTransitGatewaysRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeTransitGatewaysPaginator) CurrentPage added in v0.9.0

type DescribeTransitGatewaysRequest added in v0.6.0

type DescribeTransitGatewaysRequest struct {
	*aws.Request
	Input *DescribeTransitGatewaysInput
	Copy  func(*DescribeTransitGatewaysInput) DescribeTransitGatewaysRequest
}

DescribeTransitGatewaysRequest is the request type for the DescribeTransitGateways API operation.

func (DescribeTransitGatewaysRequest) Send added in v0.6.0

Send marshals and sends the DescribeTransitGateways API request.

type DescribeTransitGatewaysResponse added in v0.9.0

type DescribeTransitGatewaysResponse struct {
	*DescribeTransitGatewaysOutput
	// contains filtered or unexported fields
}

DescribeTransitGatewaysResponse is the response type for the DescribeTransitGateways API operation.

func (*DescribeTransitGatewaysResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeTransitGatewaysResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeTransitGateways request.

type DescribeVolumeAttributeInput

type DescribeVolumeAttributeInput struct {

	// The attribute of the volume. This parameter is required.
	//
	// Attribute is a required field
	Attribute VolumeAttributeName `type:"string" required:"true" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the volume.
	//
	// VolumeId is a required field
	VolumeId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeVolumeAttributeInput) String

String returns the string representation

func (*DescribeVolumeAttributeInput) Validate

func (s *DescribeVolumeAttributeInput) Validate() error

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

type DescribeVolumeAttributeOutput

type DescribeVolumeAttributeOutput struct {

	// The state of autoEnableIO attribute.
	AutoEnableIO *AttributeBooleanValue `locationName:"autoEnableIO" type:"structure"`

	// A list of product codes.
	ProductCodes []ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`

	// The ID of the volume.
	VolumeId *string `locationName:"volumeId" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeVolumeAttributeOutput) String

String returns the string representation

type DescribeVolumeAttributeRequest

type DescribeVolumeAttributeRequest struct {
	*aws.Request
	Input *DescribeVolumeAttributeInput
	Copy  func(*DescribeVolumeAttributeInput) DescribeVolumeAttributeRequest
}

DescribeVolumeAttributeRequest is the request type for the DescribeVolumeAttribute API operation.

func (DescribeVolumeAttributeRequest) Send

Send marshals and sends the DescribeVolumeAttribute API request.

type DescribeVolumeAttributeResponse added in v0.9.0

type DescribeVolumeAttributeResponse struct {
	*DescribeVolumeAttributeOutput
	// contains filtered or unexported fields
}

DescribeVolumeAttributeResponse is the response type for the DescribeVolumeAttribute API operation.

func (*DescribeVolumeAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVolumeAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVolumeAttribute request.

type DescribeVolumeStatusInput

type DescribeVolumeStatusInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters.
	//
	//    * action.code - The action code for the event (for example, enable-volume-io).
	//
	//    * action.description - A description of the action.
	//
	//    * action.event-id - The event ID associated with the action.
	//
	//    * availability-zone - The Availability Zone of the instance.
	//
	//    * event.description - A description of the event.
	//
	//    * event.event-id - The event ID.
	//
	//    * event.event-type - The event type (for io-enabled: passed | failed;
	//    for io-performance: io-performance:degraded | io-performance:severely-degraded
	//    | io-performance:stalled).
	//
	//    * event.not-after - The latest end time for the event.
	//
	//    * event.not-before - The earliest start time for the event.
	//
	//    * volume-status.details-name - The cause for volume-status.status (io-enabled
	//    | io-performance).
	//
	//    * volume-status.details-status - The status of volume-status.details-name
	//    (for io-enabled: passed | failed; for io-performance: normal | degraded
	//    | severely-degraded | stalled).
	//
	//    * volume-status.status - The status of the volume (ok | impaired | warning
	//    | insufficient-data).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of volume results returned by DescribeVolumeStatus in
	// paginated output. When this parameter is used, the request only returns MaxResults
	// results in a single page along with a NextToken response element. The remaining
	// results of the initial request can be seen by sending another request with
	// the returned NextToken value. This value can be between 5 and 1000; if MaxResults
	// is given a value larger than 1000, only 1000 results are returned. If this
	// parameter is not used, then DescribeVolumeStatus returns all results. You
	// cannot specify this parameter and the volume IDs parameter in the same request.
	MaxResults *int64 `type:"integer"`

	// The NextToken value to include in a future DescribeVolumeStatus request.
	// When the results of the request exceed MaxResults, this value can be used
	// to retrieve the next page of results. This value is null when there are no
	// more results to return.
	NextToken *string `type:"string"`

	// The IDs of the volumes.
	//
	// Default: Describes all your volumes.
	VolumeIds []string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVolumeStatusInput) String

func (s DescribeVolumeStatusInput) String() string

String returns the string representation

type DescribeVolumeStatusOutput

type DescribeVolumeStatusOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the status of the volumes.
	VolumeStatuses []VolumeStatusItem `locationName:"volumeStatusSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVolumeStatusOutput) String

String returns the string representation

type DescribeVolumeStatusPaginator added in v0.9.0

type DescribeVolumeStatusPaginator struct {
	aws.Pager
}

DescribeVolumeStatusPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeVolumeStatusPaginator added in v0.9.0

func NewDescribeVolumeStatusPaginator(req DescribeVolumeStatusRequest) DescribeVolumeStatusPaginator

NewDescribeVolumeStatusRequestPaginator returns a paginator for DescribeVolumeStatus. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeVolumeStatusRequest(input)
p := ec2.NewDescribeVolumeStatusRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeVolumeStatusPaginator) CurrentPage added in v0.9.0

type DescribeVolumeStatusRequest

type DescribeVolumeStatusRequest struct {
	*aws.Request
	Input *DescribeVolumeStatusInput
	Copy  func(*DescribeVolumeStatusInput) DescribeVolumeStatusRequest
}

DescribeVolumeStatusRequest is the request type for the DescribeVolumeStatus API operation.

func (DescribeVolumeStatusRequest) Send

Send marshals and sends the DescribeVolumeStatus API request.

type DescribeVolumeStatusResponse added in v0.9.0

type DescribeVolumeStatusResponse struct {
	*DescribeVolumeStatusOutput
	// contains filtered or unexported fields
}

DescribeVolumeStatusResponse is the response type for the DescribeVolumeStatus API operation.

func (*DescribeVolumeStatusResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVolumeStatusResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVolumeStatus request.

type DescribeVolumesInput

type DescribeVolumesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The filters.
	//
	//    * attachment.attach-time - The time stamp when the attachment initiated.
	//
	//    * attachment.delete-on-termination - Whether the volume is deleted on
	//    instance termination.
	//
	//    * attachment.device - The device name specified in the block device mapping
	//    (for example, /dev/sda1).
	//
	//    * attachment.instance-id - The ID of the instance the volume is attached
	//    to.
	//
	//    * attachment.status - The attachment state (attaching | attached | detaching).
	//
	//    * availability-zone - The Availability Zone in which the volume was created.
	//
	//    * create-time - The time stamp when the volume was created.
	//
	//    * encrypted - Indicates whether the volume is encrypted (true | false)
	//
	//    * multi-attach-enabled - Indicates whether the volume is enabled for Multi-Attach
	//    (true | false)
	//
	//    * fast-restored - Indicates whether the volume was created from a snapshot
	//    that is enabled for fast snapshot restore (true | false).
	//
	//    * size - The size of the volume, in GiB.
	//
	//    * snapshot-id - The snapshot from which the volume was created.
	//
	//    * status - The status of the volume (creating | available | in-use | deleting
	//    | deleted | error).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * volume-id - The volume ID.
	//
	//    * volume-type - The Amazon EBS volume type. This can be gp2 for General
	//    Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized
	//    HDD, sc1 for Cold HDD, or standard for Magnetic volumes.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of volume results returned by DescribeVolumes in paginated
	// output. When this parameter is used, DescribeVolumes only returns MaxResults
	// results in a single page along with a NextToken response element. The remaining
	// results of the initial request can be seen by sending another DescribeVolumes
	// request with the returned NextToken value. This value can be between 5 and
	// 500; if MaxResults is given a value larger than 500, only 500 results are
	// returned. If this parameter is not used, then DescribeVolumes returns all
	// results. You cannot specify this parameter and the volume IDs parameter in
	// the same request.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// The NextToken value returned from a previous paginated DescribeVolumes request
	// where MaxResults was used and the results exceeded the value of that parameter.
	// Pagination continues from the end of the previous results that returned the
	// NextToken value. This value is null when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The volume IDs.
	VolumeIds []string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVolumesInput) String

func (s DescribeVolumesInput) String() string

String returns the string representation

type DescribeVolumesModificationsInput

type DescribeVolumesModificationsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The filters.
	//
	//    * modification-state - The current modification state (modifying | optimizing
	//    | completed | failed).
	//
	//    * original-iops - The original IOPS rate of the volume.
	//
	//    * original-size - The original size of the volume, in GiB.
	//
	//    * original-volume-type - The original volume type of the volume (standard
	//    | io1 | gp2 | sc1 | st1).
	//
	//    * originalMultiAttachEnabled - Indicates whether Multi-Attach support
	//    was enabled (true | false).
	//
	//    * start-time - The modification start time.
	//
	//    * target-iops - The target IOPS rate of the volume.
	//
	//    * target-size - The target size of the volume, in GiB.
	//
	//    * target-volume-type - The target volume type of the volume (standard
	//    | io1 | gp2 | sc1 | st1).
	//
	//    * targetMultiAttachEnabled - Indicates whether Multi-Attach support is
	//    to be enabled (true | false).
	//
	//    * volume-id - The ID of the volume.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results (up to a limit of 500) to be returned in a
	// paginated request.
	MaxResults *int64 `type:"integer"`

	// The nextToken value returned by a previous paginated request.
	NextToken *string `type:"string"`

	// The IDs of the volumes.
	VolumeIds []string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVolumesModificationsInput) String

String returns the string representation

type DescribeVolumesModificationsOutput

type DescribeVolumesModificationsOutput struct {

	// Token for pagination, null if there are no more results
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the volume modifications.
	VolumesModifications []VolumeModification `locationName:"volumeModificationSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVolumesModificationsOutput) String

String returns the string representation

type DescribeVolumesModificationsPaginator added in v0.9.0

type DescribeVolumesModificationsPaginator struct {
	aws.Pager
}

DescribeVolumesModificationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeVolumesModificationsPaginator added in v0.9.0

func NewDescribeVolumesModificationsPaginator(req DescribeVolumesModificationsRequest) DescribeVolumesModificationsPaginator

NewDescribeVolumesModificationsRequestPaginator returns a paginator for DescribeVolumesModifications. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeVolumesModificationsRequest(input)
p := ec2.NewDescribeVolumesModificationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeVolumesModificationsPaginator) CurrentPage added in v0.9.0

type DescribeVolumesModificationsRequest

type DescribeVolumesModificationsRequest struct {
	*aws.Request
	Input *DescribeVolumesModificationsInput
	Copy  func(*DescribeVolumesModificationsInput) DescribeVolumesModificationsRequest
}

DescribeVolumesModificationsRequest is the request type for the DescribeVolumesModifications API operation.

func (DescribeVolumesModificationsRequest) Send

Send marshals and sends the DescribeVolumesModifications API request.

type DescribeVolumesModificationsResponse added in v0.9.0

type DescribeVolumesModificationsResponse struct {
	*DescribeVolumesModificationsOutput
	// contains filtered or unexported fields
}

DescribeVolumesModificationsResponse is the response type for the DescribeVolumesModifications API operation.

func (*DescribeVolumesModificationsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVolumesModificationsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVolumesModifications request.

type DescribeVolumesOutput

type DescribeVolumesOutput struct {

	// The NextToken value to include in a future DescribeVolumes request. When
	// the results of a DescribeVolumes request exceed MaxResults, this value can
	// be used to retrieve the next page of results. This value is null when there
	// are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the volumes.
	Volumes []Volume `locationName:"volumeSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVolumesOutput) String

func (s DescribeVolumesOutput) String() string

String returns the string representation

type DescribeVolumesPaginator added in v0.9.0

type DescribeVolumesPaginator struct {
	aws.Pager
}

DescribeVolumesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeVolumesPaginator added in v0.9.0

func NewDescribeVolumesPaginator(req DescribeVolumesRequest) DescribeVolumesPaginator

NewDescribeVolumesRequestPaginator returns a paginator for DescribeVolumes. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeVolumesRequest(input)
p := ec2.NewDescribeVolumesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeVolumesPaginator) CurrentPage added in v0.9.0

type DescribeVolumesRequest

type DescribeVolumesRequest struct {
	*aws.Request
	Input *DescribeVolumesInput
	Copy  func(*DescribeVolumesInput) DescribeVolumesRequest
}

DescribeVolumesRequest is the request type for the DescribeVolumes API operation.

func (DescribeVolumesRequest) Send

Send marshals and sends the DescribeVolumes API request.

type DescribeVolumesResponse added in v0.9.0

type DescribeVolumesResponse struct {
	*DescribeVolumesOutput
	// contains filtered or unexported fields
}

DescribeVolumesResponse is the response type for the DescribeVolumes API operation.

func (*DescribeVolumesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVolumesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVolumes request.

type DescribeVpcAttributeInput

type DescribeVpcAttributeInput struct {

	// The VPC attribute.
	//
	// Attribute is a required field
	Attribute VpcAttributeName `type:"string" required:"true" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeVpcAttributeInput) String

func (s DescribeVpcAttributeInput) String() string

String returns the string representation

func (*DescribeVpcAttributeInput) Validate

func (s *DescribeVpcAttributeInput) Validate() error

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

type DescribeVpcAttributeOutput

type DescribeVpcAttributeOutput struct {

	// Indicates whether the instances launched in the VPC get DNS hostnames. If
	// this attribute is true, instances in the VPC get DNS hostnames; otherwise,
	// they do not.
	EnableDnsHostnames *AttributeBooleanValue `locationName:"enableDnsHostnames" type:"structure"`

	// Indicates whether DNS resolution is enabled for the VPC. If this attribute
	// is true, the Amazon DNS server resolves DNS hostnames for your instances
	// to their corresponding IP addresses; otherwise, it does not.
	EnableDnsSupport *AttributeBooleanValue `locationName:"enableDnsSupport" type:"structure"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeVpcAttributeOutput) String

String returns the string representation

type DescribeVpcAttributeRequest

type DescribeVpcAttributeRequest struct {
	*aws.Request
	Input *DescribeVpcAttributeInput
	Copy  func(*DescribeVpcAttributeInput) DescribeVpcAttributeRequest
}

DescribeVpcAttributeRequest is the request type for the DescribeVpcAttribute API operation.

func (DescribeVpcAttributeRequest) Send

Send marshals and sends the DescribeVpcAttribute API request.

type DescribeVpcAttributeResponse added in v0.9.0

type DescribeVpcAttributeResponse struct {
	*DescribeVpcAttributeOutput
	// contains filtered or unexported fields
}

DescribeVpcAttributeResponse is the response type for the DescribeVpcAttribute API operation.

func (*DescribeVpcAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVpcAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVpcAttribute request.

type DescribeVpcClassicLinkDnsSupportInput

type DescribeVpcClassicLinkDnsSupportInput struct {

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// One or more VPC IDs.
	VpcIds []string `locationNameList:"VpcId" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVpcClassicLinkDnsSupportInput) String

String returns the string representation

func (*DescribeVpcClassicLinkDnsSupportInput) Validate

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

type DescribeVpcClassicLinkDnsSupportOutput

type DescribeVpcClassicLinkDnsSupportOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Information about the ClassicLink DNS support status of the VPCs.
	Vpcs []ClassicLinkDnsSupport `locationName:"vpcs" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVpcClassicLinkDnsSupportOutput) String

String returns the string representation

type DescribeVpcClassicLinkDnsSupportPaginator added in v0.9.0

type DescribeVpcClassicLinkDnsSupportPaginator struct {
	aws.Pager
}

DescribeVpcClassicLinkDnsSupportPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeVpcClassicLinkDnsSupportPaginator added in v0.9.0

func NewDescribeVpcClassicLinkDnsSupportPaginator(req DescribeVpcClassicLinkDnsSupportRequest) DescribeVpcClassicLinkDnsSupportPaginator

NewDescribeVpcClassicLinkDnsSupportRequestPaginator returns a paginator for DescribeVpcClassicLinkDnsSupport. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeVpcClassicLinkDnsSupportRequest(input)
p := ec2.NewDescribeVpcClassicLinkDnsSupportRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeVpcClassicLinkDnsSupportPaginator) CurrentPage added in v0.9.0

type DescribeVpcClassicLinkDnsSupportRequest

type DescribeVpcClassicLinkDnsSupportRequest struct {
	*aws.Request
	Input *DescribeVpcClassicLinkDnsSupportInput
	Copy  func(*DescribeVpcClassicLinkDnsSupportInput) DescribeVpcClassicLinkDnsSupportRequest
}

DescribeVpcClassicLinkDnsSupportRequest is the request type for the DescribeVpcClassicLinkDnsSupport API operation.

func (DescribeVpcClassicLinkDnsSupportRequest) Send

Send marshals and sends the DescribeVpcClassicLinkDnsSupport API request.

type DescribeVpcClassicLinkDnsSupportResponse added in v0.9.0

type DescribeVpcClassicLinkDnsSupportResponse struct {
	*DescribeVpcClassicLinkDnsSupportOutput
	// contains filtered or unexported fields
}

DescribeVpcClassicLinkDnsSupportResponse is the response type for the DescribeVpcClassicLinkDnsSupport API operation.

func (*DescribeVpcClassicLinkDnsSupportResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVpcClassicLinkDnsSupportResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVpcClassicLinkDnsSupport request.

type DescribeVpcClassicLinkInput

type DescribeVpcClassicLinkInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * is-classic-link-enabled - Whether the VPC is enabled for ClassicLink
	//    (true | false).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// One or more VPCs for which you want to describe the ClassicLink status.
	VpcIds []string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVpcClassicLinkInput) String

String returns the string representation

type DescribeVpcClassicLinkOutput

type DescribeVpcClassicLinkOutput struct {

	// The ClassicLink status of one or more VPCs.
	Vpcs []VpcClassicLink `locationName:"vpcSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVpcClassicLinkOutput) String

String returns the string representation

type DescribeVpcClassicLinkRequest

type DescribeVpcClassicLinkRequest struct {
	*aws.Request
	Input *DescribeVpcClassicLinkInput
	Copy  func(*DescribeVpcClassicLinkInput) DescribeVpcClassicLinkRequest
}

DescribeVpcClassicLinkRequest is the request type for the DescribeVpcClassicLink API operation.

func (DescribeVpcClassicLinkRequest) Send

Send marshals and sends the DescribeVpcClassicLink API request.

type DescribeVpcClassicLinkResponse added in v0.9.0

type DescribeVpcClassicLinkResponse struct {
	*DescribeVpcClassicLinkOutput
	// contains filtered or unexported fields
}

DescribeVpcClassicLinkResponse is the response type for the DescribeVpcClassicLink API operation.

func (*DescribeVpcClassicLinkResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVpcClassicLinkResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVpcClassicLink request.

type DescribeVpcEndpointConnectionNotificationsInput added in v0.2.0

type DescribeVpcEndpointConnectionNotificationsInput struct {

	// The ID of the notification.
	ConnectionNotificationId *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * connection-notification-arn - The ARN of the SNS topic for the notification.
	//
	//    * connection-notification-id - The ID of the notification.
	//
	//    * connection-notification-state - The state of the notification (Enabled
	//    | Disabled).
	//
	//    * connection-notification-type - The type of notification (Topic).
	//
	//    * service-id - The ID of the endpoint service.
	//
	//    * vpc-endpoint-id - The ID of the VPC endpoint.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return in a single call. To retrieve the
	// remaining results, make another request with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// The token to request the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeVpcEndpointConnectionNotificationsInput) String added in v0.2.0

String returns the string representation

type DescribeVpcEndpointConnectionNotificationsOutput added in v0.2.0

type DescribeVpcEndpointConnectionNotificationsOutput struct {

	// One or more notifications.
	ConnectionNotificationSet []ConnectionNotification `locationName:"connectionNotificationSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeVpcEndpointConnectionNotificationsOutput) String added in v0.2.0

String returns the string representation

type DescribeVpcEndpointConnectionNotificationsPaginator added in v0.9.0

type DescribeVpcEndpointConnectionNotificationsPaginator struct {
	aws.Pager
}

DescribeVpcEndpointConnectionNotificationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeVpcEndpointConnectionNotificationsPaginator added in v0.9.0

func NewDescribeVpcEndpointConnectionNotificationsPaginator(req DescribeVpcEndpointConnectionNotificationsRequest) DescribeVpcEndpointConnectionNotificationsPaginator

NewDescribeVpcEndpointConnectionNotificationsRequestPaginator returns a paginator for DescribeVpcEndpointConnectionNotifications. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeVpcEndpointConnectionNotificationsRequest(input)
p := ec2.NewDescribeVpcEndpointConnectionNotificationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeVpcEndpointConnectionNotificationsPaginator) CurrentPage added in v0.9.0

type DescribeVpcEndpointConnectionNotificationsRequest added in v0.2.0

DescribeVpcEndpointConnectionNotificationsRequest is the request type for the DescribeVpcEndpointConnectionNotifications API operation.

func (DescribeVpcEndpointConnectionNotificationsRequest) Send added in v0.2.0

Send marshals and sends the DescribeVpcEndpointConnectionNotifications API request.

type DescribeVpcEndpointConnectionNotificationsResponse added in v0.9.0

type DescribeVpcEndpointConnectionNotificationsResponse struct {
	*DescribeVpcEndpointConnectionNotificationsOutput
	// contains filtered or unexported fields
}

DescribeVpcEndpointConnectionNotificationsResponse is the response type for the DescribeVpcEndpointConnectionNotifications API operation.

func (*DescribeVpcEndpointConnectionNotificationsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DescribeVpcEndpointConnectionNotifications request.

type DescribeVpcEndpointConnectionsInput added in v0.2.0

type DescribeVpcEndpointConnectionsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * service-id - The ID of the service.
	//
	//    * vpc-endpoint-owner - The AWS account number of the owner of the endpoint.
	//
	//    * vpc-endpoint-state - The state of the endpoint (pendingAcceptance |
	//    pending | available | deleting | deleted | rejected | failed).
	//
	//    * vpc-endpoint-id - The ID of the endpoint.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results of the initial request can be seen by sending another
	// request with the returned NextToken value. This value can be between 5 and
	// 1,000; if MaxResults is given a value larger than 1,000, only 1,000 results
	// are returned.
	MaxResults *int64 `type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeVpcEndpointConnectionsInput) String added in v0.2.0

String returns the string representation

type DescribeVpcEndpointConnectionsOutput added in v0.2.0

type DescribeVpcEndpointConnectionsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about one or more VPC endpoint connections.
	VpcEndpointConnections []VpcEndpointConnection `locationName:"vpcEndpointConnectionSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVpcEndpointConnectionsOutput) String added in v0.2.0

String returns the string representation

type DescribeVpcEndpointConnectionsPaginator added in v0.9.0

type DescribeVpcEndpointConnectionsPaginator struct {
	aws.Pager
}

DescribeVpcEndpointConnectionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeVpcEndpointConnectionsPaginator added in v0.9.0

func NewDescribeVpcEndpointConnectionsPaginator(req DescribeVpcEndpointConnectionsRequest) DescribeVpcEndpointConnectionsPaginator

NewDescribeVpcEndpointConnectionsRequestPaginator returns a paginator for DescribeVpcEndpointConnections. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeVpcEndpointConnectionsRequest(input)
p := ec2.NewDescribeVpcEndpointConnectionsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeVpcEndpointConnectionsPaginator) CurrentPage added in v0.9.0

type DescribeVpcEndpointConnectionsRequest added in v0.2.0

type DescribeVpcEndpointConnectionsRequest struct {
	*aws.Request
	Input *DescribeVpcEndpointConnectionsInput
	Copy  func(*DescribeVpcEndpointConnectionsInput) DescribeVpcEndpointConnectionsRequest
}

DescribeVpcEndpointConnectionsRequest is the request type for the DescribeVpcEndpointConnections API operation.

func (DescribeVpcEndpointConnectionsRequest) Send added in v0.2.0

Send marshals and sends the DescribeVpcEndpointConnections API request.

type DescribeVpcEndpointConnectionsResponse added in v0.9.0

type DescribeVpcEndpointConnectionsResponse struct {
	*DescribeVpcEndpointConnectionsOutput
	// contains filtered or unexported fields
}

DescribeVpcEndpointConnectionsResponse is the response type for the DescribeVpcEndpointConnections API operation.

func (*DescribeVpcEndpointConnectionsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVpcEndpointConnectionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVpcEndpointConnections request.

type DescribeVpcEndpointServiceConfigurationsInput added in v0.2.0

type DescribeVpcEndpointServiceConfigurationsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * service-name - The name of the service.
	//
	//    * service-id - The ID of the service.
	//
	//    * service-state - The state of the service (Pending | Available | Deleting
	//    | Deleted | Failed).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results of the initial request can be seen by sending another
	// request with the returned NextToken value. This value can be between 5 and
	// 1,000; if MaxResults is given a value larger than 1,000, only 1,000 results
	// are returned.
	MaxResults *int64 `type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`

	// The IDs of one or more services.
	ServiceIds []string `locationName:"ServiceId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVpcEndpointServiceConfigurationsInput) String added in v0.2.0

String returns the string representation

type DescribeVpcEndpointServiceConfigurationsOutput added in v0.2.0

type DescribeVpcEndpointServiceConfigurationsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about one or more services.
	ServiceConfigurations []ServiceConfiguration `locationName:"serviceConfigurationSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVpcEndpointServiceConfigurationsOutput) String added in v0.2.0

String returns the string representation

type DescribeVpcEndpointServiceConfigurationsPaginator added in v0.9.0

type DescribeVpcEndpointServiceConfigurationsPaginator struct {
	aws.Pager
}

DescribeVpcEndpointServiceConfigurationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeVpcEndpointServiceConfigurationsPaginator added in v0.9.0

func NewDescribeVpcEndpointServiceConfigurationsPaginator(req DescribeVpcEndpointServiceConfigurationsRequest) DescribeVpcEndpointServiceConfigurationsPaginator

NewDescribeVpcEndpointServiceConfigurationsRequestPaginator returns a paginator for DescribeVpcEndpointServiceConfigurations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeVpcEndpointServiceConfigurationsRequest(input)
p := ec2.NewDescribeVpcEndpointServiceConfigurationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeVpcEndpointServiceConfigurationsPaginator) CurrentPage added in v0.9.0

type DescribeVpcEndpointServiceConfigurationsRequest added in v0.2.0

DescribeVpcEndpointServiceConfigurationsRequest is the request type for the DescribeVpcEndpointServiceConfigurations API operation.

func (DescribeVpcEndpointServiceConfigurationsRequest) Send added in v0.2.0

Send marshals and sends the DescribeVpcEndpointServiceConfigurations API request.

type DescribeVpcEndpointServiceConfigurationsResponse added in v0.9.0

type DescribeVpcEndpointServiceConfigurationsResponse struct {
	*DescribeVpcEndpointServiceConfigurationsOutput
	// contains filtered or unexported fields
}

DescribeVpcEndpointServiceConfigurationsResponse is the response type for the DescribeVpcEndpointServiceConfigurations API operation.

func (*DescribeVpcEndpointServiceConfigurationsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DescribeVpcEndpointServiceConfigurations request.

type DescribeVpcEndpointServicePermissionsInput added in v0.2.0

type DescribeVpcEndpointServicePermissionsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * principal - The ARN of the principal.
	//
	//    * principal-type - The principal type (All | Service | OrganizationUnit
	//    | Account | User | Role).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results of the initial request can be seen by sending another
	// request with the returned NextToken value. This value can be between 5 and
	// 1,000; if MaxResults is given a value larger than 1,000, only 1,000 results
	// are returned.
	MaxResults *int64 `type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`

	// The ID of the service.
	//
	// ServiceId is a required field
	ServiceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeVpcEndpointServicePermissionsInput) String added in v0.2.0

String returns the string representation

func (*DescribeVpcEndpointServicePermissionsInput) Validate added in v0.2.0

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

type DescribeVpcEndpointServicePermissionsOutput added in v0.2.0

type DescribeVpcEndpointServicePermissionsOutput struct {

	// Information about one or more allowed principals.
	AllowedPrincipals []AllowedPrincipal `locationName:"allowedPrincipals" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeVpcEndpointServicePermissionsOutput) String added in v0.2.0

String returns the string representation

type DescribeVpcEndpointServicePermissionsPaginator added in v0.9.0

type DescribeVpcEndpointServicePermissionsPaginator struct {
	aws.Pager
}

DescribeVpcEndpointServicePermissionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeVpcEndpointServicePermissionsPaginator added in v0.9.0

func NewDescribeVpcEndpointServicePermissionsPaginator(req DescribeVpcEndpointServicePermissionsRequest) DescribeVpcEndpointServicePermissionsPaginator

NewDescribeVpcEndpointServicePermissionsRequestPaginator returns a paginator for DescribeVpcEndpointServicePermissions. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeVpcEndpointServicePermissionsRequest(input)
p := ec2.NewDescribeVpcEndpointServicePermissionsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeVpcEndpointServicePermissionsPaginator) CurrentPage added in v0.9.0

type DescribeVpcEndpointServicePermissionsRequest added in v0.2.0

DescribeVpcEndpointServicePermissionsRequest is the request type for the DescribeVpcEndpointServicePermissions API operation.

func (DescribeVpcEndpointServicePermissionsRequest) Send added in v0.2.0

Send marshals and sends the DescribeVpcEndpointServicePermissions API request.

type DescribeVpcEndpointServicePermissionsResponse added in v0.9.0

type DescribeVpcEndpointServicePermissionsResponse struct {
	*DescribeVpcEndpointServicePermissionsOutput
	// contains filtered or unexported fields
}

DescribeVpcEndpointServicePermissionsResponse is the response type for the DescribeVpcEndpointServicePermissions API operation.

func (*DescribeVpcEndpointServicePermissionsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DescribeVpcEndpointServicePermissions request.

type DescribeVpcEndpointServicesInput

type DescribeVpcEndpointServicesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * service-name - The name of the service.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of items to return for this request. The request returns
	// a token that you can specify in a subsequent call to get the next set of
	// results.
	//
	// Constraint: If the value is greater than 1,000, we return only 1,000 items.
	MaxResults *int64 `type:"integer"`

	// The token for the next set of items to return. (You received this token from
	// a prior call.)
	NextToken *string `type:"string"`

	// One or more service names.
	ServiceNames []string `locationName:"ServiceName" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeVpcEndpointServices.

func (DescribeVpcEndpointServicesInput) String

String returns the string representation

type DescribeVpcEndpointServicesOutput

type DescribeVpcEndpointServicesOutput struct {

	// The token to use when requesting the next set of items. If there are no additional
	// items to return, the string is empty.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the service.
	ServiceDetails []ServiceDetail `locationName:"serviceDetailSet" locationNameList:"item" type:"list"`

	// A list of supported services.
	ServiceNames []string `locationName:"serviceNameSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeVpcEndpointServices.

func (DescribeVpcEndpointServicesOutput) String

String returns the string representation

type DescribeVpcEndpointServicesRequest

type DescribeVpcEndpointServicesRequest struct {
	*aws.Request
	Input *DescribeVpcEndpointServicesInput
	Copy  func(*DescribeVpcEndpointServicesInput) DescribeVpcEndpointServicesRequest
}

DescribeVpcEndpointServicesRequest is the request type for the DescribeVpcEndpointServices API operation.

func (DescribeVpcEndpointServicesRequest) Send

Send marshals and sends the DescribeVpcEndpointServices API request.

type DescribeVpcEndpointServicesResponse added in v0.9.0

type DescribeVpcEndpointServicesResponse struct {
	*DescribeVpcEndpointServicesOutput
	// contains filtered or unexported fields
}

DescribeVpcEndpointServicesResponse is the response type for the DescribeVpcEndpointServices API operation.

func (*DescribeVpcEndpointServicesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVpcEndpointServicesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVpcEndpointServices request.

type DescribeVpcEndpointsInput

type DescribeVpcEndpointsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	//    * service-name - The name of the service.
	//
	//    * vpc-id - The ID of the VPC in which the endpoint resides.
	//
	//    * vpc-endpoint-id - The ID of the endpoint.
	//
	//    * vpc-endpoint-state - The state of the endpoint (pendingAcceptance |
	//    pending | available | deleting | deleted | rejected | failed).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of items to return for this request. The request returns
	// a token that you can specify in a subsequent call to get the next set of
	// results.
	//
	// Constraint: If the value is greater than 1,000, we return only 1,000 items.
	MaxResults *int64 `type:"integer"`

	// The token for the next set of items to return. (You received this token from
	// a prior call.)
	NextToken *string `type:"string"`

	// One or more endpoint IDs.
	VpcEndpointIds []string `locationName:"VpcEndpointId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeVpcEndpoints.

func (DescribeVpcEndpointsInput) String

func (s DescribeVpcEndpointsInput) String() string

String returns the string representation

type DescribeVpcEndpointsOutput

type DescribeVpcEndpointsOutput struct {

	// The token to use when requesting the next set of items. If there are no additional
	// items to return, the string is empty.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the endpoints.
	VpcEndpoints []VpcEndpoint `locationName:"vpcEndpointSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeVpcEndpoints.

func (DescribeVpcEndpointsOutput) String

String returns the string representation

type DescribeVpcEndpointsPaginator added in v0.9.0

type DescribeVpcEndpointsPaginator struct {
	aws.Pager
}

DescribeVpcEndpointsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeVpcEndpointsPaginator added in v0.9.0

func NewDescribeVpcEndpointsPaginator(req DescribeVpcEndpointsRequest) DescribeVpcEndpointsPaginator

NewDescribeVpcEndpointsRequestPaginator returns a paginator for DescribeVpcEndpoints. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeVpcEndpointsRequest(input)
p := ec2.NewDescribeVpcEndpointsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeVpcEndpointsPaginator) CurrentPage added in v0.9.0

type DescribeVpcEndpointsRequest

type DescribeVpcEndpointsRequest struct {
	*aws.Request
	Input *DescribeVpcEndpointsInput
	Copy  func(*DescribeVpcEndpointsInput) DescribeVpcEndpointsRequest
}

DescribeVpcEndpointsRequest is the request type for the DescribeVpcEndpoints API operation.

func (DescribeVpcEndpointsRequest) Send

Send marshals and sends the DescribeVpcEndpoints API request.

type DescribeVpcEndpointsResponse added in v0.9.0

type DescribeVpcEndpointsResponse struct {
	*DescribeVpcEndpointsOutput
	// contains filtered or unexported fields
}

DescribeVpcEndpointsResponse is the response type for the DescribeVpcEndpoints API operation.

func (*DescribeVpcEndpointsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVpcEndpointsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVpcEndpoints request.

type DescribeVpcPeeringConnectionsInput

type DescribeVpcPeeringConnectionsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * accepter-vpc-info.cidr-block - The IPv4 CIDR block of the accepter VPC.
	//
	//    * accepter-vpc-info.owner-id - The AWS account ID of the owner of the
	//    accepter VPC.
	//
	//    * accepter-vpc-info.vpc-id - The ID of the accepter VPC.
	//
	//    * expiration-time - The expiration date and time for the VPC peering connection.
	//
	//    * requester-vpc-info.cidr-block - The IPv4 CIDR block of the requester's
	//    VPC.
	//
	//    * requester-vpc-info.owner-id - The AWS account ID of the owner of the
	//    requester VPC.
	//
	//    * requester-vpc-info.vpc-id - The ID of the requester VPC.
	//
	//    * status-code - The status of the VPC peering connection (pending-acceptance
	//    | failed | expired | provisioning | active | deleting | deleted | rejected).
	//
	//    * status-message - A message that provides more information about the
	//    status of the VPC peering connection, if applicable.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * vpc-peering-connection-id - The ID of the VPC peering connection.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// One or more VPC peering connection IDs.
	//
	// Default: Describes all your VPC peering connections.
	VpcPeeringConnectionIds []string `locationName:"VpcPeeringConnectionId" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVpcPeeringConnectionsInput) String

String returns the string representation

func (*DescribeVpcPeeringConnectionsInput) Validate added in v0.8.0

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

type DescribeVpcPeeringConnectionsOutput

type DescribeVpcPeeringConnectionsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the VPC peering connections.
	VpcPeeringConnections []VpcPeeringConnection `locationName:"vpcPeeringConnectionSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVpcPeeringConnectionsOutput) String

String returns the string representation

type DescribeVpcPeeringConnectionsPaginator added in v0.9.0

type DescribeVpcPeeringConnectionsPaginator struct {
	aws.Pager
}

DescribeVpcPeeringConnectionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeVpcPeeringConnectionsPaginator added in v0.9.0

func NewDescribeVpcPeeringConnectionsPaginator(req DescribeVpcPeeringConnectionsRequest) DescribeVpcPeeringConnectionsPaginator

NewDescribeVpcPeeringConnectionsRequestPaginator returns a paginator for DescribeVpcPeeringConnections. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeVpcPeeringConnectionsRequest(input)
p := ec2.NewDescribeVpcPeeringConnectionsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeVpcPeeringConnectionsPaginator) CurrentPage added in v0.9.0

type DescribeVpcPeeringConnectionsRequest

type DescribeVpcPeeringConnectionsRequest struct {
	*aws.Request
	Input *DescribeVpcPeeringConnectionsInput
	Copy  func(*DescribeVpcPeeringConnectionsInput) DescribeVpcPeeringConnectionsRequest
}

DescribeVpcPeeringConnectionsRequest is the request type for the DescribeVpcPeeringConnections API operation.

func (DescribeVpcPeeringConnectionsRequest) Send

Send marshals and sends the DescribeVpcPeeringConnections API request.

type DescribeVpcPeeringConnectionsResponse added in v0.9.0

type DescribeVpcPeeringConnectionsResponse struct {
	*DescribeVpcPeeringConnectionsOutput
	// contains filtered or unexported fields
}

DescribeVpcPeeringConnectionsResponse is the response type for the DescribeVpcPeeringConnections API operation.

func (*DescribeVpcPeeringConnectionsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVpcPeeringConnectionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVpcPeeringConnections request.

type DescribeVpcsInput

type DescribeVpcsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * cidr - The primary IPv4 CIDR block of the VPC. The CIDR block you specify
	//    must exactly match the VPC's CIDR block for information to be returned
	//    for the VPC. Must contain the slash followed by one or two digits (for
	//    example, /28).
	//
	//    * cidr-block-association.cidr-block - An IPv4 CIDR block associated with
	//    the VPC.
	//
	//    * cidr-block-association.association-id - The association ID for an IPv4
	//    CIDR block associated with the VPC.
	//
	//    * cidr-block-association.state - The state of an IPv4 CIDR block associated
	//    with the VPC.
	//
	//    * dhcp-options-id - The ID of a set of DHCP options.
	//
	//    * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
	//    with the VPC.
	//
	//    * ipv6-cidr-block-association.ipv6-pool - The ID of the IPv6 address pool
	//    from which the IPv6 CIDR block is allocated.
	//
	//    * ipv6-cidr-block-association.association-id - The association ID for
	//    an IPv6 CIDR block associated with the VPC.
	//
	//    * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
	//    associated with the VPC.
	//
	//    * isDefault - Indicates whether the VPC is the default VPC.
	//
	//    * owner-id - The ID of the AWS account that owns the VPC.
	//
	//    * state - The state of the VPC (pending | available).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * vpc-id - The ID of the VPC.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// One or more VPC IDs.
	//
	// Default: Describes all your VPCs.
	VpcIds []string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVpcsInput) String

func (s DescribeVpcsInput) String() string

String returns the string representation

func (*DescribeVpcsInput) Validate added in v0.8.0

func (s *DescribeVpcsInput) Validate() error

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

type DescribeVpcsOutput

type DescribeVpcsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about one or more VPCs.
	Vpcs []Vpc `locationName:"vpcSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVpcsOutput) String

func (s DescribeVpcsOutput) String() string

String returns the string representation

type DescribeVpcsPaginator added in v0.9.0

type DescribeVpcsPaginator struct {
	aws.Pager
}

DescribeVpcsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeVpcsPaginator added in v0.9.0

func NewDescribeVpcsPaginator(req DescribeVpcsRequest) DescribeVpcsPaginator

NewDescribeVpcsRequestPaginator returns a paginator for DescribeVpcs. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeVpcsRequest(input)
p := ec2.NewDescribeVpcsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeVpcsPaginator) CurrentPage added in v0.9.0

func (p *DescribeVpcsPaginator) CurrentPage() *DescribeVpcsOutput

type DescribeVpcsRequest

type DescribeVpcsRequest struct {
	*aws.Request
	Input *DescribeVpcsInput
	Copy  func(*DescribeVpcsInput) DescribeVpcsRequest
}

DescribeVpcsRequest is the request type for the DescribeVpcs API operation.

func (DescribeVpcsRequest) Send

Send marshals and sends the DescribeVpcs API request.

type DescribeVpcsResponse added in v0.9.0

type DescribeVpcsResponse struct {
	*DescribeVpcsOutput
	// contains filtered or unexported fields
}

DescribeVpcsResponse is the response type for the DescribeVpcs API operation.

func (*DescribeVpcsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVpcsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVpcs request.

type DescribeVpnConnectionsInput

type DescribeVpnConnectionsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * customer-gateway-configuration - The configuration information for the
	//    customer gateway.
	//
	//    * customer-gateway-id - The ID of a customer gateway associated with the
	//    VPN connection.
	//
	//    * state - The state of the VPN connection (pending | available | deleting
	//    | deleted).
	//
	//    * option.static-routes-only - Indicates whether the connection has static
	//    routes only. Used for devices that do not support Border Gateway Protocol
	//    (BGP).
	//
	//    * route.destination-cidr-block - The destination CIDR block. This corresponds
	//    to the subnet used in a customer data center.
	//
	//    * bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP
	//    device.
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * type - The type of VPN connection. Currently the only supported type
	//    is ipsec.1.
	//
	//    * vpn-connection-id - The ID of the VPN connection.
	//
	//    * vpn-gateway-id - The ID of a virtual private gateway associated with
	//    the VPN connection.
	//
	//    * transit-gateway-id - The ID of a transit gateway associated with the
	//    VPN connection.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// One or more VPN connection IDs.
	//
	// Default: Describes your VPN connections.
	VpnConnectionIds []string `locationName:"VpnConnectionId" locationNameList:"VpnConnectionId" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeVpnConnections.

func (DescribeVpnConnectionsInput) String

String returns the string representation

type DescribeVpnConnectionsOutput

type DescribeVpnConnectionsOutput struct {

	// Information about one or more VPN connections.
	VpnConnections []VpnConnection `locationName:"vpnConnectionSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeVpnConnections.

func (DescribeVpnConnectionsOutput) String

String returns the string representation

type DescribeVpnConnectionsRequest

type DescribeVpnConnectionsRequest struct {
	*aws.Request
	Input *DescribeVpnConnectionsInput
	Copy  func(*DescribeVpnConnectionsInput) DescribeVpnConnectionsRequest
}

DescribeVpnConnectionsRequest is the request type for the DescribeVpnConnections API operation.

func (DescribeVpnConnectionsRequest) Send

Send marshals and sends the DescribeVpnConnections API request.

type DescribeVpnConnectionsResponse added in v0.9.0

type DescribeVpnConnectionsResponse struct {
	*DescribeVpnConnectionsOutput
	// contains filtered or unexported fields
}

DescribeVpnConnectionsResponse is the response type for the DescribeVpnConnections API operation.

func (*DescribeVpnConnectionsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVpnConnectionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVpnConnections request.

type DescribeVpnGatewaysInput

type DescribeVpnGatewaysInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// One or more filters.
	//
	//    * amazon-side-asn - The Autonomous System Number (ASN) for the Amazon
	//    side of the gateway.
	//
	//    * attachment.state - The current state of the attachment between the gateway
	//    and the VPC (attaching | attached | detaching | detached).
	//
	//    * attachment.vpc-id - The ID of an attached VPC.
	//
	//    * availability-zone - The Availability Zone for the virtual private gateway
	//    (if applicable).
	//
	//    * state - The state of the virtual private gateway (pending | available
	//    | deleting | deleted).
	//
	//    * tag:<key> - The key/value combination of a tag assigned to the resource.
	//    Use the tag key in the filter name and the tag value as the filter value.
	//    For example, to find all resources that have a tag with the key Owner
	//    and the value TeamA, specify tag:Owner for the filter name and TeamA for
	//    the filter value.
	//
	//    * tag-key - The key of a tag assigned to the resource. Use this filter
	//    to find all resources assigned a tag with a specific key, regardless of
	//    the tag value.
	//
	//    * type - The type of virtual private gateway. Currently the only supported
	//    type is ipsec.1.
	//
	//    * vpn-gateway-id - The ID of the virtual private gateway.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// One or more virtual private gateway IDs.
	//
	// Default: Describes all your virtual private gateways.
	VpnGatewayIds []string `locationName:"VpnGatewayId" locationNameList:"VpnGatewayId" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for DescribeVpnGateways.

func (DescribeVpnGatewaysInput) String

func (s DescribeVpnGatewaysInput) String() string

String returns the string representation

type DescribeVpnGatewaysOutput

type DescribeVpnGatewaysOutput struct {

	// Information about one or more virtual private gateways.
	VpnGateways []VpnGateway `locationName:"vpnGatewaySet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of DescribeVpnGateways.

func (DescribeVpnGatewaysOutput) String

func (s DescribeVpnGatewaysOutput) String() string

String returns the string representation

type DescribeVpnGatewaysRequest

type DescribeVpnGatewaysRequest struct {
	*aws.Request
	Input *DescribeVpnGatewaysInput
	Copy  func(*DescribeVpnGatewaysInput) DescribeVpnGatewaysRequest
}

DescribeVpnGatewaysRequest is the request type for the DescribeVpnGateways API operation.

func (DescribeVpnGatewaysRequest) Send

Send marshals and sends the DescribeVpnGateways API request.

type DescribeVpnGatewaysResponse added in v0.9.0

type DescribeVpnGatewaysResponse struct {
	*DescribeVpnGatewaysOutput
	// contains filtered or unexported fields
}

DescribeVpnGatewaysResponse is the response type for the DescribeVpnGateways API operation.

func (*DescribeVpnGatewaysResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeVpnGatewaysResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeVpnGateways request.

type DetachClassicLinkVpcInput

type DetachClassicLinkVpcInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the instance to unlink from the VPC.
	//
	// InstanceId is a required field
	InstanceId *string `locationName:"instanceId" type:"string" required:"true"`

	// The ID of the VPC to which the instance is linked.
	//
	// VpcId is a required field
	VpcId *string `locationName:"vpcId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DetachClassicLinkVpcInput) String

func (s DetachClassicLinkVpcInput) String() string

String returns the string representation

func (*DetachClassicLinkVpcInput) Validate

func (s *DetachClassicLinkVpcInput) Validate() error

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

type DetachClassicLinkVpcOutput

type DetachClassicLinkVpcOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (DetachClassicLinkVpcOutput) String

String returns the string representation

type DetachClassicLinkVpcRequest

type DetachClassicLinkVpcRequest struct {
	*aws.Request
	Input *DetachClassicLinkVpcInput
	Copy  func(*DetachClassicLinkVpcInput) DetachClassicLinkVpcRequest
}

DetachClassicLinkVpcRequest is the request type for the DetachClassicLinkVpc API operation.

func (DetachClassicLinkVpcRequest) Send

Send marshals and sends the DetachClassicLinkVpc API request.

type DetachClassicLinkVpcResponse added in v0.9.0

type DetachClassicLinkVpcResponse struct {
	*DetachClassicLinkVpcOutput
	// contains filtered or unexported fields
}

DetachClassicLinkVpcResponse is the response type for the DetachClassicLinkVpc API operation.

func (*DetachClassicLinkVpcResponse) SDKResponseMetdata added in v0.9.0

func (r *DetachClassicLinkVpcResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DetachClassicLinkVpc request.

type DetachInternetGatewayInput

type DetachInternetGatewayInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the internet gateway.
	//
	// InternetGatewayId is a required field
	InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `locationName:"vpcId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DetachInternetGatewayInput) String

String returns the string representation

func (*DetachInternetGatewayInput) Validate

func (s *DetachInternetGatewayInput) Validate() error

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

type DetachInternetGatewayOutput

type DetachInternetGatewayOutput struct {
	// contains filtered or unexported fields
}

func (DetachInternetGatewayOutput) String

String returns the string representation

type DetachInternetGatewayRequest

type DetachInternetGatewayRequest struct {
	*aws.Request
	Input *DetachInternetGatewayInput
	Copy  func(*DetachInternetGatewayInput) DetachInternetGatewayRequest
}

DetachInternetGatewayRequest is the request type for the DetachInternetGateway API operation.

func (DetachInternetGatewayRequest) Send

Send marshals and sends the DetachInternetGateway API request.

type DetachInternetGatewayResponse added in v0.9.0

type DetachInternetGatewayResponse struct {
	*DetachInternetGatewayOutput
	// contains filtered or unexported fields
}

DetachInternetGatewayResponse is the response type for the DetachInternetGateway API operation.

func (*DetachInternetGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *DetachInternetGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DetachInternetGateway request.

type DetachNetworkInterfaceInput

type DetachNetworkInterfaceInput struct {

	// The ID of the attachment.
	//
	// AttachmentId is a required field
	AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Specifies whether to force a detachment.
	//
	//    * Use the Force parameter only as a last resort to detach a network interface
	//    from a failed instance.
	//
	//    * If you use the Force parameter to detach a network interface, you might
	//    not be able to attach a different network interface to the same index
	//    on the instance without first stopping and starting the instance.
	//
	//    * If you force the detachment of a network interface, the instance metadata
	//    (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html)
	//    might not get updated. This means that the attributes associated with
	//    the detached network interface might still be visible. The instance metadata
	//    will get updated when you stop and start the instance.
	Force *bool `locationName:"force" type:"boolean"`
	// contains filtered or unexported fields
}

Contains the parameters for DetachNetworkInterface.

func (DetachNetworkInterfaceInput) String

String returns the string representation

func (*DetachNetworkInterfaceInput) Validate

func (s *DetachNetworkInterfaceInput) Validate() error

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

type DetachNetworkInterfaceOutput

type DetachNetworkInterfaceOutput struct {
	// contains filtered or unexported fields
}

func (DetachNetworkInterfaceOutput) String

String returns the string representation

type DetachNetworkInterfaceRequest

type DetachNetworkInterfaceRequest struct {
	*aws.Request
	Input *DetachNetworkInterfaceInput
	Copy  func(*DetachNetworkInterfaceInput) DetachNetworkInterfaceRequest
}

DetachNetworkInterfaceRequest is the request type for the DetachNetworkInterface API operation.

func (DetachNetworkInterfaceRequest) Send

Send marshals and sends the DetachNetworkInterface API request.

type DetachNetworkInterfaceResponse added in v0.9.0

type DetachNetworkInterfaceResponse struct {
	*DetachNetworkInterfaceOutput
	// contains filtered or unexported fields
}

DetachNetworkInterfaceResponse is the response type for the DetachNetworkInterface API operation.

func (*DetachNetworkInterfaceResponse) SDKResponseMetdata added in v0.9.0

func (r *DetachNetworkInterfaceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DetachNetworkInterface request.

type DetachVolumeInput

type DetachVolumeInput struct {

	// The device name.
	Device *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Forces detachment if the previous detachment attempt did not occur cleanly
	// (for example, logging into an instance, unmounting the volume, and detaching
	// normally). This option can lead to data loss or a corrupted file system.
	// Use this option only as a last resort to detach a volume from a failed instance.
	// The instance won't have an opportunity to flush file system caches or file
	// system metadata. If you use this option, you must perform file system check
	// and repair procedures.
	Force *bool `type:"boolean"`

	// The ID of the instance. If you are detaching a Multi-Attach enabled volume,
	// you must specify an instance ID.
	InstanceId *string `type:"string"`

	// The ID of the volume.
	//
	// VolumeId is a required field
	VolumeId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DetachVolumeInput) String

func (s DetachVolumeInput) String() string

String returns the string representation

func (*DetachVolumeInput) Validate

func (s *DetachVolumeInput) Validate() error

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

type DetachVolumeOutput

type DetachVolumeOutput struct {

	// The time stamp when the attachment initiated.
	AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`

	// Indicates whether the EBS volume is deleted on instance termination.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`

	// The device name.
	Device *string `locationName:"device" type:"string"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The attachment state of the volume.
	State VolumeAttachmentState `locationName:"status" type:"string" enum:"true"`

	// The ID of the volume.
	VolumeId *string `locationName:"volumeId" type:"string"`
	// contains filtered or unexported fields
}

Describes volume attachment details.

func (DetachVolumeOutput) String

func (s DetachVolumeOutput) String() string

String returns the string representation

type DetachVolumeRequest

type DetachVolumeRequest struct {
	*aws.Request
	Input *DetachVolumeInput
	Copy  func(*DetachVolumeInput) DetachVolumeRequest
}

DetachVolumeRequest is the request type for the DetachVolume API operation.

func (DetachVolumeRequest) Send

Send marshals and sends the DetachVolume API request.

type DetachVolumeResponse added in v0.9.0

type DetachVolumeResponse struct {
	*DetachVolumeOutput
	// contains filtered or unexported fields
}

DetachVolumeResponse is the response type for the DetachVolume API operation.

func (*DetachVolumeResponse) SDKResponseMetdata added in v0.9.0

func (r *DetachVolumeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DetachVolume request.

type DetachVpnGatewayInput

type DetachVpnGatewayInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`

	// The ID of the virtual private gateway.
	//
	// VpnGatewayId is a required field
	VpnGatewayId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DetachVpnGateway.

func (DetachVpnGatewayInput) String

func (s DetachVpnGatewayInput) String() string

String returns the string representation

func (*DetachVpnGatewayInput) Validate

func (s *DetachVpnGatewayInput) Validate() error

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

type DetachVpnGatewayOutput

type DetachVpnGatewayOutput struct {
	// contains filtered or unexported fields
}

func (DetachVpnGatewayOutput) String

func (s DetachVpnGatewayOutput) String() string

String returns the string representation

type DetachVpnGatewayRequest

type DetachVpnGatewayRequest struct {
	*aws.Request
	Input *DetachVpnGatewayInput
	Copy  func(*DetachVpnGatewayInput) DetachVpnGatewayRequest
}

DetachVpnGatewayRequest is the request type for the DetachVpnGateway API operation.

func (DetachVpnGatewayRequest) Send

Send marshals and sends the DetachVpnGateway API request.

type DetachVpnGatewayResponse added in v0.9.0

type DetachVpnGatewayResponse struct {
	*DetachVpnGatewayOutput
	// contains filtered or unexported fields
}

DetachVpnGatewayResponse is the response type for the DetachVpnGateway API operation.

func (*DetachVpnGatewayResponse) SDKResponseMetdata added in v0.9.0

func (r *DetachVpnGatewayResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DetachVpnGateway request.

type DeviceType

type DeviceType string
const (
	DeviceTypeEbs           DeviceType = "ebs"
	DeviceTypeInstanceStore DeviceType = "instance-store"
)

Enum values for DeviceType

func (DeviceType) MarshalValue added in v0.3.0

func (enum DeviceType) MarshalValue() (string, error)

func (DeviceType) MarshalValueBuf added in v0.3.0

func (enum DeviceType) MarshalValueBuf(b []byte) ([]byte, error)

type DhcpConfiguration

type DhcpConfiguration struct {

	// The name of a DHCP option.
	Key *string `locationName:"key" type:"string"`

	// One or more values for the DHCP option.
	Values []AttributeValue `locationName:"valueSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a DHCP configuration option.

func (DhcpConfiguration) String

func (s DhcpConfiguration) String() string

String returns the string representation

type DhcpOptions

type DhcpOptions struct {

	// One or more DHCP options in the set.
	DhcpConfigurations []DhcpConfiguration `locationName:"dhcpConfigurationSet" locationNameList:"item" type:"list"`

	// The ID of the set of DHCP options.
	DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`

	// The ID of the AWS account that owns the DHCP options set.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// Any tags assigned to the DHCP options set.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a set of DHCP options.

func (DhcpOptions) String

func (s DhcpOptions) String() string

String returns the string representation

type DirectoryServiceAuthentication added in v0.7.0

type DirectoryServiceAuthentication struct {

	// The ID of the Active Directory used for authentication.
	DirectoryId *string `locationName:"directoryId" type:"string"`
	// contains filtered or unexported fields
}

Describes an Active Directory.

func (DirectoryServiceAuthentication) String added in v0.7.0

String returns the string representation

type DirectoryServiceAuthenticationRequest added in v0.7.0

type DirectoryServiceAuthenticationRequest struct {

	// The ID of the Active Directory to be used for authentication.
	DirectoryId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the Active Directory to be used for client authentication.

func (DirectoryServiceAuthenticationRequest) String added in v0.7.0

String returns the string representation

type DisableEbsEncryptionByDefaultInput added in v0.9.0

type DisableEbsEncryptionByDefaultInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (DisableEbsEncryptionByDefaultInput) String added in v0.9.0

String returns the string representation

type DisableEbsEncryptionByDefaultOutput added in v0.9.0

type DisableEbsEncryptionByDefaultOutput struct {

	// The updated status of encryption by default.
	EbsEncryptionByDefault *bool `locationName:"ebsEncryptionByDefault" type:"boolean"`
	// contains filtered or unexported fields
}

func (DisableEbsEncryptionByDefaultOutput) String added in v0.9.0

String returns the string representation

type DisableEbsEncryptionByDefaultRequest added in v0.9.0

type DisableEbsEncryptionByDefaultRequest struct {
	*aws.Request
	Input *DisableEbsEncryptionByDefaultInput
	Copy  func(*DisableEbsEncryptionByDefaultInput) DisableEbsEncryptionByDefaultRequest
}

DisableEbsEncryptionByDefaultRequest is the request type for the DisableEbsEncryptionByDefault API operation.

func (DisableEbsEncryptionByDefaultRequest) Send added in v0.9.0

Send marshals and sends the DisableEbsEncryptionByDefault API request.

type DisableEbsEncryptionByDefaultResponse added in v0.9.0

type DisableEbsEncryptionByDefaultResponse struct {
	*DisableEbsEncryptionByDefaultOutput
	// contains filtered or unexported fields
}

DisableEbsEncryptionByDefaultResponse is the response type for the DisableEbsEncryptionByDefault API operation.

func (*DisableEbsEncryptionByDefaultResponse) SDKResponseMetdata added in v0.9.0

func (r *DisableEbsEncryptionByDefaultResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisableEbsEncryptionByDefault request.

type DisableFastSnapshotRestoreErrorItem added in v0.17.0

type DisableFastSnapshotRestoreErrorItem struct {

	// The errors.
	FastSnapshotRestoreStateErrors []DisableFastSnapshotRestoreStateErrorItem `locationName:"fastSnapshotRestoreStateErrorSet" locationNameList:"item" type:"list"`

	// The ID of the snapshot.
	SnapshotId *string `locationName:"snapshotId" type:"string"`
	// contains filtered or unexported fields
}

Contains information about the errors that occurred when disabling fast snapshot restores.

func (DisableFastSnapshotRestoreErrorItem) String added in v0.17.0

String returns the string representation

type DisableFastSnapshotRestoreStateError added in v0.17.0

type DisableFastSnapshotRestoreStateError struct {

	// The error code.
	Code *string `locationName:"code" type:"string"`

	// The error message.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes an error that occurred when disabling fast snapshot restores.

func (DisableFastSnapshotRestoreStateError) String added in v0.17.0

String returns the string representation

type DisableFastSnapshotRestoreStateErrorItem added in v0.17.0

type DisableFastSnapshotRestoreStateErrorItem struct {

	// The Availability Zone.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The error.
	Error *DisableFastSnapshotRestoreStateError `locationName:"error" type:"structure"`
	// contains filtered or unexported fields
}

Contains information about an error that occurred when disabling fast snapshot restores.

func (DisableFastSnapshotRestoreStateErrorItem) String added in v0.17.0

String returns the string representation

type DisableFastSnapshotRestoreSuccessItem added in v0.17.0

type DisableFastSnapshotRestoreSuccessItem struct {

	// The Availability Zone.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The time at which fast snapshot restores entered the disabled state.
	DisabledTime *time.Time `locationName:"disabledTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the disabling state.
	DisablingTime *time.Time `locationName:"disablingTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the enabled state.
	EnabledTime *time.Time `locationName:"enabledTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the enabling state.
	EnablingTime *time.Time `locationName:"enablingTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the optimizing state.
	OptimizingTime *time.Time `locationName:"optimizingTime" type:"timestamp"`

	// The AWS owner alias that enabled fast snapshot restores on the snapshot.
	// This is intended for future use.
	OwnerAlias *string `locationName:"ownerAlias" type:"string"`

	// The ID of the AWS account that enabled fast snapshot restores on the snapshot.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The ID of the snapshot.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// The state of fast snapshot restores for the snapshot.
	State FastSnapshotRestoreStateCode `locationName:"state" type:"string" enum:"true"`

	// The reason for the state transition. The possible values are as follows:
	//
	//    * Client.UserInitiated - The state successfully transitioned to enabling
	//    or disabling.
	//
	//    * Client.UserInitiated - Lifecycle state transition - The state successfully
	//    transitioned to optimizing, enabled, or disabled.
	StateTransitionReason *string `locationName:"stateTransitionReason" type:"string"`
	// contains filtered or unexported fields
}

Describes fast snapshot restores that were successfully disabled.

func (DisableFastSnapshotRestoreSuccessItem) String added in v0.17.0

String returns the string representation

type DisableFastSnapshotRestoresInput added in v0.17.0

type DisableFastSnapshotRestoresInput struct {

	// One or more Availability Zones. For example, us-east-2a.
	//
	// AvailabilityZones is a required field
	AvailabilityZones []string `locationName:"AvailabilityZone" locationNameList:"AvailabilityZone" type:"list" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of one or more snapshots. For example, snap-1234567890abcdef0.
	//
	// SourceSnapshotIds is a required field
	SourceSnapshotIds []string `locationName:"SourceSnapshotId" locationNameList:"SnapshotId" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DisableFastSnapshotRestoresInput) String added in v0.17.0

String returns the string representation

func (*DisableFastSnapshotRestoresInput) Validate added in v0.17.0

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

type DisableFastSnapshotRestoresOutput added in v0.17.0

type DisableFastSnapshotRestoresOutput struct {

	// Information about the snapshots for which fast snapshot restores were successfully
	// disabled.
	Successful []DisableFastSnapshotRestoreSuccessItem `locationName:"successful" locationNameList:"item" type:"list"`

	// Information about the snapshots for which fast snapshot restores could not
	// be disabled.
	Unsuccessful []DisableFastSnapshotRestoreErrorItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (DisableFastSnapshotRestoresOutput) String added in v0.17.0

String returns the string representation

type DisableFastSnapshotRestoresRequest added in v0.17.0

type DisableFastSnapshotRestoresRequest struct {
	*aws.Request
	Input *DisableFastSnapshotRestoresInput
	Copy  func(*DisableFastSnapshotRestoresInput) DisableFastSnapshotRestoresRequest
}

DisableFastSnapshotRestoresRequest is the request type for the DisableFastSnapshotRestores API operation.

func (DisableFastSnapshotRestoresRequest) Send added in v0.17.0

Send marshals and sends the DisableFastSnapshotRestores API request.

type DisableFastSnapshotRestoresResponse added in v0.17.0

type DisableFastSnapshotRestoresResponse struct {
	*DisableFastSnapshotRestoresOutput
	// contains filtered or unexported fields
}

DisableFastSnapshotRestoresResponse is the response type for the DisableFastSnapshotRestores API operation.

func (*DisableFastSnapshotRestoresResponse) SDKResponseMetdata added in v0.17.0

func (r *DisableFastSnapshotRestoresResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisableFastSnapshotRestores request.

type DisableTransitGatewayRouteTablePropagationInput added in v0.6.0

type DisableTransitGatewayRouteTablePropagationInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`

	// The ID of the propagation route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DisableTransitGatewayRouteTablePropagationInput) String added in v0.6.0

String returns the string representation

func (*DisableTransitGatewayRouteTablePropagationInput) Validate added in v0.6.0

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

type DisableTransitGatewayRouteTablePropagationOutput added in v0.6.0

type DisableTransitGatewayRouteTablePropagationOutput struct {

	// Information about route propagation.
	Propagation *TransitGatewayPropagation `locationName:"propagation" type:"structure"`
	// contains filtered or unexported fields
}

func (DisableTransitGatewayRouteTablePropagationOutput) String added in v0.6.0

String returns the string representation

type DisableTransitGatewayRouteTablePropagationRequest added in v0.6.0

DisableTransitGatewayRouteTablePropagationRequest is the request type for the DisableTransitGatewayRouteTablePropagation API operation.

func (DisableTransitGatewayRouteTablePropagationRequest) Send added in v0.6.0

Send marshals and sends the DisableTransitGatewayRouteTablePropagation API request.

type DisableTransitGatewayRouteTablePropagationResponse added in v0.9.0

type DisableTransitGatewayRouteTablePropagationResponse struct {
	*DisableTransitGatewayRouteTablePropagationOutput
	// contains filtered or unexported fields
}

DisableTransitGatewayRouteTablePropagationResponse is the response type for the DisableTransitGatewayRouteTablePropagation API operation.

func (*DisableTransitGatewayRouteTablePropagationResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DisableTransitGatewayRouteTablePropagation request.

type DisableVgwRoutePropagationInput

type DisableVgwRoutePropagationInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the virtual private gateway.
	//
	// GatewayId is a required field
	GatewayId *string `type:"string" required:"true"`

	// The ID of the route table.
	//
	// RouteTableId is a required field
	RouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for DisableVgwRoutePropagation.

func (DisableVgwRoutePropagationInput) String

String returns the string representation

func (*DisableVgwRoutePropagationInput) Validate

func (s *DisableVgwRoutePropagationInput) Validate() error

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

type DisableVgwRoutePropagationOutput

type DisableVgwRoutePropagationOutput struct {
	// contains filtered or unexported fields
}

func (DisableVgwRoutePropagationOutput) String

String returns the string representation

type DisableVgwRoutePropagationRequest

type DisableVgwRoutePropagationRequest struct {
	*aws.Request
	Input *DisableVgwRoutePropagationInput
	Copy  func(*DisableVgwRoutePropagationInput) DisableVgwRoutePropagationRequest
}

DisableVgwRoutePropagationRequest is the request type for the DisableVgwRoutePropagation API operation.

func (DisableVgwRoutePropagationRequest) Send

Send marshals and sends the DisableVgwRoutePropagation API request.

type DisableVgwRoutePropagationResponse added in v0.9.0

type DisableVgwRoutePropagationResponse struct {
	*DisableVgwRoutePropagationOutput
	// contains filtered or unexported fields
}

DisableVgwRoutePropagationResponse is the response type for the DisableVgwRoutePropagation API operation.

func (*DisableVgwRoutePropagationResponse) SDKResponseMetdata added in v0.9.0

func (r *DisableVgwRoutePropagationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisableVgwRoutePropagation request.

type DisableVpcClassicLinkDnsSupportInput

type DisableVpcClassicLinkDnsSupportInput struct {

	// The ID of the VPC.
	VpcId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DisableVpcClassicLinkDnsSupportInput) String

String returns the string representation

type DisableVpcClassicLinkDnsSupportOutput

type DisableVpcClassicLinkDnsSupportOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (DisableVpcClassicLinkDnsSupportOutput) String

String returns the string representation

type DisableVpcClassicLinkDnsSupportRequest

type DisableVpcClassicLinkDnsSupportRequest struct {
	*aws.Request
	Input *DisableVpcClassicLinkDnsSupportInput
	Copy  func(*DisableVpcClassicLinkDnsSupportInput) DisableVpcClassicLinkDnsSupportRequest
}

DisableVpcClassicLinkDnsSupportRequest is the request type for the DisableVpcClassicLinkDnsSupport API operation.

func (DisableVpcClassicLinkDnsSupportRequest) Send

Send marshals and sends the DisableVpcClassicLinkDnsSupport API request.

type DisableVpcClassicLinkDnsSupportResponse added in v0.9.0

type DisableVpcClassicLinkDnsSupportResponse struct {
	*DisableVpcClassicLinkDnsSupportOutput
	// contains filtered or unexported fields
}

DisableVpcClassicLinkDnsSupportResponse is the response type for the DisableVpcClassicLinkDnsSupport API operation.

func (*DisableVpcClassicLinkDnsSupportResponse) SDKResponseMetdata added in v0.9.0

func (r *DisableVpcClassicLinkDnsSupportResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisableVpcClassicLinkDnsSupport request.

type DisableVpcClassicLinkInput

type DisableVpcClassicLinkInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `locationName:"vpcId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DisableVpcClassicLinkInput) String

String returns the string representation

func (*DisableVpcClassicLinkInput) Validate

func (s *DisableVpcClassicLinkInput) Validate() error

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

type DisableVpcClassicLinkOutput

type DisableVpcClassicLinkOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (DisableVpcClassicLinkOutput) String

String returns the string representation

type DisableVpcClassicLinkRequest

type DisableVpcClassicLinkRequest struct {
	*aws.Request
	Input *DisableVpcClassicLinkInput
	Copy  func(*DisableVpcClassicLinkInput) DisableVpcClassicLinkRequest
}

DisableVpcClassicLinkRequest is the request type for the DisableVpcClassicLink API operation.

func (DisableVpcClassicLinkRequest) Send

Send marshals and sends the DisableVpcClassicLink API request.

type DisableVpcClassicLinkResponse added in v0.9.0

type DisableVpcClassicLinkResponse struct {
	*DisableVpcClassicLinkOutput
	// contains filtered or unexported fields
}

DisableVpcClassicLinkResponse is the response type for the DisableVpcClassicLink API operation.

func (*DisableVpcClassicLinkResponse) SDKResponseMetdata added in v0.9.0

func (r *DisableVpcClassicLinkResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisableVpcClassicLink request.

type DisassociateAddressInput

type DisassociateAddressInput struct {

	// [EC2-VPC] The association ID. Required for EC2-VPC.
	AssociationId *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
	PublicIp *string `type:"string"`
	// contains filtered or unexported fields
}

func (DisassociateAddressInput) String

func (s DisassociateAddressInput) String() string

String returns the string representation

type DisassociateAddressOutput

type DisassociateAddressOutput struct {
	// contains filtered or unexported fields
}

func (DisassociateAddressOutput) String

func (s DisassociateAddressOutput) String() string

String returns the string representation

type DisassociateAddressRequest

type DisassociateAddressRequest struct {
	*aws.Request
	Input *DisassociateAddressInput
	Copy  func(*DisassociateAddressInput) DisassociateAddressRequest
}

DisassociateAddressRequest is the request type for the DisassociateAddress API operation.

func (DisassociateAddressRequest) Send

Send marshals and sends the DisassociateAddress API request.

type DisassociateAddressResponse added in v0.9.0

type DisassociateAddressResponse struct {
	*DisassociateAddressOutput
	// contains filtered or unexported fields
}

DisassociateAddressResponse is the response type for the DisassociateAddress API operation.

func (*DisassociateAddressResponse) SDKResponseMetdata added in v0.9.0

func (r *DisassociateAddressResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisassociateAddress request.

type DisassociateClientVpnTargetNetworkInput added in v0.7.0

type DisassociateClientVpnTargetNetworkInput struct {

	// The ID of the target network association.
	//
	// AssociationId is a required field
	AssociationId *string `type:"string" required:"true"`

	// The ID of the Client VPN endpoint from which to disassociate the target network.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (DisassociateClientVpnTargetNetworkInput) String added in v0.7.0

String returns the string representation

func (*DisassociateClientVpnTargetNetworkInput) Validate added in v0.7.0

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

type DisassociateClientVpnTargetNetworkOutput added in v0.7.0

type DisassociateClientVpnTargetNetworkOutput struct {

	// The ID of the target network association.
	AssociationId *string `locationName:"associationId" type:"string"`

	// The current state of the target network association.
	Status *AssociationStatus `locationName:"status" type:"structure"`
	// contains filtered or unexported fields
}

func (DisassociateClientVpnTargetNetworkOutput) String added in v0.7.0

String returns the string representation

type DisassociateClientVpnTargetNetworkRequest added in v0.7.0

DisassociateClientVpnTargetNetworkRequest is the request type for the DisassociateClientVpnTargetNetwork API operation.

func (DisassociateClientVpnTargetNetworkRequest) Send added in v0.7.0

Send marshals and sends the DisassociateClientVpnTargetNetwork API request.

type DisassociateClientVpnTargetNetworkResponse added in v0.9.0

type DisassociateClientVpnTargetNetworkResponse struct {
	*DisassociateClientVpnTargetNetworkOutput
	// contains filtered or unexported fields
}

DisassociateClientVpnTargetNetworkResponse is the response type for the DisassociateClientVpnTargetNetwork API operation.

func (*DisassociateClientVpnTargetNetworkResponse) SDKResponseMetdata added in v0.9.0

func (r *DisassociateClientVpnTargetNetworkResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisassociateClientVpnTargetNetwork request.

type DisassociateIamInstanceProfileInput

type DisassociateIamInstanceProfileInput struct {

	// The ID of the IAM instance profile association.
	//
	// AssociationId is a required field
	AssociationId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DisassociateIamInstanceProfileInput) String

String returns the string representation

func (*DisassociateIamInstanceProfileInput) Validate

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

type DisassociateIamInstanceProfileOutput

type DisassociateIamInstanceProfileOutput struct {

	// Information about the IAM instance profile association.
	IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
	// contains filtered or unexported fields
}

func (DisassociateIamInstanceProfileOutput) String

String returns the string representation

type DisassociateIamInstanceProfileRequest

type DisassociateIamInstanceProfileRequest struct {
	*aws.Request
	Input *DisassociateIamInstanceProfileInput
	Copy  func(*DisassociateIamInstanceProfileInput) DisassociateIamInstanceProfileRequest
}

DisassociateIamInstanceProfileRequest is the request type for the DisassociateIamInstanceProfile API operation.

func (DisassociateIamInstanceProfileRequest) Send

Send marshals and sends the DisassociateIamInstanceProfile API request.

type DisassociateIamInstanceProfileResponse added in v0.9.0

type DisassociateIamInstanceProfileResponse struct {
	*DisassociateIamInstanceProfileOutput
	// contains filtered or unexported fields
}

DisassociateIamInstanceProfileResponse is the response type for the DisassociateIamInstanceProfile API operation.

func (*DisassociateIamInstanceProfileResponse) SDKResponseMetdata added in v0.9.0

func (r *DisassociateIamInstanceProfileResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisassociateIamInstanceProfile request.

type DisassociateRouteTableInput

type DisassociateRouteTableInput struct {

	// The association ID representing the current association between the route
	// table and subnet or gateway.
	//
	// AssociationId is a required field
	AssociationId *string `locationName:"associationId" type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`
	// contains filtered or unexported fields
}

func (DisassociateRouteTableInput) String

String returns the string representation

func (*DisassociateRouteTableInput) Validate

func (s *DisassociateRouteTableInput) Validate() error

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

type DisassociateRouteTableOutput

type DisassociateRouteTableOutput struct {
	// contains filtered or unexported fields
}

func (DisassociateRouteTableOutput) String

String returns the string representation

type DisassociateRouteTableRequest

type DisassociateRouteTableRequest struct {
	*aws.Request
	Input *DisassociateRouteTableInput
	Copy  func(*DisassociateRouteTableInput) DisassociateRouteTableRequest
}

DisassociateRouteTableRequest is the request type for the DisassociateRouteTable API operation.

func (DisassociateRouteTableRequest) Send

Send marshals and sends the DisassociateRouteTable API request.

type DisassociateRouteTableResponse added in v0.9.0

type DisassociateRouteTableResponse struct {
	*DisassociateRouteTableOutput
	// contains filtered or unexported fields
}

DisassociateRouteTableResponse is the response type for the DisassociateRouteTable API operation.

func (*DisassociateRouteTableResponse) SDKResponseMetdata added in v0.9.0

func (r *DisassociateRouteTableResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisassociateRouteTable request.

type DisassociateSubnetCidrBlockInput

type DisassociateSubnetCidrBlockInput struct {

	// The association ID for the CIDR block.
	//
	// AssociationId is a required field
	AssociationId *string `locationName:"associationId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DisassociateSubnetCidrBlockInput) String

String returns the string representation

func (*DisassociateSubnetCidrBlockInput) Validate

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

type DisassociateSubnetCidrBlockOutput

type DisassociateSubnetCidrBlockOutput struct {

	// Information about the IPv6 CIDR block association.
	Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`

	// The ID of the subnet.
	SubnetId *string `locationName:"subnetId" type:"string"`
	// contains filtered or unexported fields
}

func (DisassociateSubnetCidrBlockOutput) String

String returns the string representation

type DisassociateSubnetCidrBlockRequest

type DisassociateSubnetCidrBlockRequest struct {
	*aws.Request
	Input *DisassociateSubnetCidrBlockInput
	Copy  func(*DisassociateSubnetCidrBlockInput) DisassociateSubnetCidrBlockRequest
}

DisassociateSubnetCidrBlockRequest is the request type for the DisassociateSubnetCidrBlock API operation.

func (DisassociateSubnetCidrBlockRequest) Send

Send marshals and sends the DisassociateSubnetCidrBlock API request.

type DisassociateSubnetCidrBlockResponse added in v0.9.0

type DisassociateSubnetCidrBlockResponse struct {
	*DisassociateSubnetCidrBlockOutput
	// contains filtered or unexported fields
}

DisassociateSubnetCidrBlockResponse is the response type for the DisassociateSubnetCidrBlock API operation.

func (*DisassociateSubnetCidrBlockResponse) SDKResponseMetdata added in v0.9.0

func (r *DisassociateSubnetCidrBlockResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisassociateSubnetCidrBlock request.

type DisassociateTransitGatewayMulticastDomainInput added in v0.18.0

type DisassociateTransitGatewayMulticastDomainInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of the subnets;
	SubnetIds []string `locationNameList:"item" type:"list"`

	// The ID of the attachment.
	TransitGatewayAttachmentId *string `type:"string"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DisassociateTransitGatewayMulticastDomainInput) String added in v0.18.0

String returns the string representation

type DisassociateTransitGatewayMulticastDomainOutput added in v0.18.0

type DisassociateTransitGatewayMulticastDomainOutput struct {

	// Information about the association.
	Associations *TransitGatewayMulticastDomainAssociations `locationName:"associations" type:"structure"`
	// contains filtered or unexported fields
}

func (DisassociateTransitGatewayMulticastDomainOutput) String added in v0.18.0

String returns the string representation

type DisassociateTransitGatewayMulticastDomainRequest added in v0.18.0

DisassociateTransitGatewayMulticastDomainRequest is the request type for the DisassociateTransitGatewayMulticastDomain API operation.

func (DisassociateTransitGatewayMulticastDomainRequest) Send added in v0.18.0

Send marshals and sends the DisassociateTransitGatewayMulticastDomain API request.

type DisassociateTransitGatewayMulticastDomainResponse added in v0.18.0

type DisassociateTransitGatewayMulticastDomainResponse struct {
	*DisassociateTransitGatewayMulticastDomainOutput
	// contains filtered or unexported fields
}

DisassociateTransitGatewayMulticastDomainResponse is the response type for the DisassociateTransitGatewayMulticastDomain API operation.

func (*DisassociateTransitGatewayMulticastDomainResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the DisassociateTransitGatewayMulticastDomain request.

type DisassociateTransitGatewayRouteTableInput added in v0.6.0

type DisassociateTransitGatewayRouteTableInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`

	// The ID of the transit gateway route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DisassociateTransitGatewayRouteTableInput) String added in v0.6.0

String returns the string representation

func (*DisassociateTransitGatewayRouteTableInput) Validate added in v0.6.0

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

type DisassociateTransitGatewayRouteTableOutput added in v0.6.0

type DisassociateTransitGatewayRouteTableOutput struct {

	// Information about the association.
	Association *TransitGatewayAssociation `locationName:"association" type:"structure"`
	// contains filtered or unexported fields
}

func (DisassociateTransitGatewayRouteTableOutput) String added in v0.6.0

String returns the string representation

type DisassociateTransitGatewayRouteTableRequest added in v0.6.0

DisassociateTransitGatewayRouteTableRequest is the request type for the DisassociateTransitGatewayRouteTable API operation.

func (DisassociateTransitGatewayRouteTableRequest) Send added in v0.6.0

Send marshals and sends the DisassociateTransitGatewayRouteTable API request.

type DisassociateTransitGatewayRouteTableResponse added in v0.9.0

type DisassociateTransitGatewayRouteTableResponse struct {
	*DisassociateTransitGatewayRouteTableOutput
	// contains filtered or unexported fields
}

DisassociateTransitGatewayRouteTableResponse is the response type for the DisassociateTransitGatewayRouteTable API operation.

func (*DisassociateTransitGatewayRouteTableResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the DisassociateTransitGatewayRouteTable request.

type DisassociateVpcCidrBlockInput

type DisassociateVpcCidrBlockInput struct {

	// The association ID for the CIDR block.
	//
	// AssociationId is a required field
	AssociationId *string `locationName:"associationId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DisassociateVpcCidrBlockInput) String

String returns the string representation

func (*DisassociateVpcCidrBlockInput) Validate

func (s *DisassociateVpcCidrBlockInput) Validate() error

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

type DisassociateVpcCidrBlockOutput

type DisassociateVpcCidrBlockOutput struct {

	// Information about the IPv4 CIDR block association.
	CidrBlockAssociation *VpcCidrBlockAssociation `locationName:"cidrBlockAssociation" type:"structure"`

	// Information about the IPv6 CIDR block association.
	Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

func (DisassociateVpcCidrBlockOutput) String

String returns the string representation

type DisassociateVpcCidrBlockRequest

type DisassociateVpcCidrBlockRequest struct {
	*aws.Request
	Input *DisassociateVpcCidrBlockInput
	Copy  func(*DisassociateVpcCidrBlockInput) DisassociateVpcCidrBlockRequest
}

DisassociateVpcCidrBlockRequest is the request type for the DisassociateVpcCidrBlock API operation.

func (DisassociateVpcCidrBlockRequest) Send

Send marshals and sends the DisassociateVpcCidrBlock API request.

type DisassociateVpcCidrBlockResponse added in v0.9.0

type DisassociateVpcCidrBlockResponse struct {
	*DisassociateVpcCidrBlockOutput
	// contains filtered or unexported fields
}

DisassociateVpcCidrBlockResponse is the response type for the DisassociateVpcCidrBlock API operation.

func (*DisassociateVpcCidrBlockResponse) SDKResponseMetdata added in v0.9.0

func (r *DisassociateVpcCidrBlockResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisassociateVpcCidrBlock request.

type DiskImage

type DiskImage struct {

	// A description of the disk image.
	Description *string `type:"string"`

	// Information about the disk image.
	Image *DiskImageDetail `type:"structure"`

	// Information about the volume.
	Volume *VolumeDetail `type:"structure"`
	// contains filtered or unexported fields
}

Describes a disk image.

func (DiskImage) String

func (s DiskImage) String() string

String returns the string representation

func (*DiskImage) Validate

func (s *DiskImage) Validate() error

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

type DiskImageDescription

type DiskImageDescription struct {

	// The checksum computed for the disk image.
	Checksum *string `locationName:"checksum" type:"string"`

	// The disk image format.
	Format DiskImageFormat `locationName:"format" type:"string" enum:"true"`

	// A presigned URL for the import manifest stored in Amazon S3. For information
	// about creating a presigned URL for an Amazon S3 object, read the "Query String
	// Request Authentication Alternative" section of the Authenticating REST Requests
	// (https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
	// topic in the Amazon Simple Storage Service Developer Guide.
	//
	// For information about the import manifest referenced by this API action,
	// see VM Import Manifest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
	ImportManifestUrl *string `locationName:"importManifestUrl" type:"string"`

	// The size of the disk image, in GiB.
	Size *int64 `locationName:"size" type:"long"`
	// contains filtered or unexported fields
}

Describes a disk image.

func (DiskImageDescription) String

func (s DiskImageDescription) String() string

String returns the string representation

type DiskImageDetail

type DiskImageDetail struct {

	// The size of the disk image, in GiB.
	//
	// Bytes is a required field
	Bytes *int64 `locationName:"bytes" type:"long" required:"true"`

	// The disk image format.
	//
	// Format is a required field
	Format DiskImageFormat `locationName:"format" type:"string" required:"true" enum:"true"`

	// A presigned URL for the import manifest stored in Amazon S3 and presented
	// here as an Amazon S3 presigned URL. For information about creating a presigned
	// URL for an Amazon S3 object, read the "Query String Request Authentication
	// Alternative" section of the Authenticating REST Requests (https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
	// topic in the Amazon Simple Storage Service Developer Guide.
	//
	// For information about the import manifest referenced by this API action,
	// see VM Import Manifest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
	//
	// ImportManifestUrl is a required field
	ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Describes a disk image.

func (DiskImageDetail) String

func (s DiskImageDetail) String() string

String returns the string representation

func (*DiskImageDetail) Validate

func (s *DiskImageDetail) Validate() error

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

type DiskImageFormat

type DiskImageFormat string
const (
	DiskImageFormatVmdk DiskImageFormat = "VMDK"
	DiskImageFormatRaw  DiskImageFormat = "RAW"
	DiskImageFormatVhd  DiskImageFormat = "VHD"
)

Enum values for DiskImageFormat

func (DiskImageFormat) MarshalValue added in v0.3.0

func (enum DiskImageFormat) MarshalValue() (string, error)

func (DiskImageFormat) MarshalValueBuf added in v0.3.0

func (enum DiskImageFormat) MarshalValueBuf(b []byte) ([]byte, error)

type DiskImageVolumeDescription

type DiskImageVolumeDescription struct {

	// The volume identifier.
	Id *string `locationName:"id" type:"string"`

	// The size of the volume, in GiB.
	Size *int64 `locationName:"size" type:"long"`
	// contains filtered or unexported fields
}

Describes a disk image volume.

func (DiskImageVolumeDescription) String

String returns the string representation

type DiskInfo added in v0.18.0

type DiskInfo struct {

	// The number of disks with this configuration.
	Count *int64 `locationName:"count" type:"integer"`

	// The size of the disk in GB.
	SizeInGB *int64 `locationName:"sizeInGB" type:"long"`

	// The type of disk.
	Type DiskType `locationName:"type" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the disk.

func (DiskInfo) String added in v0.18.0

func (s DiskInfo) String() string

String returns the string representation

type DiskType added in v0.18.0

type DiskType string
const (
	DiskTypeHdd DiskType = "hdd"
	DiskTypeSsd DiskType = "ssd"
)

Enum values for DiskType

func (DiskType) MarshalValue added in v0.18.0

func (enum DiskType) MarshalValue() (string, error)

func (DiskType) MarshalValueBuf added in v0.18.0

func (enum DiskType) MarshalValueBuf(b []byte) ([]byte, error)

type DnsEntry added in v0.2.0

type DnsEntry struct {

	// The DNS name.
	DnsName *string `locationName:"dnsName" type:"string"`

	// The ID of the private hosted zone.
	HostedZoneId *string `locationName:"hostedZoneId" type:"string"`
	// contains filtered or unexported fields
}

Describes a DNS entry.

func (DnsEntry) String added in v0.2.0

func (s DnsEntry) String() string

String returns the string representation

type DnsNameState added in v0.19.0

type DnsNameState string
const (
	DnsNameStatePendingVerification DnsNameState = "pendingVerification"
	DnsNameStateVerified            DnsNameState = "verified"
	DnsNameStateFailed              DnsNameState = "failed"
)

Enum values for DnsNameState

func (DnsNameState) MarshalValue added in v0.19.0

func (enum DnsNameState) MarshalValue() (string, error)

func (DnsNameState) MarshalValueBuf added in v0.19.0

func (enum DnsNameState) MarshalValueBuf(b []byte) ([]byte, error)

type DnsServersOptionsModifyStructure added in v0.7.0

type DnsServersOptionsModifyStructure struct {

	// The IPv4 address range, in CIDR notation, of the DNS servers to be used.
	// You can specify up to two DNS servers. Ensure that the DNS servers can be
	// reached by the clients. The specified values overwrite the existing values.
	CustomDnsServers []string `locationNameList:"item" type:"list"`

	// Indicates whether DNS servers should be used. Specify False to delete the
	// existing DNS servers.
	Enabled *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Information about the DNS server to be used.

func (DnsServersOptionsModifyStructure) String added in v0.7.0

String returns the string representation

type DnsSupportValue added in v0.6.0

type DnsSupportValue string
const (
	DnsSupportValueEnable  DnsSupportValue = "enable"
	DnsSupportValueDisable DnsSupportValue = "disable"
)

Enum values for DnsSupportValue

func (DnsSupportValue) MarshalValue added in v0.6.0

func (enum DnsSupportValue) MarshalValue() (string, error)

func (DnsSupportValue) MarshalValueBuf added in v0.6.0

func (enum DnsSupportValue) MarshalValueBuf(b []byte) ([]byte, error)

type DomainType

type DomainType string
const (
	DomainTypeVpc      DomainType = "vpc"
	DomainTypeStandard DomainType = "standard"
)

Enum values for DomainType

func (DomainType) MarshalValue added in v0.3.0

func (enum DomainType) MarshalValue() (string, error)

func (DomainType) MarshalValueBuf added in v0.3.0

func (enum DomainType) MarshalValueBuf(b []byte) ([]byte, error)

type EbsBlockDevice

type EbsBlockDevice struct {

	// Indicates whether the EBS volume is deleted on instance termination. For
	// more information, see Preserving Amazon EBS volumes on instance termination
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#preserving-volumes-on-termination)
	// in the Amazon Elastic Compute Cloud User Guide.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`

	// Indicates whether the encryption state of an EBS volume is changed while
	// being restored from a backing snapshot. The effect of setting the encryption
	// state to true depends on the volume origin (new or from a snapshot), starting
	// encryption state, ownership, and whether encryption by default is enabled.
	// For more information, see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-parameters)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// In no case can you remove encryption from an encrypted volume.
	//
	// Encrypted volumes can only be attached to instances that support Amazon EBS
	// encryption. For more information, see Supported instance types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances).
	//
	// This parameter is not returned by .
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// The number of I/O operations per second (IOPS) that the volume supports.
	// For io1 volumes, this represents the number of IOPS that are provisioned
	// for the volume. For gp2 volumes, this represents the baseline performance
	// of the volume and the rate at which the volume accumulates I/O credits for
	// bursting. For more information, see Amazon EBS volume types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// Constraints: Range is 100-16,000 IOPS for gp2 volumes and 100 to 64,000IOPS
	// for io1 volumes in most Regions. Maximum io1 IOPS of 64,000 is guaranteed
	// only on Nitro-based instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances).
	// Other instance families guarantee performance up to 32,000 IOPS. For more
	// information, see Amazon EBS Volume Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// Condition: This parameter is required for requests to create io1 volumes;
	// it is not used in requests to create gp2, st1, sc1, or standard volumes.
	Iops *int64 `locationName:"iops" type:"integer"`

	// Identifier (key ID, key alias, ID ARN, or alias ARN) for a customer managed
	// CMK under which the EBS volume is encrypted.
	//
	// This parameter is only supported on BlockDeviceMapping objects called by
	// RunInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html),
	// RequestSpotFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html),
	// and RequestSpotInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html).
	KmsKeyId *string `type:"string"`

	// The ID of the snapshot.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// The size of the volume, in GiB.
	//
	// Default: If you're creating the volume from a snapshot and don't specify
	// a volume size, the default is the snapshot size.
	//
	// Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned
	// IOPS SSD (io1), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for
	// Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify
	// a snapshot, the volume size must be equal to or larger than the snapshot
	// size.
	VolumeSize *int64 `locationName:"volumeSize" type:"integer"`

	// The volume type. If you set the type to io1, you must also specify the Iops
	// parameter. If you set the type to gp2, st1, sc1, or standard, you must omit
	// the Iops parameter.
	//
	// Default: gp2
	VolumeType VolumeType `locationName:"volumeType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a block device for an EBS volume.

func (EbsBlockDevice) String

func (s EbsBlockDevice) String() string

String returns the string representation

type EbsEncryptionSupport added in v0.18.0

type EbsEncryptionSupport string
const (
	EbsEncryptionSupportUnsupported EbsEncryptionSupport = "unsupported"
	EbsEncryptionSupportSupported   EbsEncryptionSupport = "supported"
)

Enum values for EbsEncryptionSupport

func (EbsEncryptionSupport) MarshalValue added in v0.18.0

func (enum EbsEncryptionSupport) MarshalValue() (string, error)

func (EbsEncryptionSupport) MarshalValueBuf added in v0.18.0

func (enum EbsEncryptionSupport) MarshalValueBuf(b []byte) ([]byte, error)

type EbsInfo added in v0.18.0

type EbsInfo struct {

	// Describes the optimized EBS performance for the instance type.
	EbsOptimizedInfo *EbsOptimizedInfo `locationName:"ebsOptimizedInfo" type:"structure"`

	// Indicates that the instance type is Amazon EBS-optimized. For more information,
	// see Amazon EBS-Optimized Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html)
	// in Amazon EC2 User Guide for Linux Instances.
	EbsOptimizedSupport EbsOptimizedSupport `locationName:"ebsOptimizedSupport" type:"string" enum:"true"`

	// Indicates whether Amazon EBS encryption is supported.
	EncryptionSupport EbsEncryptionSupport `locationName:"encryptionSupport" type:"string" enum:"true"`

	// Indicates whether non-volatile memory express (NVMe) is supported.
	NvmeSupport EbsNvmeSupport `locationName:"nvmeSupport" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the Amazon EBS features supported by the instance type.

func (EbsInfo) String added in v0.18.0

func (s EbsInfo) String() string

String returns the string representation

type EbsInstanceBlockDevice

type EbsInstanceBlockDevice struct {

	// The time stamp when the attachment initiated.
	AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`

	// Indicates whether the volume is deleted on instance termination.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`

	// The attachment state.
	Status AttachmentStatus `locationName:"status" type:"string" enum:"true"`

	// The ID of the EBS volume.
	VolumeId *string `locationName:"volumeId" type:"string"`
	// contains filtered or unexported fields
}

Describes a parameter used to set up an EBS volume in a block device mapping.

func (EbsInstanceBlockDevice) String

func (s EbsInstanceBlockDevice) String() string

String returns the string representation

type EbsInstanceBlockDeviceSpecification

type EbsInstanceBlockDeviceSpecification struct {

	// Indicates whether the volume is deleted on instance termination.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`

	// The ID of the EBS volume.
	VolumeId *string `locationName:"volumeId" type:"string"`
	// contains filtered or unexported fields
}

Describes information used to set up an EBS volume specified in a block device mapping.

func (EbsInstanceBlockDeviceSpecification) String

String returns the string representation

type EbsNvmeSupport added in v0.24.0

type EbsNvmeSupport string
const (
	EbsNvmeSupportUnsupported EbsNvmeSupport = "unsupported"
	EbsNvmeSupportSupported   EbsNvmeSupport = "supported"
	EbsNvmeSupportRequired    EbsNvmeSupport = "required"
)

Enum values for EbsNvmeSupport

func (EbsNvmeSupport) MarshalValue added in v0.24.0

func (enum EbsNvmeSupport) MarshalValue() (string, error)

func (EbsNvmeSupport) MarshalValueBuf added in v0.24.0

func (enum EbsNvmeSupport) MarshalValueBuf(b []byte) ([]byte, error)

type EbsOptimizedInfo added in v0.23.0

type EbsOptimizedInfo struct {

	// The baseline bandwidth performance for an EBS-optimized instance type, in
	// Mbps.
	BaselineBandwidthInMbps *int64 `locationName:"baselineBandwidthInMbps" type:"integer"`

	// The baseline input/output storage operations per seconds for an EBS-optimized
	// instance type.
	BaselineIops *int64 `locationName:"baselineIops" type:"integer"`

	// The baseline throughput performance for an EBS-optimized instance type, in
	// MBps.
	BaselineThroughputInMBps *float64 `locationName:"baselineThroughputInMBps" type:"double"`

	// The maximum bandwidth performance for an EBS-optimized instance type, in
	// Mbps.
	MaximumBandwidthInMbps *int64 `locationName:"maximumBandwidthInMbps" type:"integer"`

	// The maximum input/output storage operations per second for an EBS-optimized
	// instance type.
	MaximumIops *int64 `locationName:"maximumIops" type:"integer"`

	// The maximum throughput performance for an EBS-optimized instance type, in
	// MBps.
	MaximumThroughputInMBps *float64 `locationName:"maximumThroughputInMBps" type:"double"`
	// contains filtered or unexported fields
}

Describes the optimized EBS performance for supported instance types.

func (EbsOptimizedInfo) String added in v0.23.0

func (s EbsOptimizedInfo) String() string

String returns the string representation

type EbsOptimizedSupport added in v0.18.0

type EbsOptimizedSupport string
const (
	EbsOptimizedSupportUnsupported EbsOptimizedSupport = "unsupported"
	EbsOptimizedSupportSupported   EbsOptimizedSupport = "supported"
	EbsOptimizedSupportDefault     EbsOptimizedSupport = "default"
)

Enum values for EbsOptimizedSupport

func (EbsOptimizedSupport) MarshalValue added in v0.18.0

func (enum EbsOptimizedSupport) MarshalValue() (string, error)

func (EbsOptimizedSupport) MarshalValueBuf added in v0.18.0

func (enum EbsOptimizedSupport) MarshalValueBuf(b []byte) ([]byte, error)

type EgressOnlyInternetGateway

type EgressOnlyInternetGateway struct {

	// Information about the attachment of the egress-only internet gateway.
	Attachments []InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`

	// The ID of the egress-only internet gateway.
	EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`

	// The tags assigned to the egress-only internet gateway.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an egress-only internet gateway.

func (EgressOnlyInternetGateway) String

func (s EgressOnlyInternetGateway) String() string

String returns the string representation

type ElasticGpuAssociation

type ElasticGpuAssociation struct {

	// The ID of the association.
	ElasticGpuAssociationId *string `locationName:"elasticGpuAssociationId" type:"string"`

	// The state of the association between the instance and the Elastic Graphics
	// accelerator.
	ElasticGpuAssociationState *string `locationName:"elasticGpuAssociationState" type:"string"`

	// The time the Elastic Graphics accelerator was associated with the instance.
	ElasticGpuAssociationTime *string `locationName:"elasticGpuAssociationTime" type:"string"`

	// The ID of the Elastic Graphics accelerator.
	ElasticGpuId *string `locationName:"elasticGpuId" type:"string"`
	// contains filtered or unexported fields
}

Describes the association between an instance and an Elastic Graphics accelerator.

func (ElasticGpuAssociation) String

func (s ElasticGpuAssociation) String() string

String returns the string representation

type ElasticGpuHealth

type ElasticGpuHealth struct {

	// The health status.
	Status ElasticGpuStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the status of an Elastic Graphics accelerator.

func (ElasticGpuHealth) String

func (s ElasticGpuHealth) String() string

String returns the string representation

type ElasticGpuSpecification

type ElasticGpuSpecification struct {

	// The type of Elastic Graphics accelerator. For more information about the
	// values to specify for Type, see Elastic Graphics Basics (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics),
	// specifically the Elastic Graphics accelerator column, in the Amazon Elastic
	// Compute Cloud User Guide for Windows Instances.
	//
	// Type is a required field
	Type *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

A specification for an Elastic Graphics accelerator.

func (ElasticGpuSpecification) String

func (s ElasticGpuSpecification) String() string

String returns the string representation

func (*ElasticGpuSpecification) Validate

func (s *ElasticGpuSpecification) Validate() error

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

type ElasticGpuSpecificationResponse added in v0.2.0

type ElasticGpuSpecificationResponse struct {

	// The elastic GPU type.
	Type *string `locationName:"type" type:"string"`
	// contains filtered or unexported fields
}

Describes an elastic GPU.

func (ElasticGpuSpecificationResponse) String added in v0.2.0

String returns the string representation

type ElasticGpuState

type ElasticGpuState string
const (
	ElasticGpuStateAttached ElasticGpuState = "ATTACHED"
)

Enum values for ElasticGpuState

func (ElasticGpuState) MarshalValue added in v0.3.0

func (enum ElasticGpuState) MarshalValue() (string, error)

func (ElasticGpuState) MarshalValueBuf added in v0.3.0

func (enum ElasticGpuState) MarshalValueBuf(b []byte) ([]byte, error)

type ElasticGpuStatus

type ElasticGpuStatus string
const (
	ElasticGpuStatusOk       ElasticGpuStatus = "OK"
	ElasticGpuStatusImpaired ElasticGpuStatus = "IMPAIRED"
)

Enum values for ElasticGpuStatus

func (ElasticGpuStatus) MarshalValue added in v0.3.0

func (enum ElasticGpuStatus) MarshalValue() (string, error)

func (ElasticGpuStatus) MarshalValueBuf added in v0.3.0

func (enum ElasticGpuStatus) MarshalValueBuf(b []byte) ([]byte, error)

type ElasticGpus

type ElasticGpus struct {

	// The Availability Zone in the which the Elastic Graphics accelerator resides.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The status of the Elastic Graphics accelerator.
	ElasticGpuHealth *ElasticGpuHealth `locationName:"elasticGpuHealth" type:"structure"`

	// The ID of the Elastic Graphics accelerator.
	ElasticGpuId *string `locationName:"elasticGpuId" type:"string"`

	// The state of the Elastic Graphics accelerator.
	ElasticGpuState ElasticGpuState `locationName:"elasticGpuState" type:"string" enum:"true"`

	// The type of Elastic Graphics accelerator.
	ElasticGpuType *string `locationName:"elasticGpuType" type:"string"`

	// The ID of the instance to which the Elastic Graphics accelerator is attached.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The tags assigned to the Elastic Graphics accelerator.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an Elastic Graphics accelerator.

func (ElasticGpus) String

func (s ElasticGpus) String() string

String returns the string representation

type ElasticInferenceAccelerator added in v0.6.0

type ElasticInferenceAccelerator struct {

	// The number of elastic inference accelerators to attach to the instance.
	//
	// Default: 1
	Count *int64 `min:"1" type:"integer"`

	// The type of elastic inference accelerator. The possible values are eia1.medium,
	// eia1.large, eia1.xlarge, eia2.medium, eia2.large, and eia2.xlarge.
	//
	// Type is a required field
	Type *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Describes an elastic inference accelerator.

func (ElasticInferenceAccelerator) String added in v0.6.0

String returns the string representation

func (*ElasticInferenceAccelerator) Validate added in v0.6.0

func (s *ElasticInferenceAccelerator) Validate() error

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

type ElasticInferenceAcceleratorAssociation added in v0.6.0

type ElasticInferenceAcceleratorAssociation struct {

	// The Amazon Resource Name (ARN) of the elastic inference accelerator.
	ElasticInferenceAcceleratorArn *string `locationName:"elasticInferenceAcceleratorArn" type:"string"`

	// The ID of the association.
	ElasticInferenceAcceleratorAssociationId *string `locationName:"elasticInferenceAcceleratorAssociationId" type:"string"`

	// The state of the elastic inference accelerator.
	ElasticInferenceAcceleratorAssociationState *string `locationName:"elasticInferenceAcceleratorAssociationState" type:"string"`

	// The time at which the elastic inference accelerator is associated with an
	// instance.
	ElasticInferenceAcceleratorAssociationTime *time.Time `locationName:"elasticInferenceAcceleratorAssociationTime" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes the association between an instance and an elastic inference accelerator.

func (ElasticInferenceAcceleratorAssociation) String added in v0.6.0

String returns the string representation

type EnaSupport added in v0.18.0

type EnaSupport string
const (
	EnaSupportUnsupported EnaSupport = "unsupported"
	EnaSupportSupported   EnaSupport = "supported"
	EnaSupportRequired    EnaSupport = "required"
)

Enum values for EnaSupport

func (EnaSupport) MarshalValue added in v0.18.0

func (enum EnaSupport) MarshalValue() (string, error)

func (EnaSupport) MarshalValueBuf added in v0.18.0

func (enum EnaSupport) MarshalValueBuf(b []byte) ([]byte, error)

type EnableEbsEncryptionByDefaultInput added in v0.9.0

type EnableEbsEncryptionByDefaultInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (EnableEbsEncryptionByDefaultInput) String added in v0.9.0

String returns the string representation

type EnableEbsEncryptionByDefaultOutput added in v0.9.0

type EnableEbsEncryptionByDefaultOutput struct {

	// The updated status of encryption by default.
	EbsEncryptionByDefault *bool `locationName:"ebsEncryptionByDefault" type:"boolean"`
	// contains filtered or unexported fields
}

func (EnableEbsEncryptionByDefaultOutput) String added in v0.9.0

String returns the string representation

type EnableEbsEncryptionByDefaultRequest added in v0.9.0

type EnableEbsEncryptionByDefaultRequest struct {
	*aws.Request
	Input *EnableEbsEncryptionByDefaultInput
	Copy  func(*EnableEbsEncryptionByDefaultInput) EnableEbsEncryptionByDefaultRequest
}

EnableEbsEncryptionByDefaultRequest is the request type for the EnableEbsEncryptionByDefault API operation.

func (EnableEbsEncryptionByDefaultRequest) Send added in v0.9.0

Send marshals and sends the EnableEbsEncryptionByDefault API request.

type EnableEbsEncryptionByDefaultResponse added in v0.9.0

type EnableEbsEncryptionByDefaultResponse struct {
	*EnableEbsEncryptionByDefaultOutput
	// contains filtered or unexported fields
}

EnableEbsEncryptionByDefaultResponse is the response type for the EnableEbsEncryptionByDefault API operation.

func (*EnableEbsEncryptionByDefaultResponse) SDKResponseMetdata added in v0.9.0

func (r *EnableEbsEncryptionByDefaultResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the EnableEbsEncryptionByDefault request.

type EnableFastSnapshotRestoreErrorItem added in v0.17.0

type EnableFastSnapshotRestoreErrorItem struct {

	// The errors.
	FastSnapshotRestoreStateErrors []EnableFastSnapshotRestoreStateErrorItem `locationName:"fastSnapshotRestoreStateErrorSet" locationNameList:"item" type:"list"`

	// The ID of the snapshot.
	SnapshotId *string `locationName:"snapshotId" type:"string"`
	// contains filtered or unexported fields
}

Contains information about the errors that occurred when enabling fast snapshot restores.

func (EnableFastSnapshotRestoreErrorItem) String added in v0.17.0

String returns the string representation

type EnableFastSnapshotRestoreStateError added in v0.17.0

type EnableFastSnapshotRestoreStateError struct {

	// The error code.
	Code *string `locationName:"code" type:"string"`

	// The error message.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes an error that occurred when enabling fast snapshot restores.

func (EnableFastSnapshotRestoreStateError) String added in v0.17.0

String returns the string representation

type EnableFastSnapshotRestoreStateErrorItem added in v0.17.0

type EnableFastSnapshotRestoreStateErrorItem struct {

	// The Availability Zone.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The error.
	Error *EnableFastSnapshotRestoreStateError `locationName:"error" type:"structure"`
	// contains filtered or unexported fields
}

Contains information about an error that occurred when enabling fast snapshot restores.

func (EnableFastSnapshotRestoreStateErrorItem) String added in v0.17.0

String returns the string representation

type EnableFastSnapshotRestoreSuccessItem added in v0.17.0

type EnableFastSnapshotRestoreSuccessItem struct {

	// The Availability Zone.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The time at which fast snapshot restores entered the disabled state.
	DisabledTime *time.Time `locationName:"disabledTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the disabling state.
	DisablingTime *time.Time `locationName:"disablingTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the enabled state.
	EnabledTime *time.Time `locationName:"enabledTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the enabling state.
	EnablingTime *time.Time `locationName:"enablingTime" type:"timestamp"`

	// The time at which fast snapshot restores entered the optimizing state.
	OptimizingTime *time.Time `locationName:"optimizingTime" type:"timestamp"`

	// The AWS owner alias that enabled fast snapshot restores on the snapshot.
	// This is intended for future use.
	OwnerAlias *string `locationName:"ownerAlias" type:"string"`

	// The ID of the AWS account that enabled fast snapshot restores on the snapshot.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The ID of the snapshot.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// The state of fast snapshot restores.
	State FastSnapshotRestoreStateCode `locationName:"state" type:"string" enum:"true"`

	// The reason for the state transition. The possible values are as follows:
	//
	//    * Client.UserInitiated - The state successfully transitioned to enabling
	//    or disabling.
	//
	//    * Client.UserInitiated - Lifecycle state transition - The state successfully
	//    transitioned to optimizing, enabled, or disabled.
	StateTransitionReason *string `locationName:"stateTransitionReason" type:"string"`
	// contains filtered or unexported fields
}

Describes fast snapshot restores that were successfully enabled.

func (EnableFastSnapshotRestoreSuccessItem) String added in v0.17.0

String returns the string representation

type EnableFastSnapshotRestoresInput added in v0.17.0

type EnableFastSnapshotRestoresInput struct {

	// One or more Availability Zones. For example, us-east-2a.
	//
	// AvailabilityZones is a required field
	AvailabilityZones []string `locationName:"AvailabilityZone" locationNameList:"AvailabilityZone" type:"list" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You
	// can specify a snapshot that was shared with you from another AWS account.
	//
	// SourceSnapshotIds is a required field
	SourceSnapshotIds []string `locationName:"SourceSnapshotId" locationNameList:"SnapshotId" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (EnableFastSnapshotRestoresInput) String added in v0.17.0

String returns the string representation

func (*EnableFastSnapshotRestoresInput) Validate added in v0.17.0

func (s *EnableFastSnapshotRestoresInput) Validate() error

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

type EnableFastSnapshotRestoresOutput added in v0.17.0

type EnableFastSnapshotRestoresOutput struct {

	// Information about the snapshots for which fast snapshot restores were successfully
	// enabled.
	Successful []EnableFastSnapshotRestoreSuccessItem `locationName:"successful" locationNameList:"item" type:"list"`

	// Information about the snapshots for which fast snapshot restores could not
	// be enabled.
	Unsuccessful []EnableFastSnapshotRestoreErrorItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (EnableFastSnapshotRestoresOutput) String added in v0.17.0

String returns the string representation

type EnableFastSnapshotRestoresRequest added in v0.17.0

type EnableFastSnapshotRestoresRequest struct {
	*aws.Request
	Input *EnableFastSnapshotRestoresInput
	Copy  func(*EnableFastSnapshotRestoresInput) EnableFastSnapshotRestoresRequest
}

EnableFastSnapshotRestoresRequest is the request type for the EnableFastSnapshotRestores API operation.

func (EnableFastSnapshotRestoresRequest) Send added in v0.17.0

Send marshals and sends the EnableFastSnapshotRestores API request.

type EnableFastSnapshotRestoresResponse added in v0.17.0

type EnableFastSnapshotRestoresResponse struct {
	*EnableFastSnapshotRestoresOutput
	// contains filtered or unexported fields
}

EnableFastSnapshotRestoresResponse is the response type for the EnableFastSnapshotRestores API operation.

func (*EnableFastSnapshotRestoresResponse) SDKResponseMetdata added in v0.17.0

func (r *EnableFastSnapshotRestoresResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the EnableFastSnapshotRestores request.

type EnableTransitGatewayRouteTablePropagationInput added in v0.6.0

type EnableTransitGatewayRouteTablePropagationInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`

	// The ID of the propagation route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (EnableTransitGatewayRouteTablePropagationInput) String added in v0.6.0

String returns the string representation

func (*EnableTransitGatewayRouteTablePropagationInput) Validate added in v0.6.0

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

type EnableTransitGatewayRouteTablePropagationOutput added in v0.6.0

type EnableTransitGatewayRouteTablePropagationOutput struct {

	// Information about route propagation.
	Propagation *TransitGatewayPropagation `locationName:"propagation" type:"structure"`
	// contains filtered or unexported fields
}

func (EnableTransitGatewayRouteTablePropagationOutput) String added in v0.6.0

String returns the string representation

type EnableTransitGatewayRouteTablePropagationRequest added in v0.6.0

EnableTransitGatewayRouteTablePropagationRequest is the request type for the EnableTransitGatewayRouteTablePropagation API operation.

func (EnableTransitGatewayRouteTablePropagationRequest) Send added in v0.6.0

Send marshals and sends the EnableTransitGatewayRouteTablePropagation API request.

type EnableTransitGatewayRouteTablePropagationResponse added in v0.9.0

type EnableTransitGatewayRouteTablePropagationResponse struct {
	*EnableTransitGatewayRouteTablePropagationOutput
	// contains filtered or unexported fields
}

EnableTransitGatewayRouteTablePropagationResponse is the response type for the EnableTransitGatewayRouteTablePropagation API operation.

func (*EnableTransitGatewayRouteTablePropagationResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the EnableTransitGatewayRouteTablePropagation request.

type EnableVgwRoutePropagationInput

type EnableVgwRoutePropagationInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the virtual private gateway that is attached to a VPC. The virtual
	// private gateway must be attached to the same VPC that the routing tables
	// are associated with.
	//
	// GatewayId is a required field
	GatewayId *string `type:"string" required:"true"`

	// The ID of the route table. The routing table must be associated with the
	// same VPC that the virtual private gateway is attached to.
	//
	// RouteTableId is a required field
	RouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for EnableVgwRoutePropagation.

func (EnableVgwRoutePropagationInput) String

String returns the string representation

func (*EnableVgwRoutePropagationInput) Validate

func (s *EnableVgwRoutePropagationInput) Validate() error

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

type EnableVgwRoutePropagationOutput

type EnableVgwRoutePropagationOutput struct {
	// contains filtered or unexported fields
}

func (EnableVgwRoutePropagationOutput) String

String returns the string representation

type EnableVgwRoutePropagationRequest

type EnableVgwRoutePropagationRequest struct {
	*aws.Request
	Input *EnableVgwRoutePropagationInput
	Copy  func(*EnableVgwRoutePropagationInput) EnableVgwRoutePropagationRequest
}

EnableVgwRoutePropagationRequest is the request type for the EnableVgwRoutePropagation API operation.

func (EnableVgwRoutePropagationRequest) Send

Send marshals and sends the EnableVgwRoutePropagation API request.

type EnableVgwRoutePropagationResponse added in v0.9.0

type EnableVgwRoutePropagationResponse struct {
	*EnableVgwRoutePropagationOutput
	// contains filtered or unexported fields
}

EnableVgwRoutePropagationResponse is the response type for the EnableVgwRoutePropagation API operation.

func (*EnableVgwRoutePropagationResponse) SDKResponseMetdata added in v0.9.0

func (r *EnableVgwRoutePropagationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the EnableVgwRoutePropagation request.

type EnableVolumeIOInput

type EnableVolumeIOInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the volume.
	//
	// VolumeId is a required field
	VolumeId *string `locationName:"volumeId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (EnableVolumeIOInput) String

func (s EnableVolumeIOInput) String() string

String returns the string representation

func (*EnableVolumeIOInput) Validate

func (s *EnableVolumeIOInput) Validate() error

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

type EnableVolumeIOOutput

type EnableVolumeIOOutput struct {
	// contains filtered or unexported fields
}

func (EnableVolumeIOOutput) String

func (s EnableVolumeIOOutput) String() string

String returns the string representation

type EnableVolumeIORequest

type EnableVolumeIORequest struct {
	*aws.Request
	Input *EnableVolumeIOInput
	Copy  func(*EnableVolumeIOInput) EnableVolumeIORequest
}

EnableVolumeIORequest is the request type for the EnableVolumeIO API operation.

func (EnableVolumeIORequest) Send

Send marshals and sends the EnableVolumeIO API request.

type EnableVolumeIOResponse added in v0.9.0

type EnableVolumeIOResponse struct {
	*EnableVolumeIOOutput
	// contains filtered or unexported fields
}

EnableVolumeIOResponse is the response type for the EnableVolumeIO API operation.

func (*EnableVolumeIOResponse) SDKResponseMetdata added in v0.9.0

func (r *EnableVolumeIOResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the EnableVolumeIO request.

type EnableVpcClassicLinkDnsSupportInput

type EnableVpcClassicLinkDnsSupportInput struct {

	// The ID of the VPC.
	VpcId *string `type:"string"`
	// contains filtered or unexported fields
}

func (EnableVpcClassicLinkDnsSupportInput) String

String returns the string representation

type EnableVpcClassicLinkDnsSupportOutput

type EnableVpcClassicLinkDnsSupportOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (EnableVpcClassicLinkDnsSupportOutput) String

String returns the string representation

type EnableVpcClassicLinkDnsSupportRequest

type EnableVpcClassicLinkDnsSupportRequest struct {
	*aws.Request
	Input *EnableVpcClassicLinkDnsSupportInput
	Copy  func(*EnableVpcClassicLinkDnsSupportInput) EnableVpcClassicLinkDnsSupportRequest
}

EnableVpcClassicLinkDnsSupportRequest is the request type for the EnableVpcClassicLinkDnsSupport API operation.

func (EnableVpcClassicLinkDnsSupportRequest) Send

Send marshals and sends the EnableVpcClassicLinkDnsSupport API request.

type EnableVpcClassicLinkDnsSupportResponse added in v0.9.0

type EnableVpcClassicLinkDnsSupportResponse struct {
	*EnableVpcClassicLinkDnsSupportOutput
	// contains filtered or unexported fields
}

EnableVpcClassicLinkDnsSupportResponse is the response type for the EnableVpcClassicLinkDnsSupport API operation.

func (*EnableVpcClassicLinkDnsSupportResponse) SDKResponseMetdata added in v0.9.0

func (r *EnableVpcClassicLinkDnsSupportResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the EnableVpcClassicLinkDnsSupport request.

type EnableVpcClassicLinkInput

type EnableVpcClassicLinkInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `locationName:"vpcId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (EnableVpcClassicLinkInput) String

func (s EnableVpcClassicLinkInput) String() string

String returns the string representation

func (*EnableVpcClassicLinkInput) Validate

func (s *EnableVpcClassicLinkInput) Validate() error

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

type EnableVpcClassicLinkOutput

type EnableVpcClassicLinkOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (EnableVpcClassicLinkOutput) String

String returns the string representation

type EnableVpcClassicLinkRequest

type EnableVpcClassicLinkRequest struct {
	*aws.Request
	Input *EnableVpcClassicLinkInput
	Copy  func(*EnableVpcClassicLinkInput) EnableVpcClassicLinkRequest
}

EnableVpcClassicLinkRequest is the request type for the EnableVpcClassicLink API operation.

func (EnableVpcClassicLinkRequest) Send

Send marshals and sends the EnableVpcClassicLink API request.

type EnableVpcClassicLinkResponse added in v0.9.0

type EnableVpcClassicLinkResponse struct {
	*EnableVpcClassicLinkOutput
	// contains filtered or unexported fields
}

EnableVpcClassicLinkResponse is the response type for the EnableVpcClassicLink API operation.

func (*EnableVpcClassicLinkResponse) SDKResponseMetdata added in v0.9.0

func (r *EnableVpcClassicLinkResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the EnableVpcClassicLink request.

type EndDateType added in v0.6.0

type EndDateType string
const (
	EndDateTypeUnlimited EndDateType = "unlimited"
	EndDateTypeLimited   EndDateType = "limited"
)

Enum values for EndDateType

func (EndDateType) MarshalValue added in v0.6.0

func (enum EndDateType) MarshalValue() (string, error)

func (EndDateType) MarshalValueBuf added in v0.6.0

func (enum EndDateType) MarshalValueBuf(b []byte) ([]byte, error)

type EventCode

type EventCode string
const (
	EventCodeInstanceReboot     EventCode = "instance-reboot"
	EventCodeSystemReboot       EventCode = "system-reboot"
	EventCodeSystemMaintenance  EventCode = "system-maintenance"
	EventCodeInstanceRetirement EventCode = "instance-retirement"
	EventCodeInstanceStop       EventCode = "instance-stop"
)

Enum values for EventCode

func (EventCode) MarshalValue added in v0.3.0

func (enum EventCode) MarshalValue() (string, error)

func (EventCode) MarshalValueBuf added in v0.3.0

func (enum EventCode) MarshalValueBuf(b []byte) ([]byte, error)

type EventInformation

type EventInformation struct {

	// The description of the event.
	EventDescription *string `locationName:"eventDescription" type:"string"`

	// The event.
	//
	// The following are the error events:
	//
	//    * iamFleetRoleInvalid - The EC2 Fleet or Spot Fleet did not have the required
	//    permissions either to launch or terminate an instance.
	//
	//    * spotFleetRequestConfigurationInvalid - The configuration is not valid.
	//    For more information, see the description of the event.
	//
	//    * spotInstanceCountLimitExceeded - You've reached the limit on the number
	//    of Spot Instances that you can launch.
	//
	// The following are the fleetRequestChange events:
	//
	//    * active - The EC2 Fleet or Spot Fleet request has been validated and
	//    Amazon EC2 is attempting to maintain the target number of running Spot
	//    Instances.
	//
	//    * cancelled - The EC2 Fleet or Spot Fleet request is canceled and has
	//    no running Spot Instances. The EC2 Fleet or Spot Fleet will be deleted
	//    two days after its instances were terminated.
	//
	//    * cancelled_running - The EC2 Fleet or Spot Fleet request is canceled
	//    and does not launch additional Spot Instances. Existing Spot Instances
	//    continue to run until they are interrupted or terminated.
	//
	//    * cancelled_terminating - The EC2 Fleet or Spot Fleet request is canceled
	//    and its Spot Instances are terminating.
	//
	//    * expired - The EC2 Fleet or Spot Fleet request has expired. A subsequent
	//    event indicates that the instances were terminated, if the request was
	//    created with TerminateInstancesWithExpiration set.
	//
	//    * modify_in_progress - A request to modify the EC2 Fleet or Spot Fleet
	//    request was accepted and is in progress.
	//
	//    * modify_successful - The EC2 Fleet or Spot Fleet request was modified.
	//
	//    * price_update - The price for a launch configuration was adjusted because
	//    it was too high. This change is permanent.
	//
	//    * submitted - The EC2 Fleet or Spot Fleet request is being evaluated and
	//    Amazon EC2 is preparing to launch the target number of Spot Instances.
	//
	// The following are the instanceChange events:
	//
	//    * launched - A request was fulfilled and a new instance was launched.
	//
	//    * terminated - An instance was terminated by the user.
	//
	// The following are the Information events:
	//
	//    * launchSpecTemporarilyBlacklisted - The configuration is not valid and
	//    several attempts to launch instances have failed. For more information,
	//    see the description of the event.
	//
	//    * launchSpecUnusable - The price in a launch specification is not valid
	//    because it is below the Spot price or the Spot price is above the On-Demand
	//    price.
	//
	//    * fleetProgressHalted - The price in every launch specification is not
	//    valid. A launch specification might become valid if the Spot price changes.
	EventSubType *string `locationName:"eventSubType" type:"string"`

	// The ID of the instance. This information is available only for instanceChange
	// events.
	InstanceId *string `locationName:"instanceId" type:"string"`
	// contains filtered or unexported fields
}

Describes an EC2 Fleet or Spot Fleet event.

func (EventInformation) String

func (s EventInformation) String() string

String returns the string representation

type EventType

type EventType string
const (
	EventTypeInstanceChange     EventType = "instanceChange"
	EventTypeFleetRequestChange EventType = "fleetRequestChange"
	EventTypeError              EventType = "error"
	EventTypeInformation        EventType = "information"
)

Enum values for EventType

func (EventType) MarshalValue added in v0.3.0

func (enum EventType) MarshalValue() (string, error)

func (EventType) MarshalValueBuf added in v0.3.0

func (enum EventType) MarshalValueBuf(b []byte) ([]byte, error)

type ExcessCapacityTerminationPolicy

type ExcessCapacityTerminationPolicy string
const (
	ExcessCapacityTerminationPolicyNoTermination ExcessCapacityTerminationPolicy = "noTermination"
	ExcessCapacityTerminationPolicyDefault       ExcessCapacityTerminationPolicy = "default"
)

Enum values for ExcessCapacityTerminationPolicy

func (ExcessCapacityTerminationPolicy) MarshalValue added in v0.3.0

func (enum ExcessCapacityTerminationPolicy) MarshalValue() (string, error)

func (ExcessCapacityTerminationPolicy) MarshalValueBuf added in v0.3.0

func (enum ExcessCapacityTerminationPolicy) MarshalValueBuf(b []byte) ([]byte, error)

type ExportClientVpnClientCertificateRevocationListInput added in v0.7.0

type ExportClientVpnClientCertificateRevocationListInput struct {

	// The ID of the Client VPN endpoint.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (ExportClientVpnClientCertificateRevocationListInput) String added in v0.7.0

String returns the string representation

func (*ExportClientVpnClientCertificateRevocationListInput) Validate added in v0.7.0

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

type ExportClientVpnClientCertificateRevocationListOutput added in v0.7.0

type ExportClientVpnClientCertificateRevocationListOutput struct {

	// Information about the client certificate revocation list.
	CertificateRevocationList *string `locationName:"certificateRevocationList" type:"string"`

	// The current state of the client certificate revocation list.
	Status *CertificateRevocationListStatus `locationName:"status" type:"structure"`
	// contains filtered or unexported fields
}

func (ExportClientVpnClientCertificateRevocationListOutput) String added in v0.7.0

String returns the string representation

type ExportClientVpnClientCertificateRevocationListRequest added in v0.7.0

ExportClientVpnClientCertificateRevocationListRequest is the request type for the ExportClientVpnClientCertificateRevocationList API operation.

func (ExportClientVpnClientCertificateRevocationListRequest) Send added in v0.7.0

Send marshals and sends the ExportClientVpnClientCertificateRevocationList API request.

type ExportClientVpnClientCertificateRevocationListResponse added in v0.9.0

type ExportClientVpnClientCertificateRevocationListResponse struct {
	*ExportClientVpnClientCertificateRevocationListOutput
	// contains filtered or unexported fields
}

ExportClientVpnClientCertificateRevocationListResponse is the response type for the ExportClientVpnClientCertificateRevocationList API operation.

func (*ExportClientVpnClientCertificateRevocationListResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the ExportClientVpnClientCertificateRevocationList request.

type ExportClientVpnClientConfigurationInput added in v0.7.0

type ExportClientVpnClientConfigurationInput struct {

	// The ID of the Client VPN endpoint.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (ExportClientVpnClientConfigurationInput) String added in v0.7.0

String returns the string representation

func (*ExportClientVpnClientConfigurationInput) Validate added in v0.7.0

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

type ExportClientVpnClientConfigurationOutput added in v0.7.0

type ExportClientVpnClientConfigurationOutput struct {

	// The contents of the Client VPN endpoint configuration file.
	ClientConfiguration *string `locationName:"clientConfiguration" type:"string"`
	// contains filtered or unexported fields
}

func (ExportClientVpnClientConfigurationOutput) String added in v0.7.0

String returns the string representation

type ExportClientVpnClientConfigurationRequest added in v0.7.0

ExportClientVpnClientConfigurationRequest is the request type for the ExportClientVpnClientConfiguration API operation.

func (ExportClientVpnClientConfigurationRequest) Send added in v0.7.0

Send marshals and sends the ExportClientVpnClientConfiguration API request.

type ExportClientVpnClientConfigurationResponse added in v0.9.0

type ExportClientVpnClientConfigurationResponse struct {
	*ExportClientVpnClientConfigurationOutput
	// contains filtered or unexported fields
}

ExportClientVpnClientConfigurationResponse is the response type for the ExportClientVpnClientConfiguration API operation.

func (*ExportClientVpnClientConfigurationResponse) SDKResponseMetdata added in v0.9.0

func (r *ExportClientVpnClientConfigurationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ExportClientVpnClientConfiguration request.

type ExportEnvironment

type ExportEnvironment string
const (
	ExportEnvironmentCitrix    ExportEnvironment = "citrix"
	ExportEnvironmentVmware    ExportEnvironment = "vmware"
	ExportEnvironmentMicrosoft ExportEnvironment = "microsoft"
)

Enum values for ExportEnvironment

func (ExportEnvironment) MarshalValue added in v0.3.0

func (enum ExportEnvironment) MarshalValue() (string, error)

func (ExportEnvironment) MarshalValueBuf added in v0.3.0

func (enum ExportEnvironment) MarshalValueBuf(b []byte) ([]byte, error)

type ExportImageInput added in v0.12.0

type ExportImageInput struct {

	// Token to enable idempotency for export image requests.
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// A description of the image being exported. The maximum length is 255 characters.
	Description *string `type:"string"`

	// The disk image format.
	//
	// DiskImageFormat is a required field
	DiskImageFormat DiskImageFormat `type:"string" required:"true" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the image.
	//
	// ImageId is a required field
	ImageId *string `type:"string" required:"true"`

	// The name of the role that grants VM Import/Export permission to export images
	// to your Amazon S3 bucket. If this parameter is not specified, the default
	// role is named 'vmimport'.
	RoleName *string `type:"string"`

	// Information about the destination Amazon S3 bucket. The bucket must exist
	// and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
	//
	// S3ExportLocation is a required field
	S3ExportLocation *ExportTaskS3LocationRequest `type:"structure" required:"true"`

	// The tags to apply to the image being exported.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (ExportImageInput) String added in v0.12.0

func (s ExportImageInput) String() string

String returns the string representation

func (*ExportImageInput) Validate added in v0.12.0

func (s *ExportImageInput) Validate() error

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

type ExportImageOutput added in v0.12.0

type ExportImageOutput struct {

	// A description of the image being exported.
	Description *string `locationName:"description" type:"string"`

	// The disk image format for the exported image.
	DiskImageFormat DiskImageFormat `locationName:"diskImageFormat" type:"string" enum:"true"`

	// The ID of the export image task.
	ExportImageTaskId *string `locationName:"exportImageTaskId" type:"string"`

	// The ID of the image.
	ImageId *string `locationName:"imageId" type:"string"`

	// The percent complete of the export image task.
	Progress *string `locationName:"progress" type:"string"`

	// The name of the role that grants VM Import/Export permission to export images
	// to your Amazon S3 bucket.
	RoleName *string `locationName:"roleName" type:"string"`

	// Information about the destination Amazon S3 bucket.
	S3ExportLocation *ExportTaskS3Location `locationName:"s3ExportLocation" type:"structure"`

	// The status of the export image task. The possible values are active, completed,
	// deleting, and deleted.
	Status *string `locationName:"status" type:"string"`

	// The status message for the export image task.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// Any tags assigned to the image being exported.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (ExportImageOutput) String added in v0.12.0

func (s ExportImageOutput) String() string

String returns the string representation

type ExportImageRequest added in v0.12.0

type ExportImageRequest struct {
	*aws.Request
	Input *ExportImageInput
	Copy  func(*ExportImageInput) ExportImageRequest
}

ExportImageRequest is the request type for the ExportImage API operation.

func (ExportImageRequest) Send added in v0.12.0

Send marshals and sends the ExportImage API request.

type ExportImageResponse added in v0.12.0

type ExportImageResponse struct {
	*ExportImageOutput
	// contains filtered or unexported fields
}

ExportImageResponse is the response type for the ExportImage API operation.

func (*ExportImageResponse) SDKResponseMetdata added in v0.12.0

func (r *ExportImageResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ExportImage request.

type ExportImageTask added in v0.12.0

type ExportImageTask struct {

	// A description of the image being exported.
	Description *string `locationName:"description" type:"string"`

	// The ID of the export image task.
	ExportImageTaskId *string `locationName:"exportImageTaskId" type:"string"`

	// The ID of the image.
	ImageId *string `locationName:"imageId" type:"string"`

	// The percent complete of the export image task.
	Progress *string `locationName:"progress" type:"string"`

	// Information about the destination Amazon S3 bucket.
	S3ExportLocation *ExportTaskS3Location `locationName:"s3ExportLocation" type:"structure"`

	// The status of the export image task. The possible values are active, completed,
	// deleting, and deleted.
	Status *string `locationName:"status" type:"string"`

	// The status message for the export image task.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// Any tags assigned to the image being exported.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an export image task.

func (ExportImageTask) String added in v0.12.0

func (s ExportImageTask) String() string

String returns the string representation

type ExportTask

type ExportTask struct {

	// A description of the resource being exported.
	Description *string `locationName:"description" type:"string"`

	// The ID of the export task.
	ExportTaskId *string `locationName:"exportTaskId" type:"string"`

	// Information about the export task.
	ExportToS3Task *ExportToS3Task `locationName:"exportToS3" type:"structure"`

	// Information about the instance to export.
	InstanceExportDetails *InstanceExportDetails `locationName:"instanceExport" type:"structure"`

	// The state of the export task.
	State ExportTaskState `locationName:"state" type:"string" enum:"true"`

	// The status message related to the export task.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// The tags for the export task.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an instance export task.

func (ExportTask) String

func (s ExportTask) String() string

String returns the string representation

type ExportTaskS3Location added in v0.12.0

type ExportTaskS3Location struct {

	// The destination Amazon S3 bucket.
	S3Bucket *string `locationName:"s3Bucket" type:"string"`

	// The prefix (logical hierarchy) in the bucket.
	S3Prefix *string `locationName:"s3Prefix" type:"string"`
	// contains filtered or unexported fields
}

Describes the destination for an export image task.

func (ExportTaskS3Location) String added in v0.12.0

func (s ExportTaskS3Location) String() string

String returns the string representation

type ExportTaskS3LocationRequest added in v0.12.0

type ExportTaskS3LocationRequest struct {

	// The destination Amazon S3 bucket.
	//
	// S3Bucket is a required field
	S3Bucket *string `type:"string" required:"true"`

	// The prefix (logical hierarchy) in the bucket.
	S3Prefix *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the destination for an export image task.

func (ExportTaskS3LocationRequest) String added in v0.12.0

String returns the string representation

func (*ExportTaskS3LocationRequest) Validate added in v0.12.0

func (s *ExportTaskS3LocationRequest) Validate() error

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

type ExportTaskState

type ExportTaskState string
const (
	ExportTaskStateActive     ExportTaskState = "active"
	ExportTaskStateCancelling ExportTaskState = "cancelling"
	ExportTaskStateCancelled  ExportTaskState = "cancelled"
	ExportTaskStateCompleted  ExportTaskState = "completed"
)

Enum values for ExportTaskState

func (ExportTaskState) MarshalValue added in v0.3.0

func (enum ExportTaskState) MarshalValue() (string, error)

func (ExportTaskState) MarshalValueBuf added in v0.3.0

func (enum ExportTaskState) MarshalValueBuf(b []byte) ([]byte, error)

type ExportToS3Task

type ExportToS3Task struct {

	// The container format used to combine disk images with metadata (such as OVF).
	// If absent, only the disk image is exported.
	ContainerFormat ContainerFormat `locationName:"containerFormat" type:"string" enum:"true"`

	// The format for the exported image.
	DiskImageFormat DiskImageFormat `locationName:"diskImageFormat" type:"string" enum:"true"`

	// The Amazon S3 bucket for the destination image. The destination bucket must
	// exist and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
	S3Bucket *string `locationName:"s3Bucket" type:"string"`

	// The encryption key for your S3 bucket.
	S3Key *string `locationName:"s3Key" type:"string"`
	// contains filtered or unexported fields
}

Describes the format and location for an instance export task.

func (ExportToS3Task) String

func (s ExportToS3Task) String() string

String returns the string representation

type ExportToS3TaskSpecification

type ExportToS3TaskSpecification struct {

	// The container format used to combine disk images with metadata (such as OVF).
	// If absent, only the disk image is exported.
	ContainerFormat ContainerFormat `locationName:"containerFormat" type:"string" enum:"true"`

	// The format for the exported image.
	DiskImageFormat DiskImageFormat `locationName:"diskImageFormat" type:"string" enum:"true"`

	// The Amazon S3 bucket for the destination image. The destination bucket must
	// exist and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
	S3Bucket *string `locationName:"s3Bucket" type:"string"`

	// The image is written to a single object in the Amazon S3 bucket at the S3
	// key s3prefix + exportTaskId + '.' + diskImageFormat.
	S3Prefix *string `locationName:"s3Prefix" type:"string"`
	// contains filtered or unexported fields
}

Describes an instance export task.

func (ExportToS3TaskSpecification) String

String returns the string representation

type ExportTransitGatewayRoutesInput added in v0.6.0

type ExportTransitGatewayRoutesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * attachment.transit-gateway-attachment-id - The id of the transit gateway
	//    attachment.
	//
	//    * attachment.resource-id - The resource id of the transit gateway attachment.
	//
	//    * route-search.exact-match - The exact match of the specified filter.
	//
	//    * route-search.longest-prefix-match - The longest prefix that matches
	//    the route.
	//
	//    * route-search.subnet-of-match - The routes with a subnet that match the
	//    specified CIDR filter.
	//
	//    * route-search.supernet-of-match - The routes with a CIDR that encompass
	//    the CIDR filter. For example, if you have 10.0.1.0/29 and 10.0.1.0/31
	//    routes in your route table and you specify supernet-of-match as 10.0.1.0/30,
	//    then the result returns 10.0.1.0/29.
	//
	//    * state - The state of the attachment (available | deleted | deleting
	//    | failed | modifying | pendingAcceptance | pending | rollingBack | rejected
	//    | rejecting).
	//
	//    * transit-gateway-route-destination-cidr-block - The CIDR range.
	//
	//    * type - The type of route (active | blackhole).
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The name of the S3 bucket.
	//
	// S3Bucket is a required field
	S3Bucket *string `type:"string" required:"true"`

	// The ID of the route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ExportTransitGatewayRoutesInput) String added in v0.6.0

String returns the string representation

func (*ExportTransitGatewayRoutesInput) Validate added in v0.6.0

func (s *ExportTransitGatewayRoutesInput) Validate() error

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

type ExportTransitGatewayRoutesOutput added in v0.6.0

type ExportTransitGatewayRoutesOutput struct {

	// The URL of the exported file in Amazon S3. For example, s3://bucket_name/VPCTransitGateway/TransitGatewayRouteTables/file_name.
	S3Location *string `locationName:"s3Location" type:"string"`
	// contains filtered or unexported fields
}

func (ExportTransitGatewayRoutesOutput) String added in v0.6.0

String returns the string representation

type ExportTransitGatewayRoutesRequest added in v0.6.0

type ExportTransitGatewayRoutesRequest struct {
	*aws.Request
	Input *ExportTransitGatewayRoutesInput
	Copy  func(*ExportTransitGatewayRoutesInput) ExportTransitGatewayRoutesRequest
}

ExportTransitGatewayRoutesRequest is the request type for the ExportTransitGatewayRoutes API operation.

func (ExportTransitGatewayRoutesRequest) Send added in v0.6.0

Send marshals and sends the ExportTransitGatewayRoutes API request.

type ExportTransitGatewayRoutesResponse added in v0.9.0

type ExportTransitGatewayRoutesResponse struct {
	*ExportTransitGatewayRoutesOutput
	// contains filtered or unexported fields
}

ExportTransitGatewayRoutesResponse is the response type for the ExportTransitGatewayRoutes API operation.

func (*ExportTransitGatewayRoutesResponse) SDKResponseMetdata added in v0.9.0

func (r *ExportTransitGatewayRoutesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ExportTransitGatewayRoutes request.

type FailedQueuedPurchaseDeletion added in v0.14.0

type FailedQueuedPurchaseDeletion struct {

	// The error.
	Error *DeleteQueuedReservedInstancesError `locationName:"error" type:"structure"`

	// The ID of the Reserved Instance.
	ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
	// contains filtered or unexported fields
}

Describes a Reserved Instance whose queued purchase was not deleted.

func (FailedQueuedPurchaseDeletion) String added in v0.14.0

String returns the string representation

type FastSnapshotRestoreStateCode added in v0.17.0

type FastSnapshotRestoreStateCode string
const (
	FastSnapshotRestoreStateCodeEnabling   FastSnapshotRestoreStateCode = "enabling"
	FastSnapshotRestoreStateCodeOptimizing FastSnapshotRestoreStateCode = "optimizing"
	FastSnapshotRestoreStateCodeEnabled    FastSnapshotRestoreStateCode = "enabled"
	FastSnapshotRestoreStateCodeDisabling  FastSnapshotRestoreStateCode = "disabling"
	FastSnapshotRestoreStateCodeDisabled   FastSnapshotRestoreStateCode = "disabled"
)

Enum values for FastSnapshotRestoreStateCode

func (FastSnapshotRestoreStateCode) MarshalValue added in v0.17.0

func (enum FastSnapshotRestoreStateCode) MarshalValue() (string, error)

func (FastSnapshotRestoreStateCode) MarshalValueBuf added in v0.17.0

func (enum FastSnapshotRestoreStateCode) MarshalValueBuf(b []byte) ([]byte, error)

type FederatedAuthentication added in v0.23.0

type FederatedAuthentication struct {

	// The Amazon Resource Name (ARN) of the IAM SAML identity provider.
	SamlProviderArn *string `locationName:"samlProviderArn" type:"string"`
	// contains filtered or unexported fields
}

Describes the IAM SAML identity provider used for federated authentication.

func (FederatedAuthentication) String added in v0.23.0

func (s FederatedAuthentication) String() string

String returns the string representation

type FederatedAuthenticationRequest added in v0.23.0

type FederatedAuthenticationRequest struct {

	// The Amazon Resource Name (ARN) of the IAM SAML identity provider.
	SAMLProviderArn *string `type:"string"`
	// contains filtered or unexported fields
}

The IAM SAML identity provider used for federated authentication.

func (FederatedAuthenticationRequest) String added in v0.23.0

String returns the string representation

type Filter

type Filter struct {

	// The name of the filter. Filter names are case-sensitive.
	Name *string `type:"string"`

	// The filter values. Filter values are case-sensitive.
	Values []string `locationName:"Value" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a describe operation are documented with the describe operation. For example:

  • DescribeAvailabilityZones

  • DescribeImages

  • DescribeInstances

  • DescribeKeyPairs

  • DescribeSecurityGroups

  • DescribeSnapshots

  • DescribeSubnets

  • DescribeTags

  • DescribeVolumes

  • DescribeVpcs

func (Filter) String

func (s Filter) String() string

String returns the string representation

type FleetActivityStatus added in v0.4.0

type FleetActivityStatus string
const (
	FleetActivityStatusError              FleetActivityStatus = "error"
	FleetActivityStatusPendingFulfillment FleetActivityStatus = "pending_fulfillment"
	FleetActivityStatusPendingTermination FleetActivityStatus = "pending_termination"
	FleetActivityStatusFulfilled          FleetActivityStatus = "fulfilled"
)

Enum values for FleetActivityStatus

func (FleetActivityStatus) MarshalValue added in v0.4.0

func (enum FleetActivityStatus) MarshalValue() (string, error)

func (FleetActivityStatus) MarshalValueBuf added in v0.4.0

func (enum FleetActivityStatus) MarshalValueBuf(b []byte) ([]byte, error)

type FleetCapacityReservationUsageStrategy added in v0.19.0

type FleetCapacityReservationUsageStrategy string
const (
	FleetCapacityReservationUsageStrategyUseCapacityReservationsFirst FleetCapacityReservationUsageStrategy = "use-capacity-reservations-first"
)

Enum values for FleetCapacityReservationUsageStrategy

func (FleetCapacityReservationUsageStrategy) MarshalValue added in v0.19.0

func (enum FleetCapacityReservationUsageStrategy) MarshalValue() (string, error)

func (FleetCapacityReservationUsageStrategy) MarshalValueBuf added in v0.19.0

func (enum FleetCapacityReservationUsageStrategy) MarshalValueBuf(b []byte) ([]byte, error)

type FleetData added in v0.4.0

type FleetData struct {

	// The progress of the EC2 Fleet. If there is an error, the status is error.
	// After all requests are placed, the status is pending_fulfillment. If the
	// size of the EC2 Fleet is equal to or greater than its target capacity, the
	// status is fulfilled. If the size of the EC2 Fleet is decreased, the status
	// is pending_termination while instances are terminating.
	ActivityStatus FleetActivityStatus `locationName:"activityStatus" type:"string" enum:"true"`

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	//
	// Constraints: Maximum 64 ASCII characters
	ClientToken *string `locationName:"clientToken" type:"string"`

	// The creation date and time of the EC2 Fleet.
	CreateTime *time.Time `locationName:"createTime" type:"timestamp"`

	// Information about the instances that could not be launched by the fleet.
	// Valid only when Type is set to instant.
	Errors []DescribeFleetError `locationName:"errorSet" locationNameList:"item" type:"list"`

	// Indicates whether running instances should be terminated if the target capacity
	// of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
	ExcessCapacityTerminationPolicy FleetExcessCapacityTerminationPolicy `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"true"`

	// The ID of the EC2 Fleet.
	FleetId *string `locationName:"fleetId" type:"string"`

	// The state of the EC2 Fleet.
	FleetState FleetStateCode `locationName:"fleetState" type:"string" enum:"true"`

	// The number of units fulfilled by this request compared to the set target
	// capacity.
	FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"`

	// The number of units fulfilled by this request compared to the set target
	// On-Demand capacity.
	FulfilledOnDemandCapacity *float64 `locationName:"fulfilledOnDemandCapacity" type:"double"`

	// Information about the instances that were launched by the fleet. Valid only
	// when Type is set to instant.
	Instances []DescribeFleetsInstances `locationName:"fleetInstanceSet" locationNameList:"item" type:"list"`

	// The launch template and overrides.
	LaunchTemplateConfigs []FleetLaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"`

	// The allocation strategy of On-Demand Instances in an EC2 Fleet.
	OnDemandOptions *OnDemandOptions `locationName:"onDemandOptions" type:"structure"`

	// Indicates whether EC2 Fleet should replace unhealthy instances.
	ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"`

	// The configuration of Spot Instances in an EC2 Fleet.
	SpotOptions *SpotOptions `locationName:"spotOptions" type:"structure"`

	// The tags for an EC2 Fleet resource.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The number of units to request. You can choose to set the target capacity
	// in terms of instances or a performance characteristic that is important to
	// your application workload, such as vCPUs, memory, or I/O. If the request
	// type is maintain, you can specify a target capacity of 0 and add capacity
	// later.
	TargetCapacitySpecification *TargetCapacitySpecification `locationName:"targetCapacitySpecification" type:"structure"`

	// Indicates whether running instances should be terminated when the EC2 Fleet
	// expires.
	TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"`

	// The type of request. Indicates whether the EC2 Fleet only requests the target
	// capacity, or also attempts to maintain it. If you request a certain target
	// capacity, EC2 Fleet only places the required requests; it does not attempt
	// to replenish instances if capacity is diminished, and it does not submit
	// requests in alternative capacity pools if capacity is unavailable. To maintain
	// a certain target capacity, EC2 Fleet places the required requests to meet
	// this target capacity. It also automatically replenishes any interrupted Spot
	// Instances. Default: maintain.
	Type FleetType `locationName:"type" type:"string" enum:"true"`

	// The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	// The default is to start fulfilling the request immediately.
	ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`

	// The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	// At this point, no new instance requests are placed or able to fulfill the
	// request. The default end date is 7 days from the current date.
	ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes an EC2 Fleet.

func (FleetData) String added in v0.4.0

func (s FleetData) String() string

String returns the string representation

type FleetEventType added in v0.4.0

type FleetEventType string
const (
	FleetEventTypeInstanceChange FleetEventType = "instance-change"
	FleetEventTypeFleetChange    FleetEventType = "fleet-change"
	FleetEventTypeServiceError   FleetEventType = "service-error"
)

Enum values for FleetEventType

func (FleetEventType) MarshalValue added in v0.4.0

func (enum FleetEventType) MarshalValue() (string, error)

func (FleetEventType) MarshalValueBuf added in v0.4.0

func (enum FleetEventType) MarshalValueBuf(b []byte) ([]byte, error)

type FleetExcessCapacityTerminationPolicy added in v0.4.0

type FleetExcessCapacityTerminationPolicy string
const (
	FleetExcessCapacityTerminationPolicyNoTermination FleetExcessCapacityTerminationPolicy = "no-termination"
	FleetExcessCapacityTerminationPolicyTermination   FleetExcessCapacityTerminationPolicy = "termination"
)

Enum values for FleetExcessCapacityTerminationPolicy

func (FleetExcessCapacityTerminationPolicy) MarshalValue added in v0.4.0

func (enum FleetExcessCapacityTerminationPolicy) MarshalValue() (string, error)

func (FleetExcessCapacityTerminationPolicy) MarshalValueBuf added in v0.4.0

func (enum FleetExcessCapacityTerminationPolicy) MarshalValueBuf(b []byte) ([]byte, error)

type FleetLaunchTemplateConfig added in v0.4.0

type FleetLaunchTemplateConfig struct {

	// The launch template.
	LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`

	// Any parameters that you specify override the same parameters in the launch
	// template.
	Overrides []FleetLaunchTemplateOverrides `locationName:"overrides" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a launch template and overrides.

func (FleetLaunchTemplateConfig) String added in v0.4.0

func (s FleetLaunchTemplateConfig) String() string

String returns the string representation

type FleetLaunchTemplateConfigRequest added in v0.4.0

type FleetLaunchTemplateConfigRequest struct {

	// The launch template to use. You must specify either the launch template ID
	// or launch template name in the request.
	LaunchTemplateSpecification *FleetLaunchTemplateSpecificationRequest `type:"structure"`

	// Any parameters that you specify override the same parameters in the launch
	// template.
	Overrides []FleetLaunchTemplateOverridesRequest `locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a launch template and overrides.

func (FleetLaunchTemplateConfigRequest) String added in v0.4.0

String returns the string representation

func (*FleetLaunchTemplateConfigRequest) Validate added in v0.4.0

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

type FleetLaunchTemplateOverrides added in v0.4.0

type FleetLaunchTemplateOverrides struct {

	// The Availability Zone in which to launch the instances.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The instance type.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The maximum price per unit hour that you are willing to pay for a Spot Instance.
	MaxPrice *string `locationName:"maxPrice" type:"string"`

	// The location where the instance launched, if applicable.
	Placement *PlacementResponse `locationName:"placement" type:"structure"`

	// The priority for the launch template override. If AllocationStrategy is set
	// to prioritized, EC2 Fleet uses priority to determine which launch template
	// override to use first in fulfilling On-Demand capacity. The highest priority
	// is launched first. Valid values are whole numbers starting at 0. The lower
	// the number, the higher the priority. If no number is set, the override has
	// the lowest priority.
	Priority *float64 `locationName:"priority" type:"double"`

	// The ID of the subnet in which to launch the instances.
	SubnetId *string `locationName:"subnetId" type:"string"`

	// The number of units provided by the specified instance type.
	WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
	// contains filtered or unexported fields
}

Describes overrides for a launch template.

func (FleetLaunchTemplateOverrides) String added in v0.4.0

String returns the string representation

type FleetLaunchTemplateOverridesRequest added in v0.4.0

type FleetLaunchTemplateOverridesRequest struct {

	// The Availability Zone in which to launch the instances.
	AvailabilityZone *string `type:"string"`

	// The instance type.
	InstanceType InstanceType `type:"string" enum:"true"`

	// The maximum price per unit hour that you are willing to pay for a Spot Instance.
	MaxPrice *string `type:"string"`

	// The location where the instance launched, if applicable.
	Placement *Placement `type:"structure"`

	// The priority for the launch template override. If AllocationStrategy is set
	// to prioritized, EC2 Fleet uses priority to determine which launch template
	// override to use first in fulfilling On-Demand capacity. The highest priority
	// is launched first. Valid values are whole numbers starting at 0. The lower
	// the number, the higher the priority. If no number is set, the launch template
	// override has the lowest priority.
	Priority *float64 `type:"double"`

	// The IDs of the subnets in which to launch the instances. Separate multiple
	// subnet IDs using commas (for example, subnet-1234abcdeexample1, subnet-0987cdef6example2).
	// A request of type instant can have only one subnet ID.
	SubnetId *string `type:"string"`

	// The number of units provided by the specified instance type.
	WeightedCapacity *float64 `type:"double"`
	// contains filtered or unexported fields
}

Describes overrides for a launch template.

func (FleetLaunchTemplateOverridesRequest) String added in v0.4.0

String returns the string representation

type FleetLaunchTemplateSpecification added in v0.2.0

type FleetLaunchTemplateSpecification struct {

	// The ID of the launch template. If you specify the template ID, you can't
	// specify the template name.
	LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`

	// The name of the launch template. If you specify the template name, you can't
	// specify the template ID.
	LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`

	// The launch template version number, $Latest, or $Default. You must specify
	// a value, otherwise the request fails.
	//
	// If the value is $Latest, Amazon EC2 uses the latest version of the launch
	// template.
	//
	// If the value is $Default, Amazon EC2 uses the default version of the launch
	// template.
	Version *string `locationName:"version" type:"string"`
	// contains filtered or unexported fields
}

Describes the Amazon EC2 launch template and the launch template version that can be used by a Spot Fleet request to configure Amazon EC2 instances. For information about launch templates, see Launching an instance from a launch template (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) in the Amazon EC2 User Guide for Linux Instances.

func (FleetLaunchTemplateSpecification) String added in v0.2.0

String returns the string representation

func (*FleetLaunchTemplateSpecification) Validate added in v0.2.0

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

type FleetLaunchTemplateSpecificationRequest added in v0.4.0

type FleetLaunchTemplateSpecificationRequest struct {

	// The ID of the launch template. If you specify the template ID, you can't
	// specify the template name.
	LaunchTemplateId *string `type:"string"`

	// The name of the launch template. If you specify the template name, you can't
	// specify the template ID.
	LaunchTemplateName *string `min:"3" type:"string"`

	// The launch template version number, $Latest, or $Default. You must specify
	// a value, otherwise the request fails.
	//
	// If the value is $Latest, Amazon EC2 uses the latest version of the launch
	// template.
	//
	// If the value is $Default, Amazon EC2 uses the default version of the launch
	// template.
	Version *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the Amazon EC2 launch template and the launch template version that can be used by an EC2 Fleet to configure Amazon EC2 instances. For information about launch templates, see Launching an instance from a launch template (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) in the Amazon Elastic Compute Cloud User Guide.

func (FleetLaunchTemplateSpecificationRequest) String added in v0.4.0

String returns the string representation

func (*FleetLaunchTemplateSpecificationRequest) Validate added in v0.4.0

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

type FleetOnDemandAllocationStrategy added in v0.5.0

type FleetOnDemandAllocationStrategy string
const (
	FleetOnDemandAllocationStrategyLowestPrice FleetOnDemandAllocationStrategy = "lowest-price"
	FleetOnDemandAllocationStrategyPrioritized FleetOnDemandAllocationStrategy = "prioritized"
)

Enum values for FleetOnDemandAllocationStrategy

func (FleetOnDemandAllocationStrategy) MarshalValue added in v0.5.0

func (enum FleetOnDemandAllocationStrategy) MarshalValue() (string, error)

func (FleetOnDemandAllocationStrategy) MarshalValueBuf added in v0.5.0

func (enum FleetOnDemandAllocationStrategy) MarshalValueBuf(b []byte) ([]byte, error)

type FleetStateCode added in v0.4.0

type FleetStateCode string
const (
	FleetStateCodeSubmitted          FleetStateCode = "submitted"
	FleetStateCodeActive             FleetStateCode = "active"
	FleetStateCodeDeleted            FleetStateCode = "deleted"
	FleetStateCodeFailed             FleetStateCode = "failed"
	FleetStateCodeDeletedRunning     FleetStateCode = "deleted_running"
	FleetStateCodeDeletedTerminating FleetStateCode = "deleted_terminating"
	FleetStateCodeModifying          FleetStateCode = "modifying"
)

Enum values for FleetStateCode

func (FleetStateCode) MarshalValue added in v0.4.0

func (enum FleetStateCode) MarshalValue() (string, error)

func (FleetStateCode) MarshalValueBuf added in v0.4.0

func (enum FleetStateCode) MarshalValueBuf(b []byte) ([]byte, error)

type FleetType

type FleetType string
const (
	FleetTypeRequest  FleetType = "request"
	FleetTypeMaintain FleetType = "maintain"
	FleetTypeInstant  FleetType = "instant"
)

Enum values for FleetType

func (FleetType) MarshalValue added in v0.3.0

func (enum FleetType) MarshalValue() (string, error)

func (FleetType) MarshalValueBuf added in v0.3.0

func (enum FleetType) MarshalValueBuf(b []byte) ([]byte, error)

type FlowLog

type FlowLog struct {

	// The date and time the flow log was created.
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`

	// Information about the error that occurred. Rate limited indicates that CloudWatch
	// Logs throttling has been applied for one or more network interfaces, or that
	// you've reached the limit on the number of log groups that you can create.
	// Access error indicates that the IAM role associated with the flow log does
	// not have sufficient permissions to publish to CloudWatch Logs. Unknown error
	// indicates an internal error.
	DeliverLogsErrorMessage *string `locationName:"deliverLogsErrorMessage" type:"string"`

	// The ARN of the IAM role that posts logs to CloudWatch Logs.
	DeliverLogsPermissionArn *string `locationName:"deliverLogsPermissionArn" type:"string"`

	// The status of the logs delivery (SUCCESS | FAILED).
	DeliverLogsStatus *string `locationName:"deliverLogsStatus" type:"string"`

	// The flow log ID.
	FlowLogId *string `locationName:"flowLogId" type:"string"`

	// The status of the flow log (ACTIVE).
	FlowLogStatus *string `locationName:"flowLogStatus" type:"string"`

	// Specifies the destination to which the flow log data is published. Flow log
	// data can be published to an CloudWatch Logs log group or an Amazon S3 bucket.
	// If the flow log publishes to CloudWatch Logs, this element indicates the
	// Amazon Resource Name (ARN) of the CloudWatch Logs log group to which the
	// data is published. If the flow log publishes to Amazon S3, this element indicates
	// the ARN of the Amazon S3 bucket to which the data is published.
	LogDestination *string `locationName:"logDestination" type:"string"`

	// Specifies the type of destination to which the flow log data is published.
	// Flow log data can be published to CloudWatch Logs or Amazon S3.
	LogDestinationType LogDestinationType `locationName:"logDestinationType" type:"string" enum:"true"`

	// The format of the flow log record.
	LogFormat *string `locationName:"logFormat" type:"string"`

	// The name of the flow log group.
	LogGroupName *string `locationName:"logGroupName" type:"string"`

	// The maximum interval of time, in seconds, during which a flow of packets
	// is captured and aggregated into a flow log record.
	//
	// When a network interface is attached to a Nitro-based instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances),
	// the aggregation interval is always 60 seconds (1 minute) or less, regardless
	// of the specified value.
	//
	// Valid Values: 60 | 600
	MaxAggregationInterval *int64 `locationName:"maxAggregationInterval" type:"integer"`

	// The ID of the resource on which the flow log was created.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The tags for the flow log.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The type of traffic captured for the flow log.
	TrafficType TrafficType `locationName:"trafficType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a flow log.

func (FlowLog) String

func (s FlowLog) String() string

String returns the string representation

type FlowLogsResourceType

type FlowLogsResourceType string
const (
	FlowLogsResourceTypeVpc              FlowLogsResourceType = "VPC"
	FlowLogsResourceTypeSubnet           FlowLogsResourceType = "Subnet"
	FlowLogsResourceTypeNetworkInterface FlowLogsResourceType = "NetworkInterface"
)

Enum values for FlowLogsResourceType

func (FlowLogsResourceType) MarshalValue added in v0.3.0

func (enum FlowLogsResourceType) MarshalValue() (string, error)

func (FlowLogsResourceType) MarshalValueBuf added in v0.3.0

func (enum FlowLogsResourceType) MarshalValueBuf(b []byte) ([]byte, error)

type FpgaDeviceInfo added in v0.18.0

type FpgaDeviceInfo struct {

	// The count of FPGA accelerators for the instance type.
	Count *int64 `locationName:"count" type:"integer"`

	// The manufacturer of the FPGA accelerator.
	Manufacturer *string `locationName:"manufacturer" type:"string"`

	// Describes the memory for the FPGA accelerator for the instance type.
	MemoryInfo *FpgaDeviceMemoryInfo `locationName:"memoryInfo" type:"structure"`

	// The name of the FPGA accelerator.
	Name *string `locationName:"name" type:"string"`
	// contains filtered or unexported fields
}

Describes the FPGA accelerator for the instance type.

func (FpgaDeviceInfo) String added in v0.18.0

func (s FpgaDeviceInfo) String() string

String returns the string representation

type FpgaDeviceMemoryInfo added in v0.18.0

type FpgaDeviceMemoryInfo struct {

	// The size (in MiB) for the memory available to the FPGA accelerator.
	SizeInMiB *int64 `locationName:"sizeInMiB" type:"integer"`
	// contains filtered or unexported fields
}

Describes the memory for the FPGA accelerator for the instance type.

func (FpgaDeviceMemoryInfo) String added in v0.18.0

func (s FpgaDeviceMemoryInfo) String() string

String returns the string representation

type FpgaImage

type FpgaImage struct {

	// The date and time the AFI was created.
	CreateTime *time.Time `locationName:"createTime" type:"timestamp"`

	// Indicates whether data retention support is enabled for the AFI.
	DataRetentionSupport *bool `locationName:"dataRetentionSupport" type:"boolean"`

	// The description of the AFI.
	Description *string `locationName:"description" type:"string"`

	// The global FPGA image identifier (AGFI ID).
	FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`

	// The FPGA image identifier (AFI ID).
	FpgaImageId *string `locationName:"fpgaImageId" type:"string"`

	// The name of the AFI.
	Name *string `locationName:"name" type:"string"`

	// The alias of the AFI owner. Possible values include self, amazon, and aws-marketplace.
	OwnerAlias *string `locationName:"ownerAlias" type:"string"`

	// The AWS account ID of the AFI owner.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// Information about the PCI bus.
	PciId *PciId `locationName:"pciId" type:"structure"`

	// The product codes for the AFI.
	ProductCodes []ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`

	// Indicates whether the AFI is public.
	Public *bool `locationName:"public" type:"boolean"`

	// The version of the AWS Shell that was used to create the bitstream.
	ShellVersion *string `locationName:"shellVersion" type:"string"`

	// Information about the state of the AFI.
	State *FpgaImageState `locationName:"state" type:"structure"`

	// Any tags assigned to the AFI.
	Tags []Tag `locationName:"tags" locationNameList:"item" type:"list"`

	// The time of the most recent update to the AFI.
	UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes an Amazon FPGA image (AFI).

func (FpgaImage) String

func (s FpgaImage) String() string

String returns the string representation

type FpgaImageAttribute

type FpgaImageAttribute struct {

	// The description of the AFI.
	Description *string `locationName:"description" type:"string"`

	// The ID of the AFI.
	FpgaImageId *string `locationName:"fpgaImageId" type:"string"`

	// The load permissions.
	LoadPermissions []LoadPermission `locationName:"loadPermissions" locationNameList:"item" type:"list"`

	// The name of the AFI.
	Name *string `locationName:"name" type:"string"`

	// The product codes.
	ProductCodes []ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an Amazon FPGA image (AFI) attribute.

func (FpgaImageAttribute) String

func (s FpgaImageAttribute) String() string

String returns the string representation

type FpgaImageAttributeName

type FpgaImageAttributeName string
const (
	FpgaImageAttributeNameDescription    FpgaImageAttributeName = "description"
	FpgaImageAttributeNameName           FpgaImageAttributeName = "name"
	FpgaImageAttributeNameLoadPermission FpgaImageAttributeName = "loadPermission"
	FpgaImageAttributeNameProductCodes   FpgaImageAttributeName = "productCodes"
)

Enum values for FpgaImageAttributeName

func (FpgaImageAttributeName) MarshalValue added in v0.3.0

func (enum FpgaImageAttributeName) MarshalValue() (string, error)

func (FpgaImageAttributeName) MarshalValueBuf added in v0.3.0

func (enum FpgaImageAttributeName) MarshalValueBuf(b []byte) ([]byte, error)

type FpgaImageState

type FpgaImageState struct {

	// The state. The following are the possible values:
	//
	//    * pending - AFI bitstream generation is in progress.
	//
	//    * available - The AFI is available for use.
	//
	//    * failed - AFI bitstream generation failed.
	//
	//    * unavailable - The AFI is no longer available for use.
	Code FpgaImageStateCode `locationName:"code" type:"string" enum:"true"`

	// If the state is failed, this is the error message.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes the state of the bitstream generation process for an Amazon FPGA image (AFI).

func (FpgaImageState) String

func (s FpgaImageState) String() string

String returns the string representation

type FpgaImageStateCode

type FpgaImageStateCode string
const (
	FpgaImageStateCodePending     FpgaImageStateCode = "pending"
	FpgaImageStateCodeFailed      FpgaImageStateCode = "failed"
	FpgaImageStateCodeAvailable   FpgaImageStateCode = "available"
	FpgaImageStateCodeUnavailable FpgaImageStateCode = "unavailable"
)

Enum values for FpgaImageStateCode

func (FpgaImageStateCode) MarshalValue added in v0.3.0

func (enum FpgaImageStateCode) MarshalValue() (string, error)

func (FpgaImageStateCode) MarshalValueBuf added in v0.3.0

func (enum FpgaImageStateCode) MarshalValueBuf(b []byte) ([]byte, error)

type FpgaInfo added in v0.18.0

type FpgaInfo struct {

	// Describes the FPGAs for the instance type.
	Fpgas []FpgaDeviceInfo `locationName:"fpgas" locationNameList:"item" type:"list"`

	// The total memory of all FPGA accelerators for the instance type.
	TotalFpgaMemoryInMiB *int64 `locationName:"totalFpgaMemoryInMiB" type:"integer"`
	// contains filtered or unexported fields
}

Describes the FPGAs for the instance type.

func (FpgaInfo) String added in v0.18.0

func (s FpgaInfo) String() string

String returns the string representation

type GatewayType

type GatewayType string
const (
	GatewayTypeIpsec1 GatewayType = "ipsec.1"
)

Enum values for GatewayType

func (GatewayType) MarshalValue added in v0.3.0

func (enum GatewayType) MarshalValue() (string, error)

func (GatewayType) MarshalValueBuf added in v0.3.0

func (enum GatewayType) MarshalValueBuf(b []byte) ([]byte, error)

type GetAssociatedIpv6PoolCidrsInput added in v0.19.0

type GetAssociatedIpv6PoolCidrsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"1" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the IPv6 address pool.
	//
	// PoolId is a required field
	PoolId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetAssociatedIpv6PoolCidrsInput) String added in v0.19.0

String returns the string representation

func (*GetAssociatedIpv6PoolCidrsInput) Validate added in v0.19.0

func (s *GetAssociatedIpv6PoolCidrsInput) Validate() error

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

type GetAssociatedIpv6PoolCidrsOutput added in v0.19.0

type GetAssociatedIpv6PoolCidrsOutput struct {

	// Information about the IPv6 CIDR block associations.
	Ipv6CidrAssociations []Ipv6CidrAssociation `locationName:"ipv6CidrAssociationSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetAssociatedIpv6PoolCidrsOutput) String added in v0.19.0

String returns the string representation

type GetAssociatedIpv6PoolCidrsPaginator added in v0.19.0

type GetAssociatedIpv6PoolCidrsPaginator struct {
	aws.Pager
}

GetAssociatedIpv6PoolCidrsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetAssociatedIpv6PoolCidrsPaginator added in v0.19.0

func NewGetAssociatedIpv6PoolCidrsPaginator(req GetAssociatedIpv6PoolCidrsRequest) GetAssociatedIpv6PoolCidrsPaginator

NewGetAssociatedIpv6PoolCidrsRequestPaginator returns a paginator for GetAssociatedIpv6PoolCidrs. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetAssociatedIpv6PoolCidrsRequest(input)
p := ec2.NewGetAssociatedIpv6PoolCidrsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetAssociatedIpv6PoolCidrsPaginator) CurrentPage added in v0.19.0

type GetAssociatedIpv6PoolCidrsRequest added in v0.19.0

type GetAssociatedIpv6PoolCidrsRequest struct {
	*aws.Request
	Input *GetAssociatedIpv6PoolCidrsInput
	Copy  func(*GetAssociatedIpv6PoolCidrsInput) GetAssociatedIpv6PoolCidrsRequest
}

GetAssociatedIpv6PoolCidrsRequest is the request type for the GetAssociatedIpv6PoolCidrs API operation.

func (GetAssociatedIpv6PoolCidrsRequest) Send added in v0.19.0

Send marshals and sends the GetAssociatedIpv6PoolCidrs API request.

type GetAssociatedIpv6PoolCidrsResponse added in v0.19.0

type GetAssociatedIpv6PoolCidrsResponse struct {
	*GetAssociatedIpv6PoolCidrsOutput
	// contains filtered or unexported fields
}

GetAssociatedIpv6PoolCidrsResponse is the response type for the GetAssociatedIpv6PoolCidrs API operation.

func (*GetAssociatedIpv6PoolCidrsResponse) SDKResponseMetdata added in v0.19.0

func (r *GetAssociatedIpv6PoolCidrsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetAssociatedIpv6PoolCidrs request.

type GetCapacityReservationUsageInput added in v0.11.0

type GetCapacityReservationUsageInput struct {

	// The ID of the Capacity Reservation.
	//
	// CapacityReservationId is a required field
	CapacityReservationId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The maximum number of results to return for the request in a single page.
	// The remaining results can be seen by sending another request with the returned
	// nextToken value.
	//
	// Valid range: Minimum value of 1. Maximum value of 1000.
	MaxResults *int64 `min:"1" type:"integer"`

	// The token to retrieve the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (GetCapacityReservationUsageInput) String added in v0.11.0

String returns the string representation

func (*GetCapacityReservationUsageInput) Validate added in v0.11.0

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

type GetCapacityReservationUsageOutput added in v0.11.0

type GetCapacityReservationUsageOutput struct {

	// The remaining capacity. Indicates the number of instances that can be launched
	// in the Capacity Reservation.
	AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`

	// The ID of the Capacity Reservation.
	CapacityReservationId *string `locationName:"capacityReservationId" type:"string"`

	// The type of instance for which the Capacity Reservation reserves capacity.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// Information about the Capacity Reservation usage.
	InstanceUsages []InstanceUsage `locationName:"instanceUsageSet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The current state of the Capacity Reservation. A Capacity Reservation can
	// be in one of the following states:
	//
	//    * active - The Capacity Reservation is active and the capacity is available
	//    for your use.
	//
	//    * expired - The Capacity Reservation expired automatically at the date
	//    and time specified in your request. The reserved capacity is no longer
	//    available for your use.
	//
	//    * cancelled - The Capacity Reservation was manually cancelled. The reserved
	//    capacity is no longer available for your use.
	//
	//    * pending - The Capacity Reservation request was successful but the capacity
	//    provisioning is still pending.
	//
	//    * failed - The Capacity Reservation request has failed. A request might
	//    fail due to invalid request parameters, capacity constraints, or instance
	//    limit constraints. Failed requests are retained for 60 minutes.
	State CapacityReservationState `locationName:"state" type:"string" enum:"true"`

	// The number of instances for which the Capacity Reservation reserves capacity.
	TotalInstanceCount *int64 `locationName:"totalInstanceCount" type:"integer"`
	// contains filtered or unexported fields
}

func (GetCapacityReservationUsageOutput) String added in v0.11.0

String returns the string representation

type GetCapacityReservationUsageRequest added in v0.11.0

type GetCapacityReservationUsageRequest struct {
	*aws.Request
	Input *GetCapacityReservationUsageInput
	Copy  func(*GetCapacityReservationUsageInput) GetCapacityReservationUsageRequest
}

GetCapacityReservationUsageRequest is the request type for the GetCapacityReservationUsage API operation.

func (GetCapacityReservationUsageRequest) Send added in v0.11.0

Send marshals and sends the GetCapacityReservationUsage API request.

type GetCapacityReservationUsageResponse added in v0.11.0

type GetCapacityReservationUsageResponse struct {
	*GetCapacityReservationUsageOutput
	// contains filtered or unexported fields
}

GetCapacityReservationUsageResponse is the response type for the GetCapacityReservationUsage API operation.

func (*GetCapacityReservationUsageResponse) SDKResponseMetdata added in v0.11.0

func (r *GetCapacityReservationUsageResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetCapacityReservationUsage request.

type GetCoipPoolUsageInput added in v0.18.0

type GetCoipPoolUsageInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The filters. The following are the possible values:
	//
	//    * coip-address-usage.allocation-id
	//
	//    * coip-address-usage.aws-account-id
	//
	//    * coip-address-usage.aws-service
	//
	//    * coip-address-usage.co-ip
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the address pool.
	//
	// PoolId is a required field
	PoolId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetCoipPoolUsageInput) String added in v0.18.0

func (s GetCoipPoolUsageInput) String() string

String returns the string representation

func (*GetCoipPoolUsageInput) Validate added in v0.18.0

func (s *GetCoipPoolUsageInput) Validate() error

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

type GetCoipPoolUsageOutput added in v0.18.0

type GetCoipPoolUsageOutput struct {

	// Information about the address usage.
	CoipAddressUsages []CoipAddressUsage `locationName:"coipAddressUsageSet" locationNameList:"item" type:"list"`

	// The ID of the customer-owned address pool.
	CoipPoolId *string `locationName:"coipPoolId" type:"string"`

	// The ID of the local gateway route table.
	LocalGatewayRouteTableId *string `locationName:"localGatewayRouteTableId" type:"string"`
	// contains filtered or unexported fields
}

func (GetCoipPoolUsageOutput) String added in v0.18.0

func (s GetCoipPoolUsageOutput) String() string

String returns the string representation

type GetCoipPoolUsageRequest added in v0.18.0

type GetCoipPoolUsageRequest struct {
	*aws.Request
	Input *GetCoipPoolUsageInput
	Copy  func(*GetCoipPoolUsageInput) GetCoipPoolUsageRequest
}

GetCoipPoolUsageRequest is the request type for the GetCoipPoolUsage API operation.

func (GetCoipPoolUsageRequest) Send added in v0.18.0

Send marshals and sends the GetCoipPoolUsage API request.

type GetCoipPoolUsageResponse added in v0.18.0

type GetCoipPoolUsageResponse struct {
	*GetCoipPoolUsageOutput
	// contains filtered or unexported fields
}

GetCoipPoolUsageResponse is the response type for the GetCoipPoolUsage API operation.

func (*GetCoipPoolUsageResponse) SDKResponseMetdata added in v0.18.0

func (r *GetCoipPoolUsageResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetCoipPoolUsage request.

type GetConsoleOutputInput

type GetConsoleOutputInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`

	// When enabled, retrieves the latest console output for the instance.
	//
	// Default: disabled (false)
	Latest *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (GetConsoleOutputInput) String

func (s GetConsoleOutputInput) String() string

String returns the string representation

func (*GetConsoleOutputInput) Validate

func (s *GetConsoleOutputInput) Validate() error

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

type GetConsoleOutputOutput

type GetConsoleOutputOutput struct {

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The console output, base64-encoded. If you are using a command line tool,
	// the tool decodes the output for you.
	Output *string `locationName:"output" type:"string"`

	// The time at which the output was last updated.
	Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
	// contains filtered or unexported fields
}

func (GetConsoleOutputOutput) String

func (s GetConsoleOutputOutput) String() string

String returns the string representation

type GetConsoleOutputRequest

type GetConsoleOutputRequest struct {
	*aws.Request
	Input *GetConsoleOutputInput
	Copy  func(*GetConsoleOutputInput) GetConsoleOutputRequest
}

GetConsoleOutputRequest is the request type for the GetConsoleOutput API operation.

func (GetConsoleOutputRequest) Send

Send marshals and sends the GetConsoleOutput API request.

type GetConsoleOutputResponse added in v0.9.0

type GetConsoleOutputResponse struct {
	*GetConsoleOutputOutput
	// contains filtered or unexported fields
}

GetConsoleOutputResponse is the response type for the GetConsoleOutput API operation.

func (*GetConsoleOutputResponse) SDKResponseMetdata added in v0.9.0

func (r *GetConsoleOutputResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetConsoleOutput request.

type GetConsoleScreenshotInput

type GetConsoleScreenshotInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`

	// When set to true, acts as keystroke input and wakes up an instance that's
	// in standby or "sleep" mode.
	WakeUp *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (GetConsoleScreenshotInput) String

func (s GetConsoleScreenshotInput) String() string

String returns the string representation

func (*GetConsoleScreenshotInput) Validate

func (s *GetConsoleScreenshotInput) Validate() error

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

type GetConsoleScreenshotOutput

type GetConsoleScreenshotOutput struct {

	// The data that comprises the image.
	ImageData *string `locationName:"imageData" type:"string"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`
	// contains filtered or unexported fields
}

func (GetConsoleScreenshotOutput) String

String returns the string representation

type GetConsoleScreenshotRequest

type GetConsoleScreenshotRequest struct {
	*aws.Request
	Input *GetConsoleScreenshotInput
	Copy  func(*GetConsoleScreenshotInput) GetConsoleScreenshotRequest
}

GetConsoleScreenshotRequest is the request type for the GetConsoleScreenshot API operation.

func (GetConsoleScreenshotRequest) Send

Send marshals and sends the GetConsoleScreenshot API request.

type GetConsoleScreenshotResponse added in v0.9.0

type GetConsoleScreenshotResponse struct {
	*GetConsoleScreenshotOutput
	// contains filtered or unexported fields
}

GetConsoleScreenshotResponse is the response type for the GetConsoleScreenshot API operation.

func (*GetConsoleScreenshotResponse) SDKResponseMetdata added in v0.9.0

func (r *GetConsoleScreenshotResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetConsoleScreenshot request.

type GetDefaultCreditSpecificationInput added in v0.18.0

type GetDefaultCreditSpecificationInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The instance family.
	//
	// InstanceFamily is a required field
	InstanceFamily UnlimitedSupportedInstanceFamily `type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

func (GetDefaultCreditSpecificationInput) String added in v0.18.0

String returns the string representation

func (*GetDefaultCreditSpecificationInput) Validate added in v0.18.0

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

type GetDefaultCreditSpecificationOutput added in v0.18.0

type GetDefaultCreditSpecificationOutput struct {

	// The default credit option for CPU usage of the instance family.
	InstanceFamilyCreditSpecification *InstanceFamilyCreditSpecification `locationName:"instanceFamilyCreditSpecification" type:"structure"`
	// contains filtered or unexported fields
}

func (GetDefaultCreditSpecificationOutput) String added in v0.18.0

String returns the string representation

type GetDefaultCreditSpecificationRequest added in v0.18.0

type GetDefaultCreditSpecificationRequest struct {
	*aws.Request
	Input *GetDefaultCreditSpecificationInput
	Copy  func(*GetDefaultCreditSpecificationInput) GetDefaultCreditSpecificationRequest
}

GetDefaultCreditSpecificationRequest is the request type for the GetDefaultCreditSpecification API operation.

func (GetDefaultCreditSpecificationRequest) Send added in v0.18.0

Send marshals and sends the GetDefaultCreditSpecification API request.

type GetDefaultCreditSpecificationResponse added in v0.18.0

type GetDefaultCreditSpecificationResponse struct {
	*GetDefaultCreditSpecificationOutput
	// contains filtered or unexported fields
}

GetDefaultCreditSpecificationResponse is the response type for the GetDefaultCreditSpecification API operation.

func (*GetDefaultCreditSpecificationResponse) SDKResponseMetdata added in v0.18.0

func (r *GetDefaultCreditSpecificationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetDefaultCreditSpecification request.

type GetEbsDefaultKmsKeyIdInput added in v0.9.0

type GetEbsDefaultKmsKeyIdInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (GetEbsDefaultKmsKeyIdInput) String added in v0.9.0

String returns the string representation

type GetEbsDefaultKmsKeyIdOutput added in v0.9.0

type GetEbsDefaultKmsKeyIdOutput struct {

	// The Amazon Resource Name (ARN) of the default CMK for encryption by default.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
	// contains filtered or unexported fields
}

func (GetEbsDefaultKmsKeyIdOutput) String added in v0.9.0

String returns the string representation

type GetEbsDefaultKmsKeyIdRequest added in v0.9.0

type GetEbsDefaultKmsKeyIdRequest struct {
	*aws.Request
	Input *GetEbsDefaultKmsKeyIdInput
	Copy  func(*GetEbsDefaultKmsKeyIdInput) GetEbsDefaultKmsKeyIdRequest
}

GetEbsDefaultKmsKeyIdRequest is the request type for the GetEbsDefaultKmsKeyId API operation.

func (GetEbsDefaultKmsKeyIdRequest) Send added in v0.9.0

Send marshals and sends the GetEbsDefaultKmsKeyId API request.

type GetEbsDefaultKmsKeyIdResponse added in v0.9.0

type GetEbsDefaultKmsKeyIdResponse struct {
	*GetEbsDefaultKmsKeyIdOutput
	// contains filtered or unexported fields
}

GetEbsDefaultKmsKeyIdResponse is the response type for the GetEbsDefaultKmsKeyId API operation.

func (*GetEbsDefaultKmsKeyIdResponse) SDKResponseMetdata added in v0.9.0

func (r *GetEbsDefaultKmsKeyIdResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetEbsDefaultKmsKeyId request.

type GetEbsEncryptionByDefaultInput added in v0.9.0

type GetEbsEncryptionByDefaultInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (GetEbsEncryptionByDefaultInput) String added in v0.9.0

String returns the string representation

type GetEbsEncryptionByDefaultOutput added in v0.9.0

type GetEbsEncryptionByDefaultOutput struct {

	// Indicates whether encryption by default is enabled.
	EbsEncryptionByDefault *bool `locationName:"ebsEncryptionByDefault" type:"boolean"`
	// contains filtered or unexported fields
}

func (GetEbsEncryptionByDefaultOutput) String added in v0.9.0

String returns the string representation

type GetEbsEncryptionByDefaultRequest added in v0.9.0

type GetEbsEncryptionByDefaultRequest struct {
	*aws.Request
	Input *GetEbsEncryptionByDefaultInput
	Copy  func(*GetEbsEncryptionByDefaultInput) GetEbsEncryptionByDefaultRequest
}

GetEbsEncryptionByDefaultRequest is the request type for the GetEbsEncryptionByDefault API operation.

func (GetEbsEncryptionByDefaultRequest) Send added in v0.9.0

Send marshals and sends the GetEbsEncryptionByDefault API request.

type GetEbsEncryptionByDefaultResponse added in v0.9.0

type GetEbsEncryptionByDefaultResponse struct {
	*GetEbsEncryptionByDefaultOutput
	// contains filtered or unexported fields
}

GetEbsEncryptionByDefaultResponse is the response type for the GetEbsEncryptionByDefault API operation.

func (*GetEbsEncryptionByDefaultResponse) SDKResponseMetdata added in v0.9.0

func (r *GetEbsEncryptionByDefaultResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetEbsEncryptionByDefault request.

type GetHostReservationPurchasePreviewInput

type GetHostReservationPurchasePreviewInput struct {

	// The IDs of the Dedicated Hosts with which the reservation is associated.
	//
	// HostIdSet is a required field
	HostIdSet []string `locationNameList:"item" type:"list" required:"true"`

	// The offering ID of the reservation.
	//
	// OfferingId is a required field
	OfferingId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetHostReservationPurchasePreviewInput) String

String returns the string representation

func (*GetHostReservationPurchasePreviewInput) Validate

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

type GetHostReservationPurchasePreviewOutput

type GetHostReservationPurchasePreviewOutput struct {

	// The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
	// are specified. At this time, the only supported currency is USD.
	CurrencyCode CurrencyCodeValues `locationName:"currencyCode" type:"string" enum:"true"`

	// The purchase information of the Dedicated Host reservation and the Dedicated
	// Hosts associated with it.
	Purchase []Purchase `locationName:"purchase" locationNameList:"item" type:"list"`

	// The potential total hourly price of the reservation per hour.
	TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`

	// The potential total upfront price. This is billed immediately.
	TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
	// contains filtered or unexported fields
}

func (GetHostReservationPurchasePreviewOutput) String

String returns the string representation

type GetHostReservationPurchasePreviewRequest

GetHostReservationPurchasePreviewRequest is the request type for the GetHostReservationPurchasePreview API operation.

func (GetHostReservationPurchasePreviewRequest) Send

Send marshals and sends the GetHostReservationPurchasePreview API request.

type GetHostReservationPurchasePreviewResponse added in v0.9.0

type GetHostReservationPurchasePreviewResponse struct {
	*GetHostReservationPurchasePreviewOutput
	// contains filtered or unexported fields
}

GetHostReservationPurchasePreviewResponse is the response type for the GetHostReservationPurchasePreview API operation.

func (*GetHostReservationPurchasePreviewResponse) SDKResponseMetdata added in v0.9.0

func (r *GetHostReservationPurchasePreviewResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetHostReservationPurchasePreview request.

type GetLaunchTemplateDataInput added in v0.2.0

type GetLaunchTemplateDataInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetLaunchTemplateDataInput) String added in v0.2.0

String returns the string representation

func (*GetLaunchTemplateDataInput) Validate added in v0.2.0

func (s *GetLaunchTemplateDataInput) Validate() error

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

type GetLaunchTemplateDataOutput added in v0.2.0

type GetLaunchTemplateDataOutput struct {

	// The instance data.
	LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"`
	// contains filtered or unexported fields
}

func (GetLaunchTemplateDataOutput) String added in v0.2.0

String returns the string representation

type GetLaunchTemplateDataRequest added in v0.2.0

type GetLaunchTemplateDataRequest struct {
	*aws.Request
	Input *GetLaunchTemplateDataInput
	Copy  func(*GetLaunchTemplateDataInput) GetLaunchTemplateDataRequest
}

GetLaunchTemplateDataRequest is the request type for the GetLaunchTemplateData API operation.

func (GetLaunchTemplateDataRequest) Send added in v0.2.0

Send marshals and sends the GetLaunchTemplateData API request.

type GetLaunchTemplateDataResponse added in v0.9.0

type GetLaunchTemplateDataResponse struct {
	*GetLaunchTemplateDataOutput
	// contains filtered or unexported fields
}

GetLaunchTemplateDataResponse is the response type for the GetLaunchTemplateData API operation.

func (*GetLaunchTemplateDataResponse) SDKResponseMetdata added in v0.9.0

func (r *GetLaunchTemplateDataResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetLaunchTemplateData request.

type GetManagedPrefixListAssociationsInput added in v0.24.0

type GetManagedPrefixListAssociationsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the prefix list.
	//
	// PrefixListId is a required field
	PrefixListId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetManagedPrefixListAssociationsInput) String added in v0.24.0

String returns the string representation

func (*GetManagedPrefixListAssociationsInput) Validate added in v0.24.0

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

type GetManagedPrefixListAssociationsOutput added in v0.24.0

type GetManagedPrefixListAssociationsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the associations.
	PrefixListAssociations []PrefixListAssociation `locationName:"prefixListAssociationSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (GetManagedPrefixListAssociationsOutput) String added in v0.24.0

String returns the string representation

type GetManagedPrefixListAssociationsPaginator added in v0.24.0

type GetManagedPrefixListAssociationsPaginator struct {
	aws.Pager
}

GetManagedPrefixListAssociationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetManagedPrefixListAssociationsPaginator added in v0.24.0

func NewGetManagedPrefixListAssociationsPaginator(req GetManagedPrefixListAssociationsRequest) GetManagedPrefixListAssociationsPaginator

NewGetManagedPrefixListAssociationsRequestPaginator returns a paginator for GetManagedPrefixListAssociations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetManagedPrefixListAssociationsRequest(input)
p := ec2.NewGetManagedPrefixListAssociationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetManagedPrefixListAssociationsPaginator) CurrentPage added in v0.24.0

type GetManagedPrefixListAssociationsRequest added in v0.24.0

type GetManagedPrefixListAssociationsRequest struct {
	*aws.Request
	Input *GetManagedPrefixListAssociationsInput
	Copy  func(*GetManagedPrefixListAssociationsInput) GetManagedPrefixListAssociationsRequest
}

GetManagedPrefixListAssociationsRequest is the request type for the GetManagedPrefixListAssociations API operation.

func (GetManagedPrefixListAssociationsRequest) Send added in v0.24.0

Send marshals and sends the GetManagedPrefixListAssociations API request.

type GetManagedPrefixListAssociationsResponse added in v0.24.0

type GetManagedPrefixListAssociationsResponse struct {
	*GetManagedPrefixListAssociationsOutput
	// contains filtered or unexported fields
}

GetManagedPrefixListAssociationsResponse is the response type for the GetManagedPrefixListAssociations API operation.

func (*GetManagedPrefixListAssociationsResponse) SDKResponseMetdata added in v0.24.0

func (r *GetManagedPrefixListAssociationsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetManagedPrefixListAssociations request.

type GetManagedPrefixListEntriesInput added in v0.24.0

type GetManagedPrefixListEntriesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"1" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the prefix list.
	//
	// PrefixListId is a required field
	PrefixListId *string `type:"string" required:"true"`

	// The version of the prefix list for which to return the entries. The default
	// is the current version.
	TargetVersion *int64 `type:"long"`
	// contains filtered or unexported fields
}

func (GetManagedPrefixListEntriesInput) String added in v0.24.0

String returns the string representation

func (*GetManagedPrefixListEntriesInput) Validate added in v0.24.0

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

type GetManagedPrefixListEntriesOutput added in v0.24.0

type GetManagedPrefixListEntriesOutput struct {

	// Information about the prefix list entries.
	Entries []PrefixListEntry `locationName:"entrySet" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetManagedPrefixListEntriesOutput) String added in v0.24.0

String returns the string representation

type GetManagedPrefixListEntriesPaginator added in v0.24.0

type GetManagedPrefixListEntriesPaginator struct {
	aws.Pager
}

GetManagedPrefixListEntriesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetManagedPrefixListEntriesPaginator added in v0.24.0

func NewGetManagedPrefixListEntriesPaginator(req GetManagedPrefixListEntriesRequest) GetManagedPrefixListEntriesPaginator

NewGetManagedPrefixListEntriesRequestPaginator returns a paginator for GetManagedPrefixListEntries. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetManagedPrefixListEntriesRequest(input)
p := ec2.NewGetManagedPrefixListEntriesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetManagedPrefixListEntriesPaginator) CurrentPage added in v0.24.0

type GetManagedPrefixListEntriesRequest added in v0.24.0

type GetManagedPrefixListEntriesRequest struct {
	*aws.Request
	Input *GetManagedPrefixListEntriesInput
	Copy  func(*GetManagedPrefixListEntriesInput) GetManagedPrefixListEntriesRequest
}

GetManagedPrefixListEntriesRequest is the request type for the GetManagedPrefixListEntries API operation.

func (GetManagedPrefixListEntriesRequest) Send added in v0.24.0

Send marshals and sends the GetManagedPrefixListEntries API request.

type GetManagedPrefixListEntriesResponse added in v0.24.0

type GetManagedPrefixListEntriesResponse struct {
	*GetManagedPrefixListEntriesOutput
	// contains filtered or unexported fields
}

GetManagedPrefixListEntriesResponse is the response type for the GetManagedPrefixListEntries API operation.

func (*GetManagedPrefixListEntriesResponse) SDKResponseMetdata added in v0.24.0

func (r *GetManagedPrefixListEntriesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetManagedPrefixListEntries request.

type GetPasswordDataInput

type GetPasswordDataInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the Windows instance.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetPasswordDataInput) String

func (s GetPasswordDataInput) String() string

String returns the string representation

func (*GetPasswordDataInput) Validate

func (s *GetPasswordDataInput) Validate() error

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

type GetPasswordDataOutput

type GetPasswordDataOutput struct {

	// The ID of the Windows instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The password of the instance. Returns an empty string if the password is
	// not available.
	PasswordData *string `locationName:"passwordData" type:"string"`

	// The time the data was last updated.
	Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
	// contains filtered or unexported fields
}

func (GetPasswordDataOutput) String

func (s GetPasswordDataOutput) String() string

String returns the string representation

type GetPasswordDataRequest

type GetPasswordDataRequest struct {
	*aws.Request
	Input *GetPasswordDataInput
	Copy  func(*GetPasswordDataInput) GetPasswordDataRequest
}

GetPasswordDataRequest is the request type for the GetPasswordData API operation.

func (GetPasswordDataRequest) Send

Send marshals and sends the GetPasswordData API request.

type GetPasswordDataResponse added in v0.9.0

type GetPasswordDataResponse struct {
	*GetPasswordDataOutput
	// contains filtered or unexported fields
}

GetPasswordDataResponse is the response type for the GetPasswordData API operation.

func (*GetPasswordDataResponse) SDKResponseMetdata added in v0.9.0

func (r *GetPasswordDataResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetPasswordData request.

type GetReservedInstancesExchangeQuoteInput

type GetReservedInstancesExchangeQuoteInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of the Convertible Reserved Instances to exchange.
	//
	// ReservedInstanceIds is a required field
	ReservedInstanceIds []string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`

	// The configuration of the target Convertible Reserved Instance to exchange
	// for your current Convertible Reserved Instances.
	TargetConfigurations []TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
	// contains filtered or unexported fields
}

Contains the parameters for GetReservedInstanceExchangeQuote.

func (GetReservedInstancesExchangeQuoteInput) String

String returns the string representation

func (*GetReservedInstancesExchangeQuoteInput) Validate

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

type GetReservedInstancesExchangeQuoteOutput

type GetReservedInstancesExchangeQuoteOutput struct {

	// The currency of the transaction.
	CurrencyCode *string `locationName:"currencyCode" type:"string"`

	// If true, the exchange is valid. If false, the exchange cannot be completed.
	IsValidExchange *bool `locationName:"isValidExchange" type:"boolean"`

	// The new end date of the reservation term.
	OutputReservedInstancesWillExpireAt *time.Time `locationName:"outputReservedInstancesWillExpireAt" type:"timestamp"`

	// The total true upfront charge for the exchange.
	PaymentDue *string `locationName:"paymentDue" type:"string"`

	// The cost associated with the Reserved Instance.
	ReservedInstanceValueRollup *ReservationValue `locationName:"reservedInstanceValueRollup" type:"structure"`

	// The configuration of your Convertible Reserved Instances.
	ReservedInstanceValueSet []ReservedInstanceReservationValue `locationName:"reservedInstanceValueSet" locationNameList:"item" type:"list"`

	// The cost associated with the Reserved Instance.
	TargetConfigurationValueRollup *ReservationValue `locationName:"targetConfigurationValueRollup" type:"structure"`

	// The values of the target Convertible Reserved Instances.
	TargetConfigurationValueSet []TargetReservationValue `locationName:"targetConfigurationValueSet" locationNameList:"item" type:"list"`

	// Describes the reason why the exchange cannot be completed.
	ValidationFailureReason *string `locationName:"validationFailureReason" type:"string"`
	// contains filtered or unexported fields
}

Contains the output of GetReservedInstancesExchangeQuote.

func (GetReservedInstancesExchangeQuoteOutput) String

String returns the string representation

type GetReservedInstancesExchangeQuoteRequest

GetReservedInstancesExchangeQuoteRequest is the request type for the GetReservedInstancesExchangeQuote API operation.

func (GetReservedInstancesExchangeQuoteRequest) Send

Send marshals and sends the GetReservedInstancesExchangeQuote API request.

type GetReservedInstancesExchangeQuoteResponse added in v0.9.0

type GetReservedInstancesExchangeQuoteResponse struct {
	*GetReservedInstancesExchangeQuoteOutput
	// contains filtered or unexported fields
}

GetReservedInstancesExchangeQuoteResponse is the response type for the GetReservedInstancesExchangeQuote API operation.

func (*GetReservedInstancesExchangeQuoteResponse) SDKResponseMetdata added in v0.9.0

func (r *GetReservedInstancesExchangeQuoteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetReservedInstancesExchangeQuote request.

type GetTransitGatewayAttachmentPropagationsInput added in v0.6.0

type GetTransitGatewayAttachmentPropagationsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * transit-gateway-route-table-id - The ID of the transit gateway route
	//    table.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetTransitGatewayAttachmentPropagationsInput) String added in v0.6.0

String returns the string representation

func (*GetTransitGatewayAttachmentPropagationsInput) Validate added in v0.6.0

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

type GetTransitGatewayAttachmentPropagationsOutput added in v0.6.0

type GetTransitGatewayAttachmentPropagationsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the propagation route tables.
	TransitGatewayAttachmentPropagations []TransitGatewayAttachmentPropagation `locationName:"transitGatewayAttachmentPropagations" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (GetTransitGatewayAttachmentPropagationsOutput) String added in v0.6.0

String returns the string representation

type GetTransitGatewayAttachmentPropagationsPaginator added in v0.9.0

type GetTransitGatewayAttachmentPropagationsPaginator struct {
	aws.Pager
}

GetTransitGatewayAttachmentPropagationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetTransitGatewayAttachmentPropagationsPaginator added in v0.9.0

func NewGetTransitGatewayAttachmentPropagationsPaginator(req GetTransitGatewayAttachmentPropagationsRequest) GetTransitGatewayAttachmentPropagationsPaginator

NewGetTransitGatewayAttachmentPropagationsRequestPaginator returns a paginator for GetTransitGatewayAttachmentPropagations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetTransitGatewayAttachmentPropagationsRequest(input)
p := ec2.NewGetTransitGatewayAttachmentPropagationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetTransitGatewayAttachmentPropagationsPaginator) CurrentPage added in v0.9.0

type GetTransitGatewayAttachmentPropagationsRequest added in v0.6.0

GetTransitGatewayAttachmentPropagationsRequest is the request type for the GetTransitGatewayAttachmentPropagations API operation.

func (GetTransitGatewayAttachmentPropagationsRequest) Send added in v0.6.0

Send marshals and sends the GetTransitGatewayAttachmentPropagations API request.

type GetTransitGatewayAttachmentPropagationsResponse added in v0.9.0

type GetTransitGatewayAttachmentPropagationsResponse struct {
	*GetTransitGatewayAttachmentPropagationsOutput
	// contains filtered or unexported fields
}

GetTransitGatewayAttachmentPropagationsResponse is the response type for the GetTransitGatewayAttachmentPropagations API operation.

func (*GetTransitGatewayAttachmentPropagationsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the GetTransitGatewayAttachmentPropagations request.

type GetTransitGatewayMulticastDomainAssociationsInput added in v0.18.0

type GetTransitGatewayMulticastDomainAssociationsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * resource-id - The ID of the resource.
	//
	//    * resource-type - The type of resource. The valid value is: vpc.
	//
	//    * state - The state of the subnet association. Valid values are associated
	//    | associating | disassociated | disassociating.
	//
	//    * subnet-id - The ID of the subnet.
	//
	//    * transit-gateway-attachment-id - The id of the transit gateway attachment.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `type:"string"`
	// contains filtered or unexported fields
}

func (GetTransitGatewayMulticastDomainAssociationsInput) String added in v0.18.0

String returns the string representation

func (*GetTransitGatewayMulticastDomainAssociationsInput) Validate added in v0.18.0

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

type GetTransitGatewayMulticastDomainAssociationsOutput added in v0.18.0

type GetTransitGatewayMulticastDomainAssociationsOutput struct {

	// Information about the multicast domain associations.
	MulticastDomainAssociations []TransitGatewayMulticastDomainAssociation `locationName:"multicastDomainAssociations" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetTransitGatewayMulticastDomainAssociationsOutput) String added in v0.18.0

String returns the string representation

type GetTransitGatewayMulticastDomainAssociationsPaginator added in v0.20.0

type GetTransitGatewayMulticastDomainAssociationsPaginator struct {
	aws.Pager
}

GetTransitGatewayMulticastDomainAssociationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetTransitGatewayMulticastDomainAssociationsPaginator added in v0.20.0

func NewGetTransitGatewayMulticastDomainAssociationsPaginator(req GetTransitGatewayMulticastDomainAssociationsRequest) GetTransitGatewayMulticastDomainAssociationsPaginator

NewGetTransitGatewayMulticastDomainAssociationsRequestPaginator returns a paginator for GetTransitGatewayMulticastDomainAssociations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetTransitGatewayMulticastDomainAssociationsRequest(input)
p := ec2.NewGetTransitGatewayMulticastDomainAssociationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetTransitGatewayMulticastDomainAssociationsPaginator) CurrentPage added in v0.20.0

type GetTransitGatewayMulticastDomainAssociationsRequest added in v0.18.0

GetTransitGatewayMulticastDomainAssociationsRequest is the request type for the GetTransitGatewayMulticastDomainAssociations API operation.

func (GetTransitGatewayMulticastDomainAssociationsRequest) Send added in v0.18.0

Send marshals and sends the GetTransitGatewayMulticastDomainAssociations API request.

type GetTransitGatewayMulticastDomainAssociationsResponse added in v0.18.0

type GetTransitGatewayMulticastDomainAssociationsResponse struct {
	*GetTransitGatewayMulticastDomainAssociationsOutput
	// contains filtered or unexported fields
}

GetTransitGatewayMulticastDomainAssociationsResponse is the response type for the GetTransitGatewayMulticastDomainAssociations API operation.

func (*GetTransitGatewayMulticastDomainAssociationsResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the GetTransitGatewayMulticastDomainAssociations request.

type GetTransitGatewayRouteTableAssociationsInput added in v0.6.0

type GetTransitGatewayRouteTableAssociationsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * resource-id - The ID of the resource.
	//
	//    * resource-type - The resource type (vpc | vpn).
	//
	//    * transit-gateway-attachment-id - The ID of the attachment.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the transit gateway route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetTransitGatewayRouteTableAssociationsInput) String added in v0.6.0

String returns the string representation

func (*GetTransitGatewayRouteTableAssociationsInput) Validate added in v0.6.0

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

type GetTransitGatewayRouteTableAssociationsOutput added in v0.6.0

type GetTransitGatewayRouteTableAssociationsOutput struct {

	// Information about the associations.
	Associations []TransitGatewayRouteTableAssociation `locationName:"associations" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (GetTransitGatewayRouteTableAssociationsOutput) String added in v0.6.0

String returns the string representation

type GetTransitGatewayRouteTableAssociationsPaginator added in v0.9.0

type GetTransitGatewayRouteTableAssociationsPaginator struct {
	aws.Pager
}

GetTransitGatewayRouteTableAssociationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetTransitGatewayRouteTableAssociationsPaginator added in v0.9.0

func NewGetTransitGatewayRouteTableAssociationsPaginator(req GetTransitGatewayRouteTableAssociationsRequest) GetTransitGatewayRouteTableAssociationsPaginator

NewGetTransitGatewayRouteTableAssociationsRequestPaginator returns a paginator for GetTransitGatewayRouteTableAssociations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetTransitGatewayRouteTableAssociationsRequest(input)
p := ec2.NewGetTransitGatewayRouteTableAssociationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetTransitGatewayRouteTableAssociationsPaginator) CurrentPage added in v0.9.0

type GetTransitGatewayRouteTableAssociationsRequest added in v0.6.0

GetTransitGatewayRouteTableAssociationsRequest is the request type for the GetTransitGatewayRouteTableAssociations API operation.

func (GetTransitGatewayRouteTableAssociationsRequest) Send added in v0.6.0

Send marshals and sends the GetTransitGatewayRouteTableAssociations API request.

type GetTransitGatewayRouteTableAssociationsResponse added in v0.9.0

type GetTransitGatewayRouteTableAssociationsResponse struct {
	*GetTransitGatewayRouteTableAssociationsOutput
	// contains filtered or unexported fields
}

GetTransitGatewayRouteTableAssociationsResponse is the response type for the GetTransitGatewayRouteTableAssociations API operation.

func (*GetTransitGatewayRouteTableAssociationsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the GetTransitGatewayRouteTableAssociations request.

type GetTransitGatewayRouteTablePropagationsInput added in v0.6.0

type GetTransitGatewayRouteTablePropagationsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * resource-id - The ID of the resource.
	//
	//    * resource-type - The resource type (vpc | vpn).
	//
	//    * transit-gateway-attachment-id - The ID of the attachment.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the transit gateway route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetTransitGatewayRouteTablePropagationsInput) String added in v0.6.0

String returns the string representation

func (*GetTransitGatewayRouteTablePropagationsInput) Validate added in v0.6.0

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

type GetTransitGatewayRouteTablePropagationsOutput added in v0.6.0

type GetTransitGatewayRouteTablePropagationsOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the route table propagations.
	TransitGatewayRouteTablePropagations []TransitGatewayRouteTablePropagation `locationName:"transitGatewayRouteTablePropagations" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (GetTransitGatewayRouteTablePropagationsOutput) String added in v0.6.0

String returns the string representation

type GetTransitGatewayRouteTablePropagationsPaginator added in v0.9.0

type GetTransitGatewayRouteTablePropagationsPaginator struct {
	aws.Pager
}

GetTransitGatewayRouteTablePropagationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetTransitGatewayRouteTablePropagationsPaginator added in v0.9.0

func NewGetTransitGatewayRouteTablePropagationsPaginator(req GetTransitGatewayRouteTablePropagationsRequest) GetTransitGatewayRouteTablePropagationsPaginator

NewGetTransitGatewayRouteTablePropagationsRequestPaginator returns a paginator for GetTransitGatewayRouteTablePropagations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetTransitGatewayRouteTablePropagationsRequest(input)
p := ec2.NewGetTransitGatewayRouteTablePropagationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetTransitGatewayRouteTablePropagationsPaginator) CurrentPage added in v0.9.0

type GetTransitGatewayRouteTablePropagationsRequest added in v0.6.0

GetTransitGatewayRouteTablePropagationsRequest is the request type for the GetTransitGatewayRouteTablePropagations API operation.

func (GetTransitGatewayRouteTablePropagationsRequest) Send added in v0.6.0

Send marshals and sends the GetTransitGatewayRouteTablePropagations API request.

type GetTransitGatewayRouteTablePropagationsResponse added in v0.9.0

type GetTransitGatewayRouteTablePropagationsResponse struct {
	*GetTransitGatewayRouteTablePropagationsOutput
	// contains filtered or unexported fields
}

GetTransitGatewayRouteTablePropagationsResponse is the response type for the GetTransitGatewayRouteTablePropagations API operation.

func (*GetTransitGatewayRouteTablePropagationsResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the GetTransitGatewayRouteTablePropagations request.

type GpuDeviceInfo added in v0.18.0

type GpuDeviceInfo struct {

	// The number of GPUs for the instance type.
	Count *int64 `locationName:"count" type:"integer"`

	// The manufacturer of the GPU accelerator.
	Manufacturer *string `locationName:"manufacturer" type:"string"`

	// Describes the memory available to the GPU accelerator.
	MemoryInfo *GpuDeviceMemoryInfo `locationName:"memoryInfo" type:"structure"`

	// The name of the GPU accelerator.
	Name *string `locationName:"name" type:"string"`
	// contains filtered or unexported fields
}

Describes the GPU accelerators for the instance type.

func (GpuDeviceInfo) String added in v0.18.0

func (s GpuDeviceInfo) String() string

String returns the string representation

type GpuDeviceMemoryInfo added in v0.18.0

type GpuDeviceMemoryInfo struct {

	// The size (in MiB) for the memory available to the GPU accelerator.
	SizeInMiB *int64 `locationName:"sizeInMiB" type:"integer"`
	// contains filtered or unexported fields
}

Describes the memory available to the GPU accelerator.

func (GpuDeviceMemoryInfo) String added in v0.18.0

func (s GpuDeviceMemoryInfo) String() string

String returns the string representation

type GpuInfo added in v0.18.0

type GpuInfo struct {

	// Describes the GPU accelerators for the instance type.
	Gpus []GpuDeviceInfo `locationName:"gpus" locationNameList:"item" type:"list"`

	// The total size of the memory for the GPU accelerators for the instance type.
	TotalGpuMemoryInMiB *int64 `locationName:"totalGpuMemoryInMiB" type:"integer"`
	// contains filtered or unexported fields
}

Describes the GPU accelerators for the instance type.

func (GpuInfo) String added in v0.18.0

func (s GpuInfo) String() string

String returns the string representation

type GroupIdentifier

type GroupIdentifier struct {

	// The ID of the security group.
	GroupId *string `locationName:"groupId" type:"string"`

	// The name of the security group.
	GroupName *string `locationName:"groupName" type:"string"`
	// contains filtered or unexported fields
}

Describes a security group.

func (GroupIdentifier) String

func (s GroupIdentifier) String() string

String returns the string representation

type HibernationOptions added in v0.6.0

type HibernationOptions struct {

	// If this parameter is set to true, your instance is enabled for hibernation;
	// otherwise, it is not enabled for hibernation.
	Configured *bool `locationName:"configured" type:"boolean"`
	// contains filtered or unexported fields
}

Indicates whether your instance is configured for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). For more information, see Hibernate your instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the Amazon Elastic Compute Cloud User Guide.

func (HibernationOptions) String added in v0.6.0

func (s HibernationOptions) String() string

String returns the string representation

type HibernationOptionsRequest added in v0.6.0

type HibernationOptionsRequest struct {

	// If you set this parameter to true, your instance is enabled for hibernation.
	//
	// Default: false
	Configured *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Indicates whether your instance is configured for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). For more information, see Hibernate your instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the Amazon Elastic Compute Cloud User Guide.

func (HibernationOptionsRequest) String added in v0.6.0

func (s HibernationOptionsRequest) String() string

String returns the string representation

type HistoryRecord

type HistoryRecord struct {

	// Information about the event.
	EventInformation *EventInformation `locationName:"eventInformation" type:"structure"`

	// The event type.
	//
	//    * error - An error with the Spot Fleet request.
	//
	//    * fleetRequestChange - A change in the status or configuration of the
	//    Spot Fleet request.
	//
	//    * instanceChange - An instance was launched or terminated.
	//
	//    * Information - An informational event.
	EventType EventType `locationName:"eventType" type:"string" enum:"true"`

	// The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes an event in the history of the Spot Fleet request.

func (HistoryRecord) String

func (s HistoryRecord) String() string

String returns the string representation

type HistoryRecordEntry added in v0.4.0

type HistoryRecordEntry struct {

	// Information about the event.
	EventInformation *EventInformation `locationName:"eventInformation" type:"structure"`

	// The event type.
	EventType FleetEventType `locationName:"eventType" type:"string" enum:"true"`

	// The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes an event in the history of an EC2 Fleet.

func (HistoryRecordEntry) String added in v0.4.0

func (s HistoryRecordEntry) String() string

String returns the string representation

type Host

type Host struct {

	// The time that the Dedicated Host was allocated.
	AllocationTime *time.Time `locationName:"allocationTime" type:"timestamp"`

	// Indicates whether the Dedicated Host supports multiple instance types of
	// the same instance family, or a specific instance type only. one indicates
	// that the Dedicated Host supports multiple instance types in the instance
	// family. off indicates that the Dedicated Host supports a single instance
	// type only.
	AllowsMultipleInstanceTypes AllowsMultipleInstanceTypes `locationName:"allowsMultipleInstanceTypes" type:"string" enum:"true"`

	// Whether auto-placement is on or off.
	AutoPlacement AutoPlacement `locationName:"autoPlacement" type:"string" enum:"true"`

	// The Availability Zone of the Dedicated Host.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The ID of the Availability Zone in which the Dedicated Host is allocated.
	AvailabilityZoneId *string `locationName:"availabilityZoneId" type:"string"`

	// Information about the instances running on the Dedicated Host.
	AvailableCapacity *AvailableCapacity `locationName:"availableCapacity" type:"structure"`

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `locationName:"clientToken" type:"string"`

	// The ID of the Dedicated Host.
	HostId *string `locationName:"hostId" type:"string"`

	// The hardware specifications of the Dedicated Host.
	HostProperties *HostProperties `locationName:"hostProperties" type:"structure"`

	// Indicates whether host recovery is enabled or disabled for the Dedicated
	// Host.
	HostRecovery HostRecovery `locationName:"hostRecovery" type:"string" enum:"true"`

	// The reservation ID of the Dedicated Host. This returns a null response if
	// the Dedicated Host doesn't have an associated reservation.
	HostReservationId *string `locationName:"hostReservationId" type:"string"`

	// The IDs and instance type that are currently running on the Dedicated Host.
	Instances []HostInstance `locationName:"instances" locationNameList:"item" type:"list"`

	// Indicates whether the Dedicated Host is in a host resource group. If memberOfServiceLinkedResourceGroup
	// is true, the host is in a host resource group; otherwise, it is not.
	MemberOfServiceLinkedResourceGroup *bool `locationName:"memberOfServiceLinkedResourceGroup" type:"boolean"`

	// The ID of the AWS account that owns the Dedicated Host.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The time that the Dedicated Host was released.
	ReleaseTime *time.Time `locationName:"releaseTime" type:"timestamp"`

	// The Dedicated Host's state.
	State AllocationState `locationName:"state" type:"string" enum:"true"`

	// Any tags assigned to the Dedicated Host.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes the properties of the Dedicated Host.

func (Host) String

func (s Host) String() string

String returns the string representation

type HostInstance

type HostInstance struct {

	// The ID of instance that is running on the Dedicated Host.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The instance type (for example, m3.medium) of the running instance.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// The ID of the AWS account that owns the instance.
	OwnerId *string `locationName:"ownerId" type:"string"`
	// contains filtered or unexported fields
}

Describes an instance running on a Dedicated Host.

func (HostInstance) String

func (s HostInstance) String() string

String returns the string representation

type HostOffering

type HostOffering struct {

	// The currency of the offering.
	CurrencyCode CurrencyCodeValues `locationName:"currencyCode" type:"string" enum:"true"`

	// The duration of the offering (in seconds).
	Duration *int64 `locationName:"duration" type:"integer"`

	// The hourly price of the offering.
	HourlyPrice *string `locationName:"hourlyPrice" type:"string"`

	// The instance family of the offering.
	InstanceFamily *string `locationName:"instanceFamily" type:"string"`

	// The ID of the offering.
	OfferingId *string `locationName:"offeringId" type:"string"`

	// The available payment option.
	PaymentOption PaymentOption `locationName:"paymentOption" type:"string" enum:"true"`

	// The upfront price of the offering. Does not apply to No Upfront offerings.
	UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
	// contains filtered or unexported fields
}

Details about the Dedicated Host Reservation offering.

func (HostOffering) String

func (s HostOffering) String() string

String returns the string representation

type HostProperties

type HostProperties struct {

	// The number of cores on the Dedicated Host.
	Cores *int64 `locationName:"cores" type:"integer"`

	// The instance family supported by the Dedicated Host. For example, m5.
	InstanceFamily *string `locationName:"instanceFamily" type:"string"`

	// The instance type supported by the Dedicated Host. For example, m5.large.
	// If the host supports multiple instance types, no instanceType is returned.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// The number of sockets on the Dedicated Host.
	Sockets *int64 `locationName:"sockets" type:"integer"`

	// The total number of vCPUs on the Dedicated Host.
	TotalVCpus *int64 `locationName:"totalVCpus" type:"integer"`
	// contains filtered or unexported fields
}

Describes the properties of a Dedicated Host.

func (HostProperties) String

func (s HostProperties) String() string

String returns the string representation

type HostRecovery added in v0.10.0

type HostRecovery string
const (
	HostRecoveryOn  HostRecovery = "on"
	HostRecoveryOff HostRecovery = "off"
)

Enum values for HostRecovery

func (HostRecovery) MarshalValue added in v0.10.0

func (enum HostRecovery) MarshalValue() (string, error)

func (HostRecovery) MarshalValueBuf added in v0.10.0

func (enum HostRecovery) MarshalValueBuf(b []byte) ([]byte, error)

type HostReservation

type HostReservation struct {

	// The number of Dedicated Hosts the reservation is associated with.
	Count *int64 `locationName:"count" type:"integer"`

	// The currency in which the upfrontPrice and hourlyPrice amounts are specified.
	// At this time, the only supported currency is USD.
	CurrencyCode CurrencyCodeValues `locationName:"currencyCode" type:"string" enum:"true"`

	// The length of the reservation's term, specified in seconds. Can be 31536000
	// (1 year) | 94608000 (3 years).
	Duration *int64 `locationName:"duration" type:"integer"`

	// The date and time that the reservation ends.
	End *time.Time `locationName:"end" type:"timestamp"`

	// The IDs of the Dedicated Hosts associated with the reservation.
	HostIdSet []string `locationName:"hostIdSet" locationNameList:"item" type:"list"`

	// The ID of the reservation that specifies the associated Dedicated Hosts.
	HostReservationId *string `locationName:"hostReservationId" type:"string"`

	// The hourly price of the reservation.
	HourlyPrice *string `locationName:"hourlyPrice" type:"string"`

	// The instance family of the Dedicated Host Reservation. The instance family
	// on the Dedicated Host must be the same in order for it to benefit from the
	// reservation.
	InstanceFamily *string `locationName:"instanceFamily" type:"string"`

	// The ID of the reservation. This remains the same regardless of which Dedicated
	// Hosts are associated with it.
	OfferingId *string `locationName:"offeringId" type:"string"`

	// The payment option selected for this reservation.
	PaymentOption PaymentOption `locationName:"paymentOption" type:"string" enum:"true"`

	// The date and time that the reservation started.
	Start *time.Time `locationName:"start" type:"timestamp"`

	// The state of the reservation.
	State ReservationState `locationName:"state" type:"string" enum:"true"`

	// Any tags assigned to the Dedicated Host Reservation.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The upfront price of the reservation.
	UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
	// contains filtered or unexported fields
}

Details about the Dedicated Host Reservation and associated Dedicated Hosts.

func (HostReservation) String

func (s HostReservation) String() string

String returns the string representation

type HostTenancy

type HostTenancy string
const (
	HostTenancyDedicated HostTenancy = "dedicated"
	HostTenancyHost      HostTenancy = "host"
)

Enum values for HostTenancy

func (HostTenancy) MarshalValue added in v0.3.0

func (enum HostTenancy) MarshalValue() (string, error)

func (HostTenancy) MarshalValueBuf added in v0.3.0

func (enum HostTenancy) MarshalValueBuf(b []byte) ([]byte, error)

type HttpTokensState added in v0.17.0

type HttpTokensState string
const (
	HttpTokensStateOptional HttpTokensState = "optional"
	HttpTokensStateRequired HttpTokensState = "required"
)

Enum values for HttpTokensState

func (HttpTokensState) MarshalValue added in v0.17.0

func (enum HttpTokensState) MarshalValue() (string, error)

func (HttpTokensState) MarshalValueBuf added in v0.17.0

func (enum HttpTokensState) MarshalValueBuf(b []byte) ([]byte, error)

type HypervisorType

type HypervisorType string
const (
	HypervisorTypeOvm HypervisorType = "ovm"
	HypervisorTypeXen HypervisorType = "xen"
)

Enum values for HypervisorType

func (HypervisorType) MarshalValue added in v0.3.0

func (enum HypervisorType) MarshalValue() (string, error)

func (HypervisorType) MarshalValueBuf added in v0.3.0

func (enum HypervisorType) MarshalValueBuf(b []byte) ([]byte, error)

type IKEVersionsListValue added in v0.12.0

type IKEVersionsListValue struct {

	// The IKE version.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

The internet key exchange (IKE) version permitted for the VPN tunnel.

func (IKEVersionsListValue) String added in v0.12.0

func (s IKEVersionsListValue) String() string

String returns the string representation

type IKEVersionsRequestListValue added in v0.12.0

type IKEVersionsRequestListValue struct {

	// The IKE version.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

The IKE version that is permitted for the VPN tunnel.

func (IKEVersionsRequestListValue) String added in v0.12.0

String returns the string representation

type IamInstanceProfile

type IamInstanceProfile struct {

	// The Amazon Resource Name (ARN) of the instance profile.
	Arn *string `locationName:"arn" type:"string"`

	// The ID of the instance profile.
	Id *string `locationName:"id" type:"string"`
	// contains filtered or unexported fields
}

Describes an IAM instance profile.

func (IamInstanceProfile) String

func (s IamInstanceProfile) String() string

String returns the string representation

type IamInstanceProfileAssociation

type IamInstanceProfileAssociation struct {

	// The ID of the association.
	AssociationId *string `locationName:"associationId" type:"string"`

	// The IAM instance profile.
	IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The state of the association.
	State IamInstanceProfileAssociationState `locationName:"state" type:"string" enum:"true"`

	// The time the IAM instance profile was associated with the instance.
	Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes an association between an IAM instance profile and an instance.

func (IamInstanceProfileAssociation) String

String returns the string representation

type IamInstanceProfileAssociationState

type IamInstanceProfileAssociationState string
const (
	IamInstanceProfileAssociationStateAssociating    IamInstanceProfileAssociationState = "associating"
	IamInstanceProfileAssociationStateAssociated     IamInstanceProfileAssociationState = "associated"
	IamInstanceProfileAssociationStateDisassociating IamInstanceProfileAssociationState = "disassociating"
	IamInstanceProfileAssociationStateDisassociated  IamInstanceProfileAssociationState = "disassociated"
)

Enum values for IamInstanceProfileAssociationState

func (IamInstanceProfileAssociationState) MarshalValue added in v0.3.0

func (enum IamInstanceProfileAssociationState) MarshalValue() (string, error)

func (IamInstanceProfileAssociationState) MarshalValueBuf added in v0.3.0

func (enum IamInstanceProfileAssociationState) MarshalValueBuf(b []byte) ([]byte, error)

type IamInstanceProfileSpecification

type IamInstanceProfileSpecification struct {

	// The Amazon Resource Name (ARN) of the instance profile.
	Arn *string `locationName:"arn" type:"string"`

	// The name of the instance profile.
	Name *string `locationName:"name" type:"string"`
	// contains filtered or unexported fields
}

Describes an IAM instance profile.

func (IamInstanceProfileSpecification) String

String returns the string representation

type IcmpTypeCode

type IcmpTypeCode struct {

	// The ICMP code. A value of -1 means all codes for the specified ICMP type.
	Code *int64 `locationName:"code" type:"integer"`

	// The ICMP type. A value of -1 means all types.
	Type *int64 `locationName:"type" type:"integer"`
	// contains filtered or unexported fields
}

Describes the ICMP type and code.

func (IcmpTypeCode) String

func (s IcmpTypeCode) String() string

String returns the string representation

type IdFormat

type IdFormat struct {

	// The date in UTC at which you are permanently switched over to using longer
	// IDs. If a deadline is not yet available for this resource type, this field
	// is not returned.
	Deadline *time.Time `locationName:"deadline" type:"timestamp"`

	// The type of resource.
	Resource *string `locationName:"resource" type:"string"`

	// Indicates whether longer IDs (17-character IDs) are enabled for the resource.
	UseLongIds *bool `locationName:"useLongIds" type:"boolean"`
	// contains filtered or unexported fields
}

Describes the ID format for a resource.

func (IdFormat) String

func (s IdFormat) String() string

String returns the string representation

type Image

type Image struct {

	// The architecture of the image.
	Architecture ArchitectureValues `locationName:"architecture" type:"string" enum:"true"`

	// Any block device mapping entries.
	BlockDeviceMappings []BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`

	// The date and time the image was created.
	CreationDate *string `locationName:"creationDate" type:"string"`

	// The description of the AMI that was provided during image creation.
	Description *string `locationName:"description" type:"string"`

	// Specifies whether enhanced networking with ENA is enabled.
	EnaSupport *bool `locationName:"enaSupport" type:"boolean"`

	// The hypervisor type of the image.
	Hypervisor HypervisorType `locationName:"hypervisor" type:"string" enum:"true"`

	// The ID of the AMI.
	ImageId *string `locationName:"imageId" type:"string"`

	// The location of the AMI.
	ImageLocation *string `locationName:"imageLocation" type:"string"`

	// The AWS account alias (for example, amazon, self) or the AWS account ID of
	// the AMI owner.
	ImageOwnerAlias *string `locationName:"imageOwnerAlias" type:"string"`

	// The type of image.
	ImageType ImageTypeValues `locationName:"imageType" type:"string" enum:"true"`

	// The kernel associated with the image, if any. Only applicable for machine
	// images.
	KernelId *string `locationName:"kernelId" type:"string"`

	// The name of the AMI that was provided during image creation.
	Name *string `locationName:"name" type:"string"`

	// The AWS account ID of the image owner.
	OwnerId *string `locationName:"imageOwnerId" type:"string"`

	// This value is set to windows for Windows AMIs; otherwise, it is blank.
	Platform PlatformValues `locationName:"platform" type:"string" enum:"true"`

	// The platform details associated with the billing code of the AMI. For more
	// information, see Obtaining Billing Information (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	PlatformDetails *string `locationName:"platformDetails" type:"string"`

	// Any product codes associated with the AMI.
	ProductCodes []ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`

	// Indicates whether the image has public launch permissions. The value is true
	// if this image has public launch permissions or false if it has only implicit
	// and explicit launch permissions.
	Public *bool `locationName:"isPublic" type:"boolean"`

	// The RAM disk associated with the image, if any. Only applicable for machine
	// images.
	RamdiskId *string `locationName:"ramdiskId" type:"string"`

	// The device name of the root device volume (for example, /dev/sda1).
	RootDeviceName *string `locationName:"rootDeviceName" type:"string"`

	// The type of root device used by the AMI. The AMI can use an EBS volume or
	// an instance store volume.
	RootDeviceType DeviceType `locationName:"rootDeviceType" type:"string" enum:"true"`

	// Specifies whether enhanced networking with the Intel 82599 Virtual Function
	// interface is enabled.
	SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`

	// The current state of the AMI. If the state is available, the image is successfully
	// registered and can be used to launch an instance.
	State ImageState `locationName:"imageState" type:"string" enum:"true"`

	// The reason for the state change.
	StateReason *StateReason `locationName:"stateReason" type:"structure"`

	// Any tags assigned to the image.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The operation of the Amazon EC2 instance and the billing code that is associated
	// with the AMI. usageOperation corresponds to the lineitem/Operation (https://docs.aws.amazon.com/cur/latest/userguide/Lineitem-columns.html#Lineitem-details-O-Operation)
	// column on your AWS Cost and Usage Report and in the AWS Price List API (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/price-changes.html).
	// For the list of UsageOperation codes, see Platform Details and Usage Operation
	// Billing Codes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html#billing-info)
	// in the Amazon Elastic Compute Cloud User Guide.
	UsageOperation *string `locationName:"usageOperation" type:"string"`

	// The type of virtualization of the AMI.
	VirtualizationType VirtualizationType `locationName:"virtualizationType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes an image.

func (Image) String

func (s Image) String() string

String returns the string representation

type ImageAttributeName

type ImageAttributeName string
const (
	ImageAttributeNameDescription        ImageAttributeName = "description"
	ImageAttributeNameKernel             ImageAttributeName = "kernel"
	ImageAttributeNameRamdisk            ImageAttributeName = "ramdisk"
	ImageAttributeNameLaunchPermission   ImageAttributeName = "launchPermission"
	ImageAttributeNameProductCodes       ImageAttributeName = "productCodes"
	ImageAttributeNameBlockDeviceMapping ImageAttributeName = "blockDeviceMapping"
	ImageAttributeNameSriovNetSupport    ImageAttributeName = "sriovNetSupport"
)

Enum values for ImageAttributeName

func (ImageAttributeName) MarshalValue added in v0.3.0

func (enum ImageAttributeName) MarshalValue() (string, error)

func (ImageAttributeName) MarshalValueBuf added in v0.3.0

func (enum ImageAttributeName) MarshalValueBuf(b []byte) ([]byte, error)

type ImageDiskContainer

type ImageDiskContainer struct {

	// The description of the disk image.
	Description *string `type:"string"`

	// The block device mapping for the disk.
	DeviceName *string `type:"string"`

	// The format of the disk image being imported.
	//
	// Valid values: OVA | VHD | VHDX |VMDK
	Format *string `type:"string"`

	// The ID of the EBS snapshot to be used for importing the snapshot.
	SnapshotId *string `type:"string"`

	// The URL to the Amazon S3-based disk image being imported. The URL can either
	// be a https URL (https://..) or an Amazon S3 URL (s3://..)
	Url *string `type:"string"`

	// The S3 bucket for the disk image.
	UserBucket *UserBucket `type:"structure"`
	// contains filtered or unexported fields
}

Describes the disk container object for an import image task.

func (ImageDiskContainer) String

func (s ImageDiskContainer) String() string

String returns the string representation

type ImageState

type ImageState string
const (
	ImageStatePending      ImageState = "pending"
	ImageStateAvailable    ImageState = "available"
	ImageStateInvalid      ImageState = "invalid"
	ImageStateDeregistered ImageState = "deregistered"
	ImageStateTransient    ImageState = "transient"
	ImageStateFailed       ImageState = "failed"
	ImageStateError        ImageState = "error"
)

Enum values for ImageState

func (ImageState) MarshalValue added in v0.3.0

func (enum ImageState) MarshalValue() (string, error)

func (ImageState) MarshalValueBuf added in v0.3.0

func (enum ImageState) MarshalValueBuf(b []byte) ([]byte, error)

type ImageTypeValues

type ImageTypeValues string
const (
	ImageTypeValuesMachine ImageTypeValues = "machine"
	ImageTypeValuesKernel  ImageTypeValues = "kernel"
	ImageTypeValuesRamdisk ImageTypeValues = "ramdisk"
)

Enum values for ImageTypeValues

func (ImageTypeValues) MarshalValue added in v0.3.0

func (enum ImageTypeValues) MarshalValue() (string, error)

func (ImageTypeValues) MarshalValueBuf added in v0.3.0

func (enum ImageTypeValues) MarshalValueBuf(b []byte) ([]byte, error)

type ImportClientVpnClientCertificateRevocationListInput added in v0.7.0

type ImportClientVpnClientCertificateRevocationListInput struct {

	// The client certificate revocation list file. For more information, see Generate
	// a Client Certificate Revocation List (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-working-certificates.html#cvpn-working-certificates-generate)
	// in the AWS Client VPN Administrator Guide.
	//
	// CertificateRevocationList is a required field
	CertificateRevocationList *string `type:"string" required:"true"`

	// The ID of the Client VPN endpoint to which the client certificate revocation
	// list applies.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (ImportClientVpnClientCertificateRevocationListInput) String added in v0.7.0

String returns the string representation

func (*ImportClientVpnClientCertificateRevocationListInput) Validate added in v0.7.0

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

type ImportClientVpnClientCertificateRevocationListOutput added in v0.7.0

type ImportClientVpnClientCertificateRevocationListOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ImportClientVpnClientCertificateRevocationListOutput) String added in v0.7.0

String returns the string representation

type ImportClientVpnClientCertificateRevocationListRequest added in v0.7.0

ImportClientVpnClientCertificateRevocationListRequest is the request type for the ImportClientVpnClientCertificateRevocationList API operation.

func (ImportClientVpnClientCertificateRevocationListRequest) Send added in v0.7.0

Send marshals and sends the ImportClientVpnClientCertificateRevocationList API request.

type ImportClientVpnClientCertificateRevocationListResponse added in v0.9.0

type ImportClientVpnClientCertificateRevocationListResponse struct {
	*ImportClientVpnClientCertificateRevocationListOutput
	// contains filtered or unexported fields
}

ImportClientVpnClientCertificateRevocationListResponse is the response type for the ImportClientVpnClientCertificateRevocationList API operation.

func (*ImportClientVpnClientCertificateRevocationListResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the ImportClientVpnClientCertificateRevocationList request.

type ImportImageInput

type ImportImageInput struct {

	// The architecture of the virtual machine.
	//
	// Valid values: i386 | x86_64 | arm64
	Architecture *string `type:"string"`

	// The client-specific data.
	ClientData *Data `type:"structure"`

	// The token to enable idempotency for VM import requests.
	ClientToken *string `type:"string"`

	// A description string for the import image task.
	Description *string `type:"string"`

	// Information about the disk containers.
	DiskContainers []ImageDiskContainer `locationName:"DiskContainer" locationNameList:"item" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Specifies whether the destination AMI of the imported image should be encrypted.
	// The default CMK for EBS is used unless you specify a non-default AWS Key
	// Management Service (AWS KMS) CMK using KmsKeyId. For more information, see
	// Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	Encrypted *bool `type:"boolean"`

	// The target hypervisor platform.
	//
	// Valid values: xen
	Hypervisor *string `type:"string"`

	// An identifier for the symmetric AWS Key Management Service (AWS KMS) customer
	// master key (CMK) to use when creating the encrypted AMI. This parameter is
	// only required if you want to use a non-default CMK; if this parameter is
	// not specified, the default CMK for EBS is used. If a KmsKeyId is specified,
	// the Encrypted flag must also be set.
	//
	// The CMK identifier may be provided in any of the following formats:
	//
	//    * Key ID
	//
	//    * Key alias. The alias ARN contains the arn:aws:kms namespace, followed
	//    by the Region of the CMK, the AWS account ID of the CMK owner, the alias
	//    namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
	//
	//    * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
	//    by the Region of the CMK, the AWS account ID of the CMK owner, the key
	//    namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
	//
	//    * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
	//    followed by the Region of the CMK, the AWS account ID of the CMK owner,
	//    the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
	//
	// AWS parses KmsKeyId asynchronously, meaning that the action you call may
	// appear to complete even though you provided an invalid identifier. This action
	// will eventually report failure.
	//
	// The specified CMK must exist in the Region that the AMI is being copied to.
	//
	// Amazon EBS does not support asymmetric CMKs.
	KmsKeyId *string `type:"string"`

	// The ARNs of the license configurations.
	LicenseSpecifications []ImportImageLicenseConfigurationRequest `locationNameList:"item" type:"list"`

	// The license type to be used for the Amazon Machine Image (AMI) after importing.
	//
	// By default, we detect the source-system operating system (OS) and apply the
	// appropriate license. Specify AWS to replace the source-system license with
	// an AWS license, if appropriate. Specify BYOL to retain the source-system
	// license, if appropriate.
	//
	// To use BYOL, you must have existing licenses with rights to use these licenses
	// in a third party cloud, such as AWS. For more information, see Prerequisites
	// (https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image)
	// in the VM Import/Export User Guide.
	LicenseType *string `type:"string"`

	// The operating system of the virtual machine.
	//
	// Valid values: Windows | Linux
	Platform *string `type:"string"`

	// The name of the role to use when not using the default role, 'vmimport'.
	RoleName *string `type:"string"`

	// The tags to apply to the image being imported.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (ImportImageInput) String

func (s ImportImageInput) String() string

String returns the string representation

type ImportImageLicenseConfigurationRequest added in v0.18.0

type ImportImageLicenseConfigurationRequest struct {

	// The ARN of a license configuration.
	LicenseConfigurationArn *string `type:"string"`
	// contains filtered or unexported fields
}

The request information of license configurations.

func (ImportImageLicenseConfigurationRequest) String added in v0.18.0

String returns the string representation

type ImportImageLicenseConfigurationResponse added in v0.18.0

type ImportImageLicenseConfigurationResponse struct {

	// The ARN of a license configuration.
	LicenseConfigurationArn *string `locationName:"licenseConfigurationArn" type:"string"`
	// contains filtered or unexported fields
}

The response information for license configurations.

func (ImportImageLicenseConfigurationResponse) String added in v0.18.0

String returns the string representation

type ImportImageOutput

type ImportImageOutput struct {

	// The architecture of the virtual machine.
	Architecture *string `locationName:"architecture" type:"string"`

	// A description of the import task.
	Description *string `locationName:"description" type:"string"`

	// Indicates whether the AMI is encrypted.
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// The target hypervisor of the import task.
	Hypervisor *string `locationName:"hypervisor" type:"string"`

	// The ID of the Amazon Machine Image (AMI) created by the import task.
	ImageId *string `locationName:"imageId" type:"string"`

	// The task ID of the import image task.
	ImportTaskId *string `locationName:"importTaskId" type:"string"`

	// The identifier for the symmetric AWS Key Management Service (AWS KMS) customer
	// master key (CMK) that was used to create the encrypted AMI.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// The ARNs of the license configurations.
	LicenseSpecifications []ImportImageLicenseConfigurationResponse `locationName:"licenseSpecifications" locationNameList:"item" type:"list"`

	// The license type of the virtual machine.
	LicenseType *string `locationName:"licenseType" type:"string"`

	// The operating system of the virtual machine.
	Platform *string `locationName:"platform" type:"string"`

	// The progress of the task.
	Progress *string `locationName:"progress" type:"string"`

	// Information about the snapshots.
	SnapshotDetails []SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`

	// A brief status of the task.
	Status *string `locationName:"status" type:"string"`

	// A detailed status message of the import task.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// Any tags assigned to the image being imported.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (ImportImageOutput) String

func (s ImportImageOutput) String() string

String returns the string representation

type ImportImageRequest

type ImportImageRequest struct {
	*aws.Request
	Input *ImportImageInput
	Copy  func(*ImportImageInput) ImportImageRequest
}

ImportImageRequest is the request type for the ImportImage API operation.

func (ImportImageRequest) Send

Send marshals and sends the ImportImage API request.

type ImportImageResponse added in v0.9.0

type ImportImageResponse struct {
	*ImportImageOutput
	// contains filtered or unexported fields
}

ImportImageResponse is the response type for the ImportImage API operation.

func (*ImportImageResponse) SDKResponseMetdata added in v0.9.0

func (r *ImportImageResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ImportImage request.

type ImportImageTask

type ImportImageTask struct {

	// The architecture of the virtual machine.
	//
	// Valid values: i386 | x86_64 | arm64
	Architecture *string `locationName:"architecture" type:"string"`

	// A description of the import task.
	Description *string `locationName:"description" type:"string"`

	// Indicates whether the image is encrypted.
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// The target hypervisor for the import task.
	//
	// Valid values: xen
	Hypervisor *string `locationName:"hypervisor" type:"string"`

	// The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
	ImageId *string `locationName:"imageId" type:"string"`

	// The ID of the import image task.
	ImportTaskId *string `locationName:"importTaskId" type:"string"`

	// The identifier for the AWS Key Management Service (AWS KMS) customer master
	// key (CMK) that was used to create the encrypted image.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// The ARNs of the license configurations that are associated with the import
	// image task.
	LicenseSpecifications []ImportImageLicenseConfigurationResponse `locationName:"licenseSpecifications" locationNameList:"item" type:"list"`

	// The license type of the virtual machine.
	LicenseType *string `locationName:"licenseType" type:"string"`

	// The description string for the import image task.
	Platform *string `locationName:"platform" type:"string"`

	// The percentage of progress of the import image task.
	Progress *string `locationName:"progress" type:"string"`

	// Information about the snapshots.
	SnapshotDetails []SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`

	// A brief status for the import image task.
	Status *string `locationName:"status" type:"string"`

	// A descriptive status message for the import image task.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// The tags for the import image task.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an import image task.

func (ImportImageTask) String

func (s ImportImageTask) String() string

String returns the string representation

type ImportInstanceInput

type ImportInstanceInput struct {

	// A description for the instance being imported.
	Description *string `locationName:"description" type:"string"`

	// The disk image.
	DiskImages []DiskImage `locationName:"diskImage" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The launch specification.
	LaunchSpecification *ImportInstanceLaunchSpecification `locationName:"launchSpecification" type:"structure"`

	// The instance operating system.
	//
	// Platform is a required field
	Platform PlatformValues `locationName:"platform" type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

func (ImportInstanceInput) String

func (s ImportInstanceInput) String() string

String returns the string representation

func (*ImportInstanceInput) Validate

func (s *ImportInstanceInput) Validate() error

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

type ImportInstanceLaunchSpecification

type ImportInstanceLaunchSpecification struct {

	// Reserved.
	AdditionalInfo *string `locationName:"additionalInfo" type:"string"`

	// The architecture of the instance.
	Architecture ArchitectureValues `locationName:"architecture" type:"string" enum:"true"`

	// The security group IDs.
	GroupIds []string `locationName:"GroupId" locationNameList:"SecurityGroupId" type:"list"`

	// The security group names.
	GroupNames []string `locationName:"GroupName" locationNameList:"SecurityGroup" type:"list"`

	// Indicates whether an instance stops or terminates when you initiate shutdown
	// from the instance (using the operating system command for system shutdown).
	InstanceInitiatedShutdownBehavior ShutdownBehavior `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"true"`

	// The instance type. For more information about the instance types that you
	// can import, see Instance Types (https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#vmimport-instance-types)
	// in the VM Import/Export User Guide.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// Indicates whether monitoring is enabled.
	Monitoring *bool `locationName:"monitoring" type:"boolean"`

	// The placement information for the instance.
	Placement *Placement `locationName:"placement" type:"structure"`

	// [EC2-VPC] An available IP address from the IP address range of the subnet.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`

	// [EC2-VPC] The ID of the subnet in which to launch the instance.
	SubnetId *string `locationName:"subnetId" type:"string"`

	// The Base64-encoded user data to make available to the instance.
	UserData *UserData `locationName:"userData" type:"structure" sensitive:"true"`
	// contains filtered or unexported fields
}

Describes the launch specification for VM import.

func (ImportInstanceLaunchSpecification) String

String returns the string representation

type ImportInstanceOutput

type ImportInstanceOutput struct {

	// Information about the conversion task.
	ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
	// contains filtered or unexported fields
}

func (ImportInstanceOutput) String

func (s ImportInstanceOutput) String() string

String returns the string representation

type ImportInstanceRequest

type ImportInstanceRequest struct {
	*aws.Request
	Input *ImportInstanceInput
	Copy  func(*ImportInstanceInput) ImportInstanceRequest
}

ImportInstanceRequest is the request type for the ImportInstance API operation.

func (ImportInstanceRequest) Send

Send marshals and sends the ImportInstance API request.

type ImportInstanceResponse added in v0.9.0

type ImportInstanceResponse struct {
	*ImportInstanceOutput
	// contains filtered or unexported fields
}

ImportInstanceResponse is the response type for the ImportInstance API operation.

func (*ImportInstanceResponse) SDKResponseMetdata added in v0.9.0

func (r *ImportInstanceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ImportInstance request.

type ImportInstanceTaskDetails

type ImportInstanceTaskDetails struct {

	// A description of the task.
	Description *string `locationName:"description" type:"string"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The instance operating system.
	Platform PlatformValues `locationName:"platform" type:"string" enum:"true"`

	// The volumes.
	Volumes []ImportInstanceVolumeDetailItem `locationName:"volumes" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an import instance task.

func (ImportInstanceTaskDetails) String

func (s ImportInstanceTaskDetails) String() string

String returns the string representation

type ImportInstanceVolumeDetailItem

type ImportInstanceVolumeDetailItem struct {

	// The Availability Zone where the resulting instance will reside.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The number of bytes converted so far.
	BytesConverted *int64 `locationName:"bytesConverted" type:"long"`

	// A description of the task.
	Description *string `locationName:"description" type:"string"`

	// The image.
	Image *DiskImageDescription `locationName:"image" type:"structure"`

	// The status of the import of this particular disk image.
	Status *string `locationName:"status" type:"string"`

	// The status information or errors related to the disk image.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// The volume.
	Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure"`
	// contains filtered or unexported fields
}

Describes an import volume task.

func (ImportInstanceVolumeDetailItem) String

String returns the string representation

type ImportKeyPairInput

type ImportKeyPairInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// A unique name for the key pair.
	//
	// KeyName is a required field
	KeyName *string `locationName:"keyName" type:"string" required:"true"`

	// The public key. For API calls, the text must be base64-encoded. For command
	// line tools, base64 encoding is performed for you.
	//
	// PublicKeyMaterial is automatically base64 encoded/decoded by the SDK.
	//
	// PublicKeyMaterial is a required field
	PublicKeyMaterial []byte `locationName:"publicKeyMaterial" type:"blob" required:"true"`

	// The tags to apply to the imported key pair.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

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 {

	// The MD5 public key fingerprint as specified in section 4 of RFC 4716.
	KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`

	// The key pair name you provided.
	KeyName *string `locationName:"keyName" type:"string"`

	// The ID of the resulting key pair.
	KeyPairId *string `locationName:"keyPairId" type:"string"`

	// The tags applied to the imported key pair.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (ImportKeyPairOutput) String

func (s ImportKeyPairOutput) String() string

String returns the string representation

type ImportKeyPairRequest

type ImportKeyPairRequest struct {
	*aws.Request
	Input *ImportKeyPairInput
	Copy  func(*ImportKeyPairInput) ImportKeyPairRequest
}

ImportKeyPairRequest is the request type for the ImportKeyPair API operation.

func (ImportKeyPairRequest) Send

Send marshals and sends the ImportKeyPair API request.

type ImportKeyPairResponse added in v0.9.0

type ImportKeyPairResponse struct {
	*ImportKeyPairOutput
	// contains filtered or unexported fields
}

ImportKeyPairResponse is the response type for the ImportKeyPair API operation.

func (*ImportKeyPairResponse) SDKResponseMetdata added in v0.9.0

func (r *ImportKeyPairResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ImportKeyPair request.

type ImportSnapshotInput

type ImportSnapshotInput struct {

	// The client-specific data.
	ClientData *Data `type:"structure"`

	// Token to enable idempotency for VM import requests.
	ClientToken *string `type:"string"`

	// The description string for the import snapshot task.
	Description *string `type:"string"`

	// Information about the disk container.
	DiskContainer *SnapshotDiskContainer `type:"structure"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Specifies whether the destination snapshot of the imported image should be
	// encrypted. The default CMK for EBS is used unless you specify a non-default
	// AWS Key Management Service (AWS KMS) CMK using KmsKeyId. For more information,
	// see Amazon EBS Encryption (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	Encrypted *bool `type:"boolean"`

	// An identifier for the symmetric AWS Key Management Service (AWS KMS) customer
	// master key (CMK) to use when creating the encrypted snapshot. This parameter
	// is only required if you want to use a non-default CMK; if this parameter
	// is not specified, the default CMK for EBS is used. If a KmsKeyId is specified,
	// the Encrypted flag must also be set.
	//
	// The CMK identifier may be provided in any of the following formats:
	//
	//    * Key ID
	//
	//    * Key alias. The alias ARN contains the arn:aws:kms namespace, followed
	//    by the Region of the CMK, the AWS account ID of the CMK owner, the alias
	//    namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
	//
	//    * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
	//    by the Region of the CMK, the AWS account ID of the CMK owner, the key
	//    namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
	//
	//    * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
	//    followed by the Region of the CMK, the AWS account ID of the CMK owner,
	//    the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
	//
	// AWS parses KmsKeyId asynchronously, meaning that the action you call may
	// appear to complete even though you provided an invalid identifier. This action
	// will eventually report failure.
	//
	// The specified CMK must exist in the Region that the snapshot is being copied
	// to.
	//
	// Amazon EBS does not support asymmetric CMKs.
	KmsKeyId *string `type:"string"`

	// The name of the role to use when not using the default role, 'vmimport'.
	RoleName *string `type:"string"`

	// The tags to apply to the snapshot being imported.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (ImportSnapshotInput) String

func (s ImportSnapshotInput) String() string

String returns the string representation

type ImportSnapshotOutput

type ImportSnapshotOutput struct {

	// A description of the import snapshot task.
	Description *string `locationName:"description" type:"string"`

	// The ID of the import snapshot task.
	ImportTaskId *string `locationName:"importTaskId" type:"string"`

	// Information about the import snapshot task.
	SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`

	// Any tags assigned to the snapshot being imported.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (ImportSnapshotOutput) String

func (s ImportSnapshotOutput) String() string

String returns the string representation

type ImportSnapshotRequest

type ImportSnapshotRequest struct {
	*aws.Request
	Input *ImportSnapshotInput
	Copy  func(*ImportSnapshotInput) ImportSnapshotRequest
}

ImportSnapshotRequest is the request type for the ImportSnapshot API operation.

func (ImportSnapshotRequest) Send

Send marshals and sends the ImportSnapshot API request.

type ImportSnapshotResponse added in v0.9.0

type ImportSnapshotResponse struct {
	*ImportSnapshotOutput
	// contains filtered or unexported fields
}

ImportSnapshotResponse is the response type for the ImportSnapshot API operation.

func (*ImportSnapshotResponse) SDKResponseMetdata added in v0.9.0

func (r *ImportSnapshotResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ImportSnapshot request.

type ImportSnapshotTask

type ImportSnapshotTask struct {

	// A description of the import snapshot task.
	Description *string `locationName:"description" type:"string"`

	// The ID of the import snapshot task.
	ImportTaskId *string `locationName:"importTaskId" type:"string"`

	// Describes an import snapshot task.
	SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`

	// The tags for the import snapshot task.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an import snapshot task.

func (ImportSnapshotTask) String

func (s ImportSnapshotTask) String() string

String returns the string representation

type ImportVolumeInput

type ImportVolumeInput struct {

	// The Availability Zone for the resulting EBS volume.
	//
	// AvailabilityZone is a required field
	AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`

	// A description of the volume.
	Description *string `locationName:"description" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The disk image.
	//
	// Image is a required field
	Image *DiskImageDetail `locationName:"image" type:"structure" required:"true"`

	// The volume size.
	//
	// Volume is a required field
	Volume *VolumeDetail `locationName:"volume" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (ImportVolumeInput) String

func (s ImportVolumeInput) String() string

String returns the string representation

func (*ImportVolumeInput) Validate

func (s *ImportVolumeInput) Validate() error

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

type ImportVolumeOutput

type ImportVolumeOutput struct {

	// Information about the conversion task.
	ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
	// contains filtered or unexported fields
}

func (ImportVolumeOutput) String

func (s ImportVolumeOutput) String() string

String returns the string representation

type ImportVolumeRequest

type ImportVolumeRequest struct {
	*aws.Request
	Input *ImportVolumeInput
	Copy  func(*ImportVolumeInput) ImportVolumeRequest
}

ImportVolumeRequest is the request type for the ImportVolume API operation.

func (ImportVolumeRequest) Send

Send marshals and sends the ImportVolume API request.

type ImportVolumeResponse added in v0.9.0

type ImportVolumeResponse struct {
	*ImportVolumeOutput
	// contains filtered or unexported fields
}

ImportVolumeResponse is the response type for the ImportVolume API operation.

func (*ImportVolumeResponse) SDKResponseMetdata added in v0.9.0

func (r *ImportVolumeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ImportVolume request.

type ImportVolumeTaskDetails

type ImportVolumeTaskDetails struct {

	// The Availability Zone where the resulting volume will reside.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The number of bytes converted so far.
	BytesConverted *int64 `locationName:"bytesConverted" type:"long"`

	// The description you provided when starting the import volume task.
	Description *string `locationName:"description" type:"string"`

	// The image.
	Image *DiskImageDescription `locationName:"image" type:"structure"`

	// The volume.
	Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure"`
	// contains filtered or unexported fields
}

Describes an import volume task.

func (ImportVolumeTaskDetails) String

func (s ImportVolumeTaskDetails) String() string

String returns the string representation

type InferenceAcceleratorInfo added in v0.18.0

type InferenceAcceleratorInfo struct {

	// Describes the Inference accelerators for the instance type.
	Accelerators []InferenceDeviceInfo `locationName:"accelerators" type:"list"`
	// contains filtered or unexported fields
}

Describes the Inference accelerators for the instance type.

func (InferenceAcceleratorInfo) String added in v0.18.0

func (s InferenceAcceleratorInfo) String() string

String returns the string representation

type InferenceDeviceInfo added in v0.18.0

type InferenceDeviceInfo struct {

	// The number of Inference accelerators for the instance type.
	Count *int64 `locationName:"count" type:"integer"`

	// The manufacturer of the Inference accelerator.
	Manufacturer *string `locationName:"manufacturer" type:"string"`

	// The name of the Inference accelerator.
	Name *string `locationName:"name" type:"string"`
	// contains filtered or unexported fields
}

Describes the Inference accelerators for the instance type.

func (InferenceDeviceInfo) String added in v0.18.0

func (s InferenceDeviceInfo) String() string

String returns the string representation

type Instance

type Instance struct {

	// The AMI launch index, which can be used to find this instance in the launch
	// group.
	AmiLaunchIndex *int64 `locationName:"amiLaunchIndex" type:"integer"`

	// The architecture of the image.
	Architecture ArchitectureValues `locationName:"architecture" type:"string" enum:"true"`

	// Any block device mapping entries for the instance.
	BlockDeviceMappings []InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`

	// The ID of the Capacity Reservation.
	CapacityReservationId *string `locationName:"capacityReservationId" type:"string"`

	// Information about the Capacity Reservation targeting option.
	CapacityReservationSpecification *CapacityReservationSpecificationResponse `locationName:"capacityReservationSpecification" type:"structure"`

	// The idempotency token you provided when you launched the instance, if applicable.
	ClientToken *string `locationName:"clientToken" type:"string"`

	// The CPU options for the instance.
	CpuOptions *CpuOptions `locationName:"cpuOptions" type:"structure"`

	// Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
	// provides dedicated throughput to Amazon EBS and an optimized configuration
	// stack to provide optimal I/O performance. This optimization isn't available
	// with all instance types. Additional usage charges apply when using an EBS
	// Optimized instance.
	EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`

	// The Elastic GPU associated with the instance.
	ElasticGpuAssociations []ElasticGpuAssociation `locationName:"elasticGpuAssociationSet" locationNameList:"item" type:"list"`

	// The elastic inference accelerator associated with the instance.
	ElasticInferenceAcceleratorAssociations []ElasticInferenceAcceleratorAssociation `locationName:"elasticInferenceAcceleratorAssociationSet" locationNameList:"item" type:"list"`

	// Specifies whether enhanced networking with ENA is enabled.
	EnaSupport *bool `locationName:"enaSupport" type:"boolean"`

	// Indicates whether the instance is enabled for hibernation.
	HibernationOptions *HibernationOptions `locationName:"hibernationOptions" type:"structure"`

	// The hypervisor type of the instance. The value xen is used for both Xen and
	// Nitro hypervisors.
	Hypervisor HypervisorType `locationName:"hypervisor" type:"string" enum:"true"`

	// The IAM instance profile associated with the instance, if applicable.
	IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`

	// The ID of the AMI used to launch the instance.
	ImageId *string `locationName:"imageId" type:"string"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// Indicates whether this is a Spot Instance or a Scheduled Instance.
	InstanceLifecycle InstanceLifecycleType `locationName:"instanceLifecycle" type:"string" enum:"true"`

	// The instance type.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The kernel associated with this instance, if applicable.
	KernelId *string `locationName:"kernelId" type:"string"`

	// The name of the key pair, if this instance was launched with an associated
	// key pair.
	KeyName *string `locationName:"keyName" type:"string"`

	// The time the instance was launched.
	LaunchTime *time.Time `locationName:"launchTime" type:"timestamp"`

	// The license configurations.
	Licenses []LicenseConfiguration `locationName:"licenseSet" locationNameList:"item" type:"list"`

	// The metadata options for the instance.
	MetadataOptions *InstanceMetadataOptionsResponse `locationName:"metadataOptions" type:"structure"`

	// The monitoring for the instance.
	Monitoring *Monitoring `locationName:"monitoring" type:"structure"`

	// [EC2-VPC] The network interfaces for the instance.
	NetworkInterfaces []InstanceNetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`

	// The Amazon Resource Name (ARN) of the Outpost.
	OutpostArn *string `locationName:"outpostArn" type:"string"`

	// The location where the instance launched, if applicable.
	Placement *Placement `locationName:"placement" type:"structure"`

	// The value is Windows for Windows instances; otherwise blank.
	Platform PlatformValues `locationName:"platform" type:"string" enum:"true"`

	// (IPv4 only) The private DNS hostname name assigned to the instance. This
	// DNS hostname can only be used inside the Amazon EC2 network. This name is
	// not available until the instance enters the running state.
	//
	// [EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private
	// DNS hostnames if you've enabled DNS resolution and DNS hostnames in your
	// VPC. If you are not using the Amazon-provided DNS server in your VPC, your
	// custom domain name servers must resolve the hostname as appropriate.
	PrivateDnsName *string `locationName:"privateDnsName" type:"string"`

	// The private IPv4 address assigned to the instance.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`

	// The product codes attached to this instance, if applicable.
	ProductCodes []ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`

	// (IPv4 only) The public DNS name assigned to the instance. This name is not
	// available until the instance enters the running state. For EC2-VPC, this
	// name is only available if you've enabled DNS hostnames for your VPC.
	PublicDnsName *string `locationName:"dnsName" type:"string"`

	// The public IPv4 address assigned to the instance, if applicable.
	PublicIpAddress *string `locationName:"ipAddress" type:"string"`

	// The RAM disk associated with this instance, if applicable.
	RamdiskId *string `locationName:"ramdiskId" type:"string"`

	// The device name of the root device volume (for example, /dev/sda1).
	RootDeviceName *string `locationName:"rootDeviceName" type:"string"`

	// The root device type used by the AMI. The AMI can use an EBS volume or an
	// instance store volume.
	RootDeviceType DeviceType `locationName:"rootDeviceType" type:"string" enum:"true"`

	// The security groups for the instance.
	SecurityGroups []GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`

	// Specifies whether to enable an instance launched in a VPC to perform NAT.
	// This controls whether source/destination checking is enabled on the instance.
	// A value of true means that checking is enabled, and false means that checking
	// is disabled. The value must be false for the instance to perform NAT. For
	// more information, see NAT Instances (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
	// in the Amazon Virtual Private Cloud User Guide.
	SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`

	// If the request is a Spot Instance request, the ID of the request.
	SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`

	// Specifies whether enhanced networking with the Intel 82599 Virtual Function
	// interface is enabled.
	SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`

	// The current state of the instance.
	State *InstanceState `locationName:"instanceState" type:"structure"`

	// The reason for the most recent state transition.
	StateReason *StateReason `locationName:"stateReason" type:"structure"`

	// The reason for the most recent state transition. This might be an empty string.
	StateTransitionReason *string `locationName:"reason" type:"string"`

	// [EC2-VPC] The ID of the subnet in which the instance is running.
	SubnetId *string `locationName:"subnetId" type:"string"`

	// Any tags assigned to the instance.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The virtualization type of the instance.
	VirtualizationType VirtualizationType `locationName:"virtualizationType" type:"string" enum:"true"`

	// [EC2-VPC] The ID of the VPC in which the instance is running.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes an instance.

func (Instance) String

func (s Instance) String() string

String returns the string representation

type InstanceAttributeName

type InstanceAttributeName string
const (
	InstanceAttributeNameInstanceType                      InstanceAttributeName = "instanceType"
	InstanceAttributeNameKernel                            InstanceAttributeName = "kernel"
	InstanceAttributeNameRamdisk                           InstanceAttributeName = "ramdisk"
	InstanceAttributeNameUserData                          InstanceAttributeName = "userData"
	InstanceAttributeNameDisableApiTermination             InstanceAttributeName = "disableApiTermination"
	InstanceAttributeNameInstanceInitiatedShutdownBehavior InstanceAttributeName = "instanceInitiatedShutdownBehavior"
	InstanceAttributeNameRootDeviceName                    InstanceAttributeName = "rootDeviceName"
	InstanceAttributeNameBlockDeviceMapping                InstanceAttributeName = "blockDeviceMapping"
	InstanceAttributeNameProductCodes                      InstanceAttributeName = "productCodes"
	InstanceAttributeNameSourceDestCheck                   InstanceAttributeName = "sourceDestCheck"
	InstanceAttributeNameGroupSet                          InstanceAttributeName = "groupSet"
	InstanceAttributeNameEbsOptimized                      InstanceAttributeName = "ebsOptimized"
	InstanceAttributeNameSriovNetSupport                   InstanceAttributeName = "sriovNetSupport"
	InstanceAttributeNameEnaSupport                        InstanceAttributeName = "enaSupport"
)

Enum values for InstanceAttributeName

func (InstanceAttributeName) MarshalValue added in v0.3.0

func (enum InstanceAttributeName) MarshalValue() (string, error)

func (InstanceAttributeName) MarshalValueBuf added in v0.3.0

func (enum InstanceAttributeName) MarshalValueBuf(b []byte) ([]byte, error)

type InstanceBlockDeviceMapping

type InstanceBlockDeviceMapping struct {

	// The device name (for example, /dev/sdh or xvdh).
	DeviceName *string `locationName:"deviceName" type:"string"`

	// Parameters used to automatically set up EBS volumes when the instance is
	// launched.
	Ebs *EbsInstanceBlockDevice `locationName:"ebs" type:"structure"`
	// contains filtered or unexported fields
}

Describes a block device mapping.

func (InstanceBlockDeviceMapping) String

String returns the string representation

type InstanceBlockDeviceMappingSpecification

type InstanceBlockDeviceMappingSpecification struct {

	// The device name (for example, /dev/sdh or xvdh).
	DeviceName *string `locationName:"deviceName" type:"string"`

	// Parameters used to automatically set up EBS volumes when the instance is
	// launched.
	Ebs *EbsInstanceBlockDeviceSpecification `locationName:"ebs" type:"structure"`

	// suppress the specified device included in the block device mapping.
	NoDevice *string `locationName:"noDevice" type:"string"`

	// The virtual device name.
	VirtualName *string `locationName:"virtualName" type:"string"`
	// contains filtered or unexported fields
}

Describes a block device mapping entry.

func (InstanceBlockDeviceMappingSpecification) String

String returns the string representation

type InstanceCapacity

type InstanceCapacity struct {

	// The number of instances that can be launched onto the Dedicated Host based
	// on the host's available capacity.
	AvailableCapacity *int64 `locationName:"availableCapacity" type:"integer"`

	// The instance type supported by the Dedicated Host.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// The total number of instances that can be launched onto the Dedicated Host
	// if there are no instances running on it.
	TotalCapacity *int64 `locationName:"totalCapacity" type:"integer"`
	// contains filtered or unexported fields
}

Information about the number of instances that can be launched onto the Dedicated Host.

func (InstanceCapacity) String

func (s InstanceCapacity) String() string

String returns the string representation

type InstanceCount

type InstanceCount struct {

	// The number of listed Reserved Instances in the state specified by the state.
	InstanceCount *int64 `locationName:"instanceCount" type:"integer"`

	// The states of the listed Reserved Instances.
	State ListingState `locationName:"state" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a Reserved Instance listing state.

func (InstanceCount) String

func (s InstanceCount) String() string

String returns the string representation

type InstanceCreditSpecification added in v0.2.0

type InstanceCreditSpecification struct {

	// The credit option for CPU usage of the instance. Valid values are standard
	// and unlimited.
	CpuCredits *string `locationName:"cpuCredits" type:"string"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`
	// contains filtered or unexported fields
}

Describes the credit option for CPU usage of a burstable performance instance.

func (InstanceCreditSpecification) String added in v0.2.0

String returns the string representation

type InstanceCreditSpecificationRequest added in v0.2.0

type InstanceCreditSpecificationRequest struct {

	// The credit option for CPU usage of the instance. Valid values are standard
	// and unlimited.
	CpuCredits *string `type:"string"`

	// The ID of the instance.
	InstanceId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the credit option for CPU usage of a burstable performance instance.

func (InstanceCreditSpecificationRequest) String added in v0.2.0

String returns the string representation

type InstanceExportDetails

type InstanceExportDetails struct {

	// The ID of the resource being exported.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The target virtualization environment.
	TargetEnvironment ExportEnvironment `locationName:"targetEnvironment" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes an instance to export.

func (InstanceExportDetails) String

func (s InstanceExportDetails) String() string

String returns the string representation

type InstanceFamilyCreditSpecification added in v0.18.0

type InstanceFamilyCreditSpecification struct {

	// The default credit option for CPU usage of the instance family. Valid values
	// are standard and unlimited.
	CpuCredits *string `locationName:"cpuCredits" type:"string"`

	// The instance family.
	InstanceFamily UnlimitedSupportedInstanceFamily `locationName:"instanceFamily" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the default credit option for CPU usage of a burstable performance instance family.

func (InstanceFamilyCreditSpecification) String added in v0.18.0

String returns the string representation

type InstanceHealthStatus

type InstanceHealthStatus string
const (
	InstanceHealthStatusHealthy   InstanceHealthStatus = "healthy"
	InstanceHealthStatusUnhealthy InstanceHealthStatus = "unhealthy"
)

Enum values for InstanceHealthStatus

func (InstanceHealthStatus) MarshalValue added in v0.3.0

func (enum InstanceHealthStatus) MarshalValue() (string, error)

func (InstanceHealthStatus) MarshalValueBuf added in v0.3.0

func (enum InstanceHealthStatus) MarshalValueBuf(b []byte) ([]byte, error)

type InstanceInterruptionBehavior

type InstanceInterruptionBehavior string
const (
	InstanceInterruptionBehaviorHibernate InstanceInterruptionBehavior = "hibernate"
	InstanceInterruptionBehaviorStop      InstanceInterruptionBehavior = "stop"
	InstanceInterruptionBehaviorTerminate InstanceInterruptionBehavior = "terminate"
)

Enum values for InstanceInterruptionBehavior

func (InstanceInterruptionBehavior) MarshalValue added in v0.3.0

func (enum InstanceInterruptionBehavior) MarshalValue() (string, error)

func (InstanceInterruptionBehavior) MarshalValueBuf added in v0.3.0

func (enum InstanceInterruptionBehavior) MarshalValueBuf(b []byte) ([]byte, error)

type InstanceIpv6Address

type InstanceIpv6Address struct {

	// The IPv6 address.
	Ipv6Address *string `locationName:"ipv6Address" type:"string"`
	// contains filtered or unexported fields
}

Describes an IPv6 address.

func (InstanceIpv6Address) String

func (s InstanceIpv6Address) String() string

String returns the string representation

type InstanceIpv6AddressRequest added in v0.2.0

type InstanceIpv6AddressRequest struct {

	// The IPv6 address.
	Ipv6Address *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an IPv6 address.

func (InstanceIpv6AddressRequest) String added in v0.2.0

String returns the string representation

type InstanceLifecycle added in v0.6.0

type InstanceLifecycle string
const (
	InstanceLifecycleSpot     InstanceLifecycle = "spot"
	InstanceLifecycleOnDemand InstanceLifecycle = "on-demand"
)

Enum values for InstanceLifecycle

func (InstanceLifecycle) MarshalValue added in v0.6.0

func (enum InstanceLifecycle) MarshalValue() (string, error)

func (InstanceLifecycle) MarshalValueBuf added in v0.6.0

func (enum InstanceLifecycle) MarshalValueBuf(b []byte) ([]byte, error)

type InstanceLifecycleType

type InstanceLifecycleType string
const (
	InstanceLifecycleTypeSpot      InstanceLifecycleType = "spot"
	InstanceLifecycleTypeScheduled InstanceLifecycleType = "scheduled"
)

Enum values for InstanceLifecycleType

func (InstanceLifecycleType) MarshalValue added in v0.3.0

func (enum InstanceLifecycleType) MarshalValue() (string, error)

func (InstanceLifecycleType) MarshalValueBuf added in v0.3.0

func (enum InstanceLifecycleType) MarshalValueBuf(b []byte) ([]byte, error)

type InstanceMarketOptionsRequest added in v0.2.0

type InstanceMarketOptionsRequest struct {

	// The market type.
	MarketType MarketType `type:"string" enum:"true"`

	// The options for Spot Instances.
	SpotOptions *SpotMarketOptions `type:"structure"`
	// contains filtered or unexported fields
}

Describes the market (purchasing) option for the instances.

func (InstanceMarketOptionsRequest) String added in v0.2.0

String returns the string representation

type InstanceMatchCriteria added in v0.6.0

type InstanceMatchCriteria string
const (
	InstanceMatchCriteriaOpen     InstanceMatchCriteria = "open"
	InstanceMatchCriteriaTargeted InstanceMatchCriteria = "targeted"
)

Enum values for InstanceMatchCriteria

func (InstanceMatchCriteria) MarshalValue added in v0.6.0

func (enum InstanceMatchCriteria) MarshalValue() (string, error)

func (InstanceMatchCriteria) MarshalValueBuf added in v0.6.0

func (enum InstanceMatchCriteria) MarshalValueBuf(b []byte) ([]byte, error)

type InstanceMetadataEndpointState added in v0.17.0

type InstanceMetadataEndpointState string
const (
	InstanceMetadataEndpointStateDisabled InstanceMetadataEndpointState = "disabled"
	InstanceMetadataEndpointStateEnabled  InstanceMetadataEndpointState = "enabled"
)

Enum values for InstanceMetadataEndpointState

func (InstanceMetadataEndpointState) MarshalValue added in v0.17.0

func (enum InstanceMetadataEndpointState) MarshalValue() (string, error)

func (InstanceMetadataEndpointState) MarshalValueBuf added in v0.17.0

func (enum InstanceMetadataEndpointState) MarshalValueBuf(b []byte) ([]byte, error)

type InstanceMetadataOptionsRequest added in v0.17.0

type InstanceMetadataOptionsRequest struct {

	// This parameter enables or disables the HTTP metadata endpoint on your instances.
	// If the parameter is not specified, the default state is enabled.
	//
	// If you specify a value of disabled, you will not be able to access your instance
	// metadata.
	HttpEndpoint InstanceMetadataEndpointState `type:"string" enum:"true"`

	// The desired HTTP PUT response hop limit for instance metadata requests. The
	// larger the number, the further instance metadata requests can travel.
	//
	// Default: 1
	//
	// Possible values: Integers from 1 to 64
	HttpPutResponseHopLimit *int64 `type:"integer"`

	// The state of token usage for your instance metadata requests. If the parameter
	// is not specified in the request, the default state is optional.
	//
	// If the state is optional, you can choose to retrieve instance metadata with
	// or without a signed token header on your request. If you retrieve the IAM
	// role credentials without a token, the version 1.0 role credentials are returned.
	// If you retrieve the IAM role credentials using a valid signed token, the
	// version 2.0 role credentials are returned.
	//
	// If the state is required, you must send a signed token header with any instance
	// metadata retrieval requests. In this state, retrieving the IAM role credentials
	// always returns the version 2.0 credentials; the version 1.0 credentials are
	// not available.
	HttpTokens HttpTokensState `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

The metadata options for the instance.

func (InstanceMetadataOptionsRequest) String added in v0.17.0

String returns the string representation

type InstanceMetadataOptionsResponse added in v0.17.0

type InstanceMetadataOptionsResponse struct {

	// This parameter enables or disables the HTTP metadata endpoint on your instances.
	// If the parameter is not specified, the default state is enabled.
	//
	// If you specify a value of disabled, you will not be able to access your instance
	// metadata.
	HttpEndpoint InstanceMetadataEndpointState `locationName:"httpEndpoint" type:"string" enum:"true"`

	// The desired HTTP PUT response hop limit for instance metadata requests. The
	// larger the number, the further instance metadata requests can travel.
	//
	// Default: 1
	//
	// Possible values: Integers from 1 to 64
	HttpPutResponseHopLimit *int64 `locationName:"httpPutResponseHopLimit" type:"integer"`

	// The state of token usage for your instance metadata requests. If the parameter
	// is not specified in the request, the default state is optional.
	//
	// If the state is optional, you can choose to retrieve instance metadata with
	// or without a signed token header on your request. If you retrieve the IAM
	// role credentials without a token, the version 1.0 role credentials are returned.
	// If you retrieve the IAM role credentials using a valid signed token, the
	// version 2.0 role credentials are returned.
	//
	// If the state is required, you must send a signed token header with any instance
	// metadata retrieval requests. In this state, retrieving the IAM role credential
	// always returns the version 2.0 credentials; the version 1.0 credentials are
	// not available.
	HttpTokens HttpTokensState `locationName:"httpTokens" type:"string" enum:"true"`

	// The state of the metadata option changes.
	//
	// pending - The metadata options are being updated and the instance is not
	// ready to process metadata traffic with the new selection.
	//
	// applied - The metadata options have been successfully applied on the instance.
	State InstanceMetadataOptionsState `locationName:"state" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

The metadata options for the instance.

func (InstanceMetadataOptionsResponse) String added in v0.17.0

String returns the string representation

type InstanceMetadataOptionsState added in v0.17.0

type InstanceMetadataOptionsState string
const (
	InstanceMetadataOptionsStatePending InstanceMetadataOptionsState = "pending"
	InstanceMetadataOptionsStateApplied InstanceMetadataOptionsState = "applied"
)

Enum values for InstanceMetadataOptionsState

func (InstanceMetadataOptionsState) MarshalValue added in v0.17.0

func (enum InstanceMetadataOptionsState) MarshalValue() (string, error)

func (InstanceMetadataOptionsState) MarshalValueBuf added in v0.17.0

func (enum InstanceMetadataOptionsState) MarshalValueBuf(b []byte) ([]byte, error)

type InstanceMonitoring

type InstanceMonitoring struct {

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The monitoring for the instance.
	Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
	// contains filtered or unexported fields
}

Describes the monitoring of an instance.

func (InstanceMonitoring) String

func (s InstanceMonitoring) String() string

String returns the string representation

type InstanceNetworkInterface

type InstanceNetworkInterface struct {

	// The association information for an Elastic IPv4 associated with the network
	// interface.
	Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`

	// The network interface attachment.
	Attachment *InstanceNetworkInterfaceAttachment `locationName:"attachment" type:"structure"`

	// The description.
	Description *string `locationName:"description" type:"string"`

	// One or more security groups.
	Groups []GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`

	// Describes the type of network interface.
	//
	// Valid values: interface | efa
	InterfaceType *string `locationName:"interfaceType" type:"string"`

	// One or more IPv6 addresses associated with the network interface.
	Ipv6Addresses []InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`

	// The MAC address.
	MacAddress *string `locationName:"macAddress" type:"string"`

	// The ID of the network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The ID of the AWS account that created the network interface.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The private DNS name.
	PrivateDnsName *string `locationName:"privateDnsName" type:"string"`

	// The IPv4 address of the network interface within the subnet.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`

	// One or more private IPv4 addresses associated with the network interface.
	PrivateIpAddresses []InstancePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`

	// Indicates whether to validate network traffic to or from this network interface.
	SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`

	// The status of the network interface.
	Status NetworkInterfaceStatus `locationName:"status" type:"string" enum:"true"`

	// The ID of the subnet.
	SubnetId *string `locationName:"subnetId" type:"string"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a network interface.

func (InstanceNetworkInterface) String

func (s InstanceNetworkInterface) String() string

String returns the string representation

type InstanceNetworkInterfaceAssociation

type InstanceNetworkInterfaceAssociation struct {

	// The ID of the owner of the Elastic IP address.
	IpOwnerId *string `locationName:"ipOwnerId" type:"string"`

	// The public DNS name.
	PublicDnsName *string `locationName:"publicDnsName" type:"string"`

	// The public IP address or Elastic IP address bound to the network interface.
	PublicIp *string `locationName:"publicIp" type:"string"`
	// contains filtered or unexported fields
}

Describes association information for an Elastic IP address (IPv4).

func (InstanceNetworkInterfaceAssociation) String

String returns the string representation

type InstanceNetworkInterfaceAttachment

type InstanceNetworkInterfaceAttachment struct {

	// The time stamp when the attachment initiated.
	AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`

	// The ID of the network interface attachment.
	AttachmentId *string `locationName:"attachmentId" type:"string"`

	// Indicates whether the network interface is deleted when the instance is terminated.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`

	// The index of the device on the instance for the network interface attachment.
	DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`

	// The attachment state.
	Status AttachmentStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a network interface attachment.

func (InstanceNetworkInterfaceAttachment) String

String returns the string representation

type InstanceNetworkInterfaceSpecification

type InstanceNetworkInterfaceSpecification struct {

	// Indicates whether to assign a public IPv4 address to an instance you launch
	// in a VPC. The public IP address can only be assigned to a network interface
	// for eth0, and can only be assigned to a new network interface, not an existing
	// one. You cannot specify more than one network interface in the request. If
	// launching into a default subnet, the default value is true.
	AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`

	// If set to true, the interface is deleted when the instance is terminated.
	// You can specify true only if creating a new network interface when launching
	// an instance.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`

	// The description of the network interface. Applies only if creating a network
	// interface when launching an instance.
	Description *string `locationName:"description" type:"string"`

	// The position of the network interface in the attachment order. A primary
	// network interface has a device index of 0.
	//
	// If you specify a network interface when launching an instance, you must specify
	// the device index.
	DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`

	// The IDs of the security groups for the network interface. Applies only if
	// creating a network interface when launching an instance.
	Groups []string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`

	// The type of network interface. To create an Elastic Fabric Adapter (EFA),
	// specify efa. For more information, see Elastic Fabric Adapter (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// If you are not creating an EFA, specify interface or omit this parameter.
	//
	// Valid values: interface | efa
	InterfaceType *string `type:"string"`

	// A number of IPv6 addresses to assign to the network interface. Amazon EC2
	// chooses the IPv6 addresses from the range of the subnet. You cannot specify
	// this option and the option to assign specific IPv6 addresses in the same
	// request. You can specify this option if you've specified a minimum number
	// of instances to launch.
	Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`

	// One or more IPv6 addresses to assign to the network interface. You cannot
	// specify this option and the option to assign a number of IPv6 addresses in
	// the same request. You cannot specify this option if you've specified a minimum
	// number of instances to launch.
	Ipv6Addresses []InstanceIpv6Address `locationName:"ipv6AddressesSet" queryName:"Ipv6Addresses" locationNameList:"item" type:"list"`

	// The ID of the network interface.
	//
	// If you are creating a Spot Fleet, omit this parameter because you can’t
	// specify a network interface ID in a launch specification.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The private IPv4 address of the network interface. Applies only if creating
	// a network interface when launching an instance. You cannot specify this option
	// if you're launching more than one instance in a RunInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html)
	// request.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`

	// One or more private IPv4 addresses to assign to the network interface. Only
	// one private IPv4 address can be designated as primary. You cannot specify
	// this option if you're launching more than one instance in a RunInstances
	// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html)
	// request.
	PrivateIpAddresses []PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" queryName:"PrivateIpAddresses" locationNameList:"item" type:"list"`

	// The number of secondary private IPv4 addresses. You can't specify this option
	// and specify more than one private IP address using the private IP addresses
	// option. You cannot specify this option if you're launching more than one
	// instance in a RunInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html)
	// request.
	SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`

	// The ID of the subnet associated with the network interface. Applies only
	// if creating a network interface when launching an instance.
	SubnetId *string `locationName:"subnetId" type:"string"`
	// contains filtered or unexported fields
}

Describes a network interface.

func (InstanceNetworkInterfaceSpecification) String

String returns the string representation

type InstancePrivateIpAddress

type InstancePrivateIpAddress struct {

	// The association information for an Elastic IP address for the network interface.
	Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`

	// Indicates whether this IPv4 address is the primary private IP address of
	// the network interface.
	Primary *bool `locationName:"primary" type:"boolean"`

	// The private IPv4 DNS name.
	PrivateDnsName *string `locationName:"privateDnsName" type:"string"`

	// The private IPv4 address of the network interface.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
	// contains filtered or unexported fields
}

Describes a private IPv4 address.

func (InstancePrivateIpAddress) String

func (s InstancePrivateIpAddress) String() string

String returns the string representation

type InstanceSpecification added in v0.10.0

type InstanceSpecification struct {

	// Excludes the root volume from being snapshotted.
	ExcludeBootVolume *bool `type:"boolean"`

	// The instance to specify which volumes should be snapshotted.
	InstanceId *string `type:"string"`
	// contains filtered or unexported fields
}

The instance details to specify which volumes should be snapshotted.

func (InstanceSpecification) String added in v0.10.0

func (s InstanceSpecification) String() string

String returns the string representation

type InstanceState

type InstanceState struct {

	// The state of the instance as a 16-bit unsigned integer.
	//
	// The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal
	// values between 256 and 65,535. These numerical values are used for internal
	// purposes and should be ignored.
	//
	// The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal
	// values between 0 and 255.
	//
	// The valid values for instance-state-code will all be in the range of the
	// low byte and they are:
	//
	//    * 0 : pending
	//
	//    * 16 : running
	//
	//    * 32 : shutting-down
	//
	//    * 48 : terminated
	//
	//    * 64 : stopping
	//
	//    * 80 : stopped
	//
	// You can ignore the high byte value by zeroing out all of the bits above 2^8
	// or 256 in decimal.
	Code *int64 `locationName:"code" type:"integer"`

	// The current state of the instance.
	Name InstanceStateName `locationName:"name" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the current state of an instance.

func (InstanceState) String

func (s InstanceState) String() string

String returns the string representation

type InstanceStateChange

type InstanceStateChange struct {

	// The current state of the instance.
	CurrentState *InstanceState `locationName:"currentState" type:"structure"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The previous state of the instance.
	PreviousState *InstanceState `locationName:"previousState" type:"structure"`
	// contains filtered or unexported fields
}

Describes an instance state change.

func (InstanceStateChange) String

func (s InstanceStateChange) String() string

String returns the string representation

type InstanceStateName

type InstanceStateName string
const (
	InstanceStateNamePending      InstanceStateName = "pending"
	InstanceStateNameRunning      InstanceStateName = "running"
	InstanceStateNameShuttingDown InstanceStateName = "shutting-down"
	InstanceStateNameTerminated   InstanceStateName = "terminated"
	InstanceStateNameStopping     InstanceStateName = "stopping"
	InstanceStateNameStopped      InstanceStateName = "stopped"
)

Enum values for InstanceStateName

func (InstanceStateName) MarshalValue added in v0.3.0

func (enum InstanceStateName) MarshalValue() (string, error)

func (InstanceStateName) MarshalValueBuf added in v0.3.0

func (enum InstanceStateName) MarshalValueBuf(b []byte) ([]byte, error)

type InstanceStatus

type InstanceStatus struct {

	// The Availability Zone of the instance.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// Any scheduled events associated with the instance.
	Events []InstanceStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The intended state of the instance. DescribeInstanceStatus requires that
	// an instance be in the running state.
	InstanceState *InstanceState `locationName:"instanceState" type:"structure"`

	// Reports impaired functionality that stems from issues internal to the instance,
	// such as impaired reachability.
	InstanceStatus *InstanceStatusSummary `locationName:"instanceStatus" type:"structure"`

	// The Amazon Resource Name (ARN) of the Outpost.
	OutpostArn *string `locationName:"outpostArn" type:"string"`

	// Reports impaired functionality that stems from issues related to the systems
	// that support an instance, such as hardware failures and network connectivity
	// problems.
	SystemStatus *InstanceStatusSummary `locationName:"systemStatus" type:"structure"`
	// contains filtered or unexported fields
}

Describes the status of an instance.

func (InstanceStatus) String

func (s InstanceStatus) String() string

String returns the string representation

type InstanceStatusDetails

type InstanceStatusDetails struct {

	// The time when a status check failed. For an instance that was launched and
	// impaired, this is the time when the instance was launched.
	ImpairedSince *time.Time `locationName:"impairedSince" type:"timestamp"`

	// The type of instance status.
	Name StatusName `locationName:"name" type:"string" enum:"true"`

	// The status.
	Status StatusType `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the instance status.

func (InstanceStatusDetails) String

func (s InstanceStatusDetails) String() string

String returns the string representation

type InstanceStatusEvent

type InstanceStatusEvent struct {

	// The event code.
	Code EventCode `locationName:"code" type:"string" enum:"true"`

	// A description of the event.
	//
	// After a scheduled event is completed, it can still be described for up to
	// a week. If the event has been completed, this description starts with the
	// following text: [Completed].
	Description *string `locationName:"description" type:"string"`

	// The ID of the event.
	InstanceEventId *string `locationName:"instanceEventId" type:"string"`

	// The latest scheduled end time for the event.
	NotAfter *time.Time `locationName:"notAfter" type:"timestamp"`

	// The earliest scheduled start time for the event.
	NotBefore *time.Time `locationName:"notBefore" type:"timestamp"`

	// The deadline for starting the event.
	NotBeforeDeadline *time.Time `locationName:"notBeforeDeadline" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes a scheduled event for an instance.

func (InstanceStatusEvent) String

func (s InstanceStatusEvent) String() string

String returns the string representation

type InstanceStatusSummary

type InstanceStatusSummary struct {

	// The system instance health or application instance health.
	Details []InstanceStatusDetails `locationName:"details" locationNameList:"item" type:"list"`

	// The status.
	Status SummaryStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the status of an instance.

func (InstanceStatusSummary) String

func (s InstanceStatusSummary) String() string

String returns the string representation

type InstanceStorageInfo added in v0.18.0

type InstanceStorageInfo struct {

	// Array describing the disks that are available for the instance type.
	Disks []DiskInfo `locationName:"disks" locationNameList:"item" type:"list"`

	// The total size of the disks, in GB.
	TotalSizeInGB *int64 `locationName:"totalSizeInGB" type:"long"`
	// contains filtered or unexported fields
}

Describes the disks that are available for the instance type.

func (InstanceStorageInfo) String added in v0.18.0

func (s InstanceStorageInfo) String() string

String returns the string representation

type InstanceTagNotificationAttribute added in v0.21.0

type InstanceTagNotificationAttribute struct {

	// Indicates wheter all tag keys in the current Region are registered to appear
	// in scheduled event notifications. true indicates that all tag keys in the
	// current Region are registered.
	IncludeAllTagsOfInstance *bool `locationName:"includeAllTagsOfInstance" type:"boolean"`

	// The registered tag keys.
	InstanceTagKeys []string `locationName:"instanceTagKeySet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes the registered tag keys for the current Region.

func (InstanceTagNotificationAttribute) String added in v0.21.0

String returns the string representation

type InstanceType

type InstanceType string
const (
	InstanceTypeT1Micro      InstanceType = "t1.micro"
	InstanceTypeT2Nano       InstanceType = "t2.nano"
	InstanceTypeT2Micro      InstanceType = "t2.micro"
	InstanceTypeT2Small      InstanceType = "t2.small"
	InstanceTypeT2Medium     InstanceType = "t2.medium"
	InstanceTypeT2Large      InstanceType = "t2.large"
	InstanceTypeT2Xlarge     InstanceType = "t2.xlarge"
	InstanceTypeT22xlarge    InstanceType = "t2.2xlarge"
	InstanceTypeT3Nano       InstanceType = "t3.nano"
	InstanceTypeT3Micro      InstanceType = "t3.micro"
	InstanceTypeT3Small      InstanceType = "t3.small"
	InstanceTypeT3Medium     InstanceType = "t3.medium"
	InstanceTypeT3Large      InstanceType = "t3.large"
	InstanceTypeT3Xlarge     InstanceType = "t3.xlarge"
	InstanceTypeT32xlarge    InstanceType = "t3.2xlarge"
	InstanceTypeT3aNano      InstanceType = "t3a.nano"
	InstanceTypeT3aMicro     InstanceType = "t3a.micro"
	InstanceTypeT3aSmall     InstanceType = "t3a.small"
	InstanceTypeT3aMedium    InstanceType = "t3a.medium"
	InstanceTypeT3aLarge     InstanceType = "t3a.large"
	InstanceTypeT3aXlarge    InstanceType = "t3a.xlarge"
	InstanceTypeT3a2xlarge   InstanceType = "t3a.2xlarge"
	InstanceTypeM1Small      InstanceType = "m1.small"
	InstanceTypeM1Medium     InstanceType = "m1.medium"
	InstanceTypeM1Large      InstanceType = "m1.large"
	InstanceTypeM1Xlarge     InstanceType = "m1.xlarge"
	InstanceTypeM3Medium     InstanceType = "m3.medium"
	InstanceTypeM3Large      InstanceType = "m3.large"
	InstanceTypeM3Xlarge     InstanceType = "m3.xlarge"
	InstanceTypeM32xlarge    InstanceType = "m3.2xlarge"
	InstanceTypeM4Large      InstanceType = "m4.large"
	InstanceTypeM4Xlarge     InstanceType = "m4.xlarge"
	InstanceTypeM42xlarge    InstanceType = "m4.2xlarge"
	InstanceTypeM44xlarge    InstanceType = "m4.4xlarge"
	InstanceTypeM410xlarge   InstanceType = "m4.10xlarge"
	InstanceTypeM416xlarge   InstanceType = "m4.16xlarge"
	InstanceTypeM2Xlarge     InstanceType = "m2.xlarge"
	InstanceTypeM22xlarge    InstanceType = "m2.2xlarge"
	InstanceTypeM24xlarge    InstanceType = "m2.4xlarge"
	InstanceTypeCr18xlarge   InstanceType = "cr1.8xlarge"
	InstanceTypeR3Large      InstanceType = "r3.large"
	InstanceTypeR3Xlarge     InstanceType = "r3.xlarge"
	InstanceTypeR32xlarge    InstanceType = "r3.2xlarge"
	InstanceTypeR34xlarge    InstanceType = "r3.4xlarge"
	InstanceTypeR38xlarge    InstanceType = "r3.8xlarge"
	InstanceTypeR4Large      InstanceType = "r4.large"
	InstanceTypeR4Xlarge     InstanceType = "r4.xlarge"
	InstanceTypeR42xlarge    InstanceType = "r4.2xlarge"
	InstanceTypeR44xlarge    InstanceType = "r4.4xlarge"
	InstanceTypeR48xlarge    InstanceType = "r4.8xlarge"
	InstanceTypeR416xlarge   InstanceType = "r4.16xlarge"
	InstanceTypeR5Large      InstanceType = "r5.large"
	InstanceTypeR5Xlarge     InstanceType = "r5.xlarge"
	InstanceTypeR52xlarge    InstanceType = "r5.2xlarge"
	InstanceTypeR54xlarge    InstanceType = "r5.4xlarge"
	InstanceTypeR58xlarge    InstanceType = "r5.8xlarge"
	InstanceTypeR512xlarge   InstanceType = "r5.12xlarge"
	InstanceTypeR516xlarge   InstanceType = "r5.16xlarge"
	InstanceTypeR524xlarge   InstanceType = "r5.24xlarge"
	InstanceTypeR5Metal      InstanceType = "r5.metal"
	InstanceTypeR5aLarge     InstanceType = "r5a.large"
	InstanceTypeR5aXlarge    InstanceType = "r5a.xlarge"
	InstanceTypeR5a2xlarge   InstanceType = "r5a.2xlarge"
	InstanceTypeR5a4xlarge   InstanceType = "r5a.4xlarge"
	InstanceTypeR5a8xlarge   InstanceType = "r5a.8xlarge"
	InstanceTypeR5a12xlarge  InstanceType = "r5a.12xlarge"
	InstanceTypeR5a16xlarge  InstanceType = "r5a.16xlarge"
	InstanceTypeR5a24xlarge  InstanceType = "r5a.24xlarge"
	InstanceTypeR5dLarge     InstanceType = "r5d.large"
	InstanceTypeR5dXlarge    InstanceType = "r5d.xlarge"
	InstanceTypeR5d2xlarge   InstanceType = "r5d.2xlarge"
	InstanceTypeR5d4xlarge   InstanceType = "r5d.4xlarge"
	InstanceTypeR5d8xlarge   InstanceType = "r5d.8xlarge"
	InstanceTypeR5d12xlarge  InstanceType = "r5d.12xlarge"
	InstanceTypeR5d16xlarge  InstanceType = "r5d.16xlarge"
	InstanceTypeR5d24xlarge  InstanceType = "r5d.24xlarge"
	InstanceTypeR5dMetal     InstanceType = "r5d.metal"
	InstanceTypeR5adLarge    InstanceType = "r5ad.large"
	InstanceTypeR5adXlarge   InstanceType = "r5ad.xlarge"
	InstanceTypeR5ad2xlarge  InstanceType = "r5ad.2xlarge"
	InstanceTypeR5ad4xlarge  InstanceType = "r5ad.4xlarge"
	InstanceTypeR5ad8xlarge  InstanceType = "r5ad.8xlarge"
	InstanceTypeR5ad12xlarge InstanceType = "r5ad.12xlarge"
	InstanceTypeR5ad16xlarge InstanceType = "r5ad.16xlarge"
	InstanceTypeR5ad24xlarge InstanceType = "r5ad.24xlarge"
	InstanceTypeR6gMetal     InstanceType = "r6g.metal"
	InstanceTypeR6gMedium    InstanceType = "r6g.medium"
	InstanceTypeR6gLarge     InstanceType = "r6g.large"
	InstanceTypeR6gXlarge    InstanceType = "r6g.xlarge"
	InstanceTypeR6g2xlarge   InstanceType = "r6g.2xlarge"
	InstanceTypeR6g4xlarge   InstanceType = "r6g.4xlarge"
	InstanceTypeR6g8xlarge   InstanceType = "r6g.8xlarge"
	InstanceTypeR6g12xlarge  InstanceType = "r6g.12xlarge"
	InstanceTypeR6g16xlarge  InstanceType = "r6g.16xlarge"
	InstanceTypeX116xlarge   InstanceType = "x1.16xlarge"
	InstanceTypeX132xlarge   InstanceType = "x1.32xlarge"
	InstanceTypeX1eXlarge    InstanceType = "x1e.xlarge"
	InstanceTypeX1e2xlarge   InstanceType = "x1e.2xlarge"
	InstanceTypeX1e4xlarge   InstanceType = "x1e.4xlarge"
	InstanceTypeX1e8xlarge   InstanceType = "x1e.8xlarge"
	InstanceTypeX1e16xlarge  InstanceType = "x1e.16xlarge"
	InstanceTypeX1e32xlarge  InstanceType = "x1e.32xlarge"
	InstanceTypeI2Xlarge     InstanceType = "i2.xlarge"
	InstanceTypeI22xlarge    InstanceType = "i2.2xlarge"
	InstanceTypeI24xlarge    InstanceType = "i2.4xlarge"
	InstanceTypeI28xlarge    InstanceType = "i2.8xlarge"
	InstanceTypeI3Large      InstanceType = "i3.large"
	InstanceTypeI3Xlarge     InstanceType = "i3.xlarge"
	InstanceTypeI32xlarge    InstanceType = "i3.2xlarge"
	InstanceTypeI34xlarge    InstanceType = "i3.4xlarge"
	InstanceTypeI38xlarge    InstanceType = "i3.8xlarge"
	InstanceTypeI316xlarge   InstanceType = "i3.16xlarge"
	InstanceTypeI3Metal      InstanceType = "i3.metal"
	InstanceTypeI3enLarge    InstanceType = "i3en.large"
	InstanceTypeI3enXlarge   InstanceType = "i3en.xlarge"
	InstanceTypeI3en2xlarge  InstanceType = "i3en.2xlarge"
	InstanceTypeI3en3xlarge  InstanceType = "i3en.3xlarge"
	InstanceTypeI3en6xlarge  InstanceType = "i3en.6xlarge"
	InstanceTypeI3en12xlarge InstanceType = "i3en.12xlarge"
	InstanceTypeI3en24xlarge InstanceType = "i3en.24xlarge"
	InstanceTypeI3enMetal    InstanceType = "i3en.metal"
	InstanceTypeHi14xlarge   InstanceType = "hi1.4xlarge"
	InstanceTypeHs18xlarge   InstanceType = "hs1.8xlarge"
	InstanceTypeC1Medium     InstanceType = "c1.medium"
	InstanceTypeC1Xlarge     InstanceType = "c1.xlarge"
	InstanceTypeC3Large      InstanceType = "c3.large"
	InstanceTypeC3Xlarge     InstanceType = "c3.xlarge"
	InstanceTypeC32xlarge    InstanceType = "c3.2xlarge"
	InstanceTypeC34xlarge    InstanceType = "c3.4xlarge"
	InstanceTypeC38xlarge    InstanceType = "c3.8xlarge"
	InstanceTypeC4Large      InstanceType = "c4.large"
	InstanceTypeC4Xlarge     InstanceType = "c4.xlarge"
	InstanceTypeC42xlarge    InstanceType = "c4.2xlarge"
	InstanceTypeC44xlarge    InstanceType = "c4.4xlarge"
	InstanceTypeC48xlarge    InstanceType = "c4.8xlarge"
	InstanceTypeC5Large      InstanceType = "c5.large"
	InstanceTypeC5Xlarge     InstanceType = "c5.xlarge"
	InstanceTypeC52xlarge    InstanceType = "c5.2xlarge"
	InstanceTypeC54xlarge    InstanceType = "c5.4xlarge"
	InstanceTypeC59xlarge    InstanceType = "c5.9xlarge"
	InstanceTypeC512xlarge   InstanceType = "c5.12xlarge"
	InstanceTypeC518xlarge   InstanceType = "c5.18xlarge"
	InstanceTypeC524xlarge   InstanceType = "c5.24xlarge"
	InstanceTypeC5Metal      InstanceType = "c5.metal"
	InstanceTypeC5aLarge     InstanceType = "c5a.large"
	InstanceTypeC5aXlarge    InstanceType = "c5a.xlarge"
	InstanceTypeC5a2xlarge   InstanceType = "c5a.2xlarge"
	InstanceTypeC5a4xlarge   InstanceType = "c5a.4xlarge"
	InstanceTypeC5a8xlarge   InstanceType = "c5a.8xlarge"
	InstanceTypeC5a12xlarge  InstanceType = "c5a.12xlarge"
	InstanceTypeC5a16xlarge  InstanceType = "c5a.16xlarge"
	InstanceTypeC5a24xlarge  InstanceType = "c5a.24xlarge"
	InstanceTypeC5dLarge     InstanceType = "c5d.large"
	InstanceTypeC5dXlarge    InstanceType = "c5d.xlarge"
	InstanceTypeC5d2xlarge   InstanceType = "c5d.2xlarge"
	InstanceTypeC5d4xlarge   InstanceType = "c5d.4xlarge"
	InstanceTypeC5d9xlarge   InstanceType = "c5d.9xlarge"
	InstanceTypeC5d12xlarge  InstanceType = "c5d.12xlarge"
	InstanceTypeC5d18xlarge  InstanceType = "c5d.18xlarge"
	InstanceTypeC5d24xlarge  InstanceType = "c5d.24xlarge"
	InstanceTypeC5dMetal     InstanceType = "c5d.metal"
	InstanceTypeC5nLarge     InstanceType = "c5n.large"
	InstanceTypeC5nXlarge    InstanceType = "c5n.xlarge"
	InstanceTypeC5n2xlarge   InstanceType = "c5n.2xlarge"
	InstanceTypeC5n4xlarge   InstanceType = "c5n.4xlarge"
	InstanceTypeC5n9xlarge   InstanceType = "c5n.9xlarge"
	InstanceTypeC5n18xlarge  InstanceType = "c5n.18xlarge"
	InstanceTypeC6gMetal     InstanceType = "c6g.metal"
	InstanceTypeC6gMedium    InstanceType = "c6g.medium"
	InstanceTypeC6gLarge     InstanceType = "c6g.large"
	InstanceTypeC6gXlarge    InstanceType = "c6g.xlarge"
	InstanceTypeC6g2xlarge   InstanceType = "c6g.2xlarge"
	InstanceTypeC6g4xlarge   InstanceType = "c6g.4xlarge"
	InstanceTypeC6g8xlarge   InstanceType = "c6g.8xlarge"
	InstanceTypeC6g12xlarge  InstanceType = "c6g.12xlarge"
	InstanceTypeC6g16xlarge  InstanceType = "c6g.16xlarge"
	InstanceTypeCc14xlarge   InstanceType = "cc1.4xlarge"
	InstanceTypeCc28xlarge   InstanceType = "cc2.8xlarge"
	InstanceTypeG22xlarge    InstanceType = "g2.2xlarge"
	InstanceTypeG28xlarge    InstanceType = "g2.8xlarge"
	InstanceTypeG34xlarge    InstanceType = "g3.4xlarge"
	InstanceTypeG38xlarge    InstanceType = "g3.8xlarge"
	InstanceTypeG316xlarge   InstanceType = "g3.16xlarge"
	InstanceTypeG3sXlarge    InstanceType = "g3s.xlarge"
	InstanceTypeG4dnXlarge   InstanceType = "g4dn.xlarge"
	InstanceTypeG4dn2xlarge  InstanceType = "g4dn.2xlarge"
	InstanceTypeG4dn4xlarge  InstanceType = "g4dn.4xlarge"
	InstanceTypeG4dn8xlarge  InstanceType = "g4dn.8xlarge"
	InstanceTypeG4dn12xlarge InstanceType = "g4dn.12xlarge"
	InstanceTypeG4dn16xlarge InstanceType = "g4dn.16xlarge"
	InstanceTypeG4dnMetal    InstanceType = "g4dn.metal"
	InstanceTypeCg14xlarge   InstanceType = "cg1.4xlarge"
	InstanceTypeP2Xlarge     InstanceType = "p2.xlarge"
	InstanceTypeP28xlarge    InstanceType = "p2.8xlarge"
	InstanceTypeP216xlarge   InstanceType = "p2.16xlarge"
	InstanceTypeP32xlarge    InstanceType = "p3.2xlarge"
	InstanceTypeP38xlarge    InstanceType = "p3.8xlarge"
	InstanceTypeP316xlarge   InstanceType = "p3.16xlarge"
	InstanceTypeP3dn24xlarge InstanceType = "p3dn.24xlarge"
	InstanceTypeD2Xlarge     InstanceType = "d2.xlarge"
	InstanceTypeD22xlarge    InstanceType = "d2.2xlarge"
	InstanceTypeD24xlarge    InstanceType = "d2.4xlarge"
	InstanceTypeD28xlarge    InstanceType = "d2.8xlarge"
	InstanceTypeF12xlarge    InstanceType = "f1.2xlarge"
	InstanceTypeF14xlarge    InstanceType = "f1.4xlarge"
	InstanceTypeF116xlarge   InstanceType = "f1.16xlarge"
	InstanceTypeM5Large      InstanceType = "m5.large"
	InstanceTypeM5Xlarge     InstanceType = "m5.xlarge"
	InstanceTypeM52xlarge    InstanceType = "m5.2xlarge"
	InstanceTypeM54xlarge    InstanceType = "m5.4xlarge"
	InstanceTypeM58xlarge    InstanceType = "m5.8xlarge"
	InstanceTypeM512xlarge   InstanceType = "m5.12xlarge"
	InstanceTypeM516xlarge   InstanceType = "m5.16xlarge"
	InstanceTypeM524xlarge   InstanceType = "m5.24xlarge"
	InstanceTypeM5Metal      InstanceType = "m5.metal"
	InstanceTypeM5aLarge     InstanceType = "m5a.large"
	InstanceTypeM5aXlarge    InstanceType = "m5a.xlarge"
	InstanceTypeM5a2xlarge   InstanceType = "m5a.2xlarge"
	InstanceTypeM5a4xlarge   InstanceType = "m5a.4xlarge"
	InstanceTypeM5a8xlarge   InstanceType = "m5a.8xlarge"
	InstanceTypeM5a12xlarge  InstanceType = "m5a.12xlarge"
	InstanceTypeM5a16xlarge  InstanceType = "m5a.16xlarge"
	InstanceTypeM5a24xlarge  InstanceType = "m5a.24xlarge"
	InstanceTypeM5dLarge     InstanceType = "m5d.large"
	InstanceTypeM5dXlarge    InstanceType = "m5d.xlarge"
	InstanceTypeM5d2xlarge   InstanceType = "m5d.2xlarge"
	InstanceTypeM5d4xlarge   InstanceType = "m5d.4xlarge"
	InstanceTypeM5d8xlarge   InstanceType = "m5d.8xlarge"
	InstanceTypeM5d12xlarge  InstanceType = "m5d.12xlarge"
	InstanceTypeM5d16xlarge  InstanceType = "m5d.16xlarge"
	InstanceTypeM5d24xlarge  InstanceType = "m5d.24xlarge"
	InstanceTypeM5dMetal     InstanceType = "m5d.metal"
	InstanceTypeM5adLarge    InstanceType = "m5ad.large"
	InstanceTypeM5adXlarge   InstanceType = "m5ad.xlarge"
	InstanceTypeM5ad2xlarge  InstanceType = "m5ad.2xlarge"
	InstanceTypeM5ad4xlarge  InstanceType = "m5ad.4xlarge"
	InstanceTypeM5ad8xlarge  InstanceType = "m5ad.8xlarge"
	InstanceTypeM5ad12xlarge InstanceType = "m5ad.12xlarge"
	InstanceTypeM5ad16xlarge InstanceType = "m5ad.16xlarge"
	InstanceTypeM5ad24xlarge InstanceType = "m5ad.24xlarge"
	InstanceTypeH12xlarge    InstanceType = "h1.2xlarge"
	InstanceTypeH14xlarge    InstanceType = "h1.4xlarge"
	InstanceTypeH18xlarge    InstanceType = "h1.8xlarge"
	InstanceTypeH116xlarge   InstanceType = "h1.16xlarge"
	InstanceTypeZ1dLarge     InstanceType = "z1d.large"
	InstanceTypeZ1dXlarge    InstanceType = "z1d.xlarge"
	InstanceTypeZ1d2xlarge   InstanceType = "z1d.2xlarge"
	InstanceTypeZ1d3xlarge   InstanceType = "z1d.3xlarge"
	InstanceTypeZ1d6xlarge   InstanceType = "z1d.6xlarge"
	InstanceTypeZ1d12xlarge  InstanceType = "z1d.12xlarge"
	InstanceTypeZ1dMetal     InstanceType = "z1d.metal"
	InstanceTypeU6tb1Metal   InstanceType = "u-6tb1.metal"
	InstanceTypeU9tb1Metal   InstanceType = "u-9tb1.metal"
	InstanceTypeU12tb1Metal  InstanceType = "u-12tb1.metal"
	InstanceTypeU18tb1Metal  InstanceType = "u-18tb1.metal"
	InstanceTypeU24tb1Metal  InstanceType = "u-24tb1.metal"
	InstanceTypeA1Medium     InstanceType = "a1.medium"
	InstanceTypeA1Large      InstanceType = "a1.large"
	InstanceTypeA1Xlarge     InstanceType = "a1.xlarge"
	InstanceTypeA12xlarge    InstanceType = "a1.2xlarge"
	InstanceTypeA14xlarge    InstanceType = "a1.4xlarge"
	InstanceTypeA1Metal      InstanceType = "a1.metal"
	InstanceTypeM5dnLarge    InstanceType = "m5dn.large"
	InstanceTypeM5dnXlarge   InstanceType = "m5dn.xlarge"
	InstanceTypeM5dn2xlarge  InstanceType = "m5dn.2xlarge"
	InstanceTypeM5dn4xlarge  InstanceType = "m5dn.4xlarge"
	InstanceTypeM5dn8xlarge  InstanceType = "m5dn.8xlarge"
	InstanceTypeM5dn12xlarge InstanceType = "m5dn.12xlarge"
	InstanceTypeM5dn16xlarge InstanceType = "m5dn.16xlarge"
	InstanceTypeM5dn24xlarge InstanceType = "m5dn.24xlarge"
	InstanceTypeM5nLarge     InstanceType = "m5n.large"
	InstanceTypeM5nXlarge    InstanceType = "m5n.xlarge"
	InstanceTypeM5n2xlarge   InstanceType = "m5n.2xlarge"
	InstanceTypeM5n4xlarge   InstanceType = "m5n.4xlarge"
	InstanceTypeM5n8xlarge   InstanceType = "m5n.8xlarge"
	InstanceTypeM5n12xlarge  InstanceType = "m5n.12xlarge"
	InstanceTypeM5n16xlarge  InstanceType = "m5n.16xlarge"
	InstanceTypeM5n24xlarge  InstanceType = "m5n.24xlarge"
	InstanceTypeR5dnLarge    InstanceType = "r5dn.large"
	InstanceTypeR5dnXlarge   InstanceType = "r5dn.xlarge"
	InstanceTypeR5dn2xlarge  InstanceType = "r5dn.2xlarge"
	InstanceTypeR5dn4xlarge  InstanceType = "r5dn.4xlarge"
	InstanceTypeR5dn8xlarge  InstanceType = "r5dn.8xlarge"
	InstanceTypeR5dn12xlarge InstanceType = "r5dn.12xlarge"
	InstanceTypeR5dn16xlarge InstanceType = "r5dn.16xlarge"
	InstanceTypeR5dn24xlarge InstanceType = "r5dn.24xlarge"
	InstanceTypeR5nLarge     InstanceType = "r5n.large"
	InstanceTypeR5nXlarge    InstanceType = "r5n.xlarge"
	InstanceTypeR5n2xlarge   InstanceType = "r5n.2xlarge"
	InstanceTypeR5n4xlarge   InstanceType = "r5n.4xlarge"
	InstanceTypeR5n8xlarge   InstanceType = "r5n.8xlarge"
	InstanceTypeR5n12xlarge  InstanceType = "r5n.12xlarge"
	InstanceTypeR5n16xlarge  InstanceType = "r5n.16xlarge"
	InstanceTypeR5n24xlarge  InstanceType = "r5n.24xlarge"
	InstanceTypeInf1Xlarge   InstanceType = "inf1.xlarge"
	InstanceTypeInf12xlarge  InstanceType = "inf1.2xlarge"
	InstanceTypeInf16xlarge  InstanceType = "inf1.6xlarge"
	InstanceTypeInf124xlarge InstanceType = "inf1.24xlarge"
	InstanceTypeM6gMetal     InstanceType = "m6g.metal"
	InstanceTypeM6gMedium    InstanceType = "m6g.medium"
	InstanceTypeM6gLarge     InstanceType = "m6g.large"
	InstanceTypeM6gXlarge    InstanceType = "m6g.xlarge"
	InstanceTypeM6g2xlarge   InstanceType = "m6g.2xlarge"
	InstanceTypeM6g4xlarge   InstanceType = "m6g.4xlarge"
	InstanceTypeM6g8xlarge   InstanceType = "m6g.8xlarge"
	InstanceTypeM6g12xlarge  InstanceType = "m6g.12xlarge"
	InstanceTypeM6g16xlarge  InstanceType = "m6g.16xlarge"
)

Enum values for InstanceType

func (InstanceType) MarshalValue added in v0.3.0

func (enum InstanceType) MarshalValue() (string, error)

func (InstanceType) MarshalValueBuf added in v0.3.0

func (enum InstanceType) MarshalValueBuf(b []byte) ([]byte, error)

type InstanceTypeHypervisor added in v0.18.0

type InstanceTypeHypervisor string
const (
	InstanceTypeHypervisorNitro InstanceTypeHypervisor = "nitro"
	InstanceTypeHypervisorXen   InstanceTypeHypervisor = "xen"
)

Enum values for InstanceTypeHypervisor

func (InstanceTypeHypervisor) MarshalValue added in v0.18.0

func (enum InstanceTypeHypervisor) MarshalValue() (string, error)

func (InstanceTypeHypervisor) MarshalValueBuf added in v0.18.0

func (enum InstanceTypeHypervisor) MarshalValueBuf(b []byte) ([]byte, error)

type InstanceTypeInfo added in v0.18.0

type InstanceTypeInfo struct {

	// Indicates whether auto recovery is supported.
	AutoRecoverySupported *bool `locationName:"autoRecoverySupported" type:"boolean"`

	// Indicates whether the instance is bare metal.
	BareMetal *bool `locationName:"bareMetal" type:"boolean"`

	// Indicates whether the instance type is a burstable performance instance type.
	BurstablePerformanceSupported *bool `locationName:"burstablePerformanceSupported" type:"boolean"`

	// Indicates whether the instance type is a current generation.
	CurrentGeneration *bool `locationName:"currentGeneration" type:"boolean"`

	// Indicates whether Dedicated Hosts are supported on the instance type.
	DedicatedHostsSupported *bool `locationName:"dedicatedHostsSupported" type:"boolean"`

	// Describes the Amazon EBS settings for the instance type.
	EbsInfo *EbsInfo `locationName:"ebsInfo" type:"structure"`

	// Describes the FPGA accelerator settings for the instance type.
	FpgaInfo *FpgaInfo `locationName:"fpgaInfo" type:"structure"`

	// Indicates whether the instance type is eligible for the free tier.
	FreeTierEligible *bool `locationName:"freeTierEligible" type:"boolean"`

	// Describes the GPU accelerator settings for the instance type.
	GpuInfo *GpuInfo `locationName:"gpuInfo" type:"structure"`

	// Indicates whether On-Demand hibernation is supported.
	HibernationSupported *bool `locationName:"hibernationSupported" type:"boolean"`

	// Indicates the hypervisor used for the instance type.
	Hypervisor InstanceTypeHypervisor `locationName:"hypervisor" type:"string" enum:"true"`

	// Describes the Inference accelerator settings for the instance type.
	InferenceAcceleratorInfo *InferenceAcceleratorInfo `locationName:"inferenceAcceleratorInfo" type:"structure"`

	// Describes the disks for the instance type.
	InstanceStorageInfo *InstanceStorageInfo `locationName:"instanceStorageInfo" type:"structure"`

	// Indicates whether instance storage is supported.
	InstanceStorageSupported *bool `locationName:"instanceStorageSupported" type:"boolean"`

	// The instance type. For more information, see Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// Describes the memory for the instance type.
	MemoryInfo *MemoryInfo `locationName:"memoryInfo" type:"structure"`

	// Describes the network settings for the instance type.
	NetworkInfo *NetworkInfo `locationName:"networkInfo" type:"structure"`

	// Describes the placement group settings for the instance type.
	PlacementGroupInfo *PlacementGroupInfo `locationName:"placementGroupInfo" type:"structure"`

	// Describes the processor.
	ProcessorInfo *ProcessorInfo `locationName:"processorInfo" type:"structure"`

	// Indicates the supported root device types.
	SupportedRootDeviceTypes []RootDeviceType `locationName:"supportedRootDeviceTypes" locationNameList:"item" type:"list"`

	// Indicates whether the instance type is offered for spot or On-Demand.
	SupportedUsageClasses []UsageClassType `locationName:"supportedUsageClasses" locationNameList:"item" type:"list"`

	// The supported virtualization types.
	SupportedVirtualizationTypes []VirtualizationType `locationName:"supportedVirtualizationTypes" locationNameList:"item" type:"list"`

	// Describes the vCPU configurations for the instance type.
	VCpuInfo *VCpuInfo `locationName:"vCpuInfo" type:"structure"`
	// contains filtered or unexported fields
}

Describes the instance type.

func (InstanceTypeInfo) String added in v0.18.0

func (s InstanceTypeInfo) String() string

String returns the string representation

type InstanceTypeOffering added in v0.18.0

type InstanceTypeOffering struct {

	// The instance type. For more information, see Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The identifier for the location. This depends on the location type. For example,
	// if the location type is region, the location is the Region code (for example,
	// us-east-2.)
	Location *string `locationName:"location" type:"string"`

	// The location type.
	LocationType LocationType `locationName:"locationType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

The instance types offered.

func (InstanceTypeOffering) String added in v0.18.0

func (s InstanceTypeOffering) String() string

String returns the string representation

type InstanceUsage added in v0.11.0

type InstanceUsage struct {

	// The ID of the AWS account that is making use of the Capacity Reservation.
	AccountId *string `locationName:"accountId" type:"string"`

	// The number of instances the AWS account currently has in the Capacity Reservation.
	UsedInstanceCount *int64 `locationName:"usedInstanceCount" type:"integer"`
	// contains filtered or unexported fields
}

Information about the Capacity Reservation usage.

func (InstanceUsage) String added in v0.11.0

func (s InstanceUsage) String() string

String returns the string representation

type InterfacePermissionType

type InterfacePermissionType string
const (
	InterfacePermissionTypeInstanceAttach InterfacePermissionType = "INSTANCE-ATTACH"
	InterfacePermissionTypeEipAssociate   InterfacePermissionType = "EIP-ASSOCIATE"
)

Enum values for InterfacePermissionType

func (InterfacePermissionType) MarshalValue added in v0.3.0

func (enum InterfacePermissionType) MarshalValue() (string, error)

func (InterfacePermissionType) MarshalValueBuf added in v0.3.0

func (enum InterfacePermissionType) MarshalValueBuf(b []byte) ([]byte, error)

type InternetGateway

type InternetGateway struct {

	// Any VPCs attached to the internet gateway.
	Attachments []InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`

	// The ID of the internet gateway.
	InternetGatewayId *string `locationName:"internetGatewayId" type:"string"`

	// The ID of the AWS account that owns the internet gateway.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// Any tags assigned to the internet gateway.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an internet gateway.

func (InternetGateway) String

func (s InternetGateway) String() string

String returns the string representation

type InternetGatewayAttachment

type InternetGatewayAttachment struct {

	// The current state of the attachment. For an internet gateway, the state is
	// available when attached to a VPC; otherwise, this value is not returned.
	State AttachmentStatus `locationName:"state" type:"string" enum:"true"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes the attachment of a VPC to an internet gateway or an egress-only internet gateway.

func (InternetGatewayAttachment) String

func (s InternetGatewayAttachment) String() string

String returns the string representation

type IpPermission

type IpPermission struct {

	// The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
	// type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify
	// all ICMP/ICMPv6 types, you must specify all codes.
	FromPort *int64 `locationName:"fromPort" type:"integer"`

	// The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers
	// (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
	//
	// [VPC only] Use -1 to specify all protocols. When authorizing security group
	// rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6
	// allows traffic on all ports, regardless of any port range you specify. For
	// tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range
	// is optional; if you omit the port range, traffic for all types and codes
	// is allowed.
	IpProtocol *string `locationName:"ipProtocol" type:"string"`

	// The IPv4 ranges.
	IpRanges []IpRange `locationName:"ipRanges" locationNameList:"item" type:"list"`

	// [VPC only] The IPv6 ranges.
	Ipv6Ranges []Ipv6Range `locationName:"ipv6Ranges" locationNameList:"item" type:"list"`

	// [VPC only] The prefix list IDs.
	PrefixListIds []PrefixListId `locationName:"prefixListIds" locationNameList:"item" type:"list"`

	// The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
	// A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6
	// types, you must specify all codes.
	ToPort *int64 `locationName:"toPort" type:"integer"`

	// The security group and AWS account ID pairs.
	UserIdGroupPairs []UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a set of permissions for a security group rule.

func (IpPermission) String

func (s IpPermission) String() string

String returns the string representation

type IpRange

type IpRange struct {

	// The IPv4 CIDR range. You can either specify a CIDR range or a source security
	// group, not both. To specify a single IPv4 address, use the /32 prefix length.
	CidrIp *string `locationName:"cidrIp" type:"string"`

	// A description for the security group rule that references this IPv4 address
	// range.
	//
	// Constraints: Up to 255 characters in length. Allowed characters are a-z,
	// A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
	Description *string `locationName:"description" type:"string"`
	// contains filtered or unexported fields
}

Describes an IPv4 range.

func (IpRange) String

func (s IpRange) String() string

String returns the string representation

type Ipv6CidrAssociation added in v0.19.0

type Ipv6CidrAssociation struct {

	// The resource that's associated with the IPv6 CIDR block.
	AssociatedResource *string `locationName:"associatedResource" type:"string"`

	// The IPv6 CIDR block.
	Ipv6Cidr *string `locationName:"ipv6Cidr" type:"string"`
	// contains filtered or unexported fields
}

Describes an IPv6 CIDR block association.

func (Ipv6CidrAssociation) String added in v0.19.0

func (s Ipv6CidrAssociation) String() string

String returns the string representation

type Ipv6CidrBlock

type Ipv6CidrBlock struct {

	// The IPv6 CIDR block.
	Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
	// contains filtered or unexported fields
}

Describes an IPv6 CIDR block.

func (Ipv6CidrBlock) String

func (s Ipv6CidrBlock) String() string

String returns the string representation

type Ipv6Pool added in v0.19.0

type Ipv6Pool struct {

	// The description for the address pool.
	Description *string `locationName:"description" type:"string"`

	// The CIDR blocks for the address pool.
	PoolCidrBlocks []PoolCidrBlock `locationName:"poolCidrBlockSet" locationNameList:"item" type:"list"`

	// The ID of the address pool.
	PoolId *string `locationName:"poolId" type:"string"`

	// Any tags for the address pool.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an IPv6 address pool.

func (Ipv6Pool) String added in v0.19.0

func (s Ipv6Pool) String() string

String returns the string representation

type Ipv6Range

type Ipv6Range struct {

	// The IPv6 CIDR range. You can either specify a CIDR range or a source security
	// group, not both. To specify a single IPv6 address, use the /128 prefix length.
	CidrIpv6 *string `locationName:"cidrIpv6" type:"string"`

	// A description for the security group rule that references this IPv6 address
	// range.
	//
	// Constraints: Up to 255 characters in length. Allowed characters are a-z,
	// A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
	Description *string `locationName:"description" type:"string"`
	// contains filtered or unexported fields
}

[EC2-VPC only] Describes an IPv6 range.

func (Ipv6Range) String

func (s Ipv6Range) String() string

String returns the string representation

type Ipv6SupportValue added in v0.6.0

type Ipv6SupportValue string
const (
	Ipv6SupportValueEnable  Ipv6SupportValue = "enable"
	Ipv6SupportValueDisable Ipv6SupportValue = "disable"
)

Enum values for Ipv6SupportValue

func (Ipv6SupportValue) MarshalValue added in v0.6.0

func (enum Ipv6SupportValue) MarshalValue() (string, error)

func (Ipv6SupportValue) MarshalValueBuf added in v0.6.0

func (enum Ipv6SupportValue) MarshalValueBuf(b []byte) ([]byte, error)

type KeyPairInfo

type KeyPairInfo struct {

	// If you used CreateKeyPair to create the key pair, this is the SHA-1 digest
	// of the DER encoded private key. If you used ImportKeyPair to provide AWS
	// the public key, this is the MD5 public key fingerprint as specified in section
	// 4 of RFC4716.
	KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`

	// The name of the key pair.
	KeyName *string `locationName:"keyName" type:"string"`

	// The ID of the key pair.
	KeyPairId *string `locationName:"keyPairId" type:"string"`

	// Any tags applied to the key pair.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a key pair.

func (KeyPairInfo) String

func (s KeyPairInfo) String() string

String returns the string representation

type LastError added in v0.19.0

type LastError struct {

	// The error code for the VPC endpoint error.
	Code *string `locationName:"code" type:"string"`

	// The error message for the VPC endpoint error.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

The last error that occurred for a VPC endpoint.

func (LastError) String added in v0.19.0

func (s LastError) String() string

String returns the string representation

type LaunchPermission

type LaunchPermission struct {

	// The name of the group.
	Group PermissionGroup `locationName:"group" type:"string" enum:"true"`

	// The AWS account ID.
	UserId *string `locationName:"userId" type:"string"`
	// contains filtered or unexported fields
}

Describes a launch permission.

func (LaunchPermission) String

func (s LaunchPermission) String() string

String returns the string representation

type LaunchPermissionModifications

type LaunchPermissionModifications struct {

	// The AWS account ID to add to the list of launch permissions for the AMI.
	Add []LaunchPermission `locationNameList:"item" type:"list"`

	// The AWS account ID to remove from the list of launch permissions for the
	// AMI.
	Remove []LaunchPermission `locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a launch permission modification.

func (LaunchPermissionModifications) String

String returns the string representation

type LaunchSpecification

type LaunchSpecification struct {

	// Deprecated.
	AddressingType *string `locationName:"addressingType" type:"string"`

	// One or more block device mapping entries.
	BlockDeviceMappings []BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`

	// Indicates whether the instance is optimized for EBS I/O. This optimization
	// provides dedicated throughput to Amazon EBS and an optimized configuration
	// stack to provide optimal EBS I/O performance. This optimization isn't available
	// with all instance types. Additional usage charges apply when using an EBS
	// Optimized instance.
	//
	// Default: false
	EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`

	// The IAM instance profile.
	IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`

	// The ID of the AMI.
	ImageId *string `locationName:"imageId" type:"string"`

	// The instance type.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The ID of the kernel.
	KernelId *string `locationName:"kernelId" type:"string"`

	// The name of the key pair.
	KeyName *string `locationName:"keyName" type:"string"`

	// Describes the monitoring of an instance.
	Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`

	// One or more network interfaces. If you specify a network interface, you must
	// specify subnet IDs and security group IDs using the network interface.
	NetworkInterfaces []InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`

	// The placement information for the instance.
	Placement *SpotPlacement `locationName:"placement" type:"structure"`

	// The ID of the RAM disk.
	RamdiskId *string `locationName:"ramdiskId" type:"string"`

	// One or more security groups. When requesting instances in a VPC, you must
	// specify the IDs of the security groups. When requesting instances in EC2-Classic,
	// you can specify the names or the IDs of the security groups.
	SecurityGroups []GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`

	// The ID of the subnet in which to launch the instance.
	SubnetId *string `locationName:"subnetId" type:"string"`

	// The Base64-encoded user data for the instance.
	UserData *string `locationName:"userData" type:"string"`
	// contains filtered or unexported fields
}

Describes the launch specification for an instance.

func (LaunchSpecification) String

func (s LaunchSpecification) String() string

String returns the string representation

type LaunchTemplate added in v0.2.0

type LaunchTemplate struct {

	// The time launch template was created.
	CreateTime *time.Time `locationName:"createTime" type:"timestamp"`

	// The principal that created the launch template.
	CreatedBy *string `locationName:"createdBy" type:"string"`

	// The version number of the default version of the launch template.
	DefaultVersionNumber *int64 `locationName:"defaultVersionNumber" type:"long"`

	// The version number of the latest version of the launch template.
	LatestVersionNumber *int64 `locationName:"latestVersionNumber" type:"long"`

	// The ID of the launch template.
	LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`

	// The name of the launch template.
	LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`

	// The tags for the launch template.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a launch template.

func (LaunchTemplate) String added in v0.2.0

func (s LaunchTemplate) String() string

String returns the string representation

type LaunchTemplateAndOverridesResponse added in v0.6.0

type LaunchTemplateAndOverridesResponse struct {

	// The launch template.
	LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`

	// Any parameters that you specify override the same parameters in the launch
	// template.
	Overrides *FleetLaunchTemplateOverrides `locationName:"overrides" type:"structure"`
	// contains filtered or unexported fields
}

Describes a launch template and overrides.

func (LaunchTemplateAndOverridesResponse) String added in v0.6.0

String returns the string representation

type LaunchTemplateBlockDeviceMapping added in v0.2.0

type LaunchTemplateBlockDeviceMapping struct {

	// The device name.
	DeviceName *string `locationName:"deviceName" type:"string"`

	// Information about the block device for an EBS volume.
	Ebs *LaunchTemplateEbsBlockDevice `locationName:"ebs" type:"structure"`

	// Suppresses the specified device included in the block device mapping of the
	// AMI.
	NoDevice *string `locationName:"noDevice" type:"string"`

	// The virtual device name (ephemeralN).
	VirtualName *string `locationName:"virtualName" type:"string"`
	// contains filtered or unexported fields
}

Describes a block device mapping.

func (LaunchTemplateBlockDeviceMapping) String added in v0.2.0

String returns the string representation

type LaunchTemplateBlockDeviceMappingRequest added in v0.2.0

type LaunchTemplateBlockDeviceMappingRequest struct {

	// The device name (for example, /dev/sdh or xvdh).
	DeviceName *string `type:"string"`

	// Parameters used to automatically set up EBS volumes when the instance is
	// launched.
	Ebs *LaunchTemplateEbsBlockDeviceRequest `type:"structure"`

	// Suppresses the specified device included in the block device mapping of the
	// AMI.
	NoDevice *string `type:"string"`

	// The virtual device name (ephemeralN). Instance store volumes are numbered
	// starting from 0. An instance type with 2 available instance store volumes
	// can specify mappings for ephemeral0 and ephemeral1. The number of available
	// instance store volumes depends on the instance type. After you connect to
	// the instance, you must mount the volume.
	VirtualName *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a block device mapping.

func (LaunchTemplateBlockDeviceMappingRequest) String added in v0.2.0

String returns the string representation

type LaunchTemplateCapacityReservationSpecificationRequest added in v0.6.0

type LaunchTemplateCapacityReservationSpecificationRequest struct {

	// Indicates the instance's Capacity Reservation preferences. Possible preferences
	// include:
	//
	//    * open - The instance can run in any open Capacity Reservation that has
	//    matching attributes (instance type, platform, Availability Zone).
	//
	//    * none - The instance avoids running in a Capacity Reservation even if
	//    one is available. The instance runs in On-Demand capacity.
	CapacityReservationPreference CapacityReservationPreference `type:"string" enum:"true"`

	// Information about the target Capacity Reservation.
	CapacityReservationTarget *CapacityReservationTarget `type:"structure"`
	// contains filtered or unexported fields
}

Describes an instance's Capacity Reservation targeting option. You can specify only one option at a time. Use the CapacityReservationPreference parameter to configure the instance to run in On-Demand capacity or to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). Use the CapacityReservationTarget parameter to explicitly target a specific Capacity Reservation.

func (LaunchTemplateCapacityReservationSpecificationRequest) String added in v0.6.0

String returns the string representation

type LaunchTemplateCapacityReservationSpecificationResponse added in v0.6.0

type LaunchTemplateCapacityReservationSpecificationResponse struct {

	// Indicates the instance's Capacity Reservation preferences. Possible preferences
	// include:
	//
	//    * open - The instance can run in any open Capacity Reservation that has
	//    matching attributes (instance type, platform, Availability Zone).
	//
	//    * none - The instance avoids running in a Capacity Reservation even if
	//    one is available. The instance runs in On-Demand capacity.
	CapacityReservationPreference CapacityReservationPreference `locationName:"capacityReservationPreference" type:"string" enum:"true"`

	// Information about the target Capacity Reservation.
	CapacityReservationTarget *CapacityReservationTargetResponse `locationName:"capacityReservationTarget" type:"structure"`
	// contains filtered or unexported fields
}

Information about the Capacity Reservation targeting option.

func (LaunchTemplateCapacityReservationSpecificationResponse) String added in v0.6.0

String returns the string representation

type LaunchTemplateConfig added in v0.2.0

type LaunchTemplateConfig struct {

	// The launch template.
	LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`

	// Any parameters that you specify override the same parameters in the launch
	// template.
	Overrides []LaunchTemplateOverrides `locationName:"overrides" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a launch template and overrides.

func (LaunchTemplateConfig) String added in v0.2.0

func (s LaunchTemplateConfig) String() string

String returns the string representation

func (*LaunchTemplateConfig) Validate added in v0.2.0

func (s *LaunchTemplateConfig) Validate() error

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

type LaunchTemplateCpuOptions added in v0.5.0

type LaunchTemplateCpuOptions struct {

	// The number of CPU cores for the instance.
	CoreCount *int64 `locationName:"coreCount" type:"integer"`

	// The number of threads per CPU core.
	ThreadsPerCore *int64 `locationName:"threadsPerCore" type:"integer"`
	// contains filtered or unexported fields
}

The CPU options for the instance.

func (LaunchTemplateCpuOptions) String added in v0.5.0

func (s LaunchTemplateCpuOptions) String() string

String returns the string representation

type LaunchTemplateCpuOptionsRequest added in v0.5.0

type LaunchTemplateCpuOptionsRequest struct {

	// The number of CPU cores for the instance.
	CoreCount *int64 `type:"integer"`

	// The number of threads per CPU core. To disable multithreading for the instance,
	// specify a value of 1. Otherwise, specify the default value of 2.
	ThreadsPerCore *int64 `type:"integer"`
	// contains filtered or unexported fields
}

The CPU options for the instance. Both the core count and threads per core must be specified in the request.

func (LaunchTemplateCpuOptionsRequest) String added in v0.5.0

String returns the string representation

type LaunchTemplateEbsBlockDevice added in v0.2.0

type LaunchTemplateEbsBlockDevice struct {

	// Indicates whether the EBS volume is deleted on instance termination.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`

	// Indicates whether the EBS volume is encrypted.
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// The number of I/O operations per second (IOPS) that the volume supports.
	Iops *int64 `locationName:"iops" type:"integer"`

	// The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// The ID of the snapshot.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// The size of the volume, in GiB.
	VolumeSize *int64 `locationName:"volumeSize" type:"integer"`

	// The volume type.
	VolumeType VolumeType `locationName:"volumeType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a block device for an EBS volume.

func (LaunchTemplateEbsBlockDevice) String added in v0.2.0

String returns the string representation

type LaunchTemplateEbsBlockDeviceRequest added in v0.2.0

type LaunchTemplateEbsBlockDeviceRequest struct {

	// Indicates whether the EBS volume is deleted on instance termination.
	DeleteOnTermination *bool `type:"boolean"`

	// Indicates whether the EBS volume is encrypted. Encrypted volumes can only
	// be attached to instances that support Amazon EBS encryption. If you are creating
	// a volume from a snapshot, you can't specify an encryption value.
	Encrypted *bool `type:"boolean"`

	// The number of I/O operations per second (IOPS) that the volume supports.
	// For io1, this represents the number of IOPS that are provisioned for the
	// volume. For gp2, this represents the baseline performance of the volume and
	// the rate at which the volume accumulates I/O credits for bursting. For more
	// information about General Purpose SSD baseline performance, I/O credits,
	// and bursting, see Amazon EBS Volume Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// Condition: This parameter is required for requests to create io1 volumes;
	// it is not used in requests to create gp2, st1, sc1, or standard volumes.
	Iops *int64 `type:"integer"`

	// The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for
	// encryption.
	KmsKeyId *string `type:"string"`

	// The ID of the snapshot.
	SnapshotId *string `type:"string"`

	// The size of the volume, in GiB.
	//
	// Default: If you're creating the volume from a snapshot and don't specify
	// a volume size, the default is the snapshot size.
	VolumeSize *int64 `type:"integer"`

	// The volume type.
	VolumeType VolumeType `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

The parameters for a block device for an EBS volume.

func (LaunchTemplateEbsBlockDeviceRequest) String added in v0.2.0

String returns the string representation

type LaunchTemplateElasticInferenceAccelerator added in v0.6.0

type LaunchTemplateElasticInferenceAccelerator struct {

	// The number of elastic inference accelerators to attach to the instance.
	//
	// Default: 1
	Count *int64 `min:"1" type:"integer"`

	// The type of elastic inference accelerator. The possible values are eia1.medium,
	// eia1.large, and eia1.xlarge.
	//
	// Type is a required field
	Type *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Describes an elastic inference accelerator.

func (LaunchTemplateElasticInferenceAccelerator) String added in v0.6.0

String returns the string representation

func (*LaunchTemplateElasticInferenceAccelerator) Validate added in v0.6.0

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

type LaunchTemplateElasticInferenceAcceleratorResponse added in v0.6.0

type LaunchTemplateElasticInferenceAcceleratorResponse struct {

	// The number of elastic inference accelerators to attach to the instance.
	//
	// Default: 1
	Count *int64 `locationName:"count" type:"integer"`

	// The type of elastic inference accelerator. The possible values are eia1.medium,
	// eia1.large, and eia1.xlarge.
	Type *string `locationName:"type" type:"string"`
	// contains filtered or unexported fields
}

Describes an elastic inference accelerator.

func (LaunchTemplateElasticInferenceAcceleratorResponse) String added in v0.6.0

String returns the string representation

type LaunchTemplateErrorCode added in v0.2.0

type LaunchTemplateErrorCode string
const (
	LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist      LaunchTemplateErrorCode = "launchTemplateIdDoesNotExist"
	LaunchTemplateErrorCodeLaunchTemplateIdMalformed         LaunchTemplateErrorCode = "launchTemplateIdMalformed"
	LaunchTemplateErrorCodeLaunchTemplateNameDoesNotExist    LaunchTemplateErrorCode = "launchTemplateNameDoesNotExist"
	LaunchTemplateErrorCodeLaunchTemplateNameMalformed       LaunchTemplateErrorCode = "launchTemplateNameMalformed"
	LaunchTemplateErrorCodeLaunchTemplateVersionDoesNotExist LaunchTemplateErrorCode = "launchTemplateVersionDoesNotExist"
	LaunchTemplateErrorCodeUnexpectedError                   LaunchTemplateErrorCode = "unexpectedError"
)

Enum values for LaunchTemplateErrorCode

func (LaunchTemplateErrorCode) MarshalValue added in v0.3.0

func (enum LaunchTemplateErrorCode) MarshalValue() (string, error)

func (LaunchTemplateErrorCode) MarshalValueBuf added in v0.3.0

func (enum LaunchTemplateErrorCode) MarshalValueBuf(b []byte) ([]byte, error)

type LaunchTemplateHibernationOptions added in v0.6.0

type LaunchTemplateHibernationOptions struct {

	// If this parameter is set to true, the instance is enabled for hibernation;
	// otherwise, it is not enabled for hibernation.
	Configured *bool `locationName:"configured" type:"boolean"`
	// contains filtered or unexported fields
}

Indicates whether an instance is configured for hibernation.

func (LaunchTemplateHibernationOptions) String added in v0.6.0

String returns the string representation

type LaunchTemplateHibernationOptionsRequest added in v0.6.0

type LaunchTemplateHibernationOptionsRequest struct {

	// If you set this parameter to true, the instance is enabled for hibernation.
	//
	// Default: false
	Configured *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Indicates whether the instance is configured for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).

func (LaunchTemplateHibernationOptionsRequest) String added in v0.6.0

String returns the string representation

type LaunchTemplateHttpTokensState added in v0.19.0

type LaunchTemplateHttpTokensState string
const (
	LaunchTemplateHttpTokensStateOptional LaunchTemplateHttpTokensState = "optional"
	LaunchTemplateHttpTokensStateRequired LaunchTemplateHttpTokensState = "required"
)

Enum values for LaunchTemplateHttpTokensState

func (LaunchTemplateHttpTokensState) MarshalValue added in v0.19.0

func (enum LaunchTemplateHttpTokensState) MarshalValue() (string, error)

func (LaunchTemplateHttpTokensState) MarshalValueBuf added in v0.19.0

func (enum LaunchTemplateHttpTokensState) MarshalValueBuf(b []byte) ([]byte, error)

type LaunchTemplateIamInstanceProfileSpecification added in v0.2.0

type LaunchTemplateIamInstanceProfileSpecification struct {

	// The Amazon Resource Name (ARN) of the instance profile.
	Arn *string `locationName:"arn" type:"string"`

	// The name of the instance profile.
	Name *string `locationName:"name" type:"string"`
	// contains filtered or unexported fields
}

Describes an IAM instance profile.

func (LaunchTemplateIamInstanceProfileSpecification) String added in v0.2.0

String returns the string representation

type LaunchTemplateIamInstanceProfileSpecificationRequest added in v0.2.0

type LaunchTemplateIamInstanceProfileSpecificationRequest struct {

	// The Amazon Resource Name (ARN) of the instance profile.
	Arn *string `type:"string"`

	// The name of the instance profile.
	Name *string `type:"string"`
	// contains filtered or unexported fields
}

An IAM instance profile.

func (LaunchTemplateIamInstanceProfileSpecificationRequest) String added in v0.2.0

String returns the string representation

type LaunchTemplateInstanceMarketOptions added in v0.2.0

type LaunchTemplateInstanceMarketOptions struct {

	// The market type.
	MarketType MarketType `locationName:"marketType" type:"string" enum:"true"`

	// The options for Spot Instances.
	SpotOptions *LaunchTemplateSpotMarketOptions `locationName:"spotOptions" type:"structure"`
	// contains filtered or unexported fields
}

The market (purchasing) option for the instances.

func (LaunchTemplateInstanceMarketOptions) String added in v0.2.0

String returns the string representation

type LaunchTemplateInstanceMarketOptionsRequest added in v0.2.0

type LaunchTemplateInstanceMarketOptionsRequest struct {

	// The market type.
	MarketType MarketType `type:"string" enum:"true"`

	// The options for Spot Instances.
	SpotOptions *LaunchTemplateSpotMarketOptionsRequest `type:"structure"`
	// contains filtered or unexported fields
}

The market (purchasing) option for the instances.

func (LaunchTemplateInstanceMarketOptionsRequest) String added in v0.2.0

String returns the string representation

type LaunchTemplateInstanceMetadataEndpointState added in v0.19.0

type LaunchTemplateInstanceMetadataEndpointState string
const (
	LaunchTemplateInstanceMetadataEndpointStateDisabled LaunchTemplateInstanceMetadataEndpointState = "disabled"
	LaunchTemplateInstanceMetadataEndpointStateEnabled  LaunchTemplateInstanceMetadataEndpointState = "enabled"
)

Enum values for LaunchTemplateInstanceMetadataEndpointState

func (LaunchTemplateInstanceMetadataEndpointState) MarshalValue added in v0.19.0

func (LaunchTemplateInstanceMetadataEndpointState) MarshalValueBuf added in v0.19.0

func (enum LaunchTemplateInstanceMetadataEndpointState) MarshalValueBuf(b []byte) ([]byte, error)

type LaunchTemplateInstanceMetadataOptions added in v0.19.0

type LaunchTemplateInstanceMetadataOptions struct {

	// This parameter enables or disables the HTTP metadata endpoint on your instances.
	// If the parameter is not specified, the default state is enabled.
	//
	// If you specify a value of disabled, you will not be able to access your instance
	// metadata.
	HttpEndpoint LaunchTemplateInstanceMetadataEndpointState `locationName:"httpEndpoint" type:"string" enum:"true"`

	// The desired HTTP PUT response hop limit for instance metadata requests. The
	// larger the number, the further instance metadata requests can travel.
	//
	// Default: 1
	//
	// Possible values: Integers from 1 to 64
	HttpPutResponseHopLimit *int64 `locationName:"httpPutResponseHopLimit" type:"integer"`

	// The state of token usage for your instance metadata requests. If the parameter
	// is not specified in the request, the default state is optional.
	//
	// If the state is optional, you can choose to retrieve instance metadata with
	// or without a signed token header on your request. If you retrieve the IAM
	// role credentials without a token, the version 1.0 role credentials are returned.
	// If you retrieve the IAM role credentials using a valid signed token, the
	// version 2.0 role credentials are returned.
	//
	// If the state is required, you must send a signed token header with any instance
	// metadata retrieval requests. In this state, retrieving the IAM role credentials
	// always returns the version 2.0 credentials; the version 1.0 credentials are
	// not available.
	HttpTokens LaunchTemplateHttpTokensState `locationName:"httpTokens" type:"string" enum:"true"`

	// The state of the metadata option changes.
	//
	// pending - The metadata options are being updated and the instance is not
	// ready to process metadata traffic with the new selection.
	//
	// applied - The metadata options have been successfully applied on the instance.
	State LaunchTemplateInstanceMetadataOptionsState `locationName:"state" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

The metadata options for the instance. For more information, see Instance Metadata and User Data (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the Amazon Elastic Compute Cloud User Guide.

func (LaunchTemplateInstanceMetadataOptions) String added in v0.19.0

String returns the string representation

type LaunchTemplateInstanceMetadataOptionsRequest added in v0.19.0

type LaunchTemplateInstanceMetadataOptionsRequest struct {

	// This parameter enables or disables the HTTP metadata endpoint on your instances.
	// If the parameter is not specified, the default state is enabled.
	//
	// If you specify a value of disabled, you will not be able to access your instance
	// metadata.
	HttpEndpoint LaunchTemplateInstanceMetadataEndpointState `type:"string" enum:"true"`

	// The desired HTTP PUT response hop limit for instance metadata requests. The
	// larger the number, the further instance metadata requests can travel.
	//
	// Default: 1
	//
	// Possible values: Integers from 1 to 64
	HttpPutResponseHopLimit *int64 `type:"integer"`

	// The state of token usage for your instance metadata requests. If the parameter
	// is not specified in the request, the default state is optional.
	//
	// If the state is optional, you can choose to retrieve instance metadata with
	// or without a signed token header on your request. If you retrieve the IAM
	// role credentials without a token, the version 1.0 role credentials are returned.
	// If you retrieve the IAM role credentials using a valid signed token, the
	// version 2.0 role credentials are returned.
	//
	// If the state is required, you must send a signed token header with any instance
	// metadata retrieval requests. In this state, retrieving the IAM role credentials
	// always returns the version 2.0 credentials; the version 1.0 credentials are
	// not available.
	HttpTokens LaunchTemplateHttpTokensState `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

The metadata options for the instance. For more information, see Instance Metadata and User Data (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the Amazon Elastic Compute Cloud User Guide.

func (LaunchTemplateInstanceMetadataOptionsRequest) String added in v0.19.0

String returns the string representation

type LaunchTemplateInstanceMetadataOptionsState added in v0.19.0

type LaunchTemplateInstanceMetadataOptionsState string
const (
	LaunchTemplateInstanceMetadataOptionsStatePending LaunchTemplateInstanceMetadataOptionsState = "pending"
	LaunchTemplateInstanceMetadataOptionsStateApplied LaunchTemplateInstanceMetadataOptionsState = "applied"
)

Enum values for LaunchTemplateInstanceMetadataOptionsState

func (LaunchTemplateInstanceMetadataOptionsState) MarshalValue added in v0.19.0

func (LaunchTemplateInstanceMetadataOptionsState) MarshalValueBuf added in v0.19.0

func (enum LaunchTemplateInstanceMetadataOptionsState) MarshalValueBuf(b []byte) ([]byte, error)

type LaunchTemplateInstanceNetworkInterfaceSpecification added in v0.2.0

type LaunchTemplateInstanceNetworkInterfaceSpecification struct {

	// Indicates whether to associate a public IPv4 address with eth0 for a new
	// network interface.
	AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`

	// Indicates whether the network interface is deleted when the instance is terminated.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`

	// A description for the network interface.
	Description *string `locationName:"description" type:"string"`

	// The device index for the network interface attachment.
	DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`

	// The IDs of one or more security groups.
	Groups []string `locationName:"groupSet" locationNameList:"groupId" type:"list"`

	// The type of network interface.
	InterfaceType *string `locationName:"interfaceType" type:"string"`

	// The number of IPv6 addresses for the network interface.
	Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`

	// The IPv6 addresses for the network interface.
	Ipv6Addresses []InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`

	// The ID of the network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The primary private IPv4 address of the network interface.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`

	// One or more private IPv4 addresses.
	PrivateIpAddresses []PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`

	// The number of secondary private IPv4 addresses for the network interface.
	SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`

	// The ID of the subnet for the network interface.
	SubnetId *string `locationName:"subnetId" type:"string"`
	// contains filtered or unexported fields
}

Describes a network interface.

func (LaunchTemplateInstanceNetworkInterfaceSpecification) String added in v0.2.0

String returns the string representation

type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest added in v0.2.0

type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct {

	// Associates a public IPv4 address with eth0 for a new network interface.
	AssociatePublicIpAddress *bool `type:"boolean"`

	// Indicates whether the network interface is deleted when the instance is terminated.
	DeleteOnTermination *bool `type:"boolean"`

	// A description for the network interface.
	Description *string `type:"string"`

	// The device index for the network interface attachment.
	DeviceIndex *int64 `type:"integer"`

	// The IDs of one or more security groups.
	Groups []string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`

	// The type of network interface. To create an Elastic Fabric Adapter (EFA),
	// specify efa. For more information, see Elastic Fabric Adapter (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// If you are not creating an EFA, specify interface or omit this parameter.
	//
	// Valid values: interface | efa
	InterfaceType *string `type:"string"`

	// The number of IPv6 addresses to assign to a network interface. Amazon EC2
	// automatically selects the IPv6 addresses from the subnet range. You can't
	// use this option if specifying specific IPv6 addresses.
	Ipv6AddressCount *int64 `type:"integer"`

	// One or more specific IPv6 addresses from the IPv6 CIDR block range of your
	// subnet. You can't use this option if you're specifying a number of IPv6 addresses.
	Ipv6Addresses []InstanceIpv6AddressRequest `locationNameList:"InstanceIpv6Address" type:"list"`

	// The ID of the network interface.
	NetworkInterfaceId *string `type:"string"`

	// The primary private IPv4 address of the network interface.
	PrivateIpAddress *string `type:"string"`

	// One or more private IPv4 addresses.
	PrivateIpAddresses []PrivateIpAddressSpecification `locationNameList:"item" type:"list"`

	// The number of secondary private IPv4 addresses to assign to a network interface.
	SecondaryPrivateIpAddressCount *int64 `type:"integer"`

	// The ID of the subnet for the network interface.
	SubnetId *string `type:"string"`
	// contains filtered or unexported fields
}

The parameters for a network interface.

func (LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) String added in v0.2.0

String returns the string representation

type LaunchTemplateLicenseConfiguration added in v0.6.0

type LaunchTemplateLicenseConfiguration struct {

	// The Amazon Resource Name (ARN) of the license configuration.
	LicenseConfigurationArn *string `locationName:"licenseConfigurationArn" type:"string"`
	// contains filtered or unexported fields
}

Describes a license configuration.

func (LaunchTemplateLicenseConfiguration) String added in v0.6.0

String returns the string representation

type LaunchTemplateLicenseConfigurationRequest added in v0.6.0

type LaunchTemplateLicenseConfigurationRequest struct {

	// The Amazon Resource Name (ARN) of the license configuration.
	LicenseConfigurationArn *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a license configuration.

func (LaunchTemplateLicenseConfigurationRequest) String added in v0.6.0

String returns the string representation

type LaunchTemplateOverrides added in v0.2.0

type LaunchTemplateOverrides struct {

	// The Availability Zone in which to launch the instances.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The instance type.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The priority for the launch template override. If OnDemandAllocationStrategy
	// is set to prioritized, Spot Fleet uses priority to determine which launch
	// template override to use first in fulfilling On-Demand capacity. The highest
	// priority is launched first. Valid values are whole numbers starting at 0.
	// The lower the number, the higher the priority. If no number is set, the launch
	// template override has the lowest priority.
	Priority *float64 `locationName:"priority" type:"double"`

	// The maximum price per unit hour that you are willing to pay for a Spot Instance.
	SpotPrice *string `locationName:"spotPrice" type:"string"`

	// The ID of the subnet in which to launch the instances.
	SubnetId *string `locationName:"subnetId" type:"string"`

	// The number of units provided by the specified instance type.
	WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
	// contains filtered or unexported fields
}

Describes overrides for a launch template.

func (LaunchTemplateOverrides) String added in v0.2.0

func (s LaunchTemplateOverrides) String() string

String returns the string representation

type LaunchTemplatePlacement added in v0.2.0

type LaunchTemplatePlacement struct {

	// The affinity setting for the instance on the Dedicated Host.
	Affinity *string `locationName:"affinity" type:"string"`

	// The Availability Zone of the instance.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The name of the placement group for the instance.
	GroupName *string `locationName:"groupName" type:"string"`

	// The ID of the Dedicated Host for the instance.
	HostId *string `locationName:"hostId" type:"string"`

	// The ARN of the host resource group in which to launch the instances.
	HostResourceGroupArn *string `locationName:"hostResourceGroupArn" type:"string"`

	// The number of the partition the instance should launch in. Valid only if
	// the placement group strategy is set to partition.
	PartitionNumber *int64 `locationName:"partitionNumber" type:"integer"`

	// Reserved for future use.
	SpreadDomain *string `locationName:"spreadDomain" type:"string"`

	// The tenancy of the instance (if the instance is running in a VPC). An instance
	// with a tenancy of dedicated runs on single-tenant hardware.
	Tenancy Tenancy `locationName:"tenancy" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the placement of an instance.

func (LaunchTemplatePlacement) String added in v0.2.0

func (s LaunchTemplatePlacement) String() string

String returns the string representation

type LaunchTemplatePlacementRequest added in v0.2.0

type LaunchTemplatePlacementRequest struct {

	// The affinity setting for an instance on a Dedicated Host.
	Affinity *string `type:"string"`

	// The Availability Zone for the instance.
	AvailabilityZone *string `type:"string"`

	// The name of the placement group for the instance.
	GroupName *string `type:"string"`

	// The ID of the Dedicated Host for the instance.
	HostId *string `type:"string"`

	// The ARN of the host resource group in which to launch the instances. If you
	// specify a host resource group ARN, omit the Tenancy parameter or set it to
	// host.
	HostResourceGroupArn *string `type:"string"`

	// The number of the partition the instance should launch in. Valid only if
	// the placement group strategy is set to partition.
	PartitionNumber *int64 `type:"integer"`

	// Reserved for future use.
	SpreadDomain *string `type:"string"`

	// The tenancy of the instance (if the instance is running in a VPC). An instance
	// with a tenancy of dedicated runs on single-tenant hardware.
	Tenancy Tenancy `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the placement of an instance.

func (LaunchTemplatePlacementRequest) String added in v0.2.0

String returns the string representation

type LaunchTemplateSpecification added in v0.2.0

type LaunchTemplateSpecification struct {

	// The ID of the launch template.
	LaunchTemplateId *string `type:"string"`

	// The name of the launch template.
	LaunchTemplateName *string `type:"string"`

	// The version number of the launch template.
	//
	// Default: The default version for the launch template.
	Version *string `type:"string"`
	// contains filtered or unexported fields
}

The launch template to use. You must specify either the launch template ID or launch template name in the request, but not both.

func (LaunchTemplateSpecification) String added in v0.2.0

String returns the string representation

type LaunchTemplateSpotMarketOptions added in v0.2.0

type LaunchTemplateSpotMarketOptions struct {

	// The required duration for the Spot Instances (also known as Spot blocks),
	// in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
	// or 360).
	BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`

	// The behavior when a Spot Instance is interrupted.
	InstanceInterruptionBehavior InstanceInterruptionBehavior `locationName:"instanceInterruptionBehavior" type:"string" enum:"true"`

	// The maximum hourly price you're willing to pay for the Spot Instances.
	MaxPrice *string `locationName:"maxPrice" type:"string"`

	// The Spot Instance request type.
	SpotInstanceType SpotInstanceType `locationName:"spotInstanceType" type:"string" enum:"true"`

	// The end date of the request. For a one-time request, the request remains
	// active until all instances launch, the request is canceled, or this date
	// is reached. If the request is persistent, it remains active until it is canceled
	// or this date and time is reached.
	ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
	// contains filtered or unexported fields
}

The options for Spot Instances.

func (LaunchTemplateSpotMarketOptions) String added in v0.2.0

String returns the string representation

type LaunchTemplateSpotMarketOptionsRequest added in v0.2.0

type LaunchTemplateSpotMarketOptionsRequest struct {

	// The required duration for the Spot Instances (also known as Spot blocks),
	// in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
	// or 360).
	BlockDurationMinutes *int64 `type:"integer"`

	// The behavior when a Spot Instance is interrupted. The default is terminate.
	InstanceInterruptionBehavior InstanceInterruptionBehavior `type:"string" enum:"true"`

	// The maximum hourly price you're willing to pay for the Spot Instances.
	MaxPrice *string `type:"string"`

	// The Spot Instance request type.
	SpotInstanceType SpotInstanceType `type:"string" enum:"true"`

	// The end date of the request. For a one-time request, the request remains
	// active until all instances launch, the request is canceled, or this date
	// is reached. If the request is persistent, it remains active until it is canceled
	// or this date and time is reached. The default end date is 7 days from the
	// current date.
	ValidUntil *time.Time `type:"timestamp"`
	// contains filtered or unexported fields
}

The options for Spot Instances.

func (LaunchTemplateSpotMarketOptionsRequest) String added in v0.2.0

String returns the string representation

type LaunchTemplateTagSpecification added in v0.2.0

type LaunchTemplateTagSpecification struct {

	// The type of resource.
	ResourceType ResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The tags for the resource.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

The tag specification for the launch template.

func (LaunchTemplateTagSpecification) String added in v0.2.0

String returns the string representation

type LaunchTemplateTagSpecificationRequest added in v0.2.0

type LaunchTemplateTagSpecificationRequest struct {

	// The type of resource to tag. Currently, the resource types that support tagging
	// on creation are instance and volume. To tag a resource after it has been
	// created, see CreateTags (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html).
	ResourceType ResourceType `type:"string" enum:"true"`

	// The tags to apply to the resource.
	Tags []Tag `locationName:"Tag" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

The tags specification for the launch template.

func (LaunchTemplateTagSpecificationRequest) String added in v0.2.0

String returns the string representation

type LaunchTemplateVersion added in v0.2.0

type LaunchTemplateVersion struct {

	// The time the version was created.
	CreateTime *time.Time `locationName:"createTime" type:"timestamp"`

	// The principal that created the version.
	CreatedBy *string `locationName:"createdBy" type:"string"`

	// Indicates whether the version is the default version.
	DefaultVersion *bool `locationName:"defaultVersion" type:"boolean"`

	// Information about the launch template.
	LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"`

	// The ID of the launch template.
	LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`

	// The name of the launch template.
	LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`

	// The description for the version.
	VersionDescription *string `locationName:"versionDescription" type:"string"`

	// The version number.
	VersionNumber *int64 `locationName:"versionNumber" type:"long"`
	// contains filtered or unexported fields
}

Describes a launch template version.

func (LaunchTemplateVersion) String added in v0.2.0

func (s LaunchTemplateVersion) String() string

String returns the string representation

type LaunchTemplatesMonitoring added in v0.2.0

type LaunchTemplatesMonitoring struct {

	// Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
	// is enabled.
	Enabled *bool `locationName:"enabled" type:"boolean"`
	// contains filtered or unexported fields
}

Describes the monitoring for the instance.

func (LaunchTemplatesMonitoring) String added in v0.2.0

func (s LaunchTemplatesMonitoring) String() string

String returns the string representation

type LaunchTemplatesMonitoringRequest added in v0.2.0

type LaunchTemplatesMonitoringRequest struct {

	// Specify true to enable detailed monitoring. Otherwise, basic monitoring is
	// enabled.
	Enabled *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Describes the monitoring for the instance.

func (LaunchTemplatesMonitoringRequest) String added in v0.2.0

String returns the string representation

type LicenseConfiguration added in v0.6.0

type LicenseConfiguration struct {

	// The Amazon Resource Name (ARN) of the license configuration.
	LicenseConfigurationArn *string `locationName:"licenseConfigurationArn" type:"string"`
	// contains filtered or unexported fields
}

Describes a license configuration.

func (LicenseConfiguration) String added in v0.6.0

func (s LicenseConfiguration) String() string

String returns the string representation

type LicenseConfigurationRequest added in v0.6.0

type LicenseConfigurationRequest struct {

	// The Amazon Resource Name (ARN) of the license configuration.
	LicenseConfigurationArn *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a license configuration.

func (LicenseConfigurationRequest) String added in v0.6.0

String returns the string representation

type ListingState

type ListingState string
const (
	ListingStateAvailable ListingState = "available"
	ListingStateSold      ListingState = "sold"
	ListingStateCancelled ListingState = "cancelled"
	ListingStatePending   ListingState = "pending"
)

Enum values for ListingState

func (ListingState) MarshalValue added in v0.3.0

func (enum ListingState) MarshalValue() (string, error)

func (ListingState) MarshalValueBuf added in v0.3.0

func (enum ListingState) MarshalValueBuf(b []byte) ([]byte, error)

type ListingStatus

type ListingStatus string
const (
	ListingStatusActive    ListingStatus = "active"
	ListingStatusPending   ListingStatus = "pending"
	ListingStatusCancelled ListingStatus = "cancelled"
	ListingStatusClosed    ListingStatus = "closed"
)

Enum values for ListingStatus

func (ListingStatus) MarshalValue added in v0.3.0

func (enum ListingStatus) MarshalValue() (string, error)

func (ListingStatus) MarshalValueBuf added in v0.3.0

func (enum ListingStatus) MarshalValueBuf(b []byte) ([]byte, error)

type LoadBalancersConfig added in v0.2.0

type LoadBalancersConfig struct {

	// The Classic Load Balancers.
	ClassicLoadBalancersConfig *ClassicLoadBalancersConfig `locationName:"classicLoadBalancersConfig" type:"structure"`

	// The target groups.
	TargetGroupsConfig *TargetGroupsConfig `locationName:"targetGroupsConfig" type:"structure"`
	// contains filtered or unexported fields
}

Describes the Classic Load Balancers and target groups to attach to a Spot Fleet request.

func (LoadBalancersConfig) String added in v0.2.0

func (s LoadBalancersConfig) String() string

String returns the string representation

func (*LoadBalancersConfig) Validate added in v0.2.0

func (s *LoadBalancersConfig) Validate() error

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

type LoadPermission

type LoadPermission struct {

	// The name of the group.
	Group PermissionGroup `locationName:"group" type:"string" enum:"true"`

	// The AWS account ID.
	UserId *string `locationName:"userId" type:"string"`
	// contains filtered or unexported fields
}

Describes a load permission.

func (LoadPermission) String

func (s LoadPermission) String() string

String returns the string representation

type LoadPermissionModifications

type LoadPermissionModifications struct {

	// The load permissions to add.
	Add []LoadPermissionRequest `locationNameList:"item" type:"list"`

	// The load permissions to remove.
	Remove []LoadPermissionRequest `locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes modifications to the load permissions of an Amazon FPGA image (AFI).

func (LoadPermissionModifications) String

String returns the string representation

type LoadPermissionRequest

type LoadPermissionRequest struct {

	// The name of the group.
	Group PermissionGroup `type:"string" enum:"true"`

	// The AWS account ID.
	UserId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a load permission.

func (LoadPermissionRequest) String

func (s LoadPermissionRequest) String() string

String returns the string representation

type LocalGateway added in v0.18.0

type LocalGateway struct {

	// The ID of the local gateway.
	LocalGatewayId *string `locationName:"localGatewayId" type:"string"`

	// The Amazon Resource Name (ARN) of the Outpost.
	OutpostArn *string `locationName:"outpostArn" type:"string"`

	// The ID of the AWS account ID that owns the local gateway.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The state of the local gateway.
	State *string `locationName:"state" type:"string"`

	// The tags assigned to the local gateway.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a local gateway.

func (LocalGateway) String added in v0.18.0

func (s LocalGateway) String() string

String returns the string representation

type LocalGatewayRoute added in v0.18.0

type LocalGatewayRoute struct {

	// The CIDR block used for destination matches.
	DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`

	// The ID of the local gateway route table.
	LocalGatewayRouteTableId *string `locationName:"localGatewayRouteTableId" type:"string"`

	// The ID of the virtual interface group.
	LocalGatewayVirtualInterfaceGroupId *string `locationName:"localGatewayVirtualInterfaceGroupId" type:"string"`

	// The state of the route.
	State LocalGatewayRouteState `locationName:"state" type:"string" enum:"true"`

	// The route type.
	Type LocalGatewayRouteType `locationName:"type" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a route for a local gateway route table.

func (LocalGatewayRoute) String added in v0.18.0

func (s LocalGatewayRoute) String() string

String returns the string representation

type LocalGatewayRouteState added in v0.18.0

type LocalGatewayRouteState string
const (
	LocalGatewayRouteStatePending   LocalGatewayRouteState = "pending"
	LocalGatewayRouteStateActive    LocalGatewayRouteState = "active"
	LocalGatewayRouteStateBlackhole LocalGatewayRouteState = "blackhole"
	LocalGatewayRouteStateDeleting  LocalGatewayRouteState = "deleting"
	LocalGatewayRouteStateDeleted   LocalGatewayRouteState = "deleted"
)

Enum values for LocalGatewayRouteState

func (LocalGatewayRouteState) MarshalValue added in v0.18.0

func (enum LocalGatewayRouteState) MarshalValue() (string, error)

func (LocalGatewayRouteState) MarshalValueBuf added in v0.18.0

func (enum LocalGatewayRouteState) MarshalValueBuf(b []byte) ([]byte, error)

type LocalGatewayRouteTable added in v0.18.0

type LocalGatewayRouteTable struct {

	// The ID of the local gateway.
	LocalGatewayId *string `locationName:"localGatewayId" type:"string"`

	// The ID of the local gateway route table.
	LocalGatewayRouteTableId *string `locationName:"localGatewayRouteTableId" type:"string"`

	// The Amazon Resource Name (ARN) of the Outpost.
	OutpostArn *string `locationName:"outpostArn" type:"string"`

	// The state of the local gateway route table.
	State *string `locationName:"state" type:"string"`

	// The tags assigned to the local gateway route table.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a local gateway route table.

func (LocalGatewayRouteTable) String added in v0.18.0

func (s LocalGatewayRouteTable) String() string

String returns the string representation

type LocalGatewayRouteTableVirtualInterfaceGroupAssociation added in v0.18.0

type LocalGatewayRouteTableVirtualInterfaceGroupAssociation struct {

	// The ID of the local gateway.
	LocalGatewayId *string `locationName:"localGatewayId" type:"string"`

	// The ID of the local gateway route table.
	LocalGatewayRouteTableId *string `locationName:"localGatewayRouteTableId" type:"string"`

	// The ID of the association.
	LocalGatewayRouteTableVirtualInterfaceGroupAssociationId *string `locationName:"localGatewayRouteTableVirtualInterfaceGroupAssociationId" type:"string"`

	// The ID of the virtual interface group.
	LocalGatewayVirtualInterfaceGroupId *string `locationName:"localGatewayVirtualInterfaceGroupId" type:"string"`

	// The state of the association.
	State *string `locationName:"state" type:"string"`

	// The tags assigned to the association.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes an association between a local gateway route table and a virtual interface group.

func (LocalGatewayRouteTableVirtualInterfaceGroupAssociation) String added in v0.18.0

String returns the string representation

type LocalGatewayRouteTableVpcAssociation added in v0.18.0

type LocalGatewayRouteTableVpcAssociation struct {

	// The ID of the local gateway.
	LocalGatewayId *string `locationName:"localGatewayId" type:"string"`

	// The ID of the local gateway route table.
	LocalGatewayRouteTableId *string `locationName:"localGatewayRouteTableId" type:"string"`

	// The ID of the association.
	LocalGatewayRouteTableVpcAssociationId *string `locationName:"localGatewayRouteTableVpcAssociationId" type:"string"`

	// The state of the association.
	State *string `locationName:"state" type:"string"`

	// The tags assigned to the association.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes an association between a local gateway route table and a VPC.

func (LocalGatewayRouteTableVpcAssociation) String added in v0.18.0

String returns the string representation

type LocalGatewayRouteType added in v0.18.0

type LocalGatewayRouteType string
const (
	LocalGatewayRouteTypeStatic     LocalGatewayRouteType = "static"
	LocalGatewayRouteTypePropagated LocalGatewayRouteType = "propagated"
)

Enum values for LocalGatewayRouteType

func (LocalGatewayRouteType) MarshalValue added in v0.18.0

func (enum LocalGatewayRouteType) MarshalValue() (string, error)

func (LocalGatewayRouteType) MarshalValueBuf added in v0.18.0

func (enum LocalGatewayRouteType) MarshalValueBuf(b []byte) ([]byte, error)

type LocalGatewayVirtualInterface added in v0.18.0

type LocalGatewayVirtualInterface struct {

	// The local address.
	LocalAddress *string `locationName:"localAddress" type:"string"`

	// The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local
	// gateway.
	LocalBgpAsn *int64 `locationName:"localBgpAsn" type:"integer"`

	// The ID of the local gateway.
	LocalGatewayId *string `locationName:"localGatewayId" type:"string"`

	// The ID of the virtual interface.
	LocalGatewayVirtualInterfaceId *string `locationName:"localGatewayVirtualInterfaceId" type:"string"`

	// The peer address.
	PeerAddress *string `locationName:"peerAddress" type:"string"`

	// The peer BGP ASN.
	PeerBgpAsn *int64 `locationName:"peerBgpAsn" type:"integer"`

	// The tags assigned to the virtual interface.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VLAN.
	Vlan *int64 `locationName:"vlan" type:"integer"`
	// contains filtered or unexported fields
}

Describes a local gateway virtual interface.

func (LocalGatewayVirtualInterface) String added in v0.18.0

String returns the string representation

type LocalGatewayVirtualInterfaceGroup added in v0.18.0

type LocalGatewayVirtualInterfaceGroup struct {

	// The ID of the local gateway.
	LocalGatewayId *string `locationName:"localGatewayId" type:"string"`

	// The ID of the virtual interface group.
	LocalGatewayVirtualInterfaceGroupId *string `locationName:"localGatewayVirtualInterfaceGroupId" type:"string"`

	// The IDs of the virtual interfaces.
	LocalGatewayVirtualInterfaceIds []string `locationName:"localGatewayVirtualInterfaceIdSet" locationNameList:"item" type:"list"`

	// The tags assigned to the virtual interface group.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a local gateway virtual interface group.

func (LocalGatewayVirtualInterfaceGroup) String added in v0.18.0

String returns the string representation

type LocationType added in v0.18.0

type LocationType string
const (
	LocationTypeRegion             LocationType = "region"
	LocationTypeAvailabilityZone   LocationType = "availability-zone"
	LocationTypeAvailabilityZoneId LocationType = "availability-zone-id"
)

Enum values for LocationType

func (LocationType) MarshalValue added in v0.18.0

func (enum LocationType) MarshalValue() (string, error)

func (LocationType) MarshalValueBuf added in v0.18.0

func (enum LocationType) MarshalValueBuf(b []byte) ([]byte, error)

type LogDestinationType added in v0.5.0

type LogDestinationType string
const (
	LogDestinationTypeCloudWatchLogs LogDestinationType = "cloud-watch-logs"
	LogDestinationTypeS3             LogDestinationType = "s3"
)

Enum values for LogDestinationType

func (LogDestinationType) MarshalValue added in v0.5.0

func (enum LogDestinationType) MarshalValue() (string, error)

func (LogDestinationType) MarshalValueBuf added in v0.5.0

func (enum LogDestinationType) MarshalValueBuf(b []byte) ([]byte, error)

type ManagedPrefixList added in v0.24.0

type ManagedPrefixList struct {

	// The IP address version.
	AddressFamily *string `locationName:"addressFamily" type:"string"`

	// The maximum number of entries for the prefix list.
	MaxEntries *int64 `locationName:"maxEntries" type:"integer"`

	// The ID of the owner of the prefix list.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The Amazon Resource Name (ARN) for the prefix list.
	PrefixListArn *string `locationName:"prefixListArn" min:"1" type:"string"`

	// The ID of the prefix list.
	PrefixListId *string `locationName:"prefixListId" type:"string"`

	// The name of the prefix list.
	PrefixListName *string `locationName:"prefixListName" type:"string"`

	// The state of the prefix list.
	State PrefixListState `locationName:"state" type:"string" enum:"true"`

	// The state message.
	StateMessage *string `locationName:"stateMessage" type:"string"`

	// The tags for the prefix list.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The version of the prefix list.
	Version *int64 `locationName:"version" type:"long"`
	// contains filtered or unexported fields
}

Describes a managed prefix list.

func (ManagedPrefixList) String added in v0.24.0

func (s ManagedPrefixList) String() string

String returns the string representation

type MarketType added in v0.2.0

type MarketType string
const (
	MarketTypeSpot MarketType = "spot"
)

Enum values for MarketType

func (MarketType) MarshalValue added in v0.3.0

func (enum MarketType) MarshalValue() (string, error)

func (MarketType) MarshalValueBuf added in v0.3.0

func (enum MarketType) MarshalValueBuf(b []byte) ([]byte, error)

type MembershipType added in v0.18.0

type MembershipType string
const (
	MembershipTypeStatic MembershipType = "static"
	MembershipTypeIgmp   MembershipType = "igmp"
)

Enum values for MembershipType

func (MembershipType) MarshalValue added in v0.18.0

func (enum MembershipType) MarshalValue() (string, error)

func (MembershipType) MarshalValueBuf added in v0.18.0

func (enum MembershipType) MarshalValueBuf(b []byte) ([]byte, error)

type MemoryInfo added in v0.18.0

type MemoryInfo struct {

	// Size of the memory, in MiB.
	SizeInMiB *int64 `locationName:"sizeInMiB" type:"long"`
	// contains filtered or unexported fields
}

Describes the memory for the instance type.

func (MemoryInfo) String added in v0.18.0

func (s MemoryInfo) String() string

String returns the string representation

type ModifyAvailabilityZoneGroupInput added in v0.20.0

type ModifyAvailabilityZoneGroupInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The name of the Availability Zone Group.
	//
	// GroupName is a required field
	GroupName *string `type:"string" required:"true"`

	// Indicates whether to enable or disable membership. The valid values are opted-in.
	// You must contact AWS Support (https://console.aws.amazon.com/support/home#/case/create%3FissueType=customer-service%26serviceCode=general-info%26getting-started%26categoryCode=using-aws%26services)
	// to disable an Availability Zone group.
	//
	// OptInStatus is a required field
	OptInStatus ModifyAvailabilityZoneOptInStatus `type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

func (ModifyAvailabilityZoneGroupInput) String added in v0.20.0

String returns the string representation

func (*ModifyAvailabilityZoneGroupInput) Validate added in v0.20.0

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

type ModifyAvailabilityZoneGroupOutput added in v0.20.0

type ModifyAvailabilityZoneGroupOutput struct {

	// Is true if the request succeeds, and an error otherwise.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyAvailabilityZoneGroupOutput) String added in v0.20.0

String returns the string representation

type ModifyAvailabilityZoneGroupRequest added in v0.20.0

type ModifyAvailabilityZoneGroupRequest struct {
	*aws.Request
	Input *ModifyAvailabilityZoneGroupInput
	Copy  func(*ModifyAvailabilityZoneGroupInput) ModifyAvailabilityZoneGroupRequest
}

ModifyAvailabilityZoneGroupRequest is the request type for the ModifyAvailabilityZoneGroup API operation.

func (ModifyAvailabilityZoneGroupRequest) Send added in v0.20.0

Send marshals and sends the ModifyAvailabilityZoneGroup API request.

type ModifyAvailabilityZoneGroupResponse added in v0.20.0

type ModifyAvailabilityZoneGroupResponse struct {
	*ModifyAvailabilityZoneGroupOutput
	// contains filtered or unexported fields
}

ModifyAvailabilityZoneGroupResponse is the response type for the ModifyAvailabilityZoneGroup API operation.

func (*ModifyAvailabilityZoneGroupResponse) SDKResponseMetdata added in v0.20.0

func (r *ModifyAvailabilityZoneGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyAvailabilityZoneGroup request.

type ModifyAvailabilityZoneOptInStatus added in v0.20.0

type ModifyAvailabilityZoneOptInStatus string
const (
	ModifyAvailabilityZoneOptInStatusOptedIn    ModifyAvailabilityZoneOptInStatus = "opted-in"
	ModifyAvailabilityZoneOptInStatusNotOptedIn ModifyAvailabilityZoneOptInStatus = "not-opted-in"
)

Enum values for ModifyAvailabilityZoneOptInStatus

func (ModifyAvailabilityZoneOptInStatus) MarshalValue added in v0.20.0

func (enum ModifyAvailabilityZoneOptInStatus) MarshalValue() (string, error)

func (ModifyAvailabilityZoneOptInStatus) MarshalValueBuf added in v0.20.0

func (enum ModifyAvailabilityZoneOptInStatus) MarshalValueBuf(b []byte) ([]byte, error)

type ModifyCapacityReservationInput added in v0.6.0

type ModifyCapacityReservationInput struct {

	// The ID of the Capacity Reservation.
	//
	// CapacityReservationId is a required field
	CapacityReservationId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The date and time at which the Capacity Reservation expires. When a Capacity
	// Reservation expires, the reserved capacity is released and you can no longer
	// launch instances into it. The Capacity Reservation's state changes to expired
	// when it reaches its end date and time.
	//
	// The Capacity Reservation is cancelled within an hour from the specified time.
	// For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation
	// is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
	//
	// You must provide an EndDate value if EndDateType is limited. Omit EndDate
	// if EndDateType is unlimited.
	EndDate *time.Time `type:"timestamp"`

	// Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
	// can have one of the following end types:
	//
	//    * unlimited - The Capacity Reservation remains active until you explicitly
	//    cancel it. Do not provide an EndDate value if EndDateType is unlimited.
	//
	//    * limited - The Capacity Reservation expires automatically at a specified
	//    date and time. You must provide an EndDate value if EndDateType is limited.
	EndDateType EndDateType `type:"string" enum:"true"`

	// The number of instances for which to reserve capacity.
	InstanceCount *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (ModifyCapacityReservationInput) String added in v0.6.0

String returns the string representation

func (*ModifyCapacityReservationInput) Validate added in v0.6.0

func (s *ModifyCapacityReservationInput) Validate() error

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

type ModifyCapacityReservationOutput added in v0.6.0

type ModifyCapacityReservationOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyCapacityReservationOutput) String added in v0.6.0

String returns the string representation

type ModifyCapacityReservationRequest added in v0.6.0

type ModifyCapacityReservationRequest struct {
	*aws.Request
	Input *ModifyCapacityReservationInput
	Copy  func(*ModifyCapacityReservationInput) ModifyCapacityReservationRequest
}

ModifyCapacityReservationRequest is the request type for the ModifyCapacityReservation API operation.

func (ModifyCapacityReservationRequest) Send added in v0.6.0

Send marshals and sends the ModifyCapacityReservation API request.

type ModifyCapacityReservationResponse added in v0.9.0

type ModifyCapacityReservationResponse struct {
	*ModifyCapacityReservationOutput
	// contains filtered or unexported fields
}

ModifyCapacityReservationResponse is the response type for the ModifyCapacityReservation API operation.

func (*ModifyCapacityReservationResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyCapacityReservationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyCapacityReservation request.

type ModifyClientVpnEndpointInput added in v0.7.0

type ModifyClientVpnEndpointInput struct {

	// The ID of the Client VPN endpoint to modify.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Information about the client connection logging options.
	//
	// If you enable client connection logging, data about client connections is
	// sent to a Cloudwatch Logs log stream. The following information is logged:
	//
	//    * Client connection requests
	//
	//    * Client connection results (successful and unsuccessful)
	//
	//    * Reasons for unsuccessful client connection requests
	//
	//    * Client connection termination time
	ConnectionLogOptions *ConnectionLogOptions `type:"structure"`

	// A brief description of the Client VPN endpoint.
	Description *string `type:"string"`

	// Information about the DNS servers to be used by Client VPN connections. A
	// Client VPN endpoint can have up to two DNS servers.
	DnsServers *DnsServersOptionsModifyStructure `type:"structure"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IDs of one or more security groups to apply to the target network.
	SecurityGroupIds []string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`

	// The ARN of the server certificate to be used. The server certificate must
	// be provisioned in AWS Certificate Manager (ACM).
	ServerCertificateArn *string `type:"string"`

	// Indicates whether the VPN is split-tunnel.
	//
	// For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client
	// VPN Endpoint (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html)
	// in the AWS Client VPN Administrator Guide.
	SplitTunnel *bool `type:"boolean"`

	// The ID of the VPC to associate with the Client VPN endpoint.
	VpcId *string `type:"string"`

	// The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
	//
	// Valid Values: 443 | 1194
	//
	// Default Value: 443
	VpnPort *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (ModifyClientVpnEndpointInput) String added in v0.7.0

String returns the string representation

func (*ModifyClientVpnEndpointInput) Validate added in v0.7.0

func (s *ModifyClientVpnEndpointInput) Validate() error

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

type ModifyClientVpnEndpointOutput added in v0.7.0

type ModifyClientVpnEndpointOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyClientVpnEndpointOutput) String added in v0.7.0

String returns the string representation

type ModifyClientVpnEndpointRequest added in v0.7.0

type ModifyClientVpnEndpointRequest struct {
	*aws.Request
	Input *ModifyClientVpnEndpointInput
	Copy  func(*ModifyClientVpnEndpointInput) ModifyClientVpnEndpointRequest
}

ModifyClientVpnEndpointRequest is the request type for the ModifyClientVpnEndpoint API operation.

func (ModifyClientVpnEndpointRequest) Send added in v0.7.0

Send marshals and sends the ModifyClientVpnEndpoint API request.

type ModifyClientVpnEndpointResponse added in v0.9.0

type ModifyClientVpnEndpointResponse struct {
	*ModifyClientVpnEndpointOutput
	// contains filtered or unexported fields
}

ModifyClientVpnEndpointResponse is the response type for the ModifyClientVpnEndpoint API operation.

func (*ModifyClientVpnEndpointResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyClientVpnEndpointResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyClientVpnEndpoint request.

type ModifyDefaultCreditSpecificationInput added in v0.18.0

type ModifyDefaultCreditSpecificationInput struct {

	// The credit option for CPU usage of the instance family.
	//
	// Valid Values: standard | unlimited
	//
	// CpuCredits is a required field
	CpuCredits *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The instance family.
	//
	// InstanceFamily is a required field
	InstanceFamily UnlimitedSupportedInstanceFamily `type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

func (ModifyDefaultCreditSpecificationInput) String added in v0.18.0

String returns the string representation

func (*ModifyDefaultCreditSpecificationInput) Validate added in v0.18.0

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

type ModifyDefaultCreditSpecificationOutput added in v0.18.0

type ModifyDefaultCreditSpecificationOutput struct {

	// The default credit option for CPU usage of the instance family.
	InstanceFamilyCreditSpecification *InstanceFamilyCreditSpecification `locationName:"instanceFamilyCreditSpecification" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyDefaultCreditSpecificationOutput) String added in v0.18.0

String returns the string representation

type ModifyDefaultCreditSpecificationRequest added in v0.18.0

type ModifyDefaultCreditSpecificationRequest struct {
	*aws.Request
	Input *ModifyDefaultCreditSpecificationInput
	Copy  func(*ModifyDefaultCreditSpecificationInput) ModifyDefaultCreditSpecificationRequest
}

ModifyDefaultCreditSpecificationRequest is the request type for the ModifyDefaultCreditSpecification API operation.

func (ModifyDefaultCreditSpecificationRequest) Send added in v0.18.0

Send marshals and sends the ModifyDefaultCreditSpecification API request.

type ModifyDefaultCreditSpecificationResponse added in v0.18.0

type ModifyDefaultCreditSpecificationResponse struct {
	*ModifyDefaultCreditSpecificationOutput
	// contains filtered or unexported fields
}

ModifyDefaultCreditSpecificationResponse is the response type for the ModifyDefaultCreditSpecification API operation.

func (*ModifyDefaultCreditSpecificationResponse) SDKResponseMetdata added in v0.18.0

func (r *ModifyDefaultCreditSpecificationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyDefaultCreditSpecification request.

type ModifyEbsDefaultKmsKeyIdInput added in v0.9.0

type ModifyEbsDefaultKmsKeyIdInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The identifier of the AWS Key Management Service (AWS KMS) customer master
	// key (CMK) to use for Amazon EBS encryption. If this parameter is not specified,
	// your AWS managed CMK for EBS is used. If KmsKeyId is specified, the encrypted
	// state must be true.
	//
	// You can specify the CMK using any of the following:
	//
	//    * Key ID. For example, key/1234abcd-12ab-34cd-56ef-1234567890ab.
	//
	//    * Key alias. For example, alias/ExampleAlias.
	//
	//    * Key ARN. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
	//
	//    * Alias ARN. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
	//
	// AWS authenticates the CMK asynchronously. Therefore, if you specify an ID,
	// alias, or ARN that is not valid, the action can appear to complete, but eventually
	// fails.
	//
	// Amazon EBS does not support asymmetric CMKs.
	//
	// KmsKeyId is a required field
	KmsKeyId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyEbsDefaultKmsKeyIdInput) String added in v0.9.0

String returns the string representation

func (*ModifyEbsDefaultKmsKeyIdInput) Validate added in v0.9.0

func (s *ModifyEbsDefaultKmsKeyIdInput) Validate() error

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

type ModifyEbsDefaultKmsKeyIdOutput added in v0.9.0

type ModifyEbsDefaultKmsKeyIdOutput struct {

	// The Amazon Resource Name (ARN) of the default CMK for encryption by default.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
	// contains filtered or unexported fields
}

func (ModifyEbsDefaultKmsKeyIdOutput) String added in v0.9.0

String returns the string representation

type ModifyEbsDefaultKmsKeyIdRequest added in v0.9.0

type ModifyEbsDefaultKmsKeyIdRequest struct {
	*aws.Request
	Input *ModifyEbsDefaultKmsKeyIdInput
	Copy  func(*ModifyEbsDefaultKmsKeyIdInput) ModifyEbsDefaultKmsKeyIdRequest
}

ModifyEbsDefaultKmsKeyIdRequest is the request type for the ModifyEbsDefaultKmsKeyId API operation.

func (ModifyEbsDefaultKmsKeyIdRequest) Send added in v0.9.0

Send marshals and sends the ModifyEbsDefaultKmsKeyId API request.

type ModifyEbsDefaultKmsKeyIdResponse added in v0.9.0

type ModifyEbsDefaultKmsKeyIdResponse struct {
	*ModifyEbsDefaultKmsKeyIdOutput
	// contains filtered or unexported fields
}

ModifyEbsDefaultKmsKeyIdResponse is the response type for the ModifyEbsDefaultKmsKeyId API operation.

func (*ModifyEbsDefaultKmsKeyIdResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyEbsDefaultKmsKeyIdResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyEbsDefaultKmsKeyId request.

type ModifyFleetInput added in v0.4.0

type ModifyFleetInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Indicates whether running instances should be terminated if the total target
	// capacity of the EC2 Fleet is decreased below the current size of the EC2
	// Fleet.
	ExcessCapacityTerminationPolicy FleetExcessCapacityTerminationPolicy `type:"string" enum:"true"`

	// The ID of the EC2 Fleet.
	//
	// FleetId is a required field
	FleetId *string `type:"string" required:"true"`

	// The size of the EC2 Fleet.
	//
	// TargetCapacitySpecification is a required field
	TargetCapacitySpecification *TargetCapacitySpecificationRequest `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyFleetInput) String added in v0.4.0

func (s ModifyFleetInput) String() string

String returns the string representation

func (*ModifyFleetInput) Validate added in v0.4.0

func (s *ModifyFleetInput) Validate() error

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

type ModifyFleetOutput added in v0.4.0

type ModifyFleetOutput struct {

	// Is true if the request succeeds, and an error otherwise.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyFleetOutput) String added in v0.4.0

func (s ModifyFleetOutput) String() string

String returns the string representation

type ModifyFleetRequest added in v0.4.0

type ModifyFleetRequest struct {
	*aws.Request
	Input *ModifyFleetInput
	Copy  func(*ModifyFleetInput) ModifyFleetRequest
}

ModifyFleetRequest is the request type for the ModifyFleet API operation.

func (ModifyFleetRequest) Send added in v0.4.0

Send marshals and sends the ModifyFleet API request.

type ModifyFleetResponse added in v0.9.0

type ModifyFleetResponse struct {
	*ModifyFleetOutput
	// contains filtered or unexported fields
}

ModifyFleetResponse is the response type for the ModifyFleet API operation.

func (*ModifyFleetResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyFleetResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyFleet request.

type ModifyFpgaImageAttributeInput

type ModifyFpgaImageAttributeInput struct {

	// The name of the attribute.
	Attribute FpgaImageAttributeName `type:"string" enum:"true"`

	// A description for the AFI.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the AFI.
	//
	// FpgaImageId is a required field
	FpgaImageId *string `type:"string" required:"true"`

	// The load permission for the AFI.
	LoadPermission *LoadPermissionModifications `type:"structure"`

	// A name for the AFI.
	Name *string `type:"string"`

	// The operation type.
	OperationType OperationType `type:"string" enum:"true"`

	// The product codes. After you add a product code to an AFI, it can't be removed.
	// This parameter is valid only when modifying the productCodes attribute.
	ProductCodes []string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`

	// The user groups. This parameter is valid only when modifying the loadPermission
	// attribute.
	UserGroups []string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`

	// The AWS account IDs. This parameter is valid only when modifying the loadPermission
	// attribute.
	UserIds []string `locationName:"UserId" locationNameList:"UserId" type:"list"`
	// contains filtered or unexported fields
}

func (ModifyFpgaImageAttributeInput) String

String returns the string representation

func (*ModifyFpgaImageAttributeInput) Validate

func (s *ModifyFpgaImageAttributeInput) Validate() error

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

type ModifyFpgaImageAttributeOutput

type ModifyFpgaImageAttributeOutput struct {

	// Information about the attribute.
	FpgaImageAttribute *FpgaImageAttribute `locationName:"fpgaImageAttribute" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyFpgaImageAttributeOutput) String

String returns the string representation

type ModifyFpgaImageAttributeRequest

type ModifyFpgaImageAttributeRequest struct {
	*aws.Request
	Input *ModifyFpgaImageAttributeInput
	Copy  func(*ModifyFpgaImageAttributeInput) ModifyFpgaImageAttributeRequest
}

ModifyFpgaImageAttributeRequest is the request type for the ModifyFpgaImageAttribute API operation.

func (ModifyFpgaImageAttributeRequest) Send

Send marshals and sends the ModifyFpgaImageAttribute API request.

type ModifyFpgaImageAttributeResponse added in v0.9.0

type ModifyFpgaImageAttributeResponse struct {
	*ModifyFpgaImageAttributeOutput
	// contains filtered or unexported fields
}

ModifyFpgaImageAttributeResponse is the response type for the ModifyFpgaImageAttribute API operation.

func (*ModifyFpgaImageAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyFpgaImageAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyFpgaImageAttribute request.

type ModifyHostsInput

type ModifyHostsInput struct {

	// Specify whether to enable or disable auto-placement.
	AutoPlacement AutoPlacement `locationName:"autoPlacement" type:"string" enum:"true"`

	// The IDs of the Dedicated Hosts to modify.
	//
	// HostIds is a required field
	HostIds []string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`

	// Indicates whether to enable or disable host recovery for the Dedicated Host.
	// For more information, see Host Recovery (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	HostRecovery HostRecovery `type:"string" enum:"true"`

	// Specifies the instance family to be supported by the Dedicated Host. Specify
	// this parameter to modify a Dedicated Host to support multiple instance types
	// within its current instance family.
	//
	// If you want to modify a Dedicated Host to support a specific instance type
	// only, omit this parameter and specify InstanceType instead. You cannot specify
	// InstanceFamily and InstanceType in the same request.
	InstanceFamily *string `type:"string"`

	// Specifies the instance type to be supported by the Dedicated Host. Specify
	// this parameter to modify a Dedicated Host to support only a specific instance
	// type.
	//
	// If you want to modify a Dedicated Host to support multiple instance types
	// in its current instance family, omit this parameter and specify InstanceFamily
	// instead. You cannot specify InstanceType and InstanceFamily in the same request.
	InstanceType *string `type:"string"`
	// contains filtered or unexported fields
}

func (ModifyHostsInput) String

func (s ModifyHostsInput) String() string

String returns the string representation

func (*ModifyHostsInput) Validate

func (s *ModifyHostsInput) Validate() error

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

type ModifyHostsOutput

type ModifyHostsOutput struct {

	// The IDs of the Dedicated Hosts that were successfully modified.
	Successful []string `locationName:"successful" locationNameList:"item" type:"list"`

	// The IDs of the Dedicated Hosts that could not be modified. Check whether
	// the setting you requested can be used.
	Unsuccessful []UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (ModifyHostsOutput) String

func (s ModifyHostsOutput) String() string

String returns the string representation

type ModifyHostsRequest

type ModifyHostsRequest struct {
	*aws.Request
	Input *ModifyHostsInput
	Copy  func(*ModifyHostsInput) ModifyHostsRequest
}

ModifyHostsRequest is the request type for the ModifyHosts API operation.

func (ModifyHostsRequest) Send

Send marshals and sends the ModifyHosts API request.

type ModifyHostsResponse added in v0.9.0

type ModifyHostsResponse struct {
	*ModifyHostsOutput
	// contains filtered or unexported fields
}

ModifyHostsResponse is the response type for the ModifyHosts API operation.

func (*ModifyHostsResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyHostsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyHosts request.

type ModifyIdFormatInput

type ModifyIdFormatInput struct {

	// The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
	// | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
	// | image | import-task | internet-gateway | network-acl | network-acl-association
	// | network-interface | network-interface-attachment | prefix-list | route-table
	// | route-table-association | security-group | subnet | subnet-cidr-block-association
	// | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection
	// | vpn-connection | vpn-gateway.
	//
	// Alternatively, use the all-current option to include all resource types that
	// are currently within their opt-in period for longer IDs.
	//
	// Resource is a required field
	Resource *string `type:"string" required:"true"`

	// Indicate whether the resource should use longer IDs (17-character IDs).
	//
	// UseLongIds is a required field
	UseLongIds *bool `type:"boolean" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyIdFormatInput) String

func (s ModifyIdFormatInput) String() string

String returns the string representation

func (*ModifyIdFormatInput) Validate

func (s *ModifyIdFormatInput) Validate() error

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

type ModifyIdFormatOutput

type ModifyIdFormatOutput struct {
	// contains filtered or unexported fields
}

func (ModifyIdFormatOutput) String

func (s ModifyIdFormatOutput) String() string

String returns the string representation

type ModifyIdFormatRequest

type ModifyIdFormatRequest struct {
	*aws.Request
	Input *ModifyIdFormatInput
	Copy  func(*ModifyIdFormatInput) ModifyIdFormatRequest
}

ModifyIdFormatRequest is the request type for the ModifyIdFormat API operation.

func (ModifyIdFormatRequest) Send

Send marshals and sends the ModifyIdFormat API request.

type ModifyIdFormatResponse added in v0.9.0

type ModifyIdFormatResponse struct {
	*ModifyIdFormatOutput
	// contains filtered or unexported fields
}

ModifyIdFormatResponse is the response type for the ModifyIdFormat API operation.

func (*ModifyIdFormatResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyIdFormatResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyIdFormat request.

type ModifyIdentityIdFormatInput

type ModifyIdentityIdFormatInput struct {

	// The ARN of the principal, which can be an IAM user, IAM role, or the root
	// user. Specify all to modify the ID format for all IAM users, IAM roles, and
	// the root user of the account.
	//
	// PrincipalArn is a required field
	PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`

	// The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
	// | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
	// | image | import-task | internet-gateway | network-acl | network-acl-association
	// | network-interface | network-interface-attachment | prefix-list | route-table
	// | route-table-association | security-group | subnet | subnet-cidr-block-association
	// | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection
	// | vpn-connection | vpn-gateway.
	//
	// Alternatively, use the all-current option to include all resource types that
	// are currently within their opt-in period for longer IDs.
	//
	// Resource is a required field
	Resource *string `locationName:"resource" type:"string" required:"true"`

	// Indicates whether the resource should use longer IDs (17-character IDs)
	//
	// UseLongIds is a required field
	UseLongIds *bool `locationName:"useLongIds" type:"boolean" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyIdentityIdFormatInput) String

String returns the string representation

func (*ModifyIdentityIdFormatInput) Validate

func (s *ModifyIdentityIdFormatInput) Validate() error

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

type ModifyIdentityIdFormatOutput

type ModifyIdentityIdFormatOutput struct {
	// contains filtered or unexported fields
}

func (ModifyIdentityIdFormatOutput) String

String returns the string representation

type ModifyIdentityIdFormatRequest

type ModifyIdentityIdFormatRequest struct {
	*aws.Request
	Input *ModifyIdentityIdFormatInput
	Copy  func(*ModifyIdentityIdFormatInput) ModifyIdentityIdFormatRequest
}

ModifyIdentityIdFormatRequest is the request type for the ModifyIdentityIdFormat API operation.

func (ModifyIdentityIdFormatRequest) Send

Send marshals and sends the ModifyIdentityIdFormat API request.

type ModifyIdentityIdFormatResponse added in v0.9.0

type ModifyIdentityIdFormatResponse struct {
	*ModifyIdentityIdFormatOutput
	// contains filtered or unexported fields
}

ModifyIdentityIdFormatResponse is the response type for the ModifyIdentityIdFormat API operation.

func (*ModifyIdentityIdFormatResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyIdentityIdFormatResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyIdentityIdFormat request.

type ModifyImageAttributeInput

type ModifyImageAttributeInput struct {

	// The name of the attribute to modify. The valid values are description, launchPermission,
	// and productCodes.
	Attribute *string `type:"string"`

	// A new description for the AMI.
	Description *AttributeValue `type:"structure"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the AMI.
	//
	// ImageId is a required field
	ImageId *string `type:"string" required:"true"`

	// A new launch permission for the AMI.
	LaunchPermission *LaunchPermissionModifications `type:"structure"`

	// The operation type. This parameter can be used only when the Attribute parameter
	// is launchPermission.
	OperationType OperationType `type:"string" enum:"true"`

	// The DevPay product codes. After you add a product code to an AMI, it can't
	// be removed.
	ProductCodes []string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`

	// The user groups. This parameter can be used only when the Attribute parameter
	// is launchPermission.
	UserGroups []string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`

	// The AWS account IDs. This parameter can be used only when the Attribute parameter
	// is launchPermission.
	UserIds []string `locationName:"UserId" locationNameList:"UserId" type:"list"`

	// The value of the attribute being modified. This parameter can be used only
	// when the Attribute parameter is description or productCodes.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the parameters for ModifyImageAttribute.

func (ModifyImageAttributeInput) String

func (s ModifyImageAttributeInput) String() string

String returns the string representation

func (*ModifyImageAttributeInput) Validate

func (s *ModifyImageAttributeInput) Validate() error

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

type ModifyImageAttributeOutput

type ModifyImageAttributeOutput struct {
	// contains filtered or unexported fields
}

func (ModifyImageAttributeOutput) String

String returns the string representation

type ModifyImageAttributeRequest

type ModifyImageAttributeRequest struct {
	*aws.Request
	Input *ModifyImageAttributeInput
	Copy  func(*ModifyImageAttributeInput) ModifyImageAttributeRequest
}

ModifyImageAttributeRequest is the request type for the ModifyImageAttribute API operation.

func (ModifyImageAttributeRequest) Send

Send marshals and sends the ModifyImageAttribute API request.

type ModifyImageAttributeResponse added in v0.9.0

type ModifyImageAttributeResponse struct {
	*ModifyImageAttributeOutput
	// contains filtered or unexported fields
}

ModifyImageAttributeResponse is the response type for the ModifyImageAttribute API operation.

func (*ModifyImageAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyImageAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyImageAttribute request.

type ModifyInstanceAttributeInput

type ModifyInstanceAttributeInput struct {

	// The name of the attribute.
	Attribute InstanceAttributeName `locationName:"attribute" type:"string" enum:"true"`

	// Modifies the DeleteOnTermination attribute for volumes that are currently
	// attached. The volume must be owned by the caller. If no value is specified
	// for DeleteOnTermination, the default is true and the volume is deleted when
	// the instance is terminated.
	//
	// To add instance store volumes to an Amazon EBS-backed instance, you must
	// add them when you launch the instance. For more information, see Updating
	// the block device mapping when launching an instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM)
	// in the Amazon Elastic Compute Cloud User Guide.
	BlockDeviceMappings []InstanceBlockDeviceMappingSpecification `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`

	// If the value is true, you can't terminate the instance using the Amazon EC2
	// console, CLI, or API; otherwise, you can. You cannot use this parameter for
	// Spot Instances.
	DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Specifies whether the instance is optimized for Amazon EBS I/O. This optimization
	// provides dedicated throughput to Amazon EBS and an optimized configuration
	// stack to provide optimal EBS I/O performance. This optimization isn't available
	// with all instance types. Additional usage charges apply when using an EBS
	// Optimized instance.
	EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`

	// Set to true to enable enhanced networking with ENA for the instance.
	//
	// This option is supported only for HVM instances. Specifying this option with
	// a PV instance can make it unreachable.
	EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`

	// [EC2-VPC] Changes the security groups of the instance. You must specify at
	// least one security group, even if it's just the default security group for
	// the VPC. You must specify the security group ID, not the security group name.
	Groups []string `locationName:"GroupId" locationNameList:"groupId" type:"list"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `locationName:"instanceId" type:"string" required:"true"`

	// Specifies whether an instance stops or terminates when you initiate shutdown
	// from the instance (using the operating system command for system shutdown).
	InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`

	// Changes the instance type to the specified value. For more information, see
	// Instance types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
	// If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.
	InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`

	// Changes the instance's kernel to the specified value. We recommend that you
	// use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
	Kernel *AttributeValue `locationName:"kernel" type:"structure"`

	// Changes the instance's RAM disk to the specified value. We recommend that
	// you use PV-GRUB instead of kernels and RAM disks. For more information, see
	// PV-GRUB (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
	Ramdisk *AttributeValue `locationName:"ramdisk" type:"structure"`

	// Specifies whether source/destination checking is enabled. A value of true
	// means that checking is enabled, and false means that checking is disabled.
	// This value must be false for a NAT instance to perform NAT.
	SourceDestCheck *AttributeBooleanValue `type:"structure"`

	// Set to simple to enable enhanced networking with the Intel 82599 Virtual
	// Function interface for the instance.
	//
	// There is no way to disable enhanced networking with the Intel 82599 Virtual
	// Function interface at this time.
	//
	// This option is supported only for HVM instances. Specifying this option with
	// a PV instance can make it unreachable.
	SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`

	// Changes the instance's user data to the specified value. If you are using
	// an AWS SDK or command line tool, base64-encoding is performed for you, and
	// you can load the text from a file. Otherwise, you must provide base64-encoded
	// text.
	UserData *BlobAttributeValue `locationName:"userData" type:"structure"`

	// A new value for the attribute. Use only with the kernel, ramdisk, userData,
	// disableApiTermination, or instanceInitiatedShutdownBehavior attribute.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

func (ModifyInstanceAttributeInput) String

String returns the string representation

func (*ModifyInstanceAttributeInput) Validate

func (s *ModifyInstanceAttributeInput) Validate() error

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

type ModifyInstanceAttributeOutput

type ModifyInstanceAttributeOutput struct {
	// contains filtered or unexported fields
}

func (ModifyInstanceAttributeOutput) String

String returns the string representation

type ModifyInstanceAttributeRequest

type ModifyInstanceAttributeRequest struct {
	*aws.Request
	Input *ModifyInstanceAttributeInput
	Copy  func(*ModifyInstanceAttributeInput) ModifyInstanceAttributeRequest
}

ModifyInstanceAttributeRequest is the request type for the ModifyInstanceAttribute API operation.

func (ModifyInstanceAttributeRequest) Send

Send marshals and sends the ModifyInstanceAttribute API request.

type ModifyInstanceAttributeResponse added in v0.9.0

type ModifyInstanceAttributeResponse struct {
	*ModifyInstanceAttributeOutput
	// contains filtered or unexported fields
}

ModifyInstanceAttributeResponse is the response type for the ModifyInstanceAttribute API operation.

func (*ModifyInstanceAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyInstanceAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyInstanceAttribute request.

type ModifyInstanceCapacityReservationAttributesInput added in v0.6.0

type ModifyInstanceCapacityReservationAttributesInput struct {

	// Information about the Capacity Reservation targeting option.
	//
	// CapacityReservationSpecification is a required field
	CapacityReservationSpecification *CapacityReservationSpecification `type:"structure" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the instance to be modified.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyInstanceCapacityReservationAttributesInput) String added in v0.6.0

String returns the string representation

func (*ModifyInstanceCapacityReservationAttributesInput) Validate added in v0.6.0

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

type ModifyInstanceCapacityReservationAttributesOutput added in v0.6.0

type ModifyInstanceCapacityReservationAttributesOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyInstanceCapacityReservationAttributesOutput) String added in v0.6.0

String returns the string representation

type ModifyInstanceCapacityReservationAttributesRequest added in v0.6.0

ModifyInstanceCapacityReservationAttributesRequest is the request type for the ModifyInstanceCapacityReservationAttributes API operation.

func (ModifyInstanceCapacityReservationAttributesRequest) Send added in v0.6.0

Send marshals and sends the ModifyInstanceCapacityReservationAttributes API request.

type ModifyInstanceCapacityReservationAttributesResponse added in v0.9.0

type ModifyInstanceCapacityReservationAttributesResponse struct {
	*ModifyInstanceCapacityReservationAttributesOutput
	// contains filtered or unexported fields
}

ModifyInstanceCapacityReservationAttributesResponse is the response type for the ModifyInstanceCapacityReservationAttributes API operation.

func (*ModifyInstanceCapacityReservationAttributesResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the ModifyInstanceCapacityReservationAttributes request.

type ModifyInstanceCreditSpecificationInput added in v0.2.0

type ModifyInstanceCreditSpecificationInput struct {

	// A unique, case-sensitive token that you provide to ensure idempotency of
	// your modification request. For more information, see Ensuring Idempotency
	// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Information about the credit option for CPU usage.
	//
	// InstanceCreditSpecifications is a required field
	InstanceCreditSpecifications []InstanceCreditSpecificationRequest `locationName:"InstanceCreditSpecification" locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyInstanceCreditSpecificationInput) String added in v0.2.0

String returns the string representation

func (*ModifyInstanceCreditSpecificationInput) Validate added in v0.2.0

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

type ModifyInstanceCreditSpecificationOutput added in v0.2.0

type ModifyInstanceCreditSpecificationOutput struct {

	// Information about the instances whose credit option for CPU usage was successfully
	// modified.
	SuccessfulInstanceCreditSpecifications []SuccessfulInstanceCreditSpecificationItem `locationName:"successfulInstanceCreditSpecificationSet" locationNameList:"item" type:"list"`

	// Information about the instances whose credit option for CPU usage was not
	// modified.
	UnsuccessfulInstanceCreditSpecifications []UnsuccessfulInstanceCreditSpecificationItem `locationName:"unsuccessfulInstanceCreditSpecificationSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (ModifyInstanceCreditSpecificationOutput) String added in v0.2.0

String returns the string representation

type ModifyInstanceCreditSpecificationRequest added in v0.2.0

ModifyInstanceCreditSpecificationRequest is the request type for the ModifyInstanceCreditSpecification API operation.

func (ModifyInstanceCreditSpecificationRequest) Send added in v0.2.0

Send marshals and sends the ModifyInstanceCreditSpecification API request.

type ModifyInstanceCreditSpecificationResponse added in v0.9.0

type ModifyInstanceCreditSpecificationResponse struct {
	*ModifyInstanceCreditSpecificationOutput
	// contains filtered or unexported fields
}

ModifyInstanceCreditSpecificationResponse is the response type for the ModifyInstanceCreditSpecification API operation.

func (*ModifyInstanceCreditSpecificationResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyInstanceCreditSpecificationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyInstanceCreditSpecification request.

type ModifyInstanceEventStartTimeInput added in v0.8.0

type ModifyInstanceEventStartTimeInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the event whose date and time you are modifying.
	//
	// InstanceEventId is a required field
	InstanceEventId *string `type:"string" required:"true"`

	// The ID of the instance with the scheduled event.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`

	// The new date and time when the event will take place.
	//
	// NotBefore is a required field
	NotBefore *time.Time `type:"timestamp" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyInstanceEventStartTimeInput) String added in v0.8.0

String returns the string representation

func (*ModifyInstanceEventStartTimeInput) Validate added in v0.8.0

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

type ModifyInstanceEventStartTimeOutput added in v0.8.0

type ModifyInstanceEventStartTimeOutput struct {

	// Describes a scheduled event for an instance.
	Event *InstanceStatusEvent `locationName:"event" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyInstanceEventStartTimeOutput) String added in v0.8.0

String returns the string representation

type ModifyInstanceEventStartTimeRequest added in v0.8.0

type ModifyInstanceEventStartTimeRequest struct {
	*aws.Request
	Input *ModifyInstanceEventStartTimeInput
	Copy  func(*ModifyInstanceEventStartTimeInput) ModifyInstanceEventStartTimeRequest
}

ModifyInstanceEventStartTimeRequest is the request type for the ModifyInstanceEventStartTime API operation.

func (ModifyInstanceEventStartTimeRequest) Send added in v0.8.0

Send marshals and sends the ModifyInstanceEventStartTime API request.

type ModifyInstanceEventStartTimeResponse added in v0.9.0

type ModifyInstanceEventStartTimeResponse struct {
	*ModifyInstanceEventStartTimeOutput
	// contains filtered or unexported fields
}

ModifyInstanceEventStartTimeResponse is the response type for the ModifyInstanceEventStartTime API operation.

func (*ModifyInstanceEventStartTimeResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyInstanceEventStartTimeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyInstanceEventStartTime request.

type ModifyInstanceMetadataOptionsInput added in v0.17.0

type ModifyInstanceMetadataOptionsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// This parameter enables or disables the HTTP metadata endpoint on your instances.
	// If the parameter is not specified, the existing state is maintained.
	//
	// If you specify a value of disabled, you will not be able to access your instance
	// metadata.
	HttpEndpoint InstanceMetadataEndpointState `type:"string" enum:"true"`

	// The desired HTTP PUT response hop limit for instance metadata requests. The
	// larger the number, the further instance metadata requests can travel. If
	// no parameter is specified, the existing state is maintained.
	//
	// Possible values: Integers from 1 to 64
	HttpPutResponseHopLimit *int64 `type:"integer"`

	// The state of token usage for your instance metadata requests. If the parameter
	// is not specified in the request, the default state is optional.
	//
	// If the state is optional, you can choose to retrieve instance metadata with
	// or without a signed token header on your request. If you retrieve the IAM
	// role credentials without a token, the version 1.0 role credentials are returned.
	// If you retrieve the IAM role credentials using a valid signed token, the
	// version 2.0 role credentials are returned.
	//
	// If the state is required, you must send a signed token header with any instance
	// metadata retrieval requests. In this state, retrieving the IAM role credential
	// always returns the version 2.0 credentials; the version 1.0 credentials are
	// not available.
	HttpTokens HttpTokensState `type:"string" enum:"true"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyInstanceMetadataOptionsInput) String added in v0.17.0

String returns the string representation

func (*ModifyInstanceMetadataOptionsInput) Validate added in v0.17.0

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

type ModifyInstanceMetadataOptionsOutput added in v0.17.0

type ModifyInstanceMetadataOptionsOutput struct {

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The metadata options for the instance.
	InstanceMetadataOptions *InstanceMetadataOptionsResponse `locationName:"instanceMetadataOptions" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyInstanceMetadataOptionsOutput) String added in v0.17.0

String returns the string representation

type ModifyInstanceMetadataOptionsRequest added in v0.17.0

type ModifyInstanceMetadataOptionsRequest struct {
	*aws.Request
	Input *ModifyInstanceMetadataOptionsInput
	Copy  func(*ModifyInstanceMetadataOptionsInput) ModifyInstanceMetadataOptionsRequest
}

ModifyInstanceMetadataOptionsRequest is the request type for the ModifyInstanceMetadataOptions API operation.

func (ModifyInstanceMetadataOptionsRequest) Send added in v0.17.0

Send marshals and sends the ModifyInstanceMetadataOptions API request.

type ModifyInstanceMetadataOptionsResponse added in v0.17.0

type ModifyInstanceMetadataOptionsResponse struct {
	*ModifyInstanceMetadataOptionsOutput
	// contains filtered or unexported fields
}

ModifyInstanceMetadataOptionsResponse is the response type for the ModifyInstanceMetadataOptions API operation.

func (*ModifyInstanceMetadataOptionsResponse) SDKResponseMetdata added in v0.17.0

func (r *ModifyInstanceMetadataOptionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyInstanceMetadataOptions request.

type ModifyInstancePlacementInput

type ModifyInstancePlacementInput struct {

	// The affinity setting for the instance.
	Affinity Affinity `locationName:"affinity" type:"string" enum:"true"`

	// The name of the placement group in which to place the instance. For spread
	// placement groups, the instance must have a tenancy of default. For cluster
	// and partition placement groups, the instance must have a tenancy of default
	// or dedicated.
	//
	// To remove an instance from a placement group, specify an empty string ("").
	GroupName *string `type:"string"`

	// The ID of the Dedicated Host with which to associate the instance.
	HostId *string `locationName:"hostId" type:"string"`

	// The ARN of the host resource group in which to place the instance.
	HostResourceGroupArn *string `type:"string"`

	// The ID of the instance that you are modifying.
	//
	// InstanceId is a required field
	InstanceId *string `locationName:"instanceId" type:"string" required:"true"`

	// Reserved for future use.
	PartitionNumber *int64 `type:"integer"`

	// The tenancy for the instance.
	Tenancy HostTenancy `locationName:"tenancy" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (ModifyInstancePlacementInput) String

String returns the string representation

func (*ModifyInstancePlacementInput) Validate

func (s *ModifyInstancePlacementInput) Validate() error

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

type ModifyInstancePlacementOutput

type ModifyInstancePlacementOutput struct {

	// Is true if the request succeeds, and an error otherwise.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyInstancePlacementOutput) String

String returns the string representation

type ModifyInstancePlacementRequest

type ModifyInstancePlacementRequest struct {
	*aws.Request
	Input *ModifyInstancePlacementInput
	Copy  func(*ModifyInstancePlacementInput) ModifyInstancePlacementRequest
}

ModifyInstancePlacementRequest is the request type for the ModifyInstancePlacement API operation.

func (ModifyInstancePlacementRequest) Send

Send marshals and sends the ModifyInstancePlacement API request.

type ModifyInstancePlacementResponse added in v0.9.0

type ModifyInstancePlacementResponse struct {
	*ModifyInstancePlacementOutput
	// contains filtered or unexported fields
}

ModifyInstancePlacementResponse is the response type for the ModifyInstancePlacement API operation.

func (*ModifyInstancePlacementResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyInstancePlacementResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyInstancePlacement request.

type ModifyLaunchTemplateInput added in v0.2.0

type ModifyLaunchTemplateInput struct {

	// Unique, case-sensitive identifier you provide to ensure the idempotency of
	// the request. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	//
	// Constraint: Maximum 128 ASCII characters.
	ClientToken *string `type:"string"`

	// The version number of the launch template to set as the default version.
	DefaultVersion *string `locationName:"SetDefaultVersion" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the launch template. You must specify either the launch template
	// ID or launch template name in the request.
	LaunchTemplateId *string `type:"string"`

	// The name of the launch template. You must specify either the launch template
	// ID or launch template name in the request.
	LaunchTemplateName *string `min:"3" type:"string"`
	// contains filtered or unexported fields
}

func (ModifyLaunchTemplateInput) String added in v0.2.0

func (s ModifyLaunchTemplateInput) String() string

String returns the string representation

func (*ModifyLaunchTemplateInput) Validate added in v0.2.0

func (s *ModifyLaunchTemplateInput) Validate() error

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

type ModifyLaunchTemplateOutput added in v0.2.0

type ModifyLaunchTemplateOutput struct {

	// Information about the launch template.
	LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyLaunchTemplateOutput) String added in v0.2.0

String returns the string representation

type ModifyLaunchTemplateRequest added in v0.2.0

type ModifyLaunchTemplateRequest struct {
	*aws.Request
	Input *ModifyLaunchTemplateInput
	Copy  func(*ModifyLaunchTemplateInput) ModifyLaunchTemplateRequest
}

ModifyLaunchTemplateRequest is the request type for the ModifyLaunchTemplate API operation.

func (ModifyLaunchTemplateRequest) Send added in v0.2.0

Send marshals and sends the ModifyLaunchTemplate API request.

type ModifyLaunchTemplateResponse added in v0.9.0

type ModifyLaunchTemplateResponse struct {
	*ModifyLaunchTemplateOutput
	// contains filtered or unexported fields
}

ModifyLaunchTemplateResponse is the response type for the ModifyLaunchTemplate API operation.

func (*ModifyLaunchTemplateResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyLaunchTemplateResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyLaunchTemplate request.

type ModifyManagedPrefixListInput added in v0.24.0

type ModifyManagedPrefixListInput struct {

	// One or more entries to add to the prefix list.
	AddEntries []AddPrefixListEntry `locationName:"AddEntry" type:"list"`

	// The current version of the prefix list.
	CurrentVersion *int64 `type:"long"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the prefix list.
	//
	// PrefixListId is a required field
	PrefixListId *string `type:"string" required:"true"`

	// A name for the prefix list.
	PrefixListName *string `type:"string"`

	// One or more entries to remove from the prefix list.
	RemoveEntries []RemovePrefixListEntry `locationName:"RemoveEntry" type:"list"`
	// contains filtered or unexported fields
}

func (ModifyManagedPrefixListInput) String added in v0.24.0

String returns the string representation

func (*ModifyManagedPrefixListInput) Validate added in v0.24.0

func (s *ModifyManagedPrefixListInput) Validate() error

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

type ModifyManagedPrefixListOutput added in v0.24.0

type ModifyManagedPrefixListOutput struct {

	// Information about the prefix list.
	PrefixList *ManagedPrefixList `locationName:"prefixList" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyManagedPrefixListOutput) String added in v0.24.0

String returns the string representation

type ModifyManagedPrefixListRequest added in v0.24.0

type ModifyManagedPrefixListRequest struct {
	*aws.Request
	Input *ModifyManagedPrefixListInput
	Copy  func(*ModifyManagedPrefixListInput) ModifyManagedPrefixListRequest
}

ModifyManagedPrefixListRequest is the request type for the ModifyManagedPrefixList API operation.

func (ModifyManagedPrefixListRequest) Send added in v0.24.0

Send marshals and sends the ModifyManagedPrefixList API request.

type ModifyManagedPrefixListResponse added in v0.24.0

type ModifyManagedPrefixListResponse struct {
	*ModifyManagedPrefixListOutput
	// contains filtered or unexported fields
}

ModifyManagedPrefixListResponse is the response type for the ModifyManagedPrefixList API operation.

func (*ModifyManagedPrefixListResponse) SDKResponseMetdata added in v0.24.0

func (r *ModifyManagedPrefixListResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyManagedPrefixList request.

type ModifyNetworkInterfaceAttributeInput

type ModifyNetworkInterfaceAttributeInput struct {

	// Information about the interface attachment. If modifying the 'delete on termination'
	// attribute, you must specify the ID of the interface attachment.
	Attachment *NetworkInterfaceAttachmentChanges `locationName:"attachment" type:"structure"`

	// A description for the network interface.
	Description *AttributeValue `locationName:"description" type:"structure"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Changes the security groups for the network interface. The new set of groups
	// you specify replaces the current set. You must specify at least one group,
	// even if it's just the default security group in the VPC. You must specify
	// the ID of the security group, not the name.
	Groups []string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`

	// The ID of the network interface.
	//
	// NetworkInterfaceId is a required field
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`

	// Indicates whether source/destination checking is enabled. A value of true
	// means checking is enabled, and false means checking is disabled. This value
	// must be false for a NAT instance to perform NAT. For more information, see
	// NAT Instances (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
	// in the Amazon Virtual Private Cloud User Guide.
	SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
	// contains filtered or unexported fields
}

Contains the parameters for ModifyNetworkInterfaceAttribute.

func (ModifyNetworkInterfaceAttributeInput) String

String returns the string representation

func (*ModifyNetworkInterfaceAttributeInput) Validate

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

type ModifyNetworkInterfaceAttributeOutput

type ModifyNetworkInterfaceAttributeOutput struct {
	// contains filtered or unexported fields
}

func (ModifyNetworkInterfaceAttributeOutput) String

String returns the string representation

type ModifyNetworkInterfaceAttributeRequest

type ModifyNetworkInterfaceAttributeRequest struct {
	*aws.Request
	Input *ModifyNetworkInterfaceAttributeInput
	Copy  func(*ModifyNetworkInterfaceAttributeInput) ModifyNetworkInterfaceAttributeRequest
}

ModifyNetworkInterfaceAttributeRequest is the request type for the ModifyNetworkInterfaceAttribute API operation.

func (ModifyNetworkInterfaceAttributeRequest) Send

Send marshals and sends the ModifyNetworkInterfaceAttribute API request.

type ModifyNetworkInterfaceAttributeResponse added in v0.9.0

type ModifyNetworkInterfaceAttributeResponse struct {
	*ModifyNetworkInterfaceAttributeOutput
	// contains filtered or unexported fields
}

ModifyNetworkInterfaceAttributeResponse is the response type for the ModifyNetworkInterfaceAttribute API operation.

func (*ModifyNetworkInterfaceAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyNetworkInterfaceAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyNetworkInterfaceAttribute request.

type ModifyReservedInstancesInput

type ModifyReservedInstancesInput struct {

	// A unique, case-sensitive token you provide to ensure idempotency of your
	// modification request. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `locationName:"clientToken" type:"string"`

	// The IDs of the Reserved Instances to modify.
	//
	// ReservedInstancesIds is a required field
	ReservedInstancesIds []string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list" required:"true"`

	// The configuration settings for the Reserved Instances to modify.
	//
	// TargetConfigurations is a required field
	TargetConfigurations []ReservedInstancesConfiguration `locationName:"ReservedInstancesConfigurationSetItemType" locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for ModifyReservedInstances.

func (ModifyReservedInstancesInput) String

String returns the string representation

func (*ModifyReservedInstancesInput) Validate

func (s *ModifyReservedInstancesInput) Validate() error

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

type ModifyReservedInstancesOutput

type ModifyReservedInstancesOutput struct {

	// The ID for the modification.
	ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
	// contains filtered or unexported fields
}

Contains the output of ModifyReservedInstances.

func (ModifyReservedInstancesOutput) String

String returns the string representation

type ModifyReservedInstancesRequest

type ModifyReservedInstancesRequest struct {
	*aws.Request
	Input *ModifyReservedInstancesInput
	Copy  func(*ModifyReservedInstancesInput) ModifyReservedInstancesRequest
}

ModifyReservedInstancesRequest is the request type for the ModifyReservedInstances API operation.

func (ModifyReservedInstancesRequest) Send

Send marshals and sends the ModifyReservedInstances API request.

type ModifyReservedInstancesResponse added in v0.9.0

type ModifyReservedInstancesResponse struct {
	*ModifyReservedInstancesOutput
	// contains filtered or unexported fields
}

ModifyReservedInstancesResponse is the response type for the ModifyReservedInstances API operation.

func (*ModifyReservedInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyReservedInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyReservedInstances request.

type ModifySnapshotAttributeInput

type ModifySnapshotAttributeInput struct {

	// The snapshot attribute to modify. Only volume creation permissions can be
	// modified.
	Attribute SnapshotAttributeName `type:"string" enum:"true"`

	// A JSON representation of the snapshot attribute modification.
	CreateVolumePermission *CreateVolumePermissionModifications `type:"structure"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The group to modify for the snapshot.
	GroupNames []string `locationName:"UserGroup" locationNameList:"GroupName" type:"list"`

	// The type of operation to perform to the attribute.
	OperationType OperationType `type:"string" enum:"true"`

	// The ID of the snapshot.
	//
	// SnapshotId is a required field
	SnapshotId *string `type:"string" required:"true"`

	// The account ID to modify for the snapshot.
	UserIds []string `locationName:"UserId" locationNameList:"UserId" type:"list"`
	// contains filtered or unexported fields
}

func (ModifySnapshotAttributeInput) String

String returns the string representation

func (*ModifySnapshotAttributeInput) Validate

func (s *ModifySnapshotAttributeInput) Validate() error

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

type ModifySnapshotAttributeOutput

type ModifySnapshotAttributeOutput struct {
	// contains filtered or unexported fields
}

func (ModifySnapshotAttributeOutput) String

String returns the string representation

type ModifySnapshotAttributeRequest

type ModifySnapshotAttributeRequest struct {
	*aws.Request
	Input *ModifySnapshotAttributeInput
	Copy  func(*ModifySnapshotAttributeInput) ModifySnapshotAttributeRequest
}

ModifySnapshotAttributeRequest is the request type for the ModifySnapshotAttribute API operation.

func (ModifySnapshotAttributeRequest) Send

Send marshals and sends the ModifySnapshotAttribute API request.

type ModifySnapshotAttributeResponse added in v0.9.0

type ModifySnapshotAttributeResponse struct {
	*ModifySnapshotAttributeOutput
	// contains filtered or unexported fields
}

ModifySnapshotAttributeResponse is the response type for the ModifySnapshotAttribute API operation.

func (*ModifySnapshotAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifySnapshotAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifySnapshotAttribute request.

type ModifySpotFleetRequestInput

type ModifySpotFleetRequestInput struct {

	// Indicates whether running Spot Instances should be terminated if the target
	// capacity of the Spot Fleet request is decreased below the current size of
	// the Spot Fleet.
	ExcessCapacityTerminationPolicy ExcessCapacityTerminationPolicy `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"true"`

	// The number of On-Demand Instances in the fleet.
	OnDemandTargetCapacity *int64 `type:"integer"`

	// The ID of the Spot Fleet request.
	//
	// SpotFleetRequestId is a required field
	SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`

	// The size of the fleet.
	TargetCapacity *int64 `locationName:"targetCapacity" type:"integer"`
	// contains filtered or unexported fields
}

Contains the parameters for ModifySpotFleetRequest.

func (ModifySpotFleetRequestInput) String

String returns the string representation

func (*ModifySpotFleetRequestInput) Validate

func (s *ModifySpotFleetRequestInput) Validate() error

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

type ModifySpotFleetRequestOutput

type ModifySpotFleetRequestOutput struct {

	// Is true if the request succeeds, and an error otherwise.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

Contains the output of ModifySpotFleetRequest.

func (ModifySpotFleetRequestOutput) String

String returns the string representation

type ModifySpotFleetRequestRequest

type ModifySpotFleetRequestRequest struct {
	*aws.Request
	Input *ModifySpotFleetRequestInput
	Copy  func(*ModifySpotFleetRequestInput) ModifySpotFleetRequestRequest
}

ModifySpotFleetRequestRequest is the request type for the ModifySpotFleetRequest API operation.

func (ModifySpotFleetRequestRequest) Send

Send marshals and sends the ModifySpotFleetRequest API request.

type ModifySpotFleetRequestResponse added in v0.9.0

type ModifySpotFleetRequestResponse struct {
	*ModifySpotFleetRequestOutput
	// contains filtered or unexported fields
}

ModifySpotFleetRequestResponse is the response type for the ModifySpotFleetRequest API operation.

func (*ModifySpotFleetRequestResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifySpotFleetRequestResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifySpotFleetRequest request.

type ModifySubnetAttributeInput

type ModifySubnetAttributeInput struct {

	// Specify true to indicate that network interfaces created in the specified
	// subnet should be assigned an IPv6 address. This includes a network interface
	// that's created when launching an instance into the subnet (the instance therefore
	// receives an IPv6 address).
	//
	// If you enable the IPv6 addressing feature for your subnet, your network interface
	// or instance only receives an IPv6 address if it's created using version 2016-11-15
	// or later of the Amazon EC2 API.
	AssignIpv6AddressOnCreation *AttributeBooleanValue `type:"structure"`

	// The customer-owned IPv4 address pool associated with the subnet.
	//
	// You must set this value when you specify true for MapCustomerOwnedIpOnLaunch.
	CustomerOwnedIpv4Pool *string `type:"string"`

	// Specify true to indicate that network interfaces attached to instances created
	// in the specified subnet should be assigned a customer-owned IPv4 address.
	//
	// When this value is true, you must specify the customer-owned IP pool using
	// CustomerOwnedIpv4Pool.
	MapCustomerOwnedIpOnLaunch *AttributeBooleanValue `type:"structure"`

	// Specify true to indicate that network interfaces attached to instances created
	// in the specified subnet should be assigned a public IPv4 address.
	MapPublicIpOnLaunch *AttributeBooleanValue `type:"structure"`

	// The ID of the subnet.
	//
	// SubnetId is a required field
	SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifySubnetAttributeInput) String

String returns the string representation

func (*ModifySubnetAttributeInput) Validate

func (s *ModifySubnetAttributeInput) Validate() error

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

type ModifySubnetAttributeOutput

type ModifySubnetAttributeOutput struct {
	// contains filtered or unexported fields
}

func (ModifySubnetAttributeOutput) String

String returns the string representation

type ModifySubnetAttributeRequest

type ModifySubnetAttributeRequest struct {
	*aws.Request
	Input *ModifySubnetAttributeInput
	Copy  func(*ModifySubnetAttributeInput) ModifySubnetAttributeRequest
}

ModifySubnetAttributeRequest is the request type for the ModifySubnetAttribute API operation.

func (ModifySubnetAttributeRequest) Send

Send marshals and sends the ModifySubnetAttribute API request.

type ModifySubnetAttributeResponse added in v0.9.0

type ModifySubnetAttributeResponse struct {
	*ModifySubnetAttributeOutput
	// contains filtered or unexported fields
}

ModifySubnetAttributeResponse is the response type for the ModifySubnetAttribute API operation.

func (*ModifySubnetAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifySubnetAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifySubnetAttribute request.

type ModifyTrafficMirrorFilterNetworkServicesInput added in v0.10.0

type ModifyTrafficMirrorFilterNetworkServicesInput struct {

	// The network service, for example Amazon DNS, that you want to mirror.
	AddNetworkServices []TrafficMirrorNetworkService `locationName:"AddNetworkService" locationNameList:"item" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The network service, for example Amazon DNS, that you no longer want to mirror.
	RemoveNetworkServices []TrafficMirrorNetworkService `locationName:"RemoveNetworkService" locationNameList:"item" type:"list"`

	// The ID of the Traffic Mirror filter.
	//
	// TrafficMirrorFilterId is a required field
	TrafficMirrorFilterId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyTrafficMirrorFilterNetworkServicesInput) String added in v0.10.0

String returns the string representation

func (*ModifyTrafficMirrorFilterNetworkServicesInput) Validate added in v0.10.0

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

type ModifyTrafficMirrorFilterNetworkServicesOutput added in v0.10.0

type ModifyTrafficMirrorFilterNetworkServicesOutput struct {

	// The Traffic Mirror filter that the network service is associated with.
	TrafficMirrorFilter *TrafficMirrorFilter `locationName:"trafficMirrorFilter" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyTrafficMirrorFilterNetworkServicesOutput) String added in v0.10.0

String returns the string representation

type ModifyTrafficMirrorFilterNetworkServicesRequest added in v0.10.0

ModifyTrafficMirrorFilterNetworkServicesRequest is the request type for the ModifyTrafficMirrorFilterNetworkServices API operation.

func (ModifyTrafficMirrorFilterNetworkServicesRequest) Send added in v0.10.0

Send marshals and sends the ModifyTrafficMirrorFilterNetworkServices API request.

type ModifyTrafficMirrorFilterNetworkServicesResponse added in v0.10.0

type ModifyTrafficMirrorFilterNetworkServicesResponse struct {
	*ModifyTrafficMirrorFilterNetworkServicesOutput
	// contains filtered or unexported fields
}

ModifyTrafficMirrorFilterNetworkServicesResponse is the response type for the ModifyTrafficMirrorFilterNetworkServices API operation.

func (*ModifyTrafficMirrorFilterNetworkServicesResponse) SDKResponseMetdata added in v0.10.0

SDKResponseMetdata returns the response metadata for the ModifyTrafficMirrorFilterNetworkServices request.

type ModifyTrafficMirrorFilterRuleInput added in v0.10.0

type ModifyTrafficMirrorFilterRuleInput struct {

	// The description to assign to the Traffic Mirror rule.
	Description *string `type:"string"`

	// The destination CIDR block to assign to the Traffic Mirror rule.
	DestinationCidrBlock *string `type:"string"`

	// The destination ports that are associated with the Traffic Mirror rule.
	DestinationPortRange *TrafficMirrorPortRangeRequest `type:"structure"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The protocol, for example TCP, to assign to the Traffic Mirror rule.
	Protocol *int64 `type:"integer"`

	// The properties that you want to remove from the Traffic Mirror filter rule.
	//
	// When you remove a property from a Traffic Mirror filter rule, the property
	// is set to the default.
	RemoveFields []TrafficMirrorFilterRuleField `locationName:"RemoveField" type:"list"`

	// The action to assign to the rule.
	RuleAction TrafficMirrorRuleAction `type:"string" enum:"true"`

	// The number of the Traffic Mirror rule. This number must be unique for each
	// Traffic Mirror rule in a given direction. The rules are processed in ascending
	// order by rule number.
	RuleNumber *int64 `type:"integer"`

	// The source CIDR block to assign to the Traffic Mirror rule.
	SourceCidrBlock *string `type:"string"`

	// The port range to assign to the Traffic Mirror rule.
	SourcePortRange *TrafficMirrorPortRangeRequest `type:"structure"`

	// The type of traffic (ingress | egress) to assign to the rule.
	TrafficDirection TrafficDirection `type:"string" enum:"true"`

	// The ID of the Traffic Mirror rule.
	//
	// TrafficMirrorFilterRuleId is a required field
	TrafficMirrorFilterRuleId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyTrafficMirrorFilterRuleInput) String added in v0.10.0

String returns the string representation

func (*ModifyTrafficMirrorFilterRuleInput) Validate added in v0.10.0

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

type ModifyTrafficMirrorFilterRuleOutput added in v0.10.0

type ModifyTrafficMirrorFilterRuleOutput struct {

	// Modifies a Traffic Mirror rule.
	TrafficMirrorFilterRule *TrafficMirrorFilterRule `locationName:"trafficMirrorFilterRule" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyTrafficMirrorFilterRuleOutput) String added in v0.10.0

String returns the string representation

type ModifyTrafficMirrorFilterRuleRequest added in v0.10.0

type ModifyTrafficMirrorFilterRuleRequest struct {
	*aws.Request
	Input *ModifyTrafficMirrorFilterRuleInput
	Copy  func(*ModifyTrafficMirrorFilterRuleInput) ModifyTrafficMirrorFilterRuleRequest
}

ModifyTrafficMirrorFilterRuleRequest is the request type for the ModifyTrafficMirrorFilterRule API operation.

func (ModifyTrafficMirrorFilterRuleRequest) Send added in v0.10.0

Send marshals and sends the ModifyTrafficMirrorFilterRule API request.

type ModifyTrafficMirrorFilterRuleResponse added in v0.10.0

type ModifyTrafficMirrorFilterRuleResponse struct {
	*ModifyTrafficMirrorFilterRuleOutput
	// contains filtered or unexported fields
}

ModifyTrafficMirrorFilterRuleResponse is the response type for the ModifyTrafficMirrorFilterRule API operation.

func (*ModifyTrafficMirrorFilterRuleResponse) SDKResponseMetdata added in v0.10.0

func (r *ModifyTrafficMirrorFilterRuleResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyTrafficMirrorFilterRule request.

type ModifyTrafficMirrorSessionInput added in v0.10.0

type ModifyTrafficMirrorSessionInput struct {

	// The description to assign to the Traffic Mirror session.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The number of bytes in each packet to mirror. These are bytes after the VXLAN
	// header. To mirror a subset, set this to the length (in bytes) to mirror.
	// For example, if you set this value to 100, then the first 100 bytes that
	// meet the filter criteria are copied to the target. Do not specify this parameter
	// when you want to mirror the entire packet.
	PacketLength *int64 `type:"integer"`

	// The properties that you want to remove from the Traffic Mirror session.
	//
	// When you remove a property from a Traffic Mirror session, the property is
	// set to the default.
	RemoveFields []TrafficMirrorSessionField `locationName:"RemoveField" type:"list"`

	// The session number determines the order in which sessions are evaluated when
	// an interface is used by multiple sessions. The first session with a matching
	// filter is the one that mirrors the packets.
	//
	// Valid values are 1-32766.
	SessionNumber *int64 `type:"integer"`

	// The ID of the Traffic Mirror filter.
	TrafficMirrorFilterId *string `type:"string"`

	// The ID of the Traffic Mirror session.
	//
	// TrafficMirrorSessionId is a required field
	TrafficMirrorSessionId *string `type:"string" required:"true"`

	// The Traffic Mirror target. The target must be in the same VPC as the source,
	// or have a VPC peering connection with the source.
	TrafficMirrorTargetId *string `type:"string"`

	// The virtual network ID of the Traffic Mirror session.
	VirtualNetworkId *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (ModifyTrafficMirrorSessionInput) String added in v0.10.0

String returns the string representation

func (*ModifyTrafficMirrorSessionInput) Validate added in v0.10.0

func (s *ModifyTrafficMirrorSessionInput) Validate() error

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

type ModifyTrafficMirrorSessionOutput added in v0.10.0

type ModifyTrafficMirrorSessionOutput struct {

	// Information about the Traffic Mirror session.
	TrafficMirrorSession *TrafficMirrorSession `locationName:"trafficMirrorSession" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyTrafficMirrorSessionOutput) String added in v0.10.0

String returns the string representation

type ModifyTrafficMirrorSessionRequest added in v0.10.0

type ModifyTrafficMirrorSessionRequest struct {
	*aws.Request
	Input *ModifyTrafficMirrorSessionInput
	Copy  func(*ModifyTrafficMirrorSessionInput) ModifyTrafficMirrorSessionRequest
}

ModifyTrafficMirrorSessionRequest is the request type for the ModifyTrafficMirrorSession API operation.

func (ModifyTrafficMirrorSessionRequest) Send added in v0.10.0

Send marshals and sends the ModifyTrafficMirrorSession API request.

type ModifyTrafficMirrorSessionResponse added in v0.10.0

type ModifyTrafficMirrorSessionResponse struct {
	*ModifyTrafficMirrorSessionOutput
	// contains filtered or unexported fields
}

ModifyTrafficMirrorSessionResponse is the response type for the ModifyTrafficMirrorSession API operation.

func (*ModifyTrafficMirrorSessionResponse) SDKResponseMetdata added in v0.10.0

func (r *ModifyTrafficMirrorSessionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyTrafficMirrorSession request.

type ModifyTransitGatewayVpcAttachmentInput added in v0.6.0

type ModifyTransitGatewayVpcAttachmentInput struct {

	// The IDs of one or more subnets to add. You can specify at most one subnet
	// per Availability Zone.
	AddSubnetIds []string `locationNameList:"item" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The new VPC attachment options.
	//
	// You cannot modify the IPv6 options.
	Options *ModifyTransitGatewayVpcAttachmentRequestOptions `type:"structure"`

	// The IDs of one or more subnets to remove.
	RemoveSubnetIds []string `locationNameList:"item" type:"list"`

	// The ID of the attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyTransitGatewayVpcAttachmentInput) String added in v0.6.0

String returns the string representation

func (*ModifyTransitGatewayVpcAttachmentInput) Validate added in v0.6.0

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

type ModifyTransitGatewayVpcAttachmentOutput added in v0.6.0

type ModifyTransitGatewayVpcAttachmentOutput struct {

	// Information about the modified attachment.
	TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyTransitGatewayVpcAttachmentOutput) String added in v0.6.0

String returns the string representation

type ModifyTransitGatewayVpcAttachmentRequest added in v0.6.0

ModifyTransitGatewayVpcAttachmentRequest is the request type for the ModifyTransitGatewayVpcAttachment API operation.

func (ModifyTransitGatewayVpcAttachmentRequest) Send added in v0.6.0

Send marshals and sends the ModifyTransitGatewayVpcAttachment API request.

type ModifyTransitGatewayVpcAttachmentRequestOptions added in v0.6.0

type ModifyTransitGatewayVpcAttachmentRequestOptions struct {

	// Enable or disable DNS support. The default is enable.
	DnsSupport DnsSupportValue `type:"string" enum:"true"`

	// Enable or disable IPv6 support. The default is enable.
	Ipv6Support Ipv6SupportValue `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the options for a VPC attachment.

func (ModifyTransitGatewayVpcAttachmentRequestOptions) String added in v0.6.0

String returns the string representation

type ModifyTransitGatewayVpcAttachmentResponse added in v0.9.0

type ModifyTransitGatewayVpcAttachmentResponse struct {
	*ModifyTransitGatewayVpcAttachmentOutput
	// contains filtered or unexported fields
}

ModifyTransitGatewayVpcAttachmentResponse is the response type for the ModifyTransitGatewayVpcAttachment API operation.

func (*ModifyTransitGatewayVpcAttachmentResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyTransitGatewayVpcAttachmentResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyTransitGatewayVpcAttachment request.

type ModifyVolumeAttributeInput

type ModifyVolumeAttributeInput struct {

	// Indicates whether the volume should be auto-enabled for I/O operations.
	AutoEnableIO *AttributeBooleanValue `type:"structure"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the volume.
	//
	// VolumeId is a required field
	VolumeId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyVolumeAttributeInput) String

String returns the string representation

func (*ModifyVolumeAttributeInput) Validate

func (s *ModifyVolumeAttributeInput) Validate() error

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

type ModifyVolumeAttributeOutput

type ModifyVolumeAttributeOutput struct {
	// contains filtered or unexported fields
}

func (ModifyVolumeAttributeOutput) String

String returns the string representation

type ModifyVolumeAttributeRequest

type ModifyVolumeAttributeRequest struct {
	*aws.Request
	Input *ModifyVolumeAttributeInput
	Copy  func(*ModifyVolumeAttributeInput) ModifyVolumeAttributeRequest
}

ModifyVolumeAttributeRequest is the request type for the ModifyVolumeAttribute API operation.

func (ModifyVolumeAttributeRequest) Send

Send marshals and sends the ModifyVolumeAttribute API request.

type ModifyVolumeAttributeResponse added in v0.9.0

type ModifyVolumeAttributeResponse struct {
	*ModifyVolumeAttributeOutput
	// contains filtered or unexported fields
}

ModifyVolumeAttributeResponse is the response type for the ModifyVolumeAttribute API operation.

func (*ModifyVolumeAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyVolumeAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyVolumeAttribute request.

type ModifyVolumeInput

type ModifyVolumeInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The target IOPS rate of the volume.
	//
	// This is only valid for Provisioned IOPS SSD (io1) volumes. For more information,
	// see Provisioned IOPS SSD (io1) Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops).
	//
	// Default: If no IOPS value is specified, the existing value is retained.
	Iops *int64 `type:"integer"`

	// The target size of the volume, in GiB. The target volume size must be greater
	// than or equal to than the existing size of the volume. For information about
	// available EBS volume sizes, see Amazon EBS Volume Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
	//
	// Default: If no size is specified, the existing size is retained.
	Size *int64 `type:"integer"`

	// The ID of the volume.
	//
	// VolumeId is a required field
	VolumeId *string `type:"string" required:"true"`

	// The target EBS volume type of the volume.
	//
	// Default: If no type is specified, the existing type is retained.
	VolumeType VolumeType `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (ModifyVolumeInput) String

func (s ModifyVolumeInput) String() string

String returns the string representation

func (*ModifyVolumeInput) Validate

func (s *ModifyVolumeInput) Validate() error

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

type ModifyVolumeOutput

type ModifyVolumeOutput struct {

	// Information about the volume modification.
	VolumeModification *VolumeModification `locationName:"volumeModification" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyVolumeOutput) String

func (s ModifyVolumeOutput) String() string

String returns the string representation

type ModifyVolumeRequest

type ModifyVolumeRequest struct {
	*aws.Request
	Input *ModifyVolumeInput
	Copy  func(*ModifyVolumeInput) ModifyVolumeRequest
}

ModifyVolumeRequest is the request type for the ModifyVolume API operation.

func (ModifyVolumeRequest) Send

Send marshals and sends the ModifyVolume API request.

type ModifyVolumeResponse added in v0.9.0

type ModifyVolumeResponse struct {
	*ModifyVolumeOutput
	// contains filtered or unexported fields
}

ModifyVolumeResponse is the response type for the ModifyVolume API operation.

func (*ModifyVolumeResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyVolumeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyVolume request.

type ModifyVpcAttributeInput

type ModifyVpcAttributeInput struct {

	// Indicates whether the instances launched in the VPC get DNS hostnames. If
	// enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
	//
	// You cannot modify the DNS resolution and DNS hostnames attributes in the
	// same request. Use separate requests for each attribute. You can only enable
	// DNS hostnames if you've enabled DNS support.
	EnableDnsHostnames *AttributeBooleanValue `type:"structure"`

	// Indicates whether the DNS resolution is supported for the VPC. If enabled,
	// queries to the Amazon provided DNS server at the 169.254.169.253 IP address,
	// or the reserved IP address at the base of the VPC network range "plus two"
	// succeed. If disabled, the Amazon provided DNS service in the VPC that resolves
	// public DNS hostnames to IP addresses is not enabled.
	//
	// You cannot modify the DNS resolution and DNS hostnames attributes in the
	// same request. Use separate requests for each attribute.
	EnableDnsSupport *AttributeBooleanValue `type:"structure"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `locationName:"vpcId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyVpcAttributeInput) String

func (s ModifyVpcAttributeInput) String() string

String returns the string representation

func (*ModifyVpcAttributeInput) Validate

func (s *ModifyVpcAttributeInput) Validate() error

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

type ModifyVpcAttributeOutput

type ModifyVpcAttributeOutput struct {
	// contains filtered or unexported fields
}

func (ModifyVpcAttributeOutput) String

func (s ModifyVpcAttributeOutput) String() string

String returns the string representation

type ModifyVpcAttributeRequest

type ModifyVpcAttributeRequest struct {
	*aws.Request
	Input *ModifyVpcAttributeInput
	Copy  func(*ModifyVpcAttributeInput) ModifyVpcAttributeRequest
}

ModifyVpcAttributeRequest is the request type for the ModifyVpcAttribute API operation.

func (ModifyVpcAttributeRequest) Send

Send marshals and sends the ModifyVpcAttribute API request.

type ModifyVpcAttributeResponse added in v0.9.0

type ModifyVpcAttributeResponse struct {
	*ModifyVpcAttributeOutput
	// contains filtered or unexported fields
}

ModifyVpcAttributeResponse is the response type for the ModifyVpcAttribute API operation.

func (*ModifyVpcAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyVpcAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyVpcAttribute request.

type ModifyVpcEndpointConnectionNotificationInput added in v0.2.0

type ModifyVpcEndpointConnectionNotificationInput struct {

	// One or more events for the endpoint. Valid values are Accept, Connect, Delete,
	// and Reject.
	ConnectionEvents []string `locationNameList:"item" type:"list"`

	// The ARN for the SNS topic for the notification.
	ConnectionNotificationArn *string `type:"string"`

	// The ID of the notification.
	//
	// ConnectionNotificationId is a required field
	ConnectionNotificationId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyVpcEndpointConnectionNotificationInput) String added in v0.2.0

String returns the string representation

func (*ModifyVpcEndpointConnectionNotificationInput) Validate added in v0.2.0

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

type ModifyVpcEndpointConnectionNotificationOutput added in v0.2.0

type ModifyVpcEndpointConnectionNotificationOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	ReturnValue *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyVpcEndpointConnectionNotificationOutput) String added in v0.2.0

String returns the string representation

type ModifyVpcEndpointConnectionNotificationRequest added in v0.2.0

ModifyVpcEndpointConnectionNotificationRequest is the request type for the ModifyVpcEndpointConnectionNotification API operation.

func (ModifyVpcEndpointConnectionNotificationRequest) Send added in v0.2.0

Send marshals and sends the ModifyVpcEndpointConnectionNotification API request.

type ModifyVpcEndpointConnectionNotificationResponse added in v0.9.0

type ModifyVpcEndpointConnectionNotificationResponse struct {
	*ModifyVpcEndpointConnectionNotificationOutput
	// contains filtered or unexported fields
}

ModifyVpcEndpointConnectionNotificationResponse is the response type for the ModifyVpcEndpointConnectionNotification API operation.

func (*ModifyVpcEndpointConnectionNotificationResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the ModifyVpcEndpointConnectionNotification request.

type ModifyVpcEndpointInput

type ModifyVpcEndpointInput struct {

	// (Gateway endpoint) One or more route tables IDs to associate with the endpoint.
	AddRouteTableIds []string `locationName:"AddRouteTableId" locationNameList:"item" type:"list"`

	// (Interface endpoint) One or more security group IDs to associate with the
	// network interface.
	AddSecurityGroupIds []string `locationName:"AddSecurityGroupId" locationNameList:"item" type:"list"`

	// (Interface endpoint) One or more subnet IDs in which to serve the endpoint.
	AddSubnetIds []string `locationName:"AddSubnetId" locationNameList:"item" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// A policy to attach to the endpoint that controls access to the service. The
	// policy must be in valid JSON format.
	PolicyDocument *string `type:"string"`

	// (Interface endpoint) Indicates whether a private hosted zone is associated
	// with the VPC.
	PrivateDnsEnabled *bool `type:"boolean"`

	// (Gateway endpoint) One or more route table IDs to disassociate from the endpoint.
	RemoveRouteTableIds []string `locationName:"RemoveRouteTableId" locationNameList:"item" type:"list"`

	// (Interface endpoint) One or more security group IDs to disassociate from
	// the network interface.
	RemoveSecurityGroupIds []string `locationName:"RemoveSecurityGroupId" locationNameList:"item" type:"list"`

	// (Interface endpoint) One or more subnets IDs in which to remove the endpoint.
	RemoveSubnetIds []string `locationName:"RemoveSubnetId" locationNameList:"item" type:"list"`

	// (Gateway endpoint) Specify true to reset the policy document to the default
	// policy. The default policy allows full access to the service.
	ResetPolicy *bool `type:"boolean"`

	// The ID of the endpoint.
	//
	// VpcEndpointId is a required field
	VpcEndpointId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for ModifyVpcEndpoint.

func (ModifyVpcEndpointInput) String

func (s ModifyVpcEndpointInput) String() string

String returns the string representation

func (*ModifyVpcEndpointInput) Validate

func (s *ModifyVpcEndpointInput) Validate() error

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

type ModifyVpcEndpointOutput

type ModifyVpcEndpointOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyVpcEndpointOutput) String

func (s ModifyVpcEndpointOutput) String() string

String returns the string representation

type ModifyVpcEndpointRequest

type ModifyVpcEndpointRequest struct {
	*aws.Request
	Input *ModifyVpcEndpointInput
	Copy  func(*ModifyVpcEndpointInput) ModifyVpcEndpointRequest
}

ModifyVpcEndpointRequest is the request type for the ModifyVpcEndpoint API operation.

func (ModifyVpcEndpointRequest) Send

Send marshals and sends the ModifyVpcEndpoint API request.

type ModifyVpcEndpointResponse added in v0.9.0

type ModifyVpcEndpointResponse struct {
	*ModifyVpcEndpointOutput
	// contains filtered or unexported fields
}

ModifyVpcEndpointResponse is the response type for the ModifyVpcEndpoint API operation.

func (*ModifyVpcEndpointResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyVpcEndpointResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyVpcEndpoint request.

type ModifyVpcEndpointServiceConfigurationInput added in v0.2.0

type ModifyVpcEndpointServiceConfigurationInput struct {

	// Indicates whether requests to create an endpoint to your service must be
	// accepted.
	AcceptanceRequired *bool `type:"boolean"`

	// The Amazon Resource Names (ARNs) of Network Load Balancers to add to your
	// service configuration.
	AddNetworkLoadBalancerArns []string `locationName:"AddNetworkLoadBalancerArn" locationNameList:"item" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The private DNS name to assign to the endpoint service.
	PrivateDnsName *string `type:"string"`

	// The Amazon Resource Names (ARNs) of Network Load Balancers to remove from
	// your service configuration.
	RemoveNetworkLoadBalancerArns []string `locationName:"RemoveNetworkLoadBalancerArn" locationNameList:"item" type:"list"`

	// Removes the private DNS name of the endpoint service.
	RemovePrivateDnsName *bool `type:"boolean"`

	// The ID of the service.
	//
	// ServiceId is a required field
	ServiceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyVpcEndpointServiceConfigurationInput) String added in v0.2.0

String returns the string representation

func (*ModifyVpcEndpointServiceConfigurationInput) Validate added in v0.2.0

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

type ModifyVpcEndpointServiceConfigurationOutput added in v0.2.0

type ModifyVpcEndpointServiceConfigurationOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyVpcEndpointServiceConfigurationOutput) String added in v0.2.0

String returns the string representation

type ModifyVpcEndpointServiceConfigurationRequest added in v0.2.0

ModifyVpcEndpointServiceConfigurationRequest is the request type for the ModifyVpcEndpointServiceConfiguration API operation.

func (ModifyVpcEndpointServiceConfigurationRequest) Send added in v0.2.0

Send marshals and sends the ModifyVpcEndpointServiceConfiguration API request.

type ModifyVpcEndpointServiceConfigurationResponse added in v0.9.0

type ModifyVpcEndpointServiceConfigurationResponse struct {
	*ModifyVpcEndpointServiceConfigurationOutput
	// contains filtered or unexported fields
}

ModifyVpcEndpointServiceConfigurationResponse is the response type for the ModifyVpcEndpointServiceConfiguration API operation.

func (*ModifyVpcEndpointServiceConfigurationResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the ModifyVpcEndpointServiceConfiguration request.

type ModifyVpcEndpointServicePermissionsInput added in v0.2.0

type ModifyVpcEndpointServicePermissionsInput struct {

	// The Amazon Resource Names (ARN) of one or more principals. Permissions are
	// granted to the principals in this list. To grant permissions to all principals,
	// specify an asterisk (*).
	AddAllowedPrincipals []string `locationNameList:"item" type:"list"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The Amazon Resource Names (ARN) of one or more principals. Permissions are
	// revoked for principals in this list.
	RemoveAllowedPrincipals []string `locationNameList:"item" type:"list"`

	// The ID of the service.
	//
	// ServiceId is a required field
	ServiceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyVpcEndpointServicePermissionsInput) String added in v0.2.0

String returns the string representation

func (*ModifyVpcEndpointServicePermissionsInput) Validate added in v0.2.0

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

type ModifyVpcEndpointServicePermissionsOutput added in v0.2.0

type ModifyVpcEndpointServicePermissionsOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	ReturnValue *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyVpcEndpointServicePermissionsOutput) String added in v0.2.0

String returns the string representation

type ModifyVpcEndpointServicePermissionsRequest added in v0.2.0

ModifyVpcEndpointServicePermissionsRequest is the request type for the ModifyVpcEndpointServicePermissions API operation.

func (ModifyVpcEndpointServicePermissionsRequest) Send added in v0.2.0

Send marshals and sends the ModifyVpcEndpointServicePermissions API request.

type ModifyVpcEndpointServicePermissionsResponse added in v0.9.0

type ModifyVpcEndpointServicePermissionsResponse struct {
	*ModifyVpcEndpointServicePermissionsOutput
	// contains filtered or unexported fields
}

ModifyVpcEndpointServicePermissionsResponse is the response type for the ModifyVpcEndpointServicePermissions API operation.

func (*ModifyVpcEndpointServicePermissionsResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyVpcEndpointServicePermissionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyVpcEndpointServicePermissions request.

type ModifyVpcPeeringConnectionOptionsInput

type ModifyVpcPeeringConnectionOptionsInput struct {

	// The VPC peering connection options for the accepter VPC.
	AccepterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The VPC peering connection options for the requester VPC.
	RequesterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`

	// The ID of the VPC peering connection.
	//
	// VpcPeeringConnectionId is a required field
	VpcPeeringConnectionId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyVpcPeeringConnectionOptionsInput) String

String returns the string representation

func (*ModifyVpcPeeringConnectionOptionsInput) Validate

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

type ModifyVpcPeeringConnectionOptionsOutput

type ModifyVpcPeeringConnectionOptionsOutput struct {

	// Information about the VPC peering connection options for the accepter VPC.
	AccepterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"accepterPeeringConnectionOptions" type:"structure"`

	// Information about the VPC peering connection options for the requester VPC.
	RequesterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"requesterPeeringConnectionOptions" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyVpcPeeringConnectionOptionsOutput) String

String returns the string representation

type ModifyVpcPeeringConnectionOptionsRequest

ModifyVpcPeeringConnectionOptionsRequest is the request type for the ModifyVpcPeeringConnectionOptions API operation.

func (ModifyVpcPeeringConnectionOptionsRequest) Send

Send marshals and sends the ModifyVpcPeeringConnectionOptions API request.

type ModifyVpcPeeringConnectionOptionsResponse added in v0.9.0

type ModifyVpcPeeringConnectionOptionsResponse struct {
	*ModifyVpcPeeringConnectionOptionsOutput
	// contains filtered or unexported fields
}

ModifyVpcPeeringConnectionOptionsResponse is the response type for the ModifyVpcPeeringConnectionOptions API operation.

func (*ModifyVpcPeeringConnectionOptionsResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyVpcPeeringConnectionOptionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyVpcPeeringConnectionOptions request.

type ModifyVpcTenancyInput added in v0.2.0

type ModifyVpcTenancyInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The instance tenancy attribute for the VPC.
	//
	// InstanceTenancy is a required field
	InstanceTenancy VpcTenancy `type:"string" required:"true" enum:"true"`

	// The ID of the VPC.
	//
	// VpcId is a required field
	VpcId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyVpcTenancyInput) String added in v0.2.0

func (s ModifyVpcTenancyInput) String() string

String returns the string representation

func (*ModifyVpcTenancyInput) Validate added in v0.2.0

func (s *ModifyVpcTenancyInput) Validate() error

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

type ModifyVpcTenancyOutput added in v0.2.0

type ModifyVpcTenancyOutput struct {

	// Returns true if the request succeeds; otherwise, returns an error.
	ReturnValue *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ModifyVpcTenancyOutput) String added in v0.2.0

func (s ModifyVpcTenancyOutput) String() string

String returns the string representation

type ModifyVpcTenancyRequest added in v0.2.0

type ModifyVpcTenancyRequest struct {
	*aws.Request
	Input *ModifyVpcTenancyInput
	Copy  func(*ModifyVpcTenancyInput) ModifyVpcTenancyRequest
}

ModifyVpcTenancyRequest is the request type for the ModifyVpcTenancy API operation.

func (ModifyVpcTenancyRequest) Send added in v0.2.0

Send marshals and sends the ModifyVpcTenancy API request.

type ModifyVpcTenancyResponse added in v0.9.0

type ModifyVpcTenancyResponse struct {
	*ModifyVpcTenancyOutput
	// contains filtered or unexported fields
}

ModifyVpcTenancyResponse is the response type for the ModifyVpcTenancy API operation.

func (*ModifyVpcTenancyResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyVpcTenancyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyVpcTenancy request.

type ModifyVpnConnectionInput added in v0.9.0

type ModifyVpnConnectionInput struct {

	// The ID of the customer gateway at your end of the VPN connection.
	CustomerGatewayId *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the transit gateway.
	TransitGatewayId *string `type:"string"`

	// The ID of the VPN connection.
	//
	// VpnConnectionId is a required field
	VpnConnectionId *string `type:"string" required:"true"`

	// The ID of the virtual private gateway at the AWS side of the VPN connection.
	VpnGatewayId *string `type:"string"`
	// contains filtered or unexported fields
}

func (ModifyVpnConnectionInput) String added in v0.9.0

func (s ModifyVpnConnectionInput) String() string

String returns the string representation

func (*ModifyVpnConnectionInput) Validate added in v0.9.0

func (s *ModifyVpnConnectionInput) Validate() error

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

type ModifyVpnConnectionOutput added in v0.9.0

type ModifyVpnConnectionOutput struct {

	// Describes a VPN connection.
	VpnConnection *VpnConnection `locationName:"vpnConnection" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyVpnConnectionOutput) String added in v0.9.0

func (s ModifyVpnConnectionOutput) String() string

String returns the string representation

type ModifyVpnConnectionRequest added in v0.9.0

type ModifyVpnConnectionRequest struct {
	*aws.Request
	Input *ModifyVpnConnectionInput
	Copy  func(*ModifyVpnConnectionInput) ModifyVpnConnectionRequest
}

ModifyVpnConnectionRequest is the request type for the ModifyVpnConnection API operation.

func (ModifyVpnConnectionRequest) Send added in v0.9.0

Send marshals and sends the ModifyVpnConnection API request.

type ModifyVpnConnectionResponse added in v0.9.0

type ModifyVpnConnectionResponse struct {
	*ModifyVpnConnectionOutput
	// contains filtered or unexported fields
}

ModifyVpnConnectionResponse is the response type for the ModifyVpnConnection API operation.

func (*ModifyVpnConnectionResponse) SDKResponseMetdata added in v0.9.0

func (r *ModifyVpnConnectionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyVpnConnection request.

type ModifyVpnTunnelCertificateInput added in v0.11.0

type ModifyVpnTunnelCertificateInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the AWS Site-to-Site VPN connection.
	//
	// VpnConnectionId is a required field
	VpnConnectionId *string `type:"string" required:"true"`

	// The external IP address of the VPN tunnel.
	//
	// VpnTunnelOutsideIpAddress is a required field
	VpnTunnelOutsideIpAddress *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyVpnTunnelCertificateInput) String added in v0.11.0

String returns the string representation

func (*ModifyVpnTunnelCertificateInput) Validate added in v0.11.0

func (s *ModifyVpnTunnelCertificateInput) Validate() error

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

type ModifyVpnTunnelCertificateOutput added in v0.11.0

type ModifyVpnTunnelCertificateOutput struct {

	// Describes a VPN connection.
	VpnConnection *VpnConnection `locationName:"vpnConnection" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyVpnTunnelCertificateOutput) String added in v0.11.0

String returns the string representation

type ModifyVpnTunnelCertificateRequest added in v0.11.0

type ModifyVpnTunnelCertificateRequest struct {
	*aws.Request
	Input *ModifyVpnTunnelCertificateInput
	Copy  func(*ModifyVpnTunnelCertificateInput) ModifyVpnTunnelCertificateRequest
}

ModifyVpnTunnelCertificateRequest is the request type for the ModifyVpnTunnelCertificate API operation.

func (ModifyVpnTunnelCertificateRequest) Send added in v0.11.0

Send marshals and sends the ModifyVpnTunnelCertificate API request.

type ModifyVpnTunnelCertificateResponse added in v0.11.0

type ModifyVpnTunnelCertificateResponse struct {
	*ModifyVpnTunnelCertificateOutput
	// contains filtered or unexported fields
}

ModifyVpnTunnelCertificateResponse is the response type for the ModifyVpnTunnelCertificate API operation.

func (*ModifyVpnTunnelCertificateResponse) SDKResponseMetdata added in v0.11.0

func (r *ModifyVpnTunnelCertificateResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyVpnTunnelCertificate request.

type ModifyVpnTunnelOptionsInput added in v0.12.0

type ModifyVpnTunnelOptionsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The tunnel options to modify.
	//
	// TunnelOptions is a required field
	TunnelOptions *ModifyVpnTunnelOptionsSpecification `type:"structure" required:"true"`

	// The ID of the AWS Site-to-Site VPN connection.
	//
	// VpnConnectionId is a required field
	VpnConnectionId *string `type:"string" required:"true"`

	// The external IP address of the VPN tunnel.
	//
	// VpnTunnelOutsideIpAddress is a required field
	VpnTunnelOutsideIpAddress *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ModifyVpnTunnelOptionsInput) String added in v0.12.0

String returns the string representation

func (*ModifyVpnTunnelOptionsInput) Validate added in v0.12.0

func (s *ModifyVpnTunnelOptionsInput) Validate() error

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

type ModifyVpnTunnelOptionsOutput added in v0.12.0

type ModifyVpnTunnelOptionsOutput struct {

	// Describes a VPN connection.
	VpnConnection *VpnConnection `locationName:"vpnConnection" type:"structure"`
	// contains filtered or unexported fields
}

func (ModifyVpnTunnelOptionsOutput) String added in v0.12.0

String returns the string representation

type ModifyVpnTunnelOptionsRequest added in v0.12.0

type ModifyVpnTunnelOptionsRequest struct {
	*aws.Request
	Input *ModifyVpnTunnelOptionsInput
	Copy  func(*ModifyVpnTunnelOptionsInput) ModifyVpnTunnelOptionsRequest
}

ModifyVpnTunnelOptionsRequest is the request type for the ModifyVpnTunnelOptions API operation.

func (ModifyVpnTunnelOptionsRequest) Send added in v0.12.0

Send marshals and sends the ModifyVpnTunnelOptions API request.

type ModifyVpnTunnelOptionsResponse added in v0.12.0

type ModifyVpnTunnelOptionsResponse struct {
	*ModifyVpnTunnelOptionsOutput
	// contains filtered or unexported fields
}

ModifyVpnTunnelOptionsResponse is the response type for the ModifyVpnTunnelOptions API operation.

func (*ModifyVpnTunnelOptionsResponse) SDKResponseMetdata added in v0.12.0

func (r *ModifyVpnTunnelOptionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ModifyVpnTunnelOptions request.

type ModifyVpnTunnelOptionsSpecification added in v0.12.0

type ModifyVpnTunnelOptionsSpecification struct {

	// The number of seconds after which a DPD timeout occurs.
	//
	// Constraints: A value between 0 and 30.
	//
	// Default: 30
	DPDTimeoutSeconds *int64 `type:"integer"`

	// The IKE versions that are permitted for the VPN tunnel.
	//
	// Valid values: ikev1 | ikev2
	IKEVersions []IKEVersionsRequestListValue `locationName:"IKEVersion" locationNameList:"item" type:"list"`

	// One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel
	// for phase 1 IKE negotiations.
	//
	// Valid values: 2 | 14 | 15 | 16 | 17 | 18 | 22 | 23 | 24
	Phase1DHGroupNumbers []Phase1DHGroupNumbersRequestListValue `locationName:"Phase1DHGroupNumber" locationNameList:"item" type:"list"`

	// One or more encryption algorithms that are permitted for the VPN tunnel for
	// phase 1 IKE negotiations.
	//
	// Valid values: AES128 | AES256
	Phase1EncryptionAlgorithms []Phase1EncryptionAlgorithmsRequestListValue `locationName:"Phase1EncryptionAlgorithm" locationNameList:"item" type:"list"`

	// One or more integrity algorithms that are permitted for the VPN tunnel for
	// phase 1 IKE negotiations.
	//
	// Valid values: SHA1 | SHA2-256
	Phase1IntegrityAlgorithms []Phase1IntegrityAlgorithmsRequestListValue `locationName:"Phase1IntegrityAlgorithm" locationNameList:"item" type:"list"`

	// The lifetime for phase 1 of the IKE negotiation, in seconds.
	//
	// Constraints: A value between 900 and 28,800.
	//
	// Default: 28800
	Phase1LifetimeSeconds *int64 `type:"integer"`

	// One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel
	// for phase 2 IKE negotiations.
	//
	// Valid values: 2 | 5 | 14 | 15 | 16 | 17 | 18 | 22 | 23 | 24
	Phase2DHGroupNumbers []Phase2DHGroupNumbersRequestListValue `locationName:"Phase2DHGroupNumber" locationNameList:"item" type:"list"`

	// One or more encryption algorithms that are permitted for the VPN tunnel for
	// phase 2 IKE negotiations.
	//
	// Valid values: AES128 | AES256
	Phase2EncryptionAlgorithms []Phase2EncryptionAlgorithmsRequestListValue `locationName:"Phase2EncryptionAlgorithm" locationNameList:"item" type:"list"`

	// One or more integrity algorithms that are permitted for the VPN tunnel for
	// phase 2 IKE negotiations.
	//
	// Valid values: SHA1 | SHA2-256
	Phase2IntegrityAlgorithms []Phase2IntegrityAlgorithmsRequestListValue `locationName:"Phase2IntegrityAlgorithm" locationNameList:"item" type:"list"`

	// The lifetime for phase 2 of the IKE negotiation, in seconds.
	//
	// Constraints: A value between 900 and 3,600. The value must be less than the
	// value for Phase1LifetimeSeconds.
	//
	// Default: 3600
	Phase2LifetimeSeconds *int64 `type:"integer"`

	// The pre-shared key (PSK) to establish initial authentication between the
	// virtual private gateway and the customer gateway.
	//
	// Constraints: Allowed characters are alphanumeric characters, periods (.),
	// and underscores (_). Must be between 8 and 64 characters in length and cannot
	// start with zero (0).
	PreSharedKey *string `type:"string"`

	// The percentage of the rekey window (determined by RekeyMarginTimeSeconds)
	// during which the rekey time is randomly selected.
	//
	// Constraints: A value between 0 and 100.
	//
	// Default: 100
	RekeyFuzzPercentage *int64 `type:"integer"`

	// The margin time, in seconds, before the phase 2 lifetime expires, during
	// which the AWS side of the VPN connection performs an IKE rekey. The exact
	// time of the rekey is randomly selected based on the value for RekeyFuzzPercentage.
	//
	// Constraints: A value between 60 and half of Phase2LifetimeSeconds.
	//
	// Default: 540
	RekeyMarginTimeSeconds *int64 `type:"integer"`

	// The number of packets in an IKE replay window.
	//
	// Constraints: A value between 64 and 2048.
	//
	// Default: 1024
	ReplayWindowSize *int64 `type:"integer"`

	// The range of inside IP addresses for the tunnel. Any specified CIDR blocks
	// must be unique across all VPN connections that use the same virtual private
	// gateway.
	//
	// Constraints: A size /30 CIDR block from the 169.254.0.0/16 range. The following
	// CIDR blocks are reserved and cannot be used:
	//
	//    * 169.254.0.0/30
	//
	//    * 169.254.1.0/30
	//
	//    * 169.254.2.0/30
	//
	//    * 169.254.3.0/30
	//
	//    * 169.254.4.0/30
	//
	//    * 169.254.5.0/30
	//
	//    * 169.254.169.252/30
	TunnelInsideCidr *string `type:"string"`
	// contains filtered or unexported fields
}

The AWS Site-to-Site VPN tunnel options to modify.

func (ModifyVpnTunnelOptionsSpecification) String added in v0.12.0

String returns the string representation

type MonitorInstancesInput

type MonitorInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The IDs of the instances.
	//
	// InstanceIds is a required field
	InstanceIds []string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (MonitorInstancesInput) String

func (s MonitorInstancesInput) String() string

String returns the string representation

func (*MonitorInstancesInput) Validate

func (s *MonitorInstancesInput) Validate() error

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

type MonitorInstancesOutput

type MonitorInstancesOutput struct {

	// The monitoring information.
	InstanceMonitorings []InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (MonitorInstancesOutput) String

func (s MonitorInstancesOutput) String() string

String returns the string representation

type MonitorInstancesRequest

type MonitorInstancesRequest struct {
	*aws.Request
	Input *MonitorInstancesInput
	Copy  func(*MonitorInstancesInput) MonitorInstancesRequest
}

MonitorInstancesRequest is the request type for the MonitorInstances API operation.

func (MonitorInstancesRequest) Send

Send marshals and sends the MonitorInstances API request.

type MonitorInstancesResponse added in v0.9.0

type MonitorInstancesResponse struct {
	*MonitorInstancesOutput
	// contains filtered or unexported fields
}

MonitorInstancesResponse is the response type for the MonitorInstances API operation.

func (*MonitorInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *MonitorInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the MonitorInstances request.

type Monitoring

type Monitoring struct {

	// Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
	// is enabled.
	State MonitoringState `locationName:"state" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the monitoring of an instance.

func (Monitoring) String

func (s Monitoring) String() string

String returns the string representation

type MonitoringState

type MonitoringState string
const (
	MonitoringStateDisabled  MonitoringState = "disabled"
	MonitoringStateDisabling MonitoringState = "disabling"
	MonitoringStateEnabled   MonitoringState = "enabled"
	MonitoringStatePending   MonitoringState = "pending"
)

Enum values for MonitoringState

func (MonitoringState) MarshalValue added in v0.3.0

func (enum MonitoringState) MarshalValue() (string, error)

func (MonitoringState) MarshalValueBuf added in v0.3.0

func (enum MonitoringState) MarshalValueBuf(b []byte) ([]byte, error)

type MoveAddressToVpcInput

type MoveAddressToVpcInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The Elastic IP address.
	//
	// PublicIp is a required field
	PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (MoveAddressToVpcInput) String

func (s MoveAddressToVpcInput) String() string

String returns the string representation

func (*MoveAddressToVpcInput) Validate

func (s *MoveAddressToVpcInput) Validate() error

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

type MoveAddressToVpcOutput

type MoveAddressToVpcOutput struct {

	// The allocation ID for the Elastic IP address.
	AllocationId *string `locationName:"allocationId" type:"string"`

	// The status of the move of the IP address.
	Status Status `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (MoveAddressToVpcOutput) String

func (s MoveAddressToVpcOutput) String() string

String returns the string representation

type MoveAddressToVpcRequest

type MoveAddressToVpcRequest struct {
	*aws.Request
	Input *MoveAddressToVpcInput
	Copy  func(*MoveAddressToVpcInput) MoveAddressToVpcRequest
}

MoveAddressToVpcRequest is the request type for the MoveAddressToVpc API operation.

func (MoveAddressToVpcRequest) Send

Send marshals and sends the MoveAddressToVpc API request.

type MoveAddressToVpcResponse added in v0.9.0

type MoveAddressToVpcResponse struct {
	*MoveAddressToVpcOutput
	// contains filtered or unexported fields
}

MoveAddressToVpcResponse is the response type for the MoveAddressToVpc API operation.

func (*MoveAddressToVpcResponse) SDKResponseMetdata added in v0.9.0

func (r *MoveAddressToVpcResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the MoveAddressToVpc request.

type MoveStatus

type MoveStatus string
const (
	MoveStatusMovingToVpc        MoveStatus = "movingToVpc"
	MoveStatusRestoringToClassic MoveStatus = "restoringToClassic"
)

Enum values for MoveStatus

func (MoveStatus) MarshalValue added in v0.3.0

func (enum MoveStatus) MarshalValue() (string, error)

func (MoveStatus) MarshalValueBuf added in v0.3.0

func (enum MoveStatus) MarshalValueBuf(b []byte) ([]byte, error)

type MovingAddressStatus

type MovingAddressStatus struct {

	// The status of the Elastic IP address that's being moved to the EC2-VPC platform,
	// or restored to the EC2-Classic platform.
	MoveStatus MoveStatus `locationName:"moveStatus" type:"string" enum:"true"`

	// The Elastic IP address.
	PublicIp *string `locationName:"publicIp" type:"string"`
	// contains filtered or unexported fields
}

Describes the status of a moving Elastic IP address.

func (MovingAddressStatus) String

func (s MovingAddressStatus) String() string

String returns the string representation

type MulticastSupportValue added in v0.18.0

type MulticastSupportValue string
const (
	MulticastSupportValueEnable  MulticastSupportValue = "enable"
	MulticastSupportValueDisable MulticastSupportValue = "disable"
)

Enum values for MulticastSupportValue

func (MulticastSupportValue) MarshalValue added in v0.18.0

func (enum MulticastSupportValue) MarshalValue() (string, error)

func (MulticastSupportValue) MarshalValueBuf added in v0.18.0

func (enum MulticastSupportValue) MarshalValueBuf(b []byte) ([]byte, error)

type NatGateway

type NatGateway struct {

	// The date and time the NAT gateway was created.
	CreateTime *time.Time `locationName:"createTime" type:"timestamp"`

	// The date and time the NAT gateway was deleted, if applicable.
	DeleteTime *time.Time `locationName:"deleteTime" type:"timestamp"`

	// If the NAT gateway could not be created, specifies the error code for the
	// failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound
	// | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)
	FailureCode *string `locationName:"failureCode" type:"string"`

	// If the NAT gateway could not be created, specifies the error message for
	// the failure, that corresponds to the error code.
	//
	//    * For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free
	//    addresses to create this NAT gateway"
	//
	//    * For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway
	//    attached"
	//
	//    * For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx
	//    could not be associated with this NAT gateway"
	//
	//    * For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx
	//    is already associated"
	//
	//    * For InternalError: "Network interface eni-xxxxxxxx, created and used
	//    internally by this NAT gateway is in an invalid state. Please try again."
	//
	//    * For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx
	//    does not exist or could not be found."
	FailureMessage *string `locationName:"failureMessage" type:"string"`

	// Information about the IP addresses and network interface associated with
	// the NAT gateway.
	NatGatewayAddresses []NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"`

	// The ID of the NAT gateway.
	NatGatewayId *string `locationName:"natGatewayId" type:"string"`

	// Reserved. If you need to sustain traffic greater than the documented limits
	// (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html),
	// contact us through the Support Center (https://console.aws.amazon.com/support/home?).
	ProvisionedBandwidth *ProvisionedBandwidth `locationName:"provisionedBandwidth" type:"structure"`

	// The state of the NAT gateway.
	//
	//    * pending: The NAT gateway is being created and is not ready to process
	//    traffic.
	//
	//    * failed: The NAT gateway could not be created. Check the failureCode
	//    and failureMessage fields for the reason.
	//
	//    * available: The NAT gateway is able to process traffic. This status remains
	//    until you delete the NAT gateway, and does not indicate the health of
	//    the NAT gateway.
	//
	//    * deleting: The NAT gateway is in the process of being terminated and
	//    may still be processing traffic.
	//
	//    * deleted: The NAT gateway has been terminated and is no longer processing
	//    traffic.
	State NatGatewayState `locationName:"state" type:"string" enum:"true"`

	// The ID of the subnet in which the NAT gateway is located.
	SubnetId *string `locationName:"subnetId" type:"string"`

	// The tags for the NAT gateway.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VPC in which the NAT gateway is located.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a NAT gateway.

func (NatGateway) String

func (s NatGateway) String() string

String returns the string representation

type NatGatewayAddress

type NatGatewayAddress struct {

	// The allocation ID of the Elastic IP address that's associated with the NAT
	// gateway.
	AllocationId *string `locationName:"allocationId" type:"string"`

	// The ID of the network interface associated with the NAT gateway.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The private IP address associated with the Elastic IP address.
	PrivateIp *string `locationName:"privateIp" type:"string"`

	// The Elastic IP address associated with the NAT gateway.
	PublicIp *string `locationName:"publicIp" type:"string"`
	// contains filtered or unexported fields
}

Describes the IP addresses and network interface associated with a NAT gateway.

func (NatGatewayAddress) String

func (s NatGatewayAddress) String() string

String returns the string representation

type NatGatewayState

type NatGatewayState string
const (
	NatGatewayStatePending   NatGatewayState = "pending"
	NatGatewayStateFailed    NatGatewayState = "failed"
	NatGatewayStateAvailable NatGatewayState = "available"
	NatGatewayStateDeleting  NatGatewayState = "deleting"
	NatGatewayStateDeleted   NatGatewayState = "deleted"
)

Enum values for NatGatewayState

func (NatGatewayState) MarshalValue added in v0.3.0

func (enum NatGatewayState) MarshalValue() (string, error)

func (NatGatewayState) MarshalValueBuf added in v0.3.0

func (enum NatGatewayState) MarshalValueBuf(b []byte) ([]byte, error)

type NetworkAcl

type NetworkAcl struct {

	// Any associations between the network ACL and one or more subnets
	Associations []NetworkAclAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`

	// One or more entries (rules) in the network ACL.
	Entries []NetworkAclEntry `locationName:"entrySet" locationNameList:"item" type:"list"`

	// Indicates whether this is the default network ACL for the VPC.
	IsDefault *bool `locationName:"default" type:"boolean"`

	// The ID of the network ACL.
	NetworkAclId *string `locationName:"networkAclId" type:"string"`

	// The ID of the AWS account that owns the network ACL.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// Any tags assigned to the network ACL.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VPC for the network ACL.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a network ACL.

func (NetworkAcl) String

func (s NetworkAcl) String() string

String returns the string representation

type NetworkAclAssociation

type NetworkAclAssociation struct {

	// The ID of the association between a network ACL and a subnet.
	NetworkAclAssociationId *string `locationName:"networkAclAssociationId" type:"string"`

	// The ID of the network ACL.
	NetworkAclId *string `locationName:"networkAclId" type:"string"`

	// The ID of the subnet.
	SubnetId *string `locationName:"subnetId" type:"string"`
	// contains filtered or unexported fields
}

Describes an association between a network ACL and a subnet.

func (NetworkAclAssociation) String

func (s NetworkAclAssociation) String() string

String returns the string representation

type NetworkAclEntry

type NetworkAclEntry struct {

	// The IPv4 network range to allow or deny, in CIDR notation.
	CidrBlock *string `locationName:"cidrBlock" type:"string"`

	// Indicates whether the rule is an egress rule (applied to traffic leaving
	// the subnet).
	Egress *bool `locationName:"egress" type:"boolean"`

	// ICMP protocol: The ICMP type and code.
	IcmpTypeCode *IcmpTypeCode `locationName:"icmpTypeCode" type:"structure"`

	// The IPv6 network range to allow or deny, in CIDR notation.
	Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`

	// TCP or UDP protocols: The range of ports the rule applies to.
	PortRange *PortRange `locationName:"portRange" type:"structure"`

	// The protocol number. A value of "-1" means all protocols.
	Protocol *string `locationName:"protocol" type:"string"`

	// Indicates whether to allow or deny the traffic that matches the rule.
	RuleAction RuleAction `locationName:"ruleAction" type:"string" enum:"true"`

	// The rule number for the entry. ACL entries are processed in ascending order
	// by rule number.
	RuleNumber *int64 `locationName:"ruleNumber" type:"integer"`
	// contains filtered or unexported fields
}

Describes an entry in a network ACL.

func (NetworkAclEntry) String

func (s NetworkAclEntry) String() string

String returns the string representation

type NetworkInfo added in v0.18.0

type NetworkInfo struct {

	// Indicates whether Elastic Fabric Adapter (EFA) is supported.
	EfaSupported *bool `locationName:"efaSupported" type:"boolean"`

	// Indicates whether Elastic Network Adapter (ENA) is supported.
	EnaSupport EnaSupport `locationName:"enaSupport" type:"string" enum:"true"`

	// The maximum number of IPv4 addresses per network interface.
	Ipv4AddressesPerInterface *int64 `locationName:"ipv4AddressesPerInterface" type:"integer"`

	// The maximum number of IPv6 addresses per network interface.
	Ipv6AddressesPerInterface *int64 `locationName:"ipv6AddressesPerInterface" type:"integer"`

	// Indicates whether IPv6 is supported.
	Ipv6Supported *bool `locationName:"ipv6Supported" type:"boolean"`

	// The maximum number of network interfaces for the instance type.
	MaximumNetworkInterfaces *int64 `locationName:"maximumNetworkInterfaces" type:"integer"`

	// Describes the network performance.
	NetworkPerformance *string `locationName:"networkPerformance" type:"string"`
	// contains filtered or unexported fields
}

Describes the networking features of the instance type.

func (NetworkInfo) String added in v0.18.0

func (s NetworkInfo) String() string

String returns the string representation

type NetworkInterface

type NetworkInterface struct {

	// The association information for an Elastic IP address (IPv4) associated with
	// the network interface.
	Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`

	// The network interface attachment.
	Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`

	// The Availability Zone.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// A description.
	Description *string `locationName:"description" type:"string"`

	// Any security groups for the network interface.
	Groups []GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`

	// The type of network interface.
	InterfaceType NetworkInterfaceType `locationName:"interfaceType" type:"string" enum:"true"`

	// The IPv6 addresses associated with the network interface.
	Ipv6Addresses []NetworkInterfaceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`

	// The MAC address.
	MacAddress *string `locationName:"macAddress" type:"string"`

	// The ID of the network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The Amazon Resource Name (ARN) of the Outpost.
	OutpostArn *string `locationName:"outpostArn" type:"string"`

	// The AWS account ID of the owner of the network interface.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The private DNS name.
	PrivateDnsName *string `locationName:"privateDnsName" type:"string"`

	// The IPv4 address of the network interface within the subnet.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`

	// The private IPv4 addresses associated with the network interface.
	PrivateIpAddresses []NetworkInterfacePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`

	// The ID of the entity that launched the instance on your behalf (for example,
	// AWS Management Console or Auto Scaling).
	RequesterId *string `locationName:"requesterId" type:"string"`

	// Indicates whether the network interface is being managed by AWS.
	RequesterManaged *bool `locationName:"requesterManaged" type:"boolean"`

	// Indicates whether traffic to or from the instance is validated.
	SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`

	// The status of the network interface.
	Status NetworkInterfaceStatus `locationName:"status" type:"string" enum:"true"`

	// The ID of the subnet.
	SubnetId *string `locationName:"subnetId" type:"string"`

	// Any tags assigned to the network interface.
	TagSet []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a network interface.

func (NetworkInterface) String

func (s NetworkInterface) String() string

String returns the string representation

type NetworkInterfaceAssociation

type NetworkInterfaceAssociation struct {

	// The allocation ID.
	AllocationId *string `locationName:"allocationId" type:"string"`

	// The association ID.
	AssociationId *string `locationName:"associationId" type:"string"`

	// The ID of the Elastic IP address owner.
	IpOwnerId *string `locationName:"ipOwnerId" type:"string"`

	// The public DNS name.
	PublicDnsName *string `locationName:"publicDnsName" type:"string"`

	// The address of the Elastic IP address bound to the network interface.
	PublicIp *string `locationName:"publicIp" type:"string"`
	// contains filtered or unexported fields
}

Describes association information for an Elastic IP address (IPv4 only).

func (NetworkInterfaceAssociation) String

String returns the string representation

type NetworkInterfaceAttachment

type NetworkInterfaceAttachment struct {

	// The timestamp indicating when the attachment initiated.
	AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`

	// The ID of the network interface attachment.
	AttachmentId *string `locationName:"attachmentId" type:"string"`

	// Indicates whether the network interface is deleted when the instance is terminated.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`

	// The device index of the network interface attachment on the instance.
	DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The AWS account ID of the owner of the instance.
	InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`

	// The attachment state.
	Status AttachmentStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a network interface attachment.

func (NetworkInterfaceAttachment) String

String returns the string representation

type NetworkInterfaceAttachmentChanges

type NetworkInterfaceAttachmentChanges struct {

	// The ID of the network interface attachment.
	AttachmentId *string `locationName:"attachmentId" type:"string"`

	// Indicates whether the network interface is deleted when the instance is terminated.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
	// contains filtered or unexported fields
}

Describes an attachment change.

func (NetworkInterfaceAttachmentChanges) String

String returns the string representation

type NetworkInterfaceAttribute

type NetworkInterfaceAttribute string
const (
	NetworkInterfaceAttributeDescription     NetworkInterfaceAttribute = "description"
	NetworkInterfaceAttributeGroupSet        NetworkInterfaceAttribute = "groupSet"
	NetworkInterfaceAttributeSourceDestCheck NetworkInterfaceAttribute = "sourceDestCheck"
	NetworkInterfaceAttributeAttachment      NetworkInterfaceAttribute = "attachment"
)

Enum values for NetworkInterfaceAttribute

func (NetworkInterfaceAttribute) MarshalValue added in v0.3.0

func (enum NetworkInterfaceAttribute) MarshalValue() (string, error)

func (NetworkInterfaceAttribute) MarshalValueBuf added in v0.3.0

func (enum NetworkInterfaceAttribute) MarshalValueBuf(b []byte) ([]byte, error)

type NetworkInterfaceCreationType added in v0.9.0

type NetworkInterfaceCreationType string
const (
	NetworkInterfaceCreationTypeEfa NetworkInterfaceCreationType = "efa"
)

Enum values for NetworkInterfaceCreationType

func (NetworkInterfaceCreationType) MarshalValue added in v0.9.0

func (enum NetworkInterfaceCreationType) MarshalValue() (string, error)

func (NetworkInterfaceCreationType) MarshalValueBuf added in v0.9.0

func (enum NetworkInterfaceCreationType) MarshalValueBuf(b []byte) ([]byte, error)

type NetworkInterfaceIpv6Address

type NetworkInterfaceIpv6Address struct {

	// The IPv6 address.
	Ipv6Address *string `locationName:"ipv6Address" type:"string"`
	// contains filtered or unexported fields
}

Describes an IPv6 address associated with a network interface.

func (NetworkInterfaceIpv6Address) String

String returns the string representation

type NetworkInterfacePermission

type NetworkInterfacePermission struct {

	// The AWS account ID.
	AwsAccountId *string `locationName:"awsAccountId" type:"string"`

	// The AWS service.
	AwsService *string `locationName:"awsService" type:"string"`

	// The ID of the network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The ID of the network interface permission.
	NetworkInterfacePermissionId *string `locationName:"networkInterfacePermissionId" type:"string"`

	// The type of permission.
	Permission InterfacePermissionType `locationName:"permission" type:"string" enum:"true"`

	// Information about the state of the permission.
	PermissionState *NetworkInterfacePermissionState `locationName:"permissionState" type:"structure"`
	// contains filtered or unexported fields
}

Describes a permission for a network interface.

func (NetworkInterfacePermission) String

String returns the string representation

type NetworkInterfacePermissionState

type NetworkInterfacePermissionState struct {

	// The state of the permission.
	State NetworkInterfacePermissionStateCode `locationName:"state" type:"string" enum:"true"`

	// A status message, if applicable.
	StatusMessage *string `locationName:"statusMessage" type:"string"`
	// contains filtered or unexported fields
}

Describes the state of a network interface permission.

func (NetworkInterfacePermissionState) String

String returns the string representation

type NetworkInterfacePermissionStateCode

type NetworkInterfacePermissionStateCode string
const (
	NetworkInterfacePermissionStateCodePending  NetworkInterfacePermissionStateCode = "pending"
	NetworkInterfacePermissionStateCodeGranted  NetworkInterfacePermissionStateCode = "granted"
	NetworkInterfacePermissionStateCodeRevoking NetworkInterfacePermissionStateCode = "revoking"
	NetworkInterfacePermissionStateCodeRevoked  NetworkInterfacePermissionStateCode = "revoked"
)

Enum values for NetworkInterfacePermissionStateCode

func (NetworkInterfacePermissionStateCode) MarshalValue added in v0.3.0

func (enum NetworkInterfacePermissionStateCode) MarshalValue() (string, error)

func (NetworkInterfacePermissionStateCode) MarshalValueBuf added in v0.3.0

func (enum NetworkInterfacePermissionStateCode) MarshalValueBuf(b []byte) ([]byte, error)

type NetworkInterfacePrivateIpAddress

type NetworkInterfacePrivateIpAddress struct {

	// The association information for an Elastic IP address (IPv4) associated with
	// the network interface.
	Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`

	// Indicates whether this IPv4 address is the primary private IPv4 address of
	// the network interface.
	Primary *bool `locationName:"primary" type:"boolean"`

	// The private DNS name.
	PrivateDnsName *string `locationName:"privateDnsName" type:"string"`

	// The private IPv4 address.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
	// contains filtered or unexported fields
}

Describes the private IPv4 address of a network interface.

func (NetworkInterfacePrivateIpAddress) String

String returns the string representation

type NetworkInterfaceStatus

type NetworkInterfaceStatus string
const (
	NetworkInterfaceStatusAvailable  NetworkInterfaceStatus = "available"
	NetworkInterfaceStatusAssociated NetworkInterfaceStatus = "associated"
	NetworkInterfaceStatusAttaching  NetworkInterfaceStatus = "attaching"
	NetworkInterfaceStatusInUse      NetworkInterfaceStatus = "in-use"
	NetworkInterfaceStatusDetaching  NetworkInterfaceStatus = "detaching"
)

Enum values for NetworkInterfaceStatus

func (NetworkInterfaceStatus) MarshalValue added in v0.3.0

func (enum NetworkInterfaceStatus) MarshalValue() (string, error)

func (NetworkInterfaceStatus) MarshalValueBuf added in v0.3.0

func (enum NetworkInterfaceStatus) MarshalValueBuf(b []byte) ([]byte, error)

type NetworkInterfaceType

type NetworkInterfaceType string
const (
	NetworkInterfaceTypeInterface  NetworkInterfaceType = "interface"
	NetworkInterfaceTypeNatGateway NetworkInterfaceType = "natGateway"
	NetworkInterfaceTypeEfa        NetworkInterfaceType = "efa"
)

Enum values for NetworkInterfaceType

func (NetworkInterfaceType) MarshalValue added in v0.3.0

func (enum NetworkInterfaceType) MarshalValue() (string, error)

func (NetworkInterfaceType) MarshalValueBuf added in v0.3.0

func (enum NetworkInterfaceType) MarshalValueBuf(b []byte) ([]byte, error)

type NewDhcpConfiguration

type NewDhcpConfiguration struct {
	Key *string `locationName:"key" type:"string"`

	Values []string `locationName:"Value" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (NewDhcpConfiguration) String

func (s NewDhcpConfiguration) String() string

String returns the string representation

type OfferingClassType

type OfferingClassType string
const (
	OfferingClassTypeStandard    OfferingClassType = "standard"
	OfferingClassTypeConvertible OfferingClassType = "convertible"
)

Enum values for OfferingClassType

func (OfferingClassType) MarshalValue added in v0.3.0

func (enum OfferingClassType) MarshalValue() (string, error)

func (OfferingClassType) MarshalValueBuf added in v0.3.0

func (enum OfferingClassType) MarshalValueBuf(b []byte) ([]byte, error)

type OfferingTypeValues

type OfferingTypeValues string
const (
	OfferingTypeValuesHeavyUtilization  OfferingTypeValues = "Heavy Utilization"
	OfferingTypeValuesMediumUtilization OfferingTypeValues = "Medium Utilization"
	OfferingTypeValuesLightUtilization  OfferingTypeValues = "Light Utilization"
	OfferingTypeValuesNoUpfront         OfferingTypeValues = "No Upfront"
	OfferingTypeValuesPartialUpfront    OfferingTypeValues = "Partial Upfront"
	OfferingTypeValuesAllUpfront        OfferingTypeValues = "All Upfront"
)

Enum values for OfferingTypeValues

func (OfferingTypeValues) MarshalValue added in v0.3.0

func (enum OfferingTypeValues) MarshalValue() (string, error)

func (OfferingTypeValues) MarshalValueBuf added in v0.3.0

func (enum OfferingTypeValues) MarshalValueBuf(b []byte) ([]byte, error)

type OnDemandAllocationStrategy added in v0.5.0

type OnDemandAllocationStrategy string
const (
	OnDemandAllocationStrategyLowestPrice OnDemandAllocationStrategy = "lowestPrice"
	OnDemandAllocationStrategyPrioritized OnDemandAllocationStrategy = "prioritized"
)

Enum values for OnDemandAllocationStrategy

func (OnDemandAllocationStrategy) MarshalValue added in v0.5.0

func (enum OnDemandAllocationStrategy) MarshalValue() (string, error)

func (OnDemandAllocationStrategy) MarshalValueBuf added in v0.5.0

func (enum OnDemandAllocationStrategy) MarshalValueBuf(b []byte) ([]byte, error)

type OnDemandOptions added in v0.5.0

type OnDemandOptions struct {

	// The order of the launch template overrides to use in fulfilling On-Demand
	// capacity. If you specify lowest-price, EC2 Fleet uses price to determine
	// the order, launching the lowest price first. If you specify prioritized,
	// EC2 Fleet uses the priority that you assigned to each launch template override,
	// launching the highest priority first. If you do not specify a value, EC2
	// Fleet defaults to lowest-price.
	AllocationStrategy FleetOnDemandAllocationStrategy `locationName:"allocationStrategy" type:"string" enum:"true"`

	// The strategy for using unused Capacity Reservations for fulfilling On-Demand
	// capacity. Supported only for fleets of type instant.
	CapacityReservationOptions *CapacityReservationOptions `locationName:"capacityReservationOptions" type:"structure"`

	// The maximum amount per hour for On-Demand Instances that you're willing to
	// pay.
	MaxTotalPrice *string `locationName:"maxTotalPrice" type:"string"`

	// The minimum target capacity for On-Demand Instances in the fleet. If the
	// minimum target capacity is not reached, the fleet launches no instances.
	MinTargetCapacity *int64 `locationName:"minTargetCapacity" type:"integer"`

	// Indicates that the fleet launches all On-Demand Instances into a single Availability
	// Zone. Supported only for fleets of type instant.
	SingleAvailabilityZone *bool `locationName:"singleAvailabilityZone" type:"boolean"`

	// Indicates that the fleet uses a single instance type to launch all On-Demand
	// Instances in the fleet. Supported only for fleets of type instant.
	SingleInstanceType *bool `locationName:"singleInstanceType" type:"boolean"`
	// contains filtered or unexported fields
}

Describes the configuration of On-Demand Instances in an EC2 Fleet.

func (OnDemandOptions) String added in v0.5.0

func (s OnDemandOptions) String() string

String returns the string representation

type OnDemandOptionsRequest added in v0.5.0

type OnDemandOptionsRequest struct {

	// The order of the launch template overrides to use in fulfilling On-Demand
	// capacity. If you specify lowest-price, EC2 Fleet uses price to determine
	// the order, launching the lowest price first. If you specify prioritized,
	// EC2 Fleet uses the priority that you assigned to each launch template override,
	// launching the highest priority first. If you do not specify a value, EC2
	// Fleet defaults to lowest-price.
	AllocationStrategy FleetOnDemandAllocationStrategy `type:"string" enum:"true"`

	// The strategy for using unused Capacity Reservations for fulfilling On-Demand
	// capacity. Supported only for fleets of type instant.
	CapacityReservationOptions *CapacityReservationOptionsRequest `type:"structure"`

	// The maximum amount per hour for On-Demand Instances that you're willing to
	// pay.
	MaxTotalPrice *string `type:"string"`

	// The minimum target capacity for On-Demand Instances in the fleet. If the
	// minimum target capacity is not reached, the fleet launches no instances.
	MinTargetCapacity *int64 `type:"integer"`

	// Indicates that the fleet launches all On-Demand Instances into a single Availability
	// Zone. Supported only for fleets of type instant.
	SingleAvailabilityZone *bool `type:"boolean"`

	// Indicates that the fleet uses a single instance type to launch all On-Demand
	// Instances in the fleet. Supported only for fleets of type instant.
	SingleInstanceType *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Describes the configuration of On-Demand Instances in an EC2 Fleet.

func (OnDemandOptionsRequest) String added in v0.5.0

func (s OnDemandOptionsRequest) String() string

String returns the string representation

type OperationType

type OperationType string
const (
	OperationTypeAdd    OperationType = "add"
	OperationTypeRemove OperationType = "remove"
)

Enum values for OperationType

func (OperationType) MarshalValue added in v0.3.0

func (enum OperationType) MarshalValue() (string, error)

func (OperationType) MarshalValueBuf added in v0.3.0

func (enum OperationType) MarshalValueBuf(b []byte) ([]byte, error)

type PaymentOption

type PaymentOption string
const (
	PaymentOptionAllUpfront     PaymentOption = "AllUpfront"
	PaymentOptionPartialUpfront PaymentOption = "PartialUpfront"
	PaymentOptionNoUpfront      PaymentOption = "NoUpfront"
)

Enum values for PaymentOption

func (PaymentOption) MarshalValue added in v0.3.0

func (enum PaymentOption) MarshalValue() (string, error)

func (PaymentOption) MarshalValueBuf added in v0.3.0

func (enum PaymentOption) MarshalValueBuf(b []byte) ([]byte, error)

type PciId

type PciId struct {

	// The ID of the device.
	DeviceId *string `type:"string"`

	// The ID of the subsystem.
	SubsystemId *string `type:"string"`

	// The ID of the vendor for the subsystem.
	SubsystemVendorId *string `type:"string"`

	// The ID of the vendor.
	VendorId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the data that identifies an Amazon FPGA image (AFI) on the PCI bus.

func (PciId) String

func (s PciId) String() string

String returns the string representation

type PeeringAttachmentStatus added in v0.18.0

type PeeringAttachmentStatus struct {

	// The status code.
	Code *string `locationName:"code" type:"string"`

	// The status message, if applicable.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

The status of the transit gateway peering attachment.

func (PeeringAttachmentStatus) String added in v0.18.0

func (s PeeringAttachmentStatus) String() string

String returns the string representation

type PeeringConnectionOptions

type PeeringConnectionOptions struct {

	// If true, the public DNS hostnames of instances in the specified VPC resolve
	// to private IP addresses when queried from instances in the peer VPC.
	AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`

	// If true, enables outbound communication from an EC2-Classic instance that's
	// linked to a local VPC using ClassicLink to instances in a peer VPC.
	AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`

	// If true, enables outbound communication from instances in a local VPC to
	// an EC2-Classic instance that's linked to a peer VPC using ClassicLink.
	AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
	// contains filtered or unexported fields
}

Describes the VPC peering connection options.

func (PeeringConnectionOptions) String

func (s PeeringConnectionOptions) String() string

String returns the string representation

type PeeringConnectionOptionsRequest

type PeeringConnectionOptionsRequest struct {

	// If true, enables a local VPC to resolve public DNS hostnames to private IP
	// addresses when queried from instances in the peer VPC.
	AllowDnsResolutionFromRemoteVpc *bool `type:"boolean"`

	// If true, enables outbound communication from an EC2-Classic instance that's
	// linked to a local VPC using ClassicLink to instances in a peer VPC.
	AllowEgressFromLocalClassicLinkToRemoteVpc *bool `type:"boolean"`

	// If true, enables outbound communication from instances in a local VPC to
	// an EC2-Classic instance that's linked to a peer VPC using ClassicLink.
	AllowEgressFromLocalVpcToRemoteClassicLink *bool `type:"boolean"`
	// contains filtered or unexported fields
}

The VPC peering connection options.

func (PeeringConnectionOptionsRequest) String

String returns the string representation

type PeeringTgwInfo added in v0.18.0

type PeeringTgwInfo struct {

	// The AWS account ID of the owner of the transit gateway.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The Region of the transit gateway.
	Region *string `locationName:"region" type:"string"`

	// The ID of the transit gateway.
	TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
	// contains filtered or unexported fields
}

Information about the transit gateway in the peering attachment.

func (PeeringTgwInfo) String added in v0.18.0

func (s PeeringTgwInfo) String() string

String returns the string representation

type PermissionGroup

type PermissionGroup string
const (
	PermissionGroupAll PermissionGroup = "all"
)

Enum values for PermissionGroup

func (PermissionGroup) MarshalValue added in v0.3.0

func (enum PermissionGroup) MarshalValue() (string, error)

func (PermissionGroup) MarshalValueBuf added in v0.3.0

func (enum PermissionGroup) MarshalValueBuf(b []byte) ([]byte, error)

type Phase1DHGroupNumbersListValue added in v0.12.0

type Phase1DHGroupNumbersListValue struct {

	// The Diffie-Hellmann group number.
	Value *int64 `locationName:"value" type:"integer"`
	// contains filtered or unexported fields
}

The Diffie-Hellmann group number for phase 1 IKE negotiations.

func (Phase1DHGroupNumbersListValue) String added in v0.12.0

String returns the string representation

type Phase1DHGroupNumbersRequestListValue added in v0.12.0

type Phase1DHGroupNumbersRequestListValue struct {

	// The Diffie-Hellmann group number.
	Value *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Specifies a Diffie-Hellman group number for the VPN tunnel for phase 1 IKE negotiations.

func (Phase1DHGroupNumbersRequestListValue) String added in v0.12.0

String returns the string representation

type Phase1EncryptionAlgorithmsListValue added in v0.12.0

type Phase1EncryptionAlgorithmsListValue struct {

	// The value for the encryption algorithm.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

The encryption algorithm for phase 1 IKE negotiations.

func (Phase1EncryptionAlgorithmsListValue) String added in v0.12.0

String returns the string representation

type Phase1EncryptionAlgorithmsRequestListValue added in v0.12.0

type Phase1EncryptionAlgorithmsRequestListValue struct {

	// The value for the encryption algorithm.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Specifies the encryption algorithm for the VPN tunnel for phase 1 IKE negotiations.

func (Phase1EncryptionAlgorithmsRequestListValue) String added in v0.12.0

String returns the string representation

type Phase1IntegrityAlgorithmsListValue added in v0.12.0

type Phase1IntegrityAlgorithmsListValue struct {

	// The value for the integrity algorithm.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

The integrity algorithm for phase 1 IKE negotiations.

func (Phase1IntegrityAlgorithmsListValue) String added in v0.12.0

String returns the string representation

type Phase1IntegrityAlgorithmsRequestListValue added in v0.12.0

type Phase1IntegrityAlgorithmsRequestListValue struct {

	// The value for the integrity algorithm.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Specifies the integrity algorithm for the VPN tunnel for phase 1 IKE negotiations.

func (Phase1IntegrityAlgorithmsRequestListValue) String added in v0.12.0

String returns the string representation

type Phase2DHGroupNumbersListValue added in v0.12.0

type Phase2DHGroupNumbersListValue struct {

	// The Diffie-Hellmann group number.
	Value *int64 `locationName:"value" type:"integer"`
	// contains filtered or unexported fields
}

The Diffie-Hellmann group number for phase 2 IKE negotiations.

func (Phase2DHGroupNumbersListValue) String added in v0.12.0

String returns the string representation

type Phase2DHGroupNumbersRequestListValue added in v0.12.0

type Phase2DHGroupNumbersRequestListValue struct {

	// The Diffie-Hellmann group number.
	Value *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Specifies a Diffie-Hellman group number for the VPN tunnel for phase 2 IKE negotiations.

func (Phase2DHGroupNumbersRequestListValue) String added in v0.12.0

String returns the string representation

type Phase2EncryptionAlgorithmsListValue added in v0.12.0

type Phase2EncryptionAlgorithmsListValue struct {

	// The encryption algorithm.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

The encryption algorithm for phase 2 IKE negotiations.

func (Phase2EncryptionAlgorithmsListValue) String added in v0.12.0

String returns the string representation

type Phase2EncryptionAlgorithmsRequestListValue added in v0.12.0

type Phase2EncryptionAlgorithmsRequestListValue struct {

	// The encryption algorithm.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Specifies the encryption algorithm for the VPN tunnel for phase 2 IKE negotiations.

func (Phase2EncryptionAlgorithmsRequestListValue) String added in v0.12.0

String returns the string representation

type Phase2IntegrityAlgorithmsListValue added in v0.12.0

type Phase2IntegrityAlgorithmsListValue struct {

	// The integrity algorithm.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

The integrity algorithm for phase 2 IKE negotiations.

func (Phase2IntegrityAlgorithmsListValue) String added in v0.12.0

String returns the string representation

type Phase2IntegrityAlgorithmsRequestListValue added in v0.12.0

type Phase2IntegrityAlgorithmsRequestListValue struct {

	// The integrity algorithm.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Specifies the integrity algorithm for the VPN tunnel for phase 2 IKE negotiations.

func (Phase2IntegrityAlgorithmsRequestListValue) String added in v0.12.0

String returns the string representation

type Placement

type Placement struct {

	// The affinity setting for the instance on the Dedicated Host. This parameter
	// is not supported for the ImportInstance (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html)
	// command.
	//
	// This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
	Affinity *string `locationName:"affinity" type:"string"`

	// The Availability Zone of the instance.
	//
	// If not specified, an Availability Zone will be automatically chosen for you
	// based on the load balancing criteria for the Region.
	//
	// This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The name of the placement group the instance is in.
	GroupName *string `locationName:"groupName" type:"string"`

	// The ID of the Dedicated Host on which the instance resides. This parameter
	// is not supported for the ImportInstance (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html)
	// command.
	//
	// This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
	HostId *string `locationName:"hostId" type:"string"`

	// The ARN of the host resource group in which to launch the instances. If you
	// specify a host resource group ARN, omit the Tenancy parameter or set it to
	// host.
	//
	// This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
	HostResourceGroupArn *string `locationName:"hostResourceGroupArn" type:"string"`

	// The number of the partition the instance is in. Valid only if the placement
	// group strategy is set to partition.
	//
	// This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
	PartitionNumber *int64 `locationName:"partitionNumber" type:"integer"`

	// Reserved for future use.
	//
	// This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
	SpreadDomain *string `locationName:"spreadDomain" type:"string"`

	// The tenancy of the instance (if the instance is running in a VPC). An instance
	// with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
	// is not supported for the ImportInstance (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html)
	// command.
	//
	// This parameter is not supported by CreateFleet (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet).
	Tenancy Tenancy `locationName:"tenancy" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the placement of an instance.

func (Placement) String

func (s Placement) String() string

String returns the string representation

type PlacementGroup

type PlacementGroup struct {

	// The ID of the placement group.
	GroupId *string `locationName:"groupId" type:"string"`

	// The name of the placement group.
	GroupName *string `locationName:"groupName" type:"string"`

	// The number of partitions. Valid only if strategy is set to partition.
	PartitionCount *int64 `locationName:"partitionCount" type:"integer"`

	// The state of the placement group.
	State PlacementGroupState `locationName:"state" type:"string" enum:"true"`

	// The placement strategy.
	Strategy PlacementStrategy `locationName:"strategy" type:"string" enum:"true"`

	// Any tags applied to the placement group.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a placement group.

func (PlacementGroup) String

func (s PlacementGroup) String() string

String returns the string representation

type PlacementGroupInfo added in v0.18.0

type PlacementGroupInfo struct {

	// A list of supported placement groups types.
	SupportedStrategies []PlacementGroupStrategy `locationName:"supportedStrategies" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes the placement group support of the instance type.

func (PlacementGroupInfo) String added in v0.18.0

func (s PlacementGroupInfo) String() string

String returns the string representation

type PlacementGroupState

type PlacementGroupState string
const (
	PlacementGroupStatePending   PlacementGroupState = "pending"
	PlacementGroupStateAvailable PlacementGroupState = "available"
	PlacementGroupStateDeleting  PlacementGroupState = "deleting"
	PlacementGroupStateDeleted   PlacementGroupState = "deleted"
)

Enum values for PlacementGroupState

func (PlacementGroupState) MarshalValue added in v0.3.0

func (enum PlacementGroupState) MarshalValue() (string, error)

func (PlacementGroupState) MarshalValueBuf added in v0.3.0

func (enum PlacementGroupState) MarshalValueBuf(b []byte) ([]byte, error)

type PlacementGroupStrategy added in v0.18.0

type PlacementGroupStrategy string
const (
	PlacementGroupStrategyCluster   PlacementGroupStrategy = "cluster"
	PlacementGroupStrategyPartition PlacementGroupStrategy = "partition"
	PlacementGroupStrategySpread    PlacementGroupStrategy = "spread"
)

Enum values for PlacementGroupStrategy

func (PlacementGroupStrategy) MarshalValue added in v0.18.0

func (enum PlacementGroupStrategy) MarshalValue() (string, error)

func (PlacementGroupStrategy) MarshalValueBuf added in v0.18.0

func (enum PlacementGroupStrategy) MarshalValueBuf(b []byte) ([]byte, error)

type PlacementResponse added in v0.6.0

type PlacementResponse struct {

	// The name of the placement group that the instance is in.
	GroupName *string `locationName:"groupName" type:"string"`
	// contains filtered or unexported fields
}

Describes the placement of an instance.

func (PlacementResponse) String added in v0.6.0

func (s PlacementResponse) String() string

String returns the string representation

type PlacementStrategy

type PlacementStrategy string
const (
	PlacementStrategyCluster   PlacementStrategy = "cluster"
	PlacementStrategySpread    PlacementStrategy = "spread"
	PlacementStrategyPartition PlacementStrategy = "partition"
)

Enum values for PlacementStrategy

func (PlacementStrategy) MarshalValue added in v0.3.0

func (enum PlacementStrategy) MarshalValue() (string, error)

func (PlacementStrategy) MarshalValueBuf added in v0.3.0

func (enum PlacementStrategy) MarshalValueBuf(b []byte) ([]byte, error)

type PlatformValues

type PlatformValues string
const (
	PlatformValuesWindows PlatformValues = "Windows"
)

Enum values for PlatformValues

func (PlatformValues) MarshalValue added in v0.3.0

func (enum PlatformValues) MarshalValue() (string, error)

func (PlatformValues) MarshalValueBuf added in v0.3.0

func (enum PlatformValues) MarshalValueBuf(b []byte) ([]byte, error)

type PoolCidrBlock added in v0.19.0

type PoolCidrBlock struct {

	// The CIDR block.
	Cidr *string `locationName:"poolCidrBlock" type:"string"`
	// contains filtered or unexported fields
}

Describes a CIDR block for an address pool.

func (PoolCidrBlock) String added in v0.19.0

func (s PoolCidrBlock) String() string

String returns the string representation

type PortRange

type PortRange struct {

	// The first port in the range.
	From *int64 `locationName:"from" type:"integer"`

	// The last port in the range.
	To *int64 `locationName:"to" type:"integer"`
	// contains filtered or unexported fields
}

Describes a range of ports.

func (PortRange) String

func (s PortRange) String() string

String returns the string representation

type PrefixList

type PrefixList struct {

	// The IP address range of the AWS service.
	Cidrs []string `locationName:"cidrSet" locationNameList:"item" type:"list"`

	// The ID of the prefix.
	PrefixListId *string `locationName:"prefixListId" type:"string"`

	// The name of the prefix.
	PrefixListName *string `locationName:"prefixListName" type:"string"`
	// contains filtered or unexported fields
}

Describes prefixes for AWS services.

func (PrefixList) String

func (s PrefixList) String() string

String returns the string representation

type PrefixListAssociation added in v0.24.0

type PrefixListAssociation struct {

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The owner of the resource.
	ResourceOwner *string `locationName:"resourceOwner" type:"string"`
	// contains filtered or unexported fields
}

Describes the resource with which a prefix list is associated.

func (PrefixListAssociation) String added in v0.24.0

func (s PrefixListAssociation) String() string

String returns the string representation

type PrefixListEntry added in v0.24.0

type PrefixListEntry struct {

	// The CIDR block.
	Cidr *string `locationName:"cidr" type:"string"`

	// The description.
	Description *string `locationName:"description" type:"string"`
	// contains filtered or unexported fields
}

Describes a prefix list entry.

func (PrefixListEntry) String added in v0.24.0

func (s PrefixListEntry) String() string

String returns the string representation

type PrefixListId

type PrefixListId struct {

	// A description for the security group rule that references this prefix list
	// ID.
	//
	// Constraints: Up to 255 characters in length. Allowed characters are a-z,
	// A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
	Description *string `locationName:"description" type:"string"`

	// The ID of the prefix.
	PrefixListId *string `locationName:"prefixListId" type:"string"`
	// contains filtered or unexported fields
}

Describes a prefix list ID.

func (PrefixListId) String

func (s PrefixListId) String() string

String returns the string representation

type PrefixListState added in v0.24.0

type PrefixListState string
const (
	PrefixListStateCreateInProgress  PrefixListState = "create-in-progress"
	PrefixListStateCreateComplete    PrefixListState = "create-complete"
	PrefixListStateCreateFailed      PrefixListState = "create-failed"
	PrefixListStateModifyInProgress  PrefixListState = "modify-in-progress"
	PrefixListStateModifyComplete    PrefixListState = "modify-complete"
	PrefixListStateModifyFailed      PrefixListState = "modify-failed"
	PrefixListStateRestoreInProgress PrefixListState = "restore-in-progress"
	PrefixListStateRestoreComplete   PrefixListState = "restore-complete"
	PrefixListStateRestoreFailed     PrefixListState = "restore-failed"
	PrefixListStateDeleteInProgress  PrefixListState = "delete-in-progress"
	PrefixListStateDeleteComplete    PrefixListState = "delete-complete"
	PrefixListStateDeleteFailed      PrefixListState = "delete-failed"
)

Enum values for PrefixListState

func (PrefixListState) MarshalValue added in v0.24.0

func (enum PrefixListState) MarshalValue() (string, error)

func (PrefixListState) MarshalValueBuf added in v0.24.0

func (enum PrefixListState) MarshalValueBuf(b []byte) ([]byte, error)

type PriceSchedule

type PriceSchedule struct {

	// The current price schedule, as determined by the term remaining for the Reserved
	// Instance in the listing.
	//
	// A specific price schedule is always in effect, but only one price schedule
	// can be active at any time. Take, for example, a Reserved Instance listing
	// that has five months remaining in its term. When you specify price schedules
	// for five months and two months, this means that schedule 1, covering the
	// first three months of the remaining term, will be active during months 5,
	// 4, and 3. Then schedule 2, covering the last two months of the term, will
	// be active for months 2 and 1.
	Active *bool `locationName:"active" type:"boolean"`

	// The currency for transacting the Reserved Instance resale. At this time,
	// the only supported currency is USD.
	CurrencyCode CurrencyCodeValues `locationName:"currencyCode" type:"string" enum:"true"`

	// The fixed price for the term.
	Price *float64 `locationName:"price" type:"double"`

	// The number of months remaining in the reservation. For example, 2 is the
	// second to the last month before the capacity reservation expires.
	Term *int64 `locationName:"term" type:"long"`
	// contains filtered or unexported fields
}

Describes the price for a Reserved Instance.

func (PriceSchedule) String

func (s PriceSchedule) String() string

String returns the string representation

type PriceScheduleSpecification

type PriceScheduleSpecification struct {

	// The currency for transacting the Reserved Instance resale. At this time,
	// the only supported currency is USD.
	CurrencyCode CurrencyCodeValues `locationName:"currencyCode" type:"string" enum:"true"`

	// The fixed price for the term.
	Price *float64 `locationName:"price" type:"double"`

	// The number of months remaining in the reservation. For example, 2 is the
	// second to the last month before the capacity reservation expires.
	Term *int64 `locationName:"term" type:"long"`
	// contains filtered or unexported fields
}

Describes the price for a Reserved Instance.

func (PriceScheduleSpecification) String

String returns the string representation

type PricingDetail

type PricingDetail struct {

	// The number of reservations available for the price.
	Count *int64 `locationName:"count" type:"integer"`

	// The price per instance.
	Price *float64 `locationName:"price" type:"double"`
	// contains filtered or unexported fields
}

Describes a Reserved Instance offering.

func (PricingDetail) String

func (s PricingDetail) String() string

String returns the string representation

type PrincipalIdFormat added in v0.3.0

type PrincipalIdFormat struct {

	// PrincipalIdFormatARN description
	Arn *string `locationName:"arn" type:"string"`

	// PrincipalIdFormatStatuses description
	Statuses []IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

PrincipalIdFormat description

func (PrincipalIdFormat) String added in v0.3.0

func (s PrincipalIdFormat) String() string

String returns the string representation

type PrincipalType added in v0.2.0

type PrincipalType string
const (
	PrincipalTypeAll              PrincipalType = "All"
	PrincipalTypeService          PrincipalType = "Service"
	PrincipalTypeOrganizationUnit PrincipalType = "OrganizationUnit"
	PrincipalTypeAccount          PrincipalType = "Account"
	PrincipalTypeUser             PrincipalType = "User"
	PrincipalTypeRole             PrincipalType = "Role"
)

Enum values for PrincipalType

func (PrincipalType) MarshalValue added in v0.3.0

func (enum PrincipalType) MarshalValue() (string, error)

func (PrincipalType) MarshalValueBuf added in v0.3.0

func (enum PrincipalType) MarshalValueBuf(b []byte) ([]byte, error)

type PrivateDnsNameConfiguration added in v0.19.0

type PrivateDnsNameConfiguration struct {

	// The name of the record subdomain the service provider needs to create. The
	// service provider adds the value text to the name.
	Name *string `locationName:"name" type:"string"`

	// The verification state of the VPC endpoint service.
	//
	// >Consumers of the endpoint service can use the private name only when the
	// state is verified.
	State DnsNameState `locationName:"state" type:"string" enum:"true"`

	// The endpoint service verification type, for example TXT.
	Type *string `locationName:"type" type:"string"`

	// The value the service provider adds to the private DNS name domain record
	// before verification.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

Information about the private DNS name for the service endpoint. For more information about these parameters, see VPC Endpoint Service Private DNS Name Verification (https://docs.aws.amazon.com/vpc/latest/userguide/ndpoint-services-dns-validation.html) in the Amazon Virtual Private Cloud User Guide.

func (PrivateDnsNameConfiguration) String added in v0.19.0

String returns the string representation

type PrivateIpAddressSpecification

type PrivateIpAddressSpecification struct {

	// Indicates whether the private IPv4 address is the primary private IPv4 address.
	// Only one IPv4 address can be designated as primary.
	Primary *bool `locationName:"primary" type:"boolean"`

	// The private IPv4 addresses.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
	// contains filtered or unexported fields
}

Describes a secondary private IPv4 address for a network interface.

func (PrivateIpAddressSpecification) String

String returns the string representation

type ProcessorInfo added in v0.18.0

type ProcessorInfo struct {

	// A list of architectures supported by the instance type.
	SupportedArchitectures []ArchitectureType `locationName:"supportedArchitectures" locationNameList:"item" type:"list"`

	// The speed of the processor, in GHz.
	SustainedClockSpeedInGhz *float64 `locationName:"sustainedClockSpeedInGhz" type:"double"`
	// contains filtered or unexported fields
}

Describes the processor used by the instance type.

func (ProcessorInfo) String added in v0.18.0

func (s ProcessorInfo) String() string

String returns the string representation

type ProductCode

type ProductCode struct {

	// The product code.
	ProductCodeId *string `locationName:"productCode" type:"string"`

	// The type of product code.
	ProductCodeType ProductCodeValues `locationName:"type" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a product code.

func (ProductCode) String

func (s ProductCode) String() string

String returns the string representation

type ProductCodeValues

type ProductCodeValues string
const (
	ProductCodeValuesDevpay      ProductCodeValues = "devpay"
	ProductCodeValuesMarketplace ProductCodeValues = "marketplace"
)

Enum values for ProductCodeValues

func (ProductCodeValues) MarshalValue added in v0.3.0

func (enum ProductCodeValues) MarshalValue() (string, error)

func (ProductCodeValues) MarshalValueBuf added in v0.3.0

func (enum ProductCodeValues) MarshalValueBuf(b []byte) ([]byte, error)

type PropagatingVgw

type PropagatingVgw struct {

	// The ID of the virtual private gateway.
	GatewayId *string `locationName:"gatewayId" type:"string"`
	// contains filtered or unexported fields
}

Describes a virtual private gateway propagating route.

func (PropagatingVgw) String

func (s PropagatingVgw) String() string

String returns the string representation

type ProvisionByoipCidrInput added in v0.6.0

type ProvisionByoipCidrInput struct {

	// The public IPv4 or IPv6 address range, in CIDR notation. The most specific
	// IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you
	// can specify is /56. The address range cannot overlap with another address
	// range that you've brought to this or another Region.
	//
	// Cidr is a required field
	Cidr *string `type:"string" required:"true"`

	// A signed document that proves that you are authorized to bring the specified
	// IP address range to Amazon using BYOIP.
	CidrAuthorizationContext *CidrAuthorizationContext `type:"structure"`

	// A description for the address range and the address pool.
	Description *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The tags to apply to the address pool.
	PoolTagSpecifications []TagSpecification `locationName:"PoolTagSpecification" locationNameList:"item" type:"list"`

	// (IPv6 only) Indicate whether the address range will be publicly advertised
	// to the internet.
	//
	// Default: true
	PubliclyAdvertisable *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (ProvisionByoipCidrInput) String added in v0.6.0

func (s ProvisionByoipCidrInput) String() string

String returns the string representation

func (*ProvisionByoipCidrInput) Validate added in v0.6.0

func (s *ProvisionByoipCidrInput) Validate() error

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

type ProvisionByoipCidrOutput added in v0.6.0

type ProvisionByoipCidrOutput struct {

	// Information about the address range.
	ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
	// contains filtered or unexported fields
}

func (ProvisionByoipCidrOutput) String added in v0.6.0

func (s ProvisionByoipCidrOutput) String() string

String returns the string representation

type ProvisionByoipCidrRequest added in v0.6.0

type ProvisionByoipCidrRequest struct {
	*aws.Request
	Input *ProvisionByoipCidrInput
	Copy  func(*ProvisionByoipCidrInput) ProvisionByoipCidrRequest
}

ProvisionByoipCidrRequest is the request type for the ProvisionByoipCidr API operation.

func (ProvisionByoipCidrRequest) Send added in v0.6.0

Send marshals and sends the ProvisionByoipCidr API request.

type ProvisionByoipCidrResponse added in v0.9.0

type ProvisionByoipCidrResponse struct {
	*ProvisionByoipCidrOutput
	// contains filtered or unexported fields
}

ProvisionByoipCidrResponse is the response type for the ProvisionByoipCidr API operation.

func (*ProvisionByoipCidrResponse) SDKResponseMetdata added in v0.9.0

func (r *ProvisionByoipCidrResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ProvisionByoipCidr request.

type ProvisionedBandwidth

type ProvisionedBandwidth struct {

	// Reserved. If you need to sustain traffic greater than the documented limits
	// (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html),
	// contact us through the Support Center (https://console.aws.amazon.com/support/home?).
	ProvisionTime *time.Time `locationName:"provisionTime" type:"timestamp"`

	// Reserved. If you need to sustain traffic greater than the documented limits
	// (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html),
	// contact us through the Support Center (https://console.aws.amazon.com/support/home?).
	Provisioned *string `locationName:"provisioned" type:"string"`

	// Reserved. If you need to sustain traffic greater than the documented limits
	// (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html),
	// contact us through the Support Center (https://console.aws.amazon.com/support/home?).
	RequestTime *time.Time `locationName:"requestTime" type:"timestamp"`

	// Reserved. If you need to sustain traffic greater than the documented limits
	// (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html),
	// contact us through the Support Center (https://console.aws.amazon.com/support/home?).
	Requested *string `locationName:"requested" type:"string"`

	// Reserved. If you need to sustain traffic greater than the documented limits
	// (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html),
	// contact us through the Support Center (https://console.aws.amazon.com/support/home?).
	Status *string `locationName:"status" type:"string"`
	// contains filtered or unexported fields
}

Reserved. If you need to sustain traffic greater than the documented limits (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html), contact us through the Support Center (https://console.aws.amazon.com/support/home?).

func (ProvisionedBandwidth) String

func (s ProvisionedBandwidth) String() string

String returns the string representation

type PublicIpv4Pool added in v0.6.0

type PublicIpv4Pool struct {

	// A description of the address pool.
	Description *string `locationName:"description" type:"string"`

	// The name of the location from which the address pool is advertised. A network
	// border group is a unique set of Availability Zones or Local Zones from where
	// AWS advertises public IP addresses.
	NetworkBorderGroup *string `locationName:"networkBorderGroup" type:"string"`

	// The address ranges.
	PoolAddressRanges []PublicIpv4PoolRange `locationName:"poolAddressRangeSet" locationNameList:"item" type:"list"`

	// The ID of the address pool.
	PoolId *string `locationName:"poolId" type:"string"`

	// Any tags for the address pool.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The total number of addresses.
	TotalAddressCount *int64 `locationName:"totalAddressCount" type:"integer"`

	// The total number of available addresses.
	TotalAvailableAddressCount *int64 `locationName:"totalAvailableAddressCount" type:"integer"`
	// contains filtered or unexported fields
}

Describes an IPv4 address pool.

func (PublicIpv4Pool) String added in v0.6.0

func (s PublicIpv4Pool) String() string

String returns the string representation

type PublicIpv4PoolRange added in v0.6.0

type PublicIpv4PoolRange struct {

	// The number of addresses in the range.
	AddressCount *int64 `locationName:"addressCount" type:"integer"`

	// The number of available addresses in the range.
	AvailableAddressCount *int64 `locationName:"availableAddressCount" type:"integer"`

	// The first IP address in the range.
	FirstAddress *string `locationName:"firstAddress" type:"string"`

	// The last IP address in the range.
	LastAddress *string `locationName:"lastAddress" type:"string"`
	// contains filtered or unexported fields
}

Describes an address range of an IPv4 address pool.

func (PublicIpv4PoolRange) String added in v0.6.0

func (s PublicIpv4PoolRange) String() string

String returns the string representation

type Purchase

type Purchase struct {

	// The currency in which the UpfrontPrice and HourlyPrice amounts are specified.
	// At this time, the only supported currency is USD.
	CurrencyCode CurrencyCodeValues `locationName:"currencyCode" type:"string" enum:"true"`

	// The duration of the reservation's term in seconds.
	Duration *int64 `locationName:"duration" type:"integer"`

	// The IDs of the Dedicated Hosts associated with the reservation.
	HostIdSet []string `locationName:"hostIdSet" locationNameList:"item" type:"list"`

	// The ID of the reservation.
	HostReservationId *string `locationName:"hostReservationId" type:"string"`

	// The hourly price of the reservation per hour.
	HourlyPrice *string `locationName:"hourlyPrice" type:"string"`

	// The instance family on the Dedicated Host that the reservation can be associated
	// with.
	InstanceFamily *string `locationName:"instanceFamily" type:"string"`

	// The payment option for the reservation.
	PaymentOption PaymentOption `locationName:"paymentOption" type:"string" enum:"true"`

	// The upfront price of the reservation.
	UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
	// contains filtered or unexported fields
}

Describes the result of the purchase.

func (Purchase) String

func (s Purchase) String() string

String returns the string representation

type PurchaseHostReservationInput

type PurchaseHostReservationInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string"`

	// The currency in which the totalUpfrontPrice, LimitPrice, and totalHourlyPrice
	// amounts are specified. At this time, the only supported currency is USD.
	CurrencyCode CurrencyCodeValues `type:"string" enum:"true"`

	// The IDs of the Dedicated Hosts with which the reservation will be associated.
	//
	// HostIdSet is a required field
	HostIdSet []string `locationNameList:"item" type:"list" required:"true"`

	// The specified limit is checked against the total upfront cost of the reservation
	// (calculated as the offering's upfront cost multiplied by the host count).
	// If the total upfront cost is greater than the specified price limit, the
	// request fails. This is used to ensure that the purchase does not exceed the
	// expected upfront cost of the purchase. At this time, the only supported currency
	// is USD. For example, to indicate a limit price of USD 100, specify 100.00.
	LimitPrice *string `type:"string"`

	// The ID of the offering.
	//
	// OfferingId is a required field
	OfferingId *string `type:"string" required:"true"`

	// The tags to apply to the Dedicated Host Reservation during purchase.
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (PurchaseHostReservationInput) String

String returns the string representation

func (*PurchaseHostReservationInput) Validate

func (s *PurchaseHostReservationInput) Validate() error

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

type PurchaseHostReservationOutput

type PurchaseHostReservationOutput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `locationName:"clientToken" type:"string"`

	// The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
	// are specified. At this time, the only supported currency is USD.
	CurrencyCode CurrencyCodeValues `locationName:"currencyCode" type:"string" enum:"true"`

	// Describes the details of the purchase.
	Purchase []Purchase `locationName:"purchase" locationNameList:"item" type:"list"`

	// The total hourly price of the reservation calculated per hour.
	TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`

	// The total amount charged to your account when you purchase the reservation.
	TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
	// contains filtered or unexported fields
}

func (PurchaseHostReservationOutput) String

String returns the string representation

type PurchaseHostReservationRequest

type PurchaseHostReservationRequest struct {
	*aws.Request
	Input *PurchaseHostReservationInput
	Copy  func(*PurchaseHostReservationInput) PurchaseHostReservationRequest
}

PurchaseHostReservationRequest is the request type for the PurchaseHostReservation API operation.

func (PurchaseHostReservationRequest) Send

Send marshals and sends the PurchaseHostReservation API request.

type PurchaseHostReservationResponse added in v0.9.0

type PurchaseHostReservationResponse struct {
	*PurchaseHostReservationOutput
	// contains filtered or unexported fields
}

PurchaseHostReservationResponse is the response type for the PurchaseHostReservation API operation.

func (*PurchaseHostReservationResponse) SDKResponseMetdata added in v0.9.0

func (r *PurchaseHostReservationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PurchaseHostReservation request.

type PurchaseRequest

type PurchaseRequest struct {

	// The number of instances.
	//
	// InstanceCount is a required field
	InstanceCount *int64 `type:"integer" required:"true"`

	// The purchase token.
	//
	// PurchaseToken is a required field
	PurchaseToken *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Describes a request to purchase Scheduled Instances.

func (PurchaseRequest) String

func (s PurchaseRequest) String() string

String returns the string representation

func (*PurchaseRequest) Validate

func (s *PurchaseRequest) Validate() error

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

type PurchaseReservedInstancesOfferingInput

type PurchaseReservedInstancesOfferingInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The number of Reserved Instances to purchase.
	//
	// InstanceCount is a required field
	InstanceCount *int64 `type:"integer" required:"true"`

	// Specified for Reserved Instance Marketplace offerings to limit the total
	// order and ensure that the Reserved Instances are not purchased at unexpected
	// prices.
	LimitPrice *ReservedInstanceLimitPrice `locationName:"limitPrice" type:"structure"`

	// The time at which to purchase the Reserved Instance, in UTC format (for example,
	// YYYY-MM-DDTHH:MM:SSZ).
	PurchaseTime *time.Time `type:"timestamp"`

	// The ID of the Reserved Instance offering to purchase.
	//
	// ReservedInstancesOfferingId is a required field
	ReservedInstancesOfferingId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for PurchaseReservedInstancesOffering.

func (PurchaseReservedInstancesOfferingInput) String

String returns the string representation

func (*PurchaseReservedInstancesOfferingInput) Validate

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

type PurchaseReservedInstancesOfferingOutput

type PurchaseReservedInstancesOfferingOutput struct {

	// The IDs of the purchased Reserved Instances.
	ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
	// contains filtered or unexported fields
}

Contains the output of PurchaseReservedInstancesOffering.

func (PurchaseReservedInstancesOfferingOutput) String

String returns the string representation

type PurchaseReservedInstancesOfferingRequest

PurchaseReservedInstancesOfferingRequest is the request type for the PurchaseReservedInstancesOffering API operation.

func (PurchaseReservedInstancesOfferingRequest) Send

Send marshals and sends the PurchaseReservedInstancesOffering API request.

type PurchaseReservedInstancesOfferingResponse added in v0.9.0

type PurchaseReservedInstancesOfferingResponse struct {
	*PurchaseReservedInstancesOfferingOutput
	// contains filtered or unexported fields
}

PurchaseReservedInstancesOfferingResponse is the response type for the PurchaseReservedInstancesOffering API operation.

func (*PurchaseReservedInstancesOfferingResponse) SDKResponseMetdata added in v0.9.0

func (r *PurchaseReservedInstancesOfferingResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PurchaseReservedInstancesOffering request.

type PurchaseScheduledInstancesInput

type PurchaseScheduledInstancesInput struct {

	// Unique, case-sensitive identifier that ensures the idempotency of the request.
	// For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The purchase requests.
	//
	// PurchaseRequests is a required field
	PurchaseRequests []PurchaseRequest `locationName:"PurchaseRequest" locationNameList:"PurchaseRequest" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for PurchaseScheduledInstances.

func (PurchaseScheduledInstancesInput) String

String returns the string representation

func (*PurchaseScheduledInstancesInput) Validate

func (s *PurchaseScheduledInstancesInput) Validate() error

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

type PurchaseScheduledInstancesOutput

type PurchaseScheduledInstancesOutput struct {

	// Information about the Scheduled Instances.
	ScheduledInstanceSet []ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of PurchaseScheduledInstances.

func (PurchaseScheduledInstancesOutput) String

String returns the string representation

type PurchaseScheduledInstancesRequest

type PurchaseScheduledInstancesRequest struct {
	*aws.Request
	Input *PurchaseScheduledInstancesInput
	Copy  func(*PurchaseScheduledInstancesInput) PurchaseScheduledInstancesRequest
}

PurchaseScheduledInstancesRequest is the request type for the PurchaseScheduledInstances API operation.

func (PurchaseScheduledInstancesRequest) Send

Send marshals and sends the PurchaseScheduledInstances API request.

type PurchaseScheduledInstancesResponse added in v0.9.0

type PurchaseScheduledInstancesResponse struct {
	*PurchaseScheduledInstancesOutput
	// contains filtered or unexported fields
}

PurchaseScheduledInstancesResponse is the response type for the PurchaseScheduledInstances API operation.

func (*PurchaseScheduledInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *PurchaseScheduledInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PurchaseScheduledInstances request.

type RIProductDescription

type RIProductDescription string
const (
	RIProductDescriptionLinuxUnix          RIProductDescription = "Linux/UNIX"
	RIProductDescriptionLinuxUnixamazonVpc RIProductDescription = "Linux/UNIX (Amazon VPC)"
	RIProductDescriptionWindows            RIProductDescription = "Windows"
	RIProductDescriptionWindowsAmazonVpc   RIProductDescription = "Windows (Amazon VPC)"
)

Enum values for RIProductDescription

func (RIProductDescription) MarshalValue added in v0.3.0

func (enum RIProductDescription) MarshalValue() (string, error)

func (RIProductDescription) MarshalValueBuf added in v0.3.0

func (enum RIProductDescription) MarshalValueBuf(b []byte) ([]byte, error)

type RebootInstancesInput

type RebootInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The instance IDs.
	//
	// InstanceIds is a required field
	InstanceIds []string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (RebootInstancesInput) String

func (s RebootInstancesInput) String() string

String returns the string representation

func (*RebootInstancesInput) Validate

func (s *RebootInstancesInput) Validate() error

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

type RebootInstancesOutput

type RebootInstancesOutput struct {
	// contains filtered or unexported fields
}

func (RebootInstancesOutput) String

func (s RebootInstancesOutput) String() string

String returns the string representation

type RebootInstancesRequest

type RebootInstancesRequest struct {
	*aws.Request
	Input *RebootInstancesInput
	Copy  func(*RebootInstancesInput) RebootInstancesRequest
}

RebootInstancesRequest is the request type for the RebootInstances API operation.

func (RebootInstancesRequest) Send

Send marshals and sends the RebootInstances API request.

type RebootInstancesResponse added in v0.9.0

type RebootInstancesResponse struct {
	*RebootInstancesOutput
	// contains filtered or unexported fields
}

RebootInstancesResponse is the response type for the RebootInstances API operation.

func (*RebootInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *RebootInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RebootInstances request.

type RecurringCharge

type RecurringCharge struct {

	// The amount of the recurring charge.
	Amount *float64 `locationName:"amount" type:"double"`

	// The frequency of the recurring charge.
	Frequency RecurringChargeFrequency `locationName:"frequency" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a recurring charge.

func (RecurringCharge) String

func (s RecurringCharge) String() string

String returns the string representation

type RecurringChargeFrequency

type RecurringChargeFrequency string
const (
	RecurringChargeFrequencyHourly RecurringChargeFrequency = "Hourly"
)

Enum values for RecurringChargeFrequency

func (RecurringChargeFrequency) MarshalValue added in v0.3.0

func (enum RecurringChargeFrequency) MarshalValue() (string, error)

func (RecurringChargeFrequency) MarshalValueBuf added in v0.3.0

func (enum RecurringChargeFrequency) MarshalValueBuf(b []byte) ([]byte, error)

type Region

type Region struct {

	// The Region service endpoint.
	Endpoint *string `locationName:"regionEndpoint" type:"string"`

	// The Region opt-in status. The possible values are opt-in-not-required, opted-in,
	// and not-opted-in.
	OptInStatus *string `locationName:"optInStatus" type:"string"`

	// The name of the Region.
	RegionName *string `locationName:"regionName" type:"string"`
	// contains filtered or unexported fields
}

Describes a Region.

func (Region) String

func (s Region) String() string

String returns the string representation

type RegisterImageInput

type RegisterImageInput struct {

	// The architecture of the AMI.
	//
	// Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs,
	// the architecture specified in the manifest file.
	Architecture ArchitectureValues `locationName:"architecture" type:"string" enum:"true"`

	// The billing product codes. Your account must be authorized to specify billing
	// product codes. Otherwise, you can use the AWS Marketplace to bill for the
	// use of an AMI.
	BillingProducts []string `locationName:"BillingProduct" locationNameList:"item" type:"list"`

	// The block device mapping entries.
	BlockDeviceMappings []BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`

	// A description for your AMI.
	Description *string `locationName:"description" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Set to true to enable enhanced networking with ENA for the AMI and any instances
	// that you launch from the AMI.
	//
	// This option is supported only for HVM AMIs. Specifying this option with a
	// PV AMI can make instances launched from the AMI unreachable.
	EnaSupport *bool `locationName:"enaSupport" type:"boolean"`

	// The full path to your AMI manifest in Amazon S3 storage. The specified bucket
	// must have the aws-exec-read canned access control list (ACL) to ensure that
	// it can be accessed by Amazon EC2. For more information, see Canned ACLs (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl)
	// in the Amazon S3 Service Developer Guide.
	ImageLocation *string `type:"string"`

	// The ID of the kernel.
	KernelId *string `locationName:"kernelId" type:"string"`

	// A name for your AMI.
	//
	// Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
	// ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
	// at-signs (@), or underscores(_)
	//
	// Name is a required field
	Name *string `locationName:"name" type:"string" required:"true"`

	// The ID of the RAM disk.
	RamdiskId *string `locationName:"ramdiskId" type:"string"`

	// The device name of the root device volume (for example, /dev/sda1).
	RootDeviceName *string `locationName:"rootDeviceName" type:"string"`

	// Set to simple to enable enhanced networking with the Intel 82599 Virtual
	// Function interface for the AMI and any instances that you launch from the
	// AMI.
	//
	// There is no way to disable sriovNetSupport at this time.
	//
	// This option is supported only for HVM AMIs. Specifying this option with a
	// PV AMI can make instances launched from the AMI unreachable.
	SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`

	// The type of virtualization (hvm | paravirtual).
	//
	// Default: paravirtual
	VirtualizationType *string `locationName:"virtualizationType" type:"string"`
	// contains filtered or unexported fields
}

Contains the parameters for RegisterImage.

func (RegisterImageInput) String

func (s RegisterImageInput) String() string

String returns the string representation

func (*RegisterImageInput) Validate

func (s *RegisterImageInput) Validate() error

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

type RegisterImageOutput

type RegisterImageOutput struct {

	// The ID of the newly registered AMI.
	ImageId *string `locationName:"imageId" type:"string"`
	// contains filtered or unexported fields
}

Contains the output of RegisterImage.

func (RegisterImageOutput) String

func (s RegisterImageOutput) String() string

String returns the string representation

type RegisterImageRequest

type RegisterImageRequest struct {
	*aws.Request
	Input *RegisterImageInput
	Copy  func(*RegisterImageInput) RegisterImageRequest
}

RegisterImageRequest is the request type for the RegisterImage API operation.

func (RegisterImageRequest) Send

Send marshals and sends the RegisterImage API request.

type RegisterImageResponse added in v0.9.0

type RegisterImageResponse struct {
	*RegisterImageOutput
	// contains filtered or unexported fields
}

RegisterImageResponse is the response type for the RegisterImage API operation.

func (*RegisterImageResponse) SDKResponseMetdata added in v0.9.0

func (r *RegisterImageResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RegisterImage request.

type RegisterInstanceEventNotificationAttributesInput added in v0.21.0

type RegisterInstanceEventNotificationAttributesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Information about the tag keys to register.
	InstanceTagAttribute *RegisterInstanceTagAttributeRequest `type:"structure"`
	// contains filtered or unexported fields
}

func (RegisterInstanceEventNotificationAttributesInput) String added in v0.21.0

String returns the string representation

type RegisterInstanceEventNotificationAttributesOutput added in v0.21.0

type RegisterInstanceEventNotificationAttributesOutput struct {

	// The resulting set of tag keys.
	InstanceTagAttribute *InstanceTagNotificationAttribute `locationName:"instanceTagAttribute" type:"structure"`
	// contains filtered or unexported fields
}

func (RegisterInstanceEventNotificationAttributesOutput) String added in v0.21.0

String returns the string representation

type RegisterInstanceEventNotificationAttributesRequest added in v0.21.0

RegisterInstanceEventNotificationAttributesRequest is the request type for the RegisterInstanceEventNotificationAttributes API operation.

func (RegisterInstanceEventNotificationAttributesRequest) Send added in v0.21.0

Send marshals and sends the RegisterInstanceEventNotificationAttributes API request.

type RegisterInstanceEventNotificationAttributesResponse added in v0.21.0

type RegisterInstanceEventNotificationAttributesResponse struct {
	*RegisterInstanceEventNotificationAttributesOutput
	// contains filtered or unexported fields
}

RegisterInstanceEventNotificationAttributesResponse is the response type for the RegisterInstanceEventNotificationAttributes API operation.

func (*RegisterInstanceEventNotificationAttributesResponse) SDKResponseMetdata added in v0.21.0

SDKResponseMetdata returns the response metadata for the RegisterInstanceEventNotificationAttributes request.

type RegisterInstanceTagAttributeRequest added in v0.21.0

type RegisterInstanceTagAttributeRequest struct {

	// Indicates whether to register all tag keys in the current Region. Specify
	// true to register all tag keys.
	IncludeAllTagsOfInstance *bool `type:"boolean"`

	// The tag keys to register.
	InstanceTagKeys []string `locationName:"InstanceTagKey" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Information about the tag keys to register for the current Region. You can either specify individual tag keys or register all tag keys in the current Region. You must specify either IncludeAllTagsOfInstance or InstanceTagKeys in the request

func (RegisterInstanceTagAttributeRequest) String added in v0.21.0

String returns the string representation

type RegisterTransitGatewayMulticastGroupMembersInput added in v0.18.0

type RegisterTransitGatewayMulticastGroupMembersInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IP address assigned to the transit gateway multicast group.
	GroupIpAddress *string `type:"string"`

	// The group members' network interface IDs to register with the transit gateway
	// multicast group.
	NetworkInterfaceIds []string `locationNameList:"item" type:"list"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `type:"string"`
	// contains filtered or unexported fields
}

func (RegisterTransitGatewayMulticastGroupMembersInput) String added in v0.18.0

String returns the string representation

type RegisterTransitGatewayMulticastGroupMembersOutput added in v0.18.0

type RegisterTransitGatewayMulticastGroupMembersOutput struct {

	// Information about the registered transit gateway multicast group members.
	RegisteredMulticastGroupMembers *TransitGatewayMulticastRegisteredGroupMembers `locationName:"registeredMulticastGroupMembers" type:"structure"`
	// contains filtered or unexported fields
}

func (RegisterTransitGatewayMulticastGroupMembersOutput) String added in v0.18.0

String returns the string representation

type RegisterTransitGatewayMulticastGroupMembersRequest added in v0.18.0

RegisterTransitGatewayMulticastGroupMembersRequest is the request type for the RegisterTransitGatewayMulticastGroupMembers API operation.

func (RegisterTransitGatewayMulticastGroupMembersRequest) Send added in v0.18.0

Send marshals and sends the RegisterTransitGatewayMulticastGroupMembers API request.

type RegisterTransitGatewayMulticastGroupMembersResponse added in v0.18.0

type RegisterTransitGatewayMulticastGroupMembersResponse struct {
	*RegisterTransitGatewayMulticastGroupMembersOutput
	// contains filtered or unexported fields
}

RegisterTransitGatewayMulticastGroupMembersResponse is the response type for the RegisterTransitGatewayMulticastGroupMembers API operation.

func (*RegisterTransitGatewayMulticastGroupMembersResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the RegisterTransitGatewayMulticastGroupMembers request.

type RegisterTransitGatewayMulticastGroupSourcesInput added in v0.18.0

type RegisterTransitGatewayMulticastGroupSourcesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The IP address assigned to the transit gateway multicast group.
	GroupIpAddress *string `type:"string"`

	// The group sources' network interface IDs to register with the transit gateway
	// multicast group.
	NetworkInterfaceIds []string `locationNameList:"item" type:"list"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `type:"string"`
	// contains filtered or unexported fields
}

func (RegisterTransitGatewayMulticastGroupSourcesInput) String added in v0.18.0

String returns the string representation

type RegisterTransitGatewayMulticastGroupSourcesOutput added in v0.18.0

type RegisterTransitGatewayMulticastGroupSourcesOutput struct {

	// Information about the transit gateway multicast group sources.
	RegisteredMulticastGroupSources *TransitGatewayMulticastRegisteredGroupSources `locationName:"registeredMulticastGroupSources" type:"structure"`
	// contains filtered or unexported fields
}

func (RegisterTransitGatewayMulticastGroupSourcesOutput) String added in v0.18.0

String returns the string representation

type RegisterTransitGatewayMulticastGroupSourcesRequest added in v0.18.0

RegisterTransitGatewayMulticastGroupSourcesRequest is the request type for the RegisterTransitGatewayMulticastGroupSources API operation.

func (RegisterTransitGatewayMulticastGroupSourcesRequest) Send added in v0.18.0

Send marshals and sends the RegisterTransitGatewayMulticastGroupSources API request.

type RegisterTransitGatewayMulticastGroupSourcesResponse added in v0.18.0

type RegisterTransitGatewayMulticastGroupSourcesResponse struct {
	*RegisterTransitGatewayMulticastGroupSourcesOutput
	// contains filtered or unexported fields
}

RegisterTransitGatewayMulticastGroupSourcesResponse is the response type for the RegisterTransitGatewayMulticastGroupSources API operation.

func (*RegisterTransitGatewayMulticastGroupSourcesResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the RegisterTransitGatewayMulticastGroupSources request.

type RejectTransitGatewayPeeringAttachmentInput added in v0.18.0

type RejectTransitGatewayPeeringAttachmentInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the transit gateway peering attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RejectTransitGatewayPeeringAttachmentInput) String added in v0.18.0

String returns the string representation

func (*RejectTransitGatewayPeeringAttachmentInput) Validate added in v0.18.0

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

type RejectTransitGatewayPeeringAttachmentOutput added in v0.18.0

type RejectTransitGatewayPeeringAttachmentOutput struct {

	// The transit gateway peering attachment.
	TransitGatewayPeeringAttachment *TransitGatewayPeeringAttachment `locationName:"transitGatewayPeeringAttachment" type:"structure"`
	// contains filtered or unexported fields
}

func (RejectTransitGatewayPeeringAttachmentOutput) String added in v0.18.0

String returns the string representation

type RejectTransitGatewayPeeringAttachmentRequest added in v0.18.0

RejectTransitGatewayPeeringAttachmentRequest is the request type for the RejectTransitGatewayPeeringAttachment API operation.

func (RejectTransitGatewayPeeringAttachmentRequest) Send added in v0.18.0

Send marshals and sends the RejectTransitGatewayPeeringAttachment API request.

type RejectTransitGatewayPeeringAttachmentResponse added in v0.18.0

type RejectTransitGatewayPeeringAttachmentResponse struct {
	*RejectTransitGatewayPeeringAttachmentOutput
	// contains filtered or unexported fields
}

RejectTransitGatewayPeeringAttachmentResponse is the response type for the RejectTransitGatewayPeeringAttachment API operation.

func (*RejectTransitGatewayPeeringAttachmentResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the RejectTransitGatewayPeeringAttachment request.

type RejectTransitGatewayVpcAttachmentInput added in v0.6.0

type RejectTransitGatewayVpcAttachmentInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the attachment.
	//
	// TransitGatewayAttachmentId is a required field
	TransitGatewayAttachmentId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RejectTransitGatewayVpcAttachmentInput) String added in v0.6.0

String returns the string representation

func (*RejectTransitGatewayVpcAttachmentInput) Validate added in v0.6.0

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

type RejectTransitGatewayVpcAttachmentOutput added in v0.6.0

type RejectTransitGatewayVpcAttachmentOutput struct {

	// Information about the attachment.
	TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
	// contains filtered or unexported fields
}

func (RejectTransitGatewayVpcAttachmentOutput) String added in v0.6.0

String returns the string representation

type RejectTransitGatewayVpcAttachmentRequest added in v0.6.0

RejectTransitGatewayVpcAttachmentRequest is the request type for the RejectTransitGatewayVpcAttachment API operation.

func (RejectTransitGatewayVpcAttachmentRequest) Send added in v0.6.0

Send marshals and sends the RejectTransitGatewayVpcAttachment API request.

type RejectTransitGatewayVpcAttachmentResponse added in v0.9.0

type RejectTransitGatewayVpcAttachmentResponse struct {
	*RejectTransitGatewayVpcAttachmentOutput
	// contains filtered or unexported fields
}

RejectTransitGatewayVpcAttachmentResponse is the response type for the RejectTransitGatewayVpcAttachment API operation.

func (*RejectTransitGatewayVpcAttachmentResponse) SDKResponseMetdata added in v0.9.0

func (r *RejectTransitGatewayVpcAttachmentResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RejectTransitGatewayVpcAttachment request.

type RejectVpcEndpointConnectionsInput added in v0.2.0

type RejectVpcEndpointConnectionsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the service.
	//
	// ServiceId is a required field
	ServiceId *string `type:"string" required:"true"`

	// The IDs of one or more VPC endpoints.
	//
	// VpcEndpointIds is a required field
	VpcEndpointIds []string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (RejectVpcEndpointConnectionsInput) String added in v0.2.0

String returns the string representation

func (*RejectVpcEndpointConnectionsInput) Validate added in v0.2.0

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

type RejectVpcEndpointConnectionsOutput added in v0.2.0

type RejectVpcEndpointConnectionsOutput struct {

	// Information about the endpoints that were not rejected, if applicable.
	Unsuccessful []UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (RejectVpcEndpointConnectionsOutput) String added in v0.2.0

String returns the string representation

type RejectVpcEndpointConnectionsRequest added in v0.2.0

type RejectVpcEndpointConnectionsRequest struct {
	*aws.Request
	Input *RejectVpcEndpointConnectionsInput
	Copy  func(*RejectVpcEndpointConnectionsInput) RejectVpcEndpointConnectionsRequest
}

RejectVpcEndpointConnectionsRequest is the request type for the RejectVpcEndpointConnections API operation.

func (RejectVpcEndpointConnectionsRequest) Send added in v0.2.0

Send marshals and sends the RejectVpcEndpointConnections API request.

type RejectVpcEndpointConnectionsResponse added in v0.9.0

type RejectVpcEndpointConnectionsResponse struct {
	*RejectVpcEndpointConnectionsOutput
	// contains filtered or unexported fields
}

RejectVpcEndpointConnectionsResponse is the response type for the RejectVpcEndpointConnections API operation.

func (*RejectVpcEndpointConnectionsResponse) SDKResponseMetdata added in v0.9.0

func (r *RejectVpcEndpointConnectionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RejectVpcEndpointConnections request.

type RejectVpcPeeringConnectionInput

type RejectVpcPeeringConnectionInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the VPC peering connection.
	//
	// VpcPeeringConnectionId is a required field
	VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RejectVpcPeeringConnectionInput) String

String returns the string representation

func (*RejectVpcPeeringConnectionInput) Validate

func (s *RejectVpcPeeringConnectionInput) Validate() error

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

type RejectVpcPeeringConnectionOutput

type RejectVpcPeeringConnectionOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (RejectVpcPeeringConnectionOutput) String

String returns the string representation

type RejectVpcPeeringConnectionRequest

type RejectVpcPeeringConnectionRequest struct {
	*aws.Request
	Input *RejectVpcPeeringConnectionInput
	Copy  func(*RejectVpcPeeringConnectionInput) RejectVpcPeeringConnectionRequest
}

RejectVpcPeeringConnectionRequest is the request type for the RejectVpcPeeringConnection API operation.

func (RejectVpcPeeringConnectionRequest) Send

Send marshals and sends the RejectVpcPeeringConnection API request.

type RejectVpcPeeringConnectionResponse added in v0.9.0

type RejectVpcPeeringConnectionResponse struct {
	*RejectVpcPeeringConnectionOutput
	// contains filtered or unexported fields
}

RejectVpcPeeringConnectionResponse is the response type for the RejectVpcPeeringConnection API operation.

func (*RejectVpcPeeringConnectionResponse) SDKResponseMetdata added in v0.9.0

func (r *RejectVpcPeeringConnectionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RejectVpcPeeringConnection request.

type ReleaseAddressInput

type ReleaseAddressInput struct {

	// [EC2-VPC] The allocation ID. Required for EC2-VPC.
	AllocationId *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The location that the IP address is released from.
	//
	// If you provide an incorrect network border group, you will receive an InvalidAddress.NotFound
	// error. For more information, see Error Codes (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).
	//
	// You cannot use a network border group with EC2 Classic. If you attempt this
	// operation on EC2 classic, you will receive an InvalidParameterCombination
	// error. For more information, see Error Codes (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).
	NetworkBorderGroup *string `type:"string"`

	// [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
	PublicIp *string `type:"string"`
	// contains filtered or unexported fields
}

func (ReleaseAddressInput) String

func (s ReleaseAddressInput) String() string

String returns the string representation

type ReleaseAddressOutput

type ReleaseAddressOutput struct {
	// contains filtered or unexported fields
}

func (ReleaseAddressOutput) String

func (s ReleaseAddressOutput) String() string

String returns the string representation

type ReleaseAddressRequest

type ReleaseAddressRequest struct {
	*aws.Request
	Input *ReleaseAddressInput
	Copy  func(*ReleaseAddressInput) ReleaseAddressRequest
}

ReleaseAddressRequest is the request type for the ReleaseAddress API operation.

func (ReleaseAddressRequest) Send

Send marshals and sends the ReleaseAddress API request.

type ReleaseAddressResponse added in v0.9.0

type ReleaseAddressResponse struct {
	*ReleaseAddressOutput
	// contains filtered or unexported fields
}

ReleaseAddressResponse is the response type for the ReleaseAddress API operation.

func (*ReleaseAddressResponse) SDKResponseMetdata added in v0.9.0

func (r *ReleaseAddressResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ReleaseAddress request.

type ReleaseHostsInput

type ReleaseHostsInput struct {

	// The IDs of the Dedicated Hosts to release.
	//
	// HostIds is a required field
	HostIds []string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (ReleaseHostsInput) String

func (s ReleaseHostsInput) String() string

String returns the string representation

func (*ReleaseHostsInput) Validate

func (s *ReleaseHostsInput) Validate() error

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

type ReleaseHostsOutput

type ReleaseHostsOutput struct {

	// The IDs of the Dedicated Hosts that were successfully released.
	Successful []string `locationName:"successful" locationNameList:"item" type:"list"`

	// The IDs of the Dedicated Hosts that could not be released, including an error
	// message.
	Unsuccessful []UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (ReleaseHostsOutput) String

func (s ReleaseHostsOutput) String() string

String returns the string representation

type ReleaseHostsRequest

type ReleaseHostsRequest struct {
	*aws.Request
	Input *ReleaseHostsInput
	Copy  func(*ReleaseHostsInput) ReleaseHostsRequest
}

ReleaseHostsRequest is the request type for the ReleaseHosts API operation.

func (ReleaseHostsRequest) Send

Send marshals and sends the ReleaseHosts API request.

type ReleaseHostsResponse added in v0.9.0

type ReleaseHostsResponse struct {
	*ReleaseHostsOutput
	// contains filtered or unexported fields
}

ReleaseHostsResponse is the response type for the ReleaseHosts API operation.

func (*ReleaseHostsResponse) SDKResponseMetdata added in v0.9.0

func (r *ReleaseHostsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ReleaseHosts request.

type RemovePrefixListEntry added in v0.24.0

type RemovePrefixListEntry struct {

	// The CIDR block.
	//
	// Cidr is a required field
	Cidr *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

An entry for a prefix list.

func (RemovePrefixListEntry) String added in v0.24.0

func (s RemovePrefixListEntry) String() string

String returns the string representation

func (*RemovePrefixListEntry) Validate added in v0.24.0

func (s *RemovePrefixListEntry) Validate() error

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

type ReplaceIamInstanceProfileAssociationInput

type ReplaceIamInstanceProfileAssociationInput struct {

	// The ID of the existing IAM instance profile association.
	//
	// AssociationId is a required field
	AssociationId *string `type:"string" required:"true"`

	// The IAM instance profile.
	//
	// IamInstanceProfile is a required field
	IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (ReplaceIamInstanceProfileAssociationInput) String

String returns the string representation

func (*ReplaceIamInstanceProfileAssociationInput) Validate

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

type ReplaceIamInstanceProfileAssociationOutput

type ReplaceIamInstanceProfileAssociationOutput struct {

	// Information about the IAM instance profile association.
	IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
	// contains filtered or unexported fields
}

func (ReplaceIamInstanceProfileAssociationOutput) String

String returns the string representation

type ReplaceIamInstanceProfileAssociationRequest

ReplaceIamInstanceProfileAssociationRequest is the request type for the ReplaceIamInstanceProfileAssociation API operation.

func (ReplaceIamInstanceProfileAssociationRequest) Send

Send marshals and sends the ReplaceIamInstanceProfileAssociation API request.

type ReplaceIamInstanceProfileAssociationResponse added in v0.9.0

type ReplaceIamInstanceProfileAssociationResponse struct {
	*ReplaceIamInstanceProfileAssociationOutput
	// contains filtered or unexported fields
}

ReplaceIamInstanceProfileAssociationResponse is the response type for the ReplaceIamInstanceProfileAssociation API operation.

func (*ReplaceIamInstanceProfileAssociationResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the ReplaceIamInstanceProfileAssociation request.

type ReplaceNetworkAclAssociationInput

type ReplaceNetworkAclAssociationInput struct {

	// The ID of the current association between the original network ACL and the
	// subnet.
	//
	// AssociationId is a required field
	AssociationId *string `locationName:"associationId" type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the new network ACL to associate with the subnet.
	//
	// NetworkAclId is a required field
	NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ReplaceNetworkAclAssociationInput) String

String returns the string representation

func (*ReplaceNetworkAclAssociationInput) Validate

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

type ReplaceNetworkAclAssociationOutput

type ReplaceNetworkAclAssociationOutput struct {

	// The ID of the new association.
	NewAssociationId *string `locationName:"newAssociationId" type:"string"`
	// contains filtered or unexported fields
}

func (ReplaceNetworkAclAssociationOutput) String

String returns the string representation

type ReplaceNetworkAclAssociationRequest

type ReplaceNetworkAclAssociationRequest struct {
	*aws.Request
	Input *ReplaceNetworkAclAssociationInput
	Copy  func(*ReplaceNetworkAclAssociationInput) ReplaceNetworkAclAssociationRequest
}

ReplaceNetworkAclAssociationRequest is the request type for the ReplaceNetworkAclAssociation API operation.

func (ReplaceNetworkAclAssociationRequest) Send

Send marshals and sends the ReplaceNetworkAclAssociation API request.

type ReplaceNetworkAclAssociationResponse added in v0.9.0

type ReplaceNetworkAclAssociationResponse struct {
	*ReplaceNetworkAclAssociationOutput
	// contains filtered or unexported fields
}

ReplaceNetworkAclAssociationResponse is the response type for the ReplaceNetworkAclAssociation API operation.

func (*ReplaceNetworkAclAssociationResponse) SDKResponseMetdata added in v0.9.0

func (r *ReplaceNetworkAclAssociationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ReplaceNetworkAclAssociation request.

type ReplaceNetworkAclEntryInput

type ReplaceNetworkAclEntryInput struct {

	// The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
	CidrBlock *string `locationName:"cidrBlock" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Indicates whether to replace the egress rule.
	//
	// Default: If no value is specified, we replace the ingress rule.
	//
	// Egress is a required field
	Egress *bool `locationName:"egress" type:"boolean" required:"true"`

	// ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol
	// 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.
	IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`

	// The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64).
	Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`

	// The ID of the ACL.
	//
	// NetworkAclId is a required field
	NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`

	// TCP or UDP protocols: The range of ports the rule applies to. Required if
	// specifying protocol 6 (TCP) or 17 (UDP).
	PortRange *PortRange `locationName:"portRange" type:"structure"`

	// The protocol number. A value of "-1" means all protocols. If you specify
	// "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP),
	// traffic on all ports is allowed, regardless of any ports or ICMP types or
	// codes that you specify. If you specify protocol "58" (ICMPv6) and specify
	// an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless
	// of any that you specify. If you specify protocol "58" (ICMPv6) and specify
	// an IPv6 CIDR block, you must specify an ICMP type and code.
	//
	// Protocol is a required field
	Protocol *string `locationName:"protocol" type:"string" required:"true"`

	// Indicates whether to allow or deny the traffic that matches the rule.
	//
	// RuleAction is a required field
	RuleAction RuleAction `locationName:"ruleAction" type:"string" required:"true" enum:"true"`

	// The rule number of the entry to replace.
	//
	// RuleNumber is a required field
	RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
	// contains filtered or unexported fields
}

func (ReplaceNetworkAclEntryInput) String

String returns the string representation

func (*ReplaceNetworkAclEntryInput) Validate

func (s *ReplaceNetworkAclEntryInput) Validate() error

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

type ReplaceNetworkAclEntryOutput

type ReplaceNetworkAclEntryOutput struct {
	// contains filtered or unexported fields
}

func (ReplaceNetworkAclEntryOutput) String

String returns the string representation

type ReplaceNetworkAclEntryRequest

type ReplaceNetworkAclEntryRequest struct {
	*aws.Request
	Input *ReplaceNetworkAclEntryInput
	Copy  func(*ReplaceNetworkAclEntryInput) ReplaceNetworkAclEntryRequest
}

ReplaceNetworkAclEntryRequest is the request type for the ReplaceNetworkAclEntry API operation.

func (ReplaceNetworkAclEntryRequest) Send

Send marshals and sends the ReplaceNetworkAclEntry API request.

type ReplaceNetworkAclEntryResponse added in v0.9.0

type ReplaceNetworkAclEntryResponse struct {
	*ReplaceNetworkAclEntryOutput
	// contains filtered or unexported fields
}

ReplaceNetworkAclEntryResponse is the response type for the ReplaceNetworkAclEntry API operation.

func (*ReplaceNetworkAclEntryResponse) SDKResponseMetdata added in v0.9.0

func (r *ReplaceNetworkAclEntryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ReplaceNetworkAclEntry request.

type ReplaceRouteInput

type ReplaceRouteInput struct {

	// The IPv4 CIDR address block used for the destination match. The value that
	// you provide must match the CIDR of an existing route in the table.
	DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`

	// The IPv6 CIDR address block used for the destination match. The value that
	// you provide must match the CIDR of an existing route in the table.
	DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`

	// The ID of the prefix list for the route.
	DestinationPrefixListId *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// [IPv6 traffic only] The ID of an egress-only internet gateway.
	EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`

	// The ID of an internet gateway or virtual private gateway.
	GatewayId *string `locationName:"gatewayId" type:"string"`

	// The ID of a NAT instance in your VPC.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The ID of the local gateway.
	LocalGatewayId *string `type:"string"`

	// Specifies whether to reset the local route to its default target (local).
	LocalTarget *bool `type:"boolean"`

	// [IPv4 traffic only] The ID of a NAT gateway.
	NatGatewayId *string `locationName:"natGatewayId" type:"string"`

	// The ID of a network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The ID of the route table.
	//
	// RouteTableId is a required field
	RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`

	// The ID of a transit gateway.
	TransitGatewayId *string `type:"string"`

	// The ID of a VPC peering connection.
	VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
	// contains filtered or unexported fields
}

func (ReplaceRouteInput) String

func (s ReplaceRouteInput) String() string

String returns the string representation

func (*ReplaceRouteInput) Validate

func (s *ReplaceRouteInput) Validate() error

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

type ReplaceRouteOutput

type ReplaceRouteOutput struct {
	// contains filtered or unexported fields
}

func (ReplaceRouteOutput) String

func (s ReplaceRouteOutput) String() string

String returns the string representation

type ReplaceRouteRequest

type ReplaceRouteRequest struct {
	*aws.Request
	Input *ReplaceRouteInput
	Copy  func(*ReplaceRouteInput) ReplaceRouteRequest
}

ReplaceRouteRequest is the request type for the ReplaceRoute API operation.

func (ReplaceRouteRequest) Send

Send marshals and sends the ReplaceRoute API request.

type ReplaceRouteResponse added in v0.9.0

type ReplaceRouteResponse struct {
	*ReplaceRouteOutput
	// contains filtered or unexported fields
}

ReplaceRouteResponse is the response type for the ReplaceRoute API operation.

func (*ReplaceRouteResponse) SDKResponseMetdata added in v0.9.0

func (r *ReplaceRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ReplaceRoute request.

type ReplaceRouteTableAssociationInput

type ReplaceRouteTableAssociationInput struct {

	// The association ID.
	//
	// AssociationId is a required field
	AssociationId *string `locationName:"associationId" type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the new route table to associate with the subnet.
	//
	// RouteTableId is a required field
	RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ReplaceRouteTableAssociationInput) String

String returns the string representation

func (*ReplaceRouteTableAssociationInput) Validate

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

type ReplaceRouteTableAssociationOutput

type ReplaceRouteTableAssociationOutput struct {

	// The state of the association.
	AssociationState *RouteTableAssociationState `locationName:"associationState" type:"structure"`

	// The ID of the new association.
	NewAssociationId *string `locationName:"newAssociationId" type:"string"`
	// contains filtered or unexported fields
}

func (ReplaceRouteTableAssociationOutput) String

String returns the string representation

type ReplaceRouteTableAssociationRequest

type ReplaceRouteTableAssociationRequest struct {
	*aws.Request
	Input *ReplaceRouteTableAssociationInput
	Copy  func(*ReplaceRouteTableAssociationInput) ReplaceRouteTableAssociationRequest
}

ReplaceRouteTableAssociationRequest is the request type for the ReplaceRouteTableAssociation API operation.

func (ReplaceRouteTableAssociationRequest) Send

Send marshals and sends the ReplaceRouteTableAssociation API request.

type ReplaceRouteTableAssociationResponse added in v0.9.0

type ReplaceRouteTableAssociationResponse struct {
	*ReplaceRouteTableAssociationOutput
	// contains filtered or unexported fields
}

ReplaceRouteTableAssociationResponse is the response type for the ReplaceRouteTableAssociation API operation.

func (*ReplaceRouteTableAssociationResponse) SDKResponseMetdata added in v0.9.0

func (r *ReplaceRouteTableAssociationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ReplaceRouteTableAssociation request.

type ReplaceTransitGatewayRouteInput added in v0.6.0

type ReplaceTransitGatewayRouteInput struct {

	// Indicates whether traffic matching this route is to be dropped.
	Blackhole *bool `type:"boolean"`

	// The CIDR range used for the destination match. Routing decisions are based
	// on the most specific match.
	//
	// DestinationCidrBlock is a required field
	DestinationCidrBlock *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the attachment.
	TransitGatewayAttachmentId *string `type:"string"`

	// The ID of the route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ReplaceTransitGatewayRouteInput) String added in v0.6.0

String returns the string representation

func (*ReplaceTransitGatewayRouteInput) Validate added in v0.6.0

func (s *ReplaceTransitGatewayRouteInput) Validate() error

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

type ReplaceTransitGatewayRouteOutput added in v0.6.0

type ReplaceTransitGatewayRouteOutput struct {

	// Information about the modified route.
	Route *TransitGatewayRoute `locationName:"route" type:"structure"`
	// contains filtered or unexported fields
}

func (ReplaceTransitGatewayRouteOutput) String added in v0.6.0

String returns the string representation

type ReplaceTransitGatewayRouteRequest added in v0.6.0

type ReplaceTransitGatewayRouteRequest struct {
	*aws.Request
	Input *ReplaceTransitGatewayRouteInput
	Copy  func(*ReplaceTransitGatewayRouteInput) ReplaceTransitGatewayRouteRequest
}

ReplaceTransitGatewayRouteRequest is the request type for the ReplaceTransitGatewayRoute API operation.

func (ReplaceTransitGatewayRouteRequest) Send added in v0.6.0

Send marshals and sends the ReplaceTransitGatewayRoute API request.

type ReplaceTransitGatewayRouteResponse added in v0.9.0

type ReplaceTransitGatewayRouteResponse struct {
	*ReplaceTransitGatewayRouteOutput
	// contains filtered or unexported fields
}

ReplaceTransitGatewayRouteResponse is the response type for the ReplaceTransitGatewayRoute API operation.

func (*ReplaceTransitGatewayRouteResponse) SDKResponseMetdata added in v0.9.0

func (r *ReplaceTransitGatewayRouteResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ReplaceTransitGatewayRoute request.

type ReportInstanceReasonCodes

type ReportInstanceReasonCodes string
const (
	ReportInstanceReasonCodesInstanceStuckInState     ReportInstanceReasonCodes = "instance-stuck-in-state"
	ReportInstanceReasonCodesUnresponsive             ReportInstanceReasonCodes = "unresponsive"
	ReportInstanceReasonCodesNotAcceptingCredentials  ReportInstanceReasonCodes = "not-accepting-credentials"
	ReportInstanceReasonCodesPasswordNotAvailable     ReportInstanceReasonCodes = "password-not-available"
	ReportInstanceReasonCodesPerformanceNetwork       ReportInstanceReasonCodes = "performance-network"
	ReportInstanceReasonCodesPerformanceInstanceStore ReportInstanceReasonCodes = "performance-instance-store"
	ReportInstanceReasonCodesPerformanceEbsVolume     ReportInstanceReasonCodes = "performance-ebs-volume"
	ReportInstanceReasonCodesPerformanceOther         ReportInstanceReasonCodes = "performance-other"
	ReportInstanceReasonCodesOther                    ReportInstanceReasonCodes = "other"
)

Enum values for ReportInstanceReasonCodes

func (ReportInstanceReasonCodes) MarshalValue added in v0.3.0

func (enum ReportInstanceReasonCodes) MarshalValue() (string, error)

func (ReportInstanceReasonCodes) MarshalValueBuf added in v0.3.0

func (enum ReportInstanceReasonCodes) MarshalValueBuf(b []byte) ([]byte, error)

type ReportInstanceStatusInput

type ReportInstanceStatusInput struct {

	// Descriptive text about the health state of your instance.
	Description *string `locationName:"description" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The time at which the reported instance health state ended.
	EndTime *time.Time `locationName:"endTime" type:"timestamp"`

	// The instances.
	//
	// Instances is a required field
	Instances []string `locationName:"instanceId" locationNameList:"InstanceId" type:"list" required:"true"`

	// The reason codes that describe the health state of your instance.
	//
	//    * instance-stuck-in-state: My instance is stuck in a state.
	//
	//    * unresponsive: My instance is unresponsive.
	//
	//    * not-accepting-credentials: My instance is not accepting my credentials.
	//
	//    * password-not-available: A password is not available for my instance.
	//
	//    * performance-network: My instance is experiencing performance problems
	//    that I believe are network related.
	//
	//    * performance-instance-store: My instance is experiencing performance
	//    problems that I believe are related to the instance stores.
	//
	//    * performance-ebs-volume: My instance is experiencing performance problems
	//    that I believe are related to an EBS volume.
	//
	//    * performance-other: My instance is experiencing performance problems.
	//
	//    * other: [explain using the description parameter]
	//
	// ReasonCodes is a required field
	ReasonCodes []ReportInstanceReasonCodes `locationName:"reasonCode" locationNameList:"item" type:"list" required:"true"`

	// The time at which the reported instance health state began.
	StartTime *time.Time `locationName:"startTime" type:"timestamp"`

	// The status of all instances listed.
	//
	// Status is a required field
	Status ReportStatusType `locationName:"status" type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

func (ReportInstanceStatusInput) String

func (s ReportInstanceStatusInput) String() string

String returns the string representation

func (*ReportInstanceStatusInput) Validate

func (s *ReportInstanceStatusInput) Validate() error

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

type ReportInstanceStatusOutput

type ReportInstanceStatusOutput struct {
	// contains filtered or unexported fields
}

func (ReportInstanceStatusOutput) String

String returns the string representation

type ReportInstanceStatusRequest

type ReportInstanceStatusRequest struct {
	*aws.Request
	Input *ReportInstanceStatusInput
	Copy  func(*ReportInstanceStatusInput) ReportInstanceStatusRequest
}

ReportInstanceStatusRequest is the request type for the ReportInstanceStatus API operation.

func (ReportInstanceStatusRequest) Send

Send marshals and sends the ReportInstanceStatus API request.

type ReportInstanceStatusResponse added in v0.9.0

type ReportInstanceStatusResponse struct {
	*ReportInstanceStatusOutput
	// contains filtered or unexported fields
}

ReportInstanceStatusResponse is the response type for the ReportInstanceStatus API operation.

func (*ReportInstanceStatusResponse) SDKResponseMetdata added in v0.9.0

func (r *ReportInstanceStatusResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ReportInstanceStatus request.

type ReportStatusType

type ReportStatusType string
const (
	ReportStatusTypeOk       ReportStatusType = "ok"
	ReportStatusTypeImpaired ReportStatusType = "impaired"
)

Enum values for ReportStatusType

func (ReportStatusType) MarshalValue added in v0.3.0

func (enum ReportStatusType) MarshalValue() (string, error)

func (ReportStatusType) MarshalValueBuf added in v0.3.0

func (enum ReportStatusType) MarshalValueBuf(b []byte) ([]byte, error)

type RequestLaunchTemplateData added in v0.2.0

type RequestLaunchTemplateData struct {

	// The block device mapping.
	BlockDeviceMappings []LaunchTemplateBlockDeviceMappingRequest `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`

	// The Capacity Reservation targeting option. If you do not specify this parameter,
	// the instance's Capacity Reservation preference defaults to open, which enables
	// it to run in any open Capacity Reservation that has matching attributes (instance
	// type, platform, Availability Zone).
	CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationRequest `type:"structure"`

	// The CPU options for the instance. For more information, see Optimizing CPU
	// Options (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	CpuOptions *LaunchTemplateCpuOptionsRequest `type:"structure"`

	// The credit option for CPU usage of the instance. Valid for T2, T3, or T3a
	// instances only.
	CreditSpecification *CreditSpecificationRequest `type:"structure"`

	// If you set this parameter to true, you can't terminate the instance using
	// the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute
	// after launch, use ModifyInstanceAttribute (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceAttribute.html).
	// Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate,
	// you can terminate the instance by running the shutdown command from the instance.
	DisableApiTermination *bool `type:"boolean"`

	// Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
	// provides dedicated throughput to Amazon EBS and an optimized configuration
	// stack to provide optimal Amazon EBS I/O performance. This optimization isn't
	// available with all instance types. Additional usage charges apply when using
	// an EBS-optimized instance.
	EbsOptimized *bool `type:"boolean"`

	// An elastic GPU to associate with the instance.
	ElasticGpuSpecifications []ElasticGpuSpecification `locationName:"ElasticGpuSpecification" locationNameList:"ElasticGpuSpecification" type:"list"`

	// The elastic inference accelerator for the instance.
	ElasticInferenceAccelerators []LaunchTemplateElasticInferenceAccelerator `locationName:"ElasticInferenceAccelerator" locationNameList:"item" type:"list"`

	// Indicates whether an instance is enabled for hibernation. This parameter
	// is valid only if the instance meets the hibernation prerequisites (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
	// For more information, see Hibernate Your Instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	HibernationOptions *LaunchTemplateHibernationOptionsRequest `type:"structure"`

	// The IAM instance profile.
	IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecificationRequest `type:"structure"`

	// The ID of the AMI.
	ImageId *string `type:"string"`

	// Indicates whether an instance stops or terminates when you initiate shutdown
	// from the instance (using the operating system command for system shutdown).
	//
	// Default: stop
	InstanceInitiatedShutdownBehavior ShutdownBehavior `type:"string" enum:"true"`

	// The market (purchasing) option for the instances.
	InstanceMarketOptions *LaunchTemplateInstanceMarketOptionsRequest `type:"structure"`

	// The instance type. For more information, see Instance Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	InstanceType InstanceType `type:"string" enum:"true"`

	// The ID of the kernel.
	//
	// We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
	// information, see User Provided Kernels (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	KernelId *string `type:"string"`

	// The name of the key pair. You can create a key pair using CreateKeyPair (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html)
	// or ImportKeyPair (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html).
	//
	// If you do not specify a key pair, you can't connect to the instance unless
	// you choose an AMI that is configured to allow users another way to log in.
	KeyName *string `type:"string"`

	// The license configurations.
	LicenseSpecifications []LaunchTemplateLicenseConfigurationRequest `locationName:"LicenseSpecification" locationNameList:"item" type:"list"`

	// The metadata options for the instance. For more information, see Instance
	// Metadata and User Data (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	MetadataOptions *LaunchTemplateInstanceMetadataOptionsRequest `type:"structure"`

	// The monitoring for the instance.
	Monitoring *LaunchTemplatesMonitoringRequest `type:"structure"`

	// One or more network interfaces. If you specify a network interface, you must
	// specify any security groups and subnets as part of the network interface.
	NetworkInterfaces []LaunchTemplateInstanceNetworkInterfaceSpecificationRequest `locationName:"NetworkInterface" locationNameList:"InstanceNetworkInterfaceSpecification" type:"list"`

	// The placement for the instance.
	Placement *LaunchTemplatePlacementRequest `type:"structure"`

	// The ID of the RAM disk.
	//
	// We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
	// information, see User Provided Kernels (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	RamDiskId *string `type:"string"`

	// One or more security group IDs. You can create a security group using CreateSecurityGroup
	// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html).
	// You cannot specify both a security group ID and security name in the same
	// request.
	SecurityGroupIds []string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`

	// [EC2-Classic, default VPC] One or more security group names. For a nondefault
	// VPC, you must use security group IDs instead. You cannot specify both a security
	// group ID and security name in the same request.
	SecurityGroups []string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`

	// The tags to apply to the resources during launch. You can only tag instances
	// and volumes on launch. The specified tags are applied to all instances or
	// volumes that are created during launch. To tag a resource after it has been
	// created, see CreateTags (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html).
	TagSpecifications []LaunchTemplateTagSpecificationRequest `locationName:"TagSpecification" locationNameList:"LaunchTemplateTagSpecificationRequest" type:"list"`

	// The Base64-encoded user data to make available to the instance. For more
	// information, see Running Commands on Your Linux Instance at Launch (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
	// (Linux) and Adding User Data (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
	// (Windows).
	UserData *string `type:"string"`
	// contains filtered or unexported fields
}

The information to include in the launch template.

func (RequestLaunchTemplateData) String added in v0.2.0

func (s RequestLaunchTemplateData) String() string

String returns the string representation

func (*RequestLaunchTemplateData) Validate added in v0.2.0

func (s *RequestLaunchTemplateData) Validate() error

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

type RequestSpotFleetInput

type RequestSpotFleetInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The configuration for the Spot Fleet request.
	//
	// SpotFleetRequestConfig is a required field
	SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for RequestSpotFleet.

func (RequestSpotFleetInput) String

func (s RequestSpotFleetInput) String() string

String returns the string representation

func (*RequestSpotFleetInput) Validate

func (s *RequestSpotFleetInput) Validate() error

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

type RequestSpotFleetOutput

type RequestSpotFleetOutput struct {

	// The ID of the Spot Fleet request.
	SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
	// contains filtered or unexported fields
}

Contains the output of RequestSpotFleet.

func (RequestSpotFleetOutput) String

func (s RequestSpotFleetOutput) String() string

String returns the string representation

type RequestSpotFleetRequest

type RequestSpotFleetRequest struct {
	*aws.Request
	Input *RequestSpotFleetInput
	Copy  func(*RequestSpotFleetInput) RequestSpotFleetRequest
}

RequestSpotFleetRequest is the request type for the RequestSpotFleet API operation.

func (RequestSpotFleetRequest) Send

Send marshals and sends the RequestSpotFleet API request.

type RequestSpotFleetResponse added in v0.9.0

type RequestSpotFleetResponse struct {
	*RequestSpotFleetOutput
	// contains filtered or unexported fields
}

RequestSpotFleetResponse is the response type for the RequestSpotFleet API operation.

func (*RequestSpotFleetResponse) SDKResponseMetdata added in v0.9.0

func (r *RequestSpotFleetResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RequestSpotFleet request.

type RequestSpotInstancesInput

type RequestSpotInstancesInput struct {

	// The user-specified name for a logical grouping of requests.
	//
	// When you specify an Availability Zone group in a Spot Instance request, all
	// Spot Instances in the request are launched in the same Availability Zone.
	// Instance proximity is maintained with this parameter, but the choice of Availability
	// Zone is not. The group applies only to requests for Spot Instances of the
	// same instance type. Any additional Spot Instance requests that are specified
	// with the same Availability Zone group name are launched in that same Availability
	// Zone, as long as at least one instance from the group is still active.
	//
	// If there is no active instance running in the Availability Zone group that
	// you specify for a new Spot Instance request (all instances are terminated,
	// the request is expired, or the maximum price you specified falls below current
	// Spot price), then Amazon EC2 launches the instance in any Availability Zone
	// where the constraint can be met. Consequently, the subsequent set of Spot
	// Instances could be placed in a different zone from the original request,
	// even if you specified the same Availability Zone group.
	//
	// Default: Instances are launched in any available Availability Zone.
	AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`

	// The required duration for the Spot Instances (also known as Spot blocks),
	// in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
	// or 360).
	//
	// The duration period starts as soon as your Spot Instance receives its instance
	// ID. At the end of the duration period, Amazon EC2 marks the Spot Instance
	// for termination and provides a Spot Instance termination notice, which gives
	// the instance a two-minute warning before it terminates.
	//
	// You can't specify an Availability Zone group or a launch group if you specify
	// a duration.
	BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
	// in the Amazon EC2 User Guide for Linux Instances.
	ClientToken *string `locationName:"clientToken" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The maximum number of Spot Instances to launch.
	//
	// Default: 1
	InstanceCount *int64 `locationName:"instanceCount" type:"integer"`

	// The behavior when a Spot Instance is interrupted. The default is terminate.
	InstanceInterruptionBehavior InstanceInterruptionBehavior `type:"string" enum:"true"`

	// The instance launch group. Launch groups are Spot Instances that launch together
	// and terminate together.
	//
	// Default: Instances are launched and terminated individually
	LaunchGroup *string `locationName:"launchGroup" type:"string"`

	// The launch specification.
	LaunchSpecification *RequestSpotLaunchSpecification `type:"structure"`

	// The maximum price per hour that you are willing to pay for a Spot Instance.
	// The default is the On-Demand price.
	SpotPrice *string `locationName:"spotPrice" type:"string"`

	// The key-value pair for tagging the Spot Instance request on creation. The
	// value for ResourceType must be spot-instances-request, otherwise the Spot
	// Instance request fails. To tag the Spot Instance request after it has been
	// created, see CreateTags (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html).
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The Spot Instance request type.
	//
	// Default: one-time
	Type SpotInstanceType `locationName:"type" type:"string" enum:"true"`

	// The start date of the request. If this is a one-time request, the request
	// becomes active at this date and time and remains active until all instances
	// launch, the request expires, or the request is canceled. If the request is
	// persistent, the request becomes active at this date and time and remains
	// active until it expires or is canceled.
	//
	// The specified start date and time cannot be equal to the current date and
	// time. You must specify a start date and time that occurs after the current
	// date and time.
	ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`

	// The end date of the request. If this is a one-time request, the request remains
	// active until all instances launch, the request is canceled, or this date
	// is reached. If the request is persistent, it remains active until it is canceled
	// or this date is reached. The default end date is 7 days from the current
	// date.
	ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
	// contains filtered or unexported fields
}

Contains the parameters for RequestSpotInstances.

func (RequestSpotInstancesInput) String

func (s RequestSpotInstancesInput) String() string

String returns the string representation

func (*RequestSpotInstancesInput) Validate

func (s *RequestSpotInstancesInput) Validate() error

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

type RequestSpotInstancesOutput

type RequestSpotInstancesOutput struct {

	// One or more Spot Instance requests.
	SpotInstanceRequests []SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of RequestSpotInstances.

func (RequestSpotInstancesOutput) String

String returns the string representation

type RequestSpotInstancesRequest

type RequestSpotInstancesRequest struct {
	*aws.Request
	Input *RequestSpotInstancesInput
	Copy  func(*RequestSpotInstancesInput) RequestSpotInstancesRequest
}

RequestSpotInstancesRequest is the request type for the RequestSpotInstances API operation.

func (RequestSpotInstancesRequest) Send

Send marshals and sends the RequestSpotInstances API request.

type RequestSpotInstancesResponse added in v0.9.0

type RequestSpotInstancesResponse struct {
	*RequestSpotInstancesOutput
	// contains filtered or unexported fields
}

RequestSpotInstancesResponse is the response type for the RequestSpotInstances API operation.

func (*RequestSpotInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *RequestSpotInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RequestSpotInstances request.

type RequestSpotLaunchSpecification

type RequestSpotLaunchSpecification struct {

	// Deprecated.
	AddressingType *string `locationName:"addressingType" type:"string"`

	// One or more block device mapping entries. You can't specify both a snapshot
	// ID and an encryption value. This is because only blank volumes can be encrypted
	// on creation. If a snapshot is the basis for a volume, it is not blank and
	// its encryption status is used for the volume encryption status.
	BlockDeviceMappings []BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`

	// Indicates whether the instance is optimized for EBS I/O. This optimization
	// provides dedicated throughput to Amazon EBS and an optimized configuration
	// stack to provide optimal EBS I/O performance. This optimization isn't available
	// with all instance types. Additional usage charges apply when using an EBS
	// Optimized instance.
	//
	// Default: false
	EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`

	// The IAM instance profile.
	IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`

	// The ID of the AMI.
	ImageId *string `locationName:"imageId" type:"string"`

	// The instance type.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The ID of the kernel.
	KernelId *string `locationName:"kernelId" type:"string"`

	// The name of the key pair.
	KeyName *string `locationName:"keyName" type:"string"`

	// Indicates whether basic or detailed monitoring is enabled for the instance.
	//
	// Default: Disabled
	Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`

	// One or more network interfaces. If you specify a network interface, you must
	// specify subnet IDs and security group IDs using the network interface.
	NetworkInterfaces []InstanceNetworkInterfaceSpecification `locationName:"NetworkInterface" locationNameList:"item" type:"list"`

	// The placement information for the instance.
	Placement *SpotPlacement `locationName:"placement" type:"structure"`

	// The ID of the RAM disk.
	RamdiskId *string `locationName:"ramdiskId" type:"string"`

	// One or more security group IDs.
	SecurityGroupIds []string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`

	// One or more security groups. When requesting instances in a VPC, you must
	// specify the IDs of the security groups. When requesting instances in EC2-Classic,
	// you can specify the names or the IDs of the security groups.
	SecurityGroups []string `locationName:"SecurityGroup" locationNameList:"item" type:"list"`

	// The IDs of the subnets in which to launch the instance. To specify multiple
	// subnets, separate them using commas; for example, "subnet-1234abcdeexample1,
	// subnet-0987cdef6example2".
	SubnetId *string `locationName:"subnetId" type:"string"`

	// The Base64-encoded user data for the instance. User data is limited to 16
	// KB.
	UserData *string `locationName:"userData" type:"string"`
	// contains filtered or unexported fields
}

Describes the launch specification for an instance.

func (RequestSpotLaunchSpecification) String

String returns the string representation

func (*RequestSpotLaunchSpecification) Validate

func (s *RequestSpotLaunchSpecification) Validate() error

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

type Reservation added in v0.9.0

type Reservation struct {

	// [EC2-Classic only] The security groups.
	Groups []GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`

	// The instances.
	Instances []Instance `locationName:"instancesSet" locationNameList:"item" type:"list"`

	// The ID of the AWS account that owns the reservation.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The ID of the requester that launched the instances on your behalf (for example,
	// AWS Management Console or Auto Scaling).
	RequesterId *string `locationName:"requesterId" type:"string"`

	// The ID of the reservation.
	ReservationId *string `locationName:"reservationId" type:"string"`
	// contains filtered or unexported fields
}

Describes a reservation.

func (Reservation) String added in v0.9.0

func (s Reservation) String() string

String returns the string representation

type ReservationState

type ReservationState string
const (
	ReservationStatePaymentPending ReservationState = "payment-pending"
	ReservationStatePaymentFailed  ReservationState = "payment-failed"
	ReservationStateActive         ReservationState = "active"
	ReservationStateRetired        ReservationState = "retired"
)

Enum values for ReservationState

func (ReservationState) MarshalValue added in v0.3.0

func (enum ReservationState) MarshalValue() (string, error)

func (ReservationState) MarshalValueBuf added in v0.3.0

func (enum ReservationState) MarshalValueBuf(b []byte) ([]byte, error)

type ReservationValue

type ReservationValue struct {

	// The hourly rate of the reservation.
	HourlyPrice *string `locationName:"hourlyPrice" type:"string"`

	// The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice
	// * number of hours remaining).
	RemainingTotalValue *string `locationName:"remainingTotalValue" type:"string"`

	// The remaining upfront cost of the reservation.
	RemainingUpfrontValue *string `locationName:"remainingUpfrontValue" type:"string"`
	// contains filtered or unexported fields
}

The cost associated with the Reserved Instance.

func (ReservationValue) String

func (s ReservationValue) String() string

String returns the string representation

type ReservedInstanceLimitPrice

type ReservedInstanceLimitPrice struct {

	// Used for Reserved Instance Marketplace offerings. Specifies the limit price
	// on the total order (instanceCount * price).
	Amount *float64 `locationName:"amount" type:"double"`

	// The currency in which the limitPrice amount is specified. At this time, the
	// only supported currency is USD.
	CurrencyCode CurrencyCodeValues `locationName:"currencyCode" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the limit price of a Reserved Instance offering.

func (ReservedInstanceLimitPrice) String

String returns the string representation

type ReservedInstanceReservationValue

type ReservedInstanceReservationValue struct {

	// The total value of the Convertible Reserved Instance that you are exchanging.
	ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`

	// The ID of the Convertible Reserved Instance that you are exchanging.
	ReservedInstanceId *string `locationName:"reservedInstanceId" type:"string"`
	// contains filtered or unexported fields
}

The total value of the Convertible Reserved Instance.

func (ReservedInstanceReservationValue) String

String returns the string representation

type ReservedInstanceState

type ReservedInstanceState string
const (
	ReservedInstanceStatePaymentPending ReservedInstanceState = "payment-pending"
	ReservedInstanceStateActive         ReservedInstanceState = "active"
	ReservedInstanceStatePaymentFailed  ReservedInstanceState = "payment-failed"
	ReservedInstanceStateRetired        ReservedInstanceState = "retired"
	ReservedInstanceStateQueued         ReservedInstanceState = "queued"
	ReservedInstanceStateQueuedDeleted  ReservedInstanceState = "queued-deleted"
)

Enum values for ReservedInstanceState

func (ReservedInstanceState) MarshalValue added in v0.3.0

func (enum ReservedInstanceState) MarshalValue() (string, error)

func (ReservedInstanceState) MarshalValueBuf added in v0.3.0

func (enum ReservedInstanceState) MarshalValueBuf(b []byte) ([]byte, error)

type ReservedInstances

type ReservedInstances struct {

	// The Availability Zone in which the Reserved Instance can be used.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The currency of the Reserved Instance. It's specified using ISO 4217 standard
	// currency codes. At this time, the only supported currency is USD.
	CurrencyCode CurrencyCodeValues `locationName:"currencyCode" type:"string" enum:"true"`

	// The duration of the Reserved Instance, in seconds.
	Duration *int64 `locationName:"duration" type:"long"`

	// The time when the Reserved Instance expires.
	End *time.Time `locationName:"end" type:"timestamp"`

	// The purchase price of the Reserved Instance.
	FixedPrice *float64 `locationName:"fixedPrice" type:"float"`

	// The number of reservations purchased.
	InstanceCount *int64 `locationName:"instanceCount" type:"integer"`

	// The tenancy of the instance.
	InstanceTenancy Tenancy `locationName:"instanceTenancy" type:"string" enum:"true"`

	// The instance type on which the Reserved Instance can be used.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The offering class of the Reserved Instance.
	OfferingClass OfferingClassType `locationName:"offeringClass" type:"string" enum:"true"`

	// The Reserved Instance offering type.
	OfferingType OfferingTypeValues `locationName:"offeringType" type:"string" enum:"true"`

	// The Reserved Instance product platform description.
	ProductDescription RIProductDescription `locationName:"productDescription" type:"string" enum:"true"`

	// The recurring charge tag assigned to the resource.
	RecurringCharges []RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`

	// The ID of the Reserved Instance.
	ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`

	// The scope of the Reserved Instance.
	Scope Scope `locationName:"scope" type:"string" enum:"true"`

	// The date and time the Reserved Instance started.
	Start *time.Time `locationName:"start" type:"timestamp"`

	// The state of the Reserved Instance purchase.
	State ReservedInstanceState `locationName:"state" type:"string" enum:"true"`

	// Any tags assigned to the resource.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The usage price of the Reserved Instance, per hour.
	UsagePrice *float64 `locationName:"usagePrice" type:"float"`
	// contains filtered or unexported fields
}

Describes a Reserved Instance.

func (ReservedInstances) String

func (s ReservedInstances) String() string

String returns the string representation

type ReservedInstancesConfiguration

type ReservedInstancesConfiguration struct {

	// The Availability Zone for the modified Reserved Instances.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The number of modified Reserved Instances.
	//
	// This is a required field for a request.
	InstanceCount *int64 `locationName:"instanceCount" type:"integer"`

	// The instance type for the modified Reserved Instances.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The network platform of the modified Reserved Instances, which is either
	// EC2-Classic or EC2-VPC.
	Platform *string `locationName:"platform" type:"string"`

	// Whether the Reserved Instance is applied to instances in a Region or instances
	// in a specific Availability Zone.
	Scope Scope `locationName:"scope" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the configuration settings for the modified Reserved Instances.

func (ReservedInstancesConfiguration) String

String returns the string representation

type ReservedInstancesId

type ReservedInstancesId struct {

	// The ID of the Reserved Instance.
	ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
	// contains filtered or unexported fields
}

Describes the ID of a Reserved Instance.

func (ReservedInstancesId) String

func (s ReservedInstancesId) String() string

String returns the string representation

type ReservedInstancesListing

type ReservedInstancesListing struct {

	// A unique, case-sensitive key supplied by the client to ensure that the request
	// is idempotent. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `locationName:"clientToken" type:"string"`

	// The time the listing was created.
	CreateDate *time.Time `locationName:"createDate" type:"timestamp"`

	// The number of instances in this state.
	InstanceCounts []InstanceCount `locationName:"instanceCounts" locationNameList:"item" type:"list"`

	// The price of the Reserved Instance listing.
	PriceSchedules []PriceSchedule `locationName:"priceSchedules" locationNameList:"item" type:"list"`

	// The ID of the Reserved Instance.
	ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`

	// The ID of the Reserved Instance listing.
	ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`

	// The status of the Reserved Instance listing.
	Status ListingStatus `locationName:"status" type:"string" enum:"true"`

	// The reason for the current status of the Reserved Instance listing. The response
	// can be blank.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// Any tags assigned to the resource.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The last modified timestamp of the listing.
	UpdateDate *time.Time `locationName:"updateDate" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes a Reserved Instance listing.

func (ReservedInstancesListing) String

func (s ReservedInstancesListing) String() string

String returns the string representation

type ReservedInstancesModification

type ReservedInstancesModification struct {

	// A unique, case-sensitive key supplied by the client to ensure that the request
	// is idempotent. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `locationName:"clientToken" type:"string"`

	// The time when the modification request was created.
	CreateDate *time.Time `locationName:"createDate" type:"timestamp"`

	// The time for the modification to become effective.
	EffectiveDate *time.Time `locationName:"effectiveDate" type:"timestamp"`

	// Contains target configurations along with their corresponding new Reserved
	// Instance IDs.
	ModificationResults []ReservedInstancesModificationResult `locationName:"modificationResultSet" locationNameList:"item" type:"list"`

	// The IDs of one or more Reserved Instances.
	ReservedInstancesIds []ReservedInstancesId `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`

	// A unique ID for the Reserved Instance modification.
	ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`

	// The status of the Reserved Instances modification request.
	Status *string `locationName:"status" type:"string"`

	// The reason for the status.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// The time when the modification request was last updated.
	UpdateDate *time.Time `locationName:"updateDate" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes a Reserved Instance modification.

func (ReservedInstancesModification) String

String returns the string representation

type ReservedInstancesModificationResult

type ReservedInstancesModificationResult struct {

	// The ID for the Reserved Instances that were created as part of the modification
	// request. This field is only available when the modification is fulfilled.
	ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`

	// The target Reserved Instances configurations supplied as part of the modification
	// request.
	TargetConfiguration *ReservedInstancesConfiguration `locationName:"targetConfiguration" type:"structure"`
	// contains filtered or unexported fields
}

Describes the modification request/s.

func (ReservedInstancesModificationResult) String

String returns the string representation

type ReservedInstancesOffering

type ReservedInstancesOffering struct {

	// The Availability Zone in which the Reserved Instance can be used.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The currency of the Reserved Instance offering you are purchasing. It's specified
	// using ISO 4217 standard currency codes. At this time, the only supported
	// currency is USD.
	CurrencyCode CurrencyCodeValues `locationName:"currencyCode" type:"string" enum:"true"`

	// The duration of the Reserved Instance, in seconds.
	Duration *int64 `locationName:"duration" type:"long"`

	// The purchase price of the Reserved Instance.
	FixedPrice *float64 `locationName:"fixedPrice" type:"float"`

	// The tenancy of the instance.
	InstanceTenancy Tenancy `locationName:"instanceTenancy" type:"string" enum:"true"`

	// The instance type on which the Reserved Instance can be used.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// Indicates whether the offering is available through the Reserved Instance
	// Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering,
	// this is true.
	Marketplace *bool `locationName:"marketplace" type:"boolean"`

	// If convertible it can be exchanged for Reserved Instances of the same or
	// higher monetary value, with different configurations. If standard, it is
	// not possible to perform an exchange.
	OfferingClass OfferingClassType `locationName:"offeringClass" type:"string" enum:"true"`

	// The Reserved Instance offering type.
	OfferingType OfferingTypeValues `locationName:"offeringType" type:"string" enum:"true"`

	// The pricing details of the Reserved Instance offering.
	PricingDetails []PricingDetail `locationName:"pricingDetailsSet" locationNameList:"item" type:"list"`

	// The Reserved Instance product platform description.
	ProductDescription RIProductDescription `locationName:"productDescription" type:"string" enum:"true"`

	// The recurring charge tag assigned to the resource.
	RecurringCharges []RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`

	// The ID of the Reserved Instance offering. This is the offering ID used in
	// GetReservedInstancesExchangeQuote to confirm that an exchange can be made.
	ReservedInstancesOfferingId *string `locationName:"reservedInstancesOfferingId" type:"string"`

	// Whether the Reserved Instance is applied to instances in a Region or an Availability
	// Zone.
	Scope Scope `locationName:"scope" type:"string" enum:"true"`

	// The usage price of the Reserved Instance, per hour.
	UsagePrice *float64 `locationName:"usagePrice" type:"float"`
	// contains filtered or unexported fields
}

Describes a Reserved Instance offering.

func (ReservedInstancesOffering) String

func (s ReservedInstancesOffering) String() string

String returns the string representation

type ResetEbsDefaultKmsKeyIdInput added in v0.9.0

type ResetEbsDefaultKmsKeyIdInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (ResetEbsDefaultKmsKeyIdInput) String added in v0.9.0

String returns the string representation

type ResetEbsDefaultKmsKeyIdOutput added in v0.9.0

type ResetEbsDefaultKmsKeyIdOutput struct {

	// The Amazon Resource Name (ARN) of the default CMK for EBS encryption by default.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
	// contains filtered or unexported fields
}

func (ResetEbsDefaultKmsKeyIdOutput) String added in v0.9.0

String returns the string representation

type ResetEbsDefaultKmsKeyIdRequest added in v0.9.0

type ResetEbsDefaultKmsKeyIdRequest struct {
	*aws.Request
	Input *ResetEbsDefaultKmsKeyIdInput
	Copy  func(*ResetEbsDefaultKmsKeyIdInput) ResetEbsDefaultKmsKeyIdRequest
}

ResetEbsDefaultKmsKeyIdRequest is the request type for the ResetEbsDefaultKmsKeyId API operation.

func (ResetEbsDefaultKmsKeyIdRequest) Send added in v0.9.0

Send marshals and sends the ResetEbsDefaultKmsKeyId API request.

type ResetEbsDefaultKmsKeyIdResponse added in v0.9.0

type ResetEbsDefaultKmsKeyIdResponse struct {
	*ResetEbsDefaultKmsKeyIdOutput
	// contains filtered or unexported fields
}

ResetEbsDefaultKmsKeyIdResponse is the response type for the ResetEbsDefaultKmsKeyId API operation.

func (*ResetEbsDefaultKmsKeyIdResponse) SDKResponseMetdata added in v0.9.0

func (r *ResetEbsDefaultKmsKeyIdResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ResetEbsDefaultKmsKeyId request.

type ResetFpgaImageAttributeInput

type ResetFpgaImageAttributeInput struct {

	// The attribute.
	Attribute ResetFpgaImageAttributeName `type:"string" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the AFI.
	//
	// FpgaImageId is a required field
	FpgaImageId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ResetFpgaImageAttributeInput) String

String returns the string representation

func (*ResetFpgaImageAttributeInput) Validate

func (s *ResetFpgaImageAttributeInput) Validate() error

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

type ResetFpgaImageAttributeName

type ResetFpgaImageAttributeName string
const (
	ResetFpgaImageAttributeNameLoadPermission ResetFpgaImageAttributeName = "loadPermission"
)

Enum values for ResetFpgaImageAttributeName

func (ResetFpgaImageAttributeName) MarshalValue added in v0.3.0

func (enum ResetFpgaImageAttributeName) MarshalValue() (string, error)

func (ResetFpgaImageAttributeName) MarshalValueBuf added in v0.3.0

func (enum ResetFpgaImageAttributeName) MarshalValueBuf(b []byte) ([]byte, error)

type ResetFpgaImageAttributeOutput

type ResetFpgaImageAttributeOutput struct {

	// Is true if the request succeeds, and an error otherwise.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (ResetFpgaImageAttributeOutput) String

String returns the string representation

type ResetFpgaImageAttributeRequest

type ResetFpgaImageAttributeRequest struct {
	*aws.Request
	Input *ResetFpgaImageAttributeInput
	Copy  func(*ResetFpgaImageAttributeInput) ResetFpgaImageAttributeRequest
}

ResetFpgaImageAttributeRequest is the request type for the ResetFpgaImageAttribute API operation.

func (ResetFpgaImageAttributeRequest) Send

Send marshals and sends the ResetFpgaImageAttribute API request.

type ResetFpgaImageAttributeResponse added in v0.9.0

type ResetFpgaImageAttributeResponse struct {
	*ResetFpgaImageAttributeOutput
	// contains filtered or unexported fields
}

ResetFpgaImageAttributeResponse is the response type for the ResetFpgaImageAttribute API operation.

func (*ResetFpgaImageAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ResetFpgaImageAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ResetFpgaImageAttribute request.

type ResetImageAttributeInput

type ResetImageAttributeInput struct {

	// The attribute to reset (currently you can only reset the launch permission
	// attribute).
	//
	// Attribute is a required field
	Attribute ResetImageAttributeName `type:"string" required:"true" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the AMI.
	//
	// ImageId is a required field
	ImageId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for ResetImageAttribute.

func (ResetImageAttributeInput) String

func (s ResetImageAttributeInput) String() string

String returns the string representation

func (*ResetImageAttributeInput) Validate

func (s *ResetImageAttributeInput) Validate() error

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

type ResetImageAttributeName

type ResetImageAttributeName string
const (
	ResetImageAttributeNameLaunchPermission ResetImageAttributeName = "launchPermission"
)

Enum values for ResetImageAttributeName

func (ResetImageAttributeName) MarshalValue added in v0.3.0

func (enum ResetImageAttributeName) MarshalValue() (string, error)

func (ResetImageAttributeName) MarshalValueBuf added in v0.3.0

func (enum ResetImageAttributeName) MarshalValueBuf(b []byte) ([]byte, error)

type ResetImageAttributeOutput

type ResetImageAttributeOutput struct {
	// contains filtered or unexported fields
}

func (ResetImageAttributeOutput) String

func (s ResetImageAttributeOutput) String() string

String returns the string representation

type ResetImageAttributeRequest

type ResetImageAttributeRequest struct {
	*aws.Request
	Input *ResetImageAttributeInput
	Copy  func(*ResetImageAttributeInput) ResetImageAttributeRequest
}

ResetImageAttributeRequest is the request type for the ResetImageAttribute API operation.

func (ResetImageAttributeRequest) Send

Send marshals and sends the ResetImageAttribute API request.

type ResetImageAttributeResponse added in v0.9.0

type ResetImageAttributeResponse struct {
	*ResetImageAttributeOutput
	// contains filtered or unexported fields
}

ResetImageAttributeResponse is the response type for the ResetImageAttribute API operation.

func (*ResetImageAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ResetImageAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ResetImageAttribute request.

type ResetInstanceAttributeInput

type ResetInstanceAttributeInput struct {

	// The attribute to reset.
	//
	// You can only reset the following attributes: kernel | ramdisk | sourceDestCheck.
	// To change an instance attribute, use ModifyInstanceAttribute.
	//
	// Attribute is a required field
	Attribute InstanceAttributeName `locationName:"attribute" type:"string" required:"true" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ResetInstanceAttributeInput) String

String returns the string representation

func (*ResetInstanceAttributeInput) Validate

func (s *ResetInstanceAttributeInput) Validate() error

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

type ResetInstanceAttributeOutput

type ResetInstanceAttributeOutput struct {
	// contains filtered or unexported fields
}

func (ResetInstanceAttributeOutput) String

String returns the string representation

type ResetInstanceAttributeRequest

type ResetInstanceAttributeRequest struct {
	*aws.Request
	Input *ResetInstanceAttributeInput
	Copy  func(*ResetInstanceAttributeInput) ResetInstanceAttributeRequest
}

ResetInstanceAttributeRequest is the request type for the ResetInstanceAttribute API operation.

func (ResetInstanceAttributeRequest) Send

Send marshals and sends the ResetInstanceAttribute API request.

type ResetInstanceAttributeResponse added in v0.9.0

type ResetInstanceAttributeResponse struct {
	*ResetInstanceAttributeOutput
	// contains filtered or unexported fields
}

ResetInstanceAttributeResponse is the response type for the ResetInstanceAttribute API operation.

func (*ResetInstanceAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ResetInstanceAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ResetInstanceAttribute request.

type ResetNetworkInterfaceAttributeInput

type ResetNetworkInterfaceAttributeInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the network interface.
	//
	// NetworkInterfaceId is a required field
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`

	// The source/destination checking attribute. Resets the value to true.
	SourceDestCheck *string `locationName:"sourceDestCheck" type:"string"`
	// contains filtered or unexported fields
}

Contains the parameters for ResetNetworkInterfaceAttribute.

func (ResetNetworkInterfaceAttributeInput) String

String returns the string representation

func (*ResetNetworkInterfaceAttributeInput) Validate

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

type ResetNetworkInterfaceAttributeOutput

type ResetNetworkInterfaceAttributeOutput struct {
	// contains filtered or unexported fields
}

func (ResetNetworkInterfaceAttributeOutput) String

String returns the string representation

type ResetNetworkInterfaceAttributeRequest

type ResetNetworkInterfaceAttributeRequest struct {
	*aws.Request
	Input *ResetNetworkInterfaceAttributeInput
	Copy  func(*ResetNetworkInterfaceAttributeInput) ResetNetworkInterfaceAttributeRequest
}

ResetNetworkInterfaceAttributeRequest is the request type for the ResetNetworkInterfaceAttribute API operation.

func (ResetNetworkInterfaceAttributeRequest) Send

Send marshals and sends the ResetNetworkInterfaceAttribute API request.

type ResetNetworkInterfaceAttributeResponse added in v0.9.0

type ResetNetworkInterfaceAttributeResponse struct {
	*ResetNetworkInterfaceAttributeOutput
	// contains filtered or unexported fields
}

ResetNetworkInterfaceAttributeResponse is the response type for the ResetNetworkInterfaceAttribute API operation.

func (*ResetNetworkInterfaceAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ResetNetworkInterfaceAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ResetNetworkInterfaceAttribute request.

type ResetSnapshotAttributeInput

type ResetSnapshotAttributeInput struct {

	// The attribute to reset. Currently, only the attribute for permission to create
	// volumes can be reset.
	//
	// Attribute is a required field
	Attribute SnapshotAttributeName `type:"string" required:"true" enum:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The ID of the snapshot.
	//
	// SnapshotId is a required field
	SnapshotId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ResetSnapshotAttributeInput) String

String returns the string representation

func (*ResetSnapshotAttributeInput) Validate

func (s *ResetSnapshotAttributeInput) Validate() error

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

type ResetSnapshotAttributeOutput

type ResetSnapshotAttributeOutput struct {
	// contains filtered or unexported fields
}

func (ResetSnapshotAttributeOutput) String

String returns the string representation

type ResetSnapshotAttributeRequest

type ResetSnapshotAttributeRequest struct {
	*aws.Request
	Input *ResetSnapshotAttributeInput
	Copy  func(*ResetSnapshotAttributeInput) ResetSnapshotAttributeRequest
}

ResetSnapshotAttributeRequest is the request type for the ResetSnapshotAttribute API operation.

func (ResetSnapshotAttributeRequest) Send

Send marshals and sends the ResetSnapshotAttribute API request.

type ResetSnapshotAttributeResponse added in v0.9.0

type ResetSnapshotAttributeResponse struct {
	*ResetSnapshotAttributeOutput
	// contains filtered or unexported fields
}

ResetSnapshotAttributeResponse is the response type for the ResetSnapshotAttribute API operation.

func (*ResetSnapshotAttributeResponse) SDKResponseMetdata added in v0.9.0

func (r *ResetSnapshotAttributeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ResetSnapshotAttribute request.

type ResourceType

type ResourceType string
const (
	ResourceTypeClientVpnEndpoint                    ResourceType = "client-vpn-endpoint"
	ResourceTypeCustomerGateway                      ResourceType = "customer-gateway"
	ResourceTypeDedicatedHost                        ResourceType = "dedicated-host"
	ResourceTypeDhcpOptions                          ResourceType = "dhcp-options"
	ResourceTypeElasticIp                            ResourceType = "elastic-ip"
	ResourceTypeElasticGpu                           ResourceType = "elastic-gpu"
	ResourceTypeExportImageTask                      ResourceType = "export-image-task"
	ResourceTypeExportInstanceTask                   ResourceType = "export-instance-task"
	ResourceTypeFleet                                ResourceType = "fleet"
	ResourceTypeFpgaImage                            ResourceType = "fpga-image"
	ResourceTypeHostReservation                      ResourceType = "host-reservation"
	ResourceTypeImage                                ResourceType = "image"
	ResourceTypeImportImageTask                      ResourceType = "import-image-task"
	ResourceTypeImportSnapshotTask                   ResourceType = "import-snapshot-task"
	ResourceTypeInstance                             ResourceType = "instance"
	ResourceTypeInternetGateway                      ResourceType = "internet-gateway"
	ResourceTypeKeyPair                              ResourceType = "key-pair"
	ResourceTypeLaunchTemplate                       ResourceType = "launch-template"
	ResourceTypeLocalGatewayRouteTableVpcAssociation ResourceType = "local-gateway-route-table-vpc-association"
	ResourceTypeNatgateway                           ResourceType = "natgateway"
	ResourceTypeNetworkAcl                           ResourceType = "network-acl"
	ResourceTypeNetworkInterface                     ResourceType = "network-interface"
	ResourceTypePlacementGroup                       ResourceType = "placement-group"
	ResourceTypeReservedInstances                    ResourceType = "reserved-instances"
	ResourceTypeRouteTable                           ResourceType = "route-table"
	ResourceTypeSecurityGroup                        ResourceType = "security-group"
	ResourceTypeSnapshot                             ResourceType = "snapshot"
	ResourceTypeSpotFleetRequest                     ResourceType = "spot-fleet-request"
	ResourceTypeSpotInstancesRequest                 ResourceType = "spot-instances-request"
	ResourceTypeSubnet                               ResourceType = "subnet"
	ResourceTypeTrafficMirrorFilter                  ResourceType = "traffic-mirror-filter"
	ResourceTypeTrafficMirrorSession                 ResourceType = "traffic-mirror-session"
	ResourceTypeTrafficMirrorTarget                  ResourceType = "traffic-mirror-target"
	ResourceTypeTransitGateway                       ResourceType = "transit-gateway"
	ResourceTypeTransitGatewayAttachment             ResourceType = "transit-gateway-attachment"
	ResourceTypeTransitGatewayMulticastDomain        ResourceType = "transit-gateway-multicast-domain"
	ResourceTypeTransitGatewayRouteTable             ResourceType = "transit-gateway-route-table"
	ResourceTypeVolume                               ResourceType = "volume"
	ResourceTypeVpc                                  ResourceType = "vpc"
	ResourceTypeVpcPeeringConnection                 ResourceType = "vpc-peering-connection"
	ResourceTypeVpnConnection                        ResourceType = "vpn-connection"
	ResourceTypeVpnGateway                           ResourceType = "vpn-gateway"
	ResourceTypeVpcFlowLog                           ResourceType = "vpc-flow-log"
)

Enum values for ResourceType

func (ResourceType) MarshalValue added in v0.3.0

func (enum ResourceType) MarshalValue() (string, error)

func (ResourceType) MarshalValueBuf added in v0.3.0

func (enum ResourceType) MarshalValueBuf(b []byte) ([]byte, error)

type ResponseError added in v0.2.0

type ResponseError struct {

	// The error code.
	Code LaunchTemplateErrorCode `locationName:"code" type:"string" enum:"true"`

	// The error message, if applicable.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes the error that's returned when you cannot delete a launch template version.

func (ResponseError) String added in v0.2.0

func (s ResponseError) String() string

String returns the string representation

type ResponseLaunchTemplateData added in v0.2.0

type ResponseLaunchTemplateData struct {

	// The block device mappings.
	BlockDeviceMappings []LaunchTemplateBlockDeviceMapping `locationName:"blockDeviceMappingSet" locationNameList:"item" type:"list"`

	// Information about the Capacity Reservation targeting option.
	CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationResponse `locationName:"capacityReservationSpecification" type:"structure"`

	// The CPU options for the instance. For more information, see Optimizing CPU
	// Options (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	CpuOptions *LaunchTemplateCpuOptions `locationName:"cpuOptions" type:"structure"`

	// The credit option for CPU usage of the instance.
	CreditSpecification *CreditSpecification `locationName:"creditSpecification" type:"structure"`

	// If set to true, indicates that the instance cannot be terminated using the
	// Amazon EC2 console, command line tool, or API.
	DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`

	// Indicates whether the instance is optimized for Amazon EBS I/O.
	EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`

	// The elastic GPU specification.
	ElasticGpuSpecifications []ElasticGpuSpecificationResponse `locationName:"elasticGpuSpecificationSet" locationNameList:"item" type:"list"`

	// The elastic inference accelerator for the instance.
	ElasticInferenceAccelerators []LaunchTemplateElasticInferenceAcceleratorResponse `locationName:"elasticInferenceAcceleratorSet" locationNameList:"item" type:"list"`

	// Indicates whether an instance is configured for hibernation. For more information,
	// see Hibernate Your Instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	HibernationOptions *LaunchTemplateHibernationOptions `locationName:"hibernationOptions" type:"structure"`

	// The IAM instance profile.
	IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`

	// The ID of the AMI that was used to launch the instance.
	ImageId *string `locationName:"imageId" type:"string"`

	// Indicates whether an instance stops or terminates when you initiate shutdown
	// from the instance (using the operating system command for system shutdown).
	InstanceInitiatedShutdownBehavior ShutdownBehavior `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"true"`

	// The market (purchasing) option for the instances.
	InstanceMarketOptions *LaunchTemplateInstanceMarketOptions `locationName:"instanceMarketOptions" type:"structure"`

	// The instance type.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The ID of the kernel, if applicable.
	KernelId *string `locationName:"kernelId" type:"string"`

	// The name of the key pair.
	KeyName *string `locationName:"keyName" type:"string"`

	// The license configurations.
	LicenseSpecifications []LaunchTemplateLicenseConfiguration `locationName:"licenseSet" locationNameList:"item" type:"list"`

	// The metadata options for the instance. For more information, see Instance
	// Metadata and User Data (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	MetadataOptions *LaunchTemplateInstanceMetadataOptions `locationName:"metadataOptions" type:"structure"`

	// The monitoring for the instance.
	Monitoring *LaunchTemplatesMonitoring `locationName:"monitoring" type:"structure"`

	// The network interfaces.
	NetworkInterfaces []LaunchTemplateInstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`

	// The placement of the instance.
	Placement *LaunchTemplatePlacement `locationName:"placement" type:"structure"`

	// The ID of the RAM disk, if applicable.
	RamDiskId *string `locationName:"ramDiskId" type:"string"`

	// The security group IDs.
	SecurityGroupIds []string `locationName:"securityGroupIdSet" locationNameList:"item" type:"list"`

	// The security group names.
	SecurityGroups []string `locationName:"securityGroupSet" locationNameList:"item" type:"list"`

	// The tags.
	TagSpecifications []LaunchTemplateTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"`

	// The user data for the instance.
	UserData *string `locationName:"userData" type:"string"`
	// contains filtered or unexported fields
}

The information for a launch template.

func (ResponseLaunchTemplateData) String added in v0.2.0

String returns the string representation

type RestoreAddressToClassicInput

type RestoreAddressToClassicInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The Elastic IP address.
	//
	// PublicIp is a required field
	PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RestoreAddressToClassicInput) String

String returns the string representation

func (*RestoreAddressToClassicInput) Validate

func (s *RestoreAddressToClassicInput) Validate() error

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

type RestoreAddressToClassicOutput

type RestoreAddressToClassicOutput struct {

	// The Elastic IP address.
	PublicIp *string `locationName:"publicIp" type:"string"`

	// The move status for the IP address.
	Status Status `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (RestoreAddressToClassicOutput) String

String returns the string representation

type RestoreAddressToClassicRequest

type RestoreAddressToClassicRequest struct {
	*aws.Request
	Input *RestoreAddressToClassicInput
	Copy  func(*RestoreAddressToClassicInput) RestoreAddressToClassicRequest
}

RestoreAddressToClassicRequest is the request type for the RestoreAddressToClassic API operation.

func (RestoreAddressToClassicRequest) Send

Send marshals and sends the RestoreAddressToClassic API request.

type RestoreAddressToClassicResponse added in v0.9.0

type RestoreAddressToClassicResponse struct {
	*RestoreAddressToClassicOutput
	// contains filtered or unexported fields
}

RestoreAddressToClassicResponse is the response type for the RestoreAddressToClassic API operation.

func (*RestoreAddressToClassicResponse) SDKResponseMetdata added in v0.9.0

func (r *RestoreAddressToClassicResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RestoreAddressToClassic request.

type RestoreManagedPrefixListVersionInput added in v0.24.0

type RestoreManagedPrefixListVersionInput struct {

	// The current version number for the prefix list.
	//
	// CurrentVersion is a required field
	CurrentVersion *int64 `type:"long" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the prefix list.
	//
	// PrefixListId is a required field
	PrefixListId *string `type:"string" required:"true"`

	// The version to restore.
	//
	// PreviousVersion is a required field
	PreviousVersion *int64 `type:"long" required:"true"`
	// contains filtered or unexported fields
}

func (RestoreManagedPrefixListVersionInput) String added in v0.24.0

String returns the string representation

func (*RestoreManagedPrefixListVersionInput) Validate added in v0.24.0

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

type RestoreManagedPrefixListVersionOutput added in v0.24.0

type RestoreManagedPrefixListVersionOutput struct {

	// Information about the prefix list.
	PrefixList *ManagedPrefixList `locationName:"prefixList" type:"structure"`
	// contains filtered or unexported fields
}

func (RestoreManagedPrefixListVersionOutput) String added in v0.24.0

String returns the string representation

type RestoreManagedPrefixListVersionRequest added in v0.24.0

type RestoreManagedPrefixListVersionRequest struct {
	*aws.Request
	Input *RestoreManagedPrefixListVersionInput
	Copy  func(*RestoreManagedPrefixListVersionInput) RestoreManagedPrefixListVersionRequest
}

RestoreManagedPrefixListVersionRequest is the request type for the RestoreManagedPrefixListVersion API operation.

func (RestoreManagedPrefixListVersionRequest) Send added in v0.24.0

Send marshals and sends the RestoreManagedPrefixListVersion API request.

type RestoreManagedPrefixListVersionResponse added in v0.24.0

type RestoreManagedPrefixListVersionResponse struct {
	*RestoreManagedPrefixListVersionOutput
	// contains filtered or unexported fields
}

RestoreManagedPrefixListVersionResponse is the response type for the RestoreManagedPrefixListVersion API operation.

func (*RestoreManagedPrefixListVersionResponse) SDKResponseMetdata added in v0.24.0

func (r *RestoreManagedPrefixListVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RestoreManagedPrefixListVersion request.

type RevokeClientVpnIngressInput added in v0.7.0

type RevokeClientVpnIngressInput struct {

	// The ID of the Active Directory group for which to revoke access.
	AccessGroupId *string `type:"string"`

	// The ID of the Client VPN endpoint with which the authorization rule is associated.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// Indicates whether access should be revoked for all clients.
	RevokeAllGroups *bool `type:"boolean"`

	// The IPv4 address range, in CIDR notation, of the network for which access
	// is being removed.
	//
	// TargetNetworkCidr is a required field
	TargetNetworkCidr *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RevokeClientVpnIngressInput) String added in v0.7.0

String returns the string representation

func (*RevokeClientVpnIngressInput) Validate added in v0.7.0

func (s *RevokeClientVpnIngressInput) Validate() error

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

type RevokeClientVpnIngressOutput added in v0.7.0

type RevokeClientVpnIngressOutput struct {

	// The current state of the authorization rule.
	Status *VpnAuthorizationRuleStatus `locationName:"status" type:"structure"`
	// contains filtered or unexported fields
}

func (RevokeClientVpnIngressOutput) String added in v0.7.0

String returns the string representation

type RevokeClientVpnIngressRequest added in v0.7.0

type RevokeClientVpnIngressRequest struct {
	*aws.Request
	Input *RevokeClientVpnIngressInput
	Copy  func(*RevokeClientVpnIngressInput) RevokeClientVpnIngressRequest
}

RevokeClientVpnIngressRequest is the request type for the RevokeClientVpnIngress API operation.

func (RevokeClientVpnIngressRequest) Send added in v0.7.0

Send marshals and sends the RevokeClientVpnIngress API request.

type RevokeClientVpnIngressResponse added in v0.9.0

type RevokeClientVpnIngressResponse struct {
	*RevokeClientVpnIngressOutput
	// contains filtered or unexported fields
}

RevokeClientVpnIngressResponse is the response type for the RevokeClientVpnIngress API operation.

func (*RevokeClientVpnIngressResponse) SDKResponseMetdata added in v0.9.0

func (r *RevokeClientVpnIngressResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RevokeClientVpnIngress request.

type RevokeSecurityGroupEgressInput

type RevokeSecurityGroupEgressInput struct {

	// Not supported. Use a set of IP permissions to specify the CIDR.
	CidrIp *string `locationName:"cidrIp" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Not supported. Use a set of IP permissions to specify the port.
	FromPort *int64 `locationName:"fromPort" type:"integer"`

	// The ID of the security group.
	//
	// GroupId is a required field
	GroupId *string `locationName:"groupId" type:"string" required:"true"`

	// The sets of IP permissions. You can't specify a destination security group
	// and a CIDR IP address range in the same set of permissions.
	IpPermissions []IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`

	// Not supported. Use a set of IP permissions to specify the protocol name or
	// number.
	IpProtocol *string `locationName:"ipProtocol" type:"string"`

	// Not supported. Use a set of IP permissions to specify a destination security
	// group.
	SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`

	// Not supported. Use a set of IP permissions to specify a destination security
	// group.
	SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`

	// Not supported. Use a set of IP permissions to specify the port.
	ToPort *int64 `locationName:"toPort" type:"integer"`
	// contains filtered or unexported fields
}

func (RevokeSecurityGroupEgressInput) String

String returns the string representation

func (*RevokeSecurityGroupEgressInput) Validate

func (s *RevokeSecurityGroupEgressInput) Validate() error

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

type RevokeSecurityGroupEgressOutput

type RevokeSecurityGroupEgressOutput struct {
	// contains filtered or unexported fields
}

func (RevokeSecurityGroupEgressOutput) String

String returns the string representation

type RevokeSecurityGroupEgressRequest

type RevokeSecurityGroupEgressRequest struct {
	*aws.Request
	Input *RevokeSecurityGroupEgressInput
	Copy  func(*RevokeSecurityGroupEgressInput) RevokeSecurityGroupEgressRequest
}

RevokeSecurityGroupEgressRequest is the request type for the RevokeSecurityGroupEgress API operation.

func (RevokeSecurityGroupEgressRequest) Send

Send marshals and sends the RevokeSecurityGroupEgress API request.

type RevokeSecurityGroupEgressResponse added in v0.9.0

type RevokeSecurityGroupEgressResponse struct {
	*RevokeSecurityGroupEgressOutput
	// contains filtered or unexported fields
}

RevokeSecurityGroupEgressResponse is the response type for the RevokeSecurityGroupEgress API operation.

func (*RevokeSecurityGroupEgressResponse) SDKResponseMetdata added in v0.9.0

func (r *RevokeSecurityGroupEgressResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RevokeSecurityGroupEgress request.

type RevokeSecurityGroupIngressInput

type RevokeSecurityGroupIngressInput struct {

	// The CIDR IP address range. You can't specify this parameter when specifying
	// a source security group.
	CidrIp *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The start of port range for the TCP and UDP protocols, or an ICMP type number.
	// For the ICMP type number, use -1 to specify all ICMP types.
	FromPort *int64 `type:"integer"`

	// The ID of the security group. You must specify either the security group
	// ID or the security group name in the request. For security groups in a nondefault
	// VPC, you must specify the security group ID.
	GroupId *string `type:"string"`

	// [EC2-Classic, default VPC] The name of the security group. You must specify
	// either the security group ID or the security group name in the request.
	GroupName *string `type:"string"`

	// The sets of IP permissions. You can't specify a source security group and
	// a CIDR IP address range in the same set of permissions.
	IpPermissions []IpPermission `locationNameList:"item" type:"list"`

	// The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
	// Use -1 to specify all.
	IpProtocol *string `type:"string"`

	// [EC2-Classic, default VPC] The name of the source security group. You can't
	// specify this parameter in combination with the following parameters: the
	// CIDR IP address range, the start of the port range, the IP protocol, and
	// the end of the port range. For EC2-VPC, the source security group must be
	// in the same VPC. To revoke a specific rule for an IP protocol and port range,
	// use a set of IP permissions instead.
	SourceSecurityGroupName *string `type:"string"`

	// [EC2-Classic] The AWS account ID of the source security group, if the source
	// security group is in a different account. You can't specify this parameter
	// in combination with the following parameters: the CIDR IP address range,
	// the IP protocol, the start of the port range, and the end of the port range.
	// To revoke a specific rule for an IP protocol and port range, use a set of
	// IP permissions instead.
	SourceSecurityGroupOwnerId *string `type:"string"`

	// The end of port range for the TCP and UDP protocols, or an ICMP code number.
	// For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.
	ToPort *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (RevokeSecurityGroupIngressInput) String

String returns the string representation

type RevokeSecurityGroupIngressOutput

type RevokeSecurityGroupIngressOutput struct {
	// contains filtered or unexported fields
}

func (RevokeSecurityGroupIngressOutput) String

String returns the string representation

type RevokeSecurityGroupIngressRequest

type RevokeSecurityGroupIngressRequest struct {
	*aws.Request
	Input *RevokeSecurityGroupIngressInput
	Copy  func(*RevokeSecurityGroupIngressInput) RevokeSecurityGroupIngressRequest
}

RevokeSecurityGroupIngressRequest is the request type for the RevokeSecurityGroupIngress API operation.

func (RevokeSecurityGroupIngressRequest) Send

Send marshals and sends the RevokeSecurityGroupIngress API request.

type RevokeSecurityGroupIngressResponse added in v0.9.0

type RevokeSecurityGroupIngressResponse struct {
	*RevokeSecurityGroupIngressOutput
	// contains filtered or unexported fields
}

RevokeSecurityGroupIngressResponse is the response type for the RevokeSecurityGroupIngress API operation.

func (*RevokeSecurityGroupIngressResponse) SDKResponseMetdata added in v0.9.0

func (r *RevokeSecurityGroupIngressResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RevokeSecurityGroupIngress request.

type RootDeviceType added in v0.18.0

type RootDeviceType string
const (
	RootDeviceTypeEbs           RootDeviceType = "ebs"
	RootDeviceTypeInstanceStore RootDeviceType = "instance-store"
)

Enum values for RootDeviceType

func (RootDeviceType) MarshalValue added in v0.18.0

func (enum RootDeviceType) MarshalValue() (string, error)

func (RootDeviceType) MarshalValueBuf added in v0.18.0

func (enum RootDeviceType) MarshalValueBuf(b []byte) ([]byte, error)

type Route

type Route struct {

	// The IPv4 CIDR block used for the destination match.
	DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`

	// The IPv6 CIDR block used for the destination match.
	DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`

	// The prefix of the AWS service.
	DestinationPrefixListId *string `locationName:"destinationPrefixListId" type:"string"`

	// The ID of the egress-only internet gateway.
	EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`

	// The ID of a gateway attached to your VPC.
	GatewayId *string `locationName:"gatewayId" type:"string"`

	// The ID of a NAT instance in your VPC.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The AWS account ID of the owner of the instance.
	InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`

	// The ID of the local gateway.
	LocalGatewayId *string `locationName:"localGatewayId" type:"string"`

	// The ID of a NAT gateway.
	NatGatewayId *string `locationName:"natGatewayId" type:"string"`

	// The ID of the network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// Describes how the route was created.
	//
	//    * CreateRouteTable - The route was automatically created when the route
	//    table was created.
	//
	//    * CreateRoute - The route was manually added to the route table.
	//
	//    * EnableVgwRoutePropagation - The route was propagated by route propagation.
	Origin RouteOrigin `locationName:"origin" type:"string" enum:"true"`

	// The state of the route. The blackhole state indicates that the route's target
	// isn't available (for example, the specified gateway isn't attached to the
	// VPC, or the specified NAT instance has been terminated).
	State RouteState `locationName:"state" type:"string" enum:"true"`

	// The ID of a transit gateway.
	TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`

	// The ID of a VPC peering connection.
	VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
	// contains filtered or unexported fields
}

Describes a route in a route table.

func (Route) String

func (s Route) String() string

String returns the string representation

type RouteOrigin

type RouteOrigin string
const (
	RouteOriginCreateRouteTable          RouteOrigin = "CreateRouteTable"
	RouteOriginCreateRoute               RouteOrigin = "CreateRoute"
	RouteOriginEnableVgwRoutePropagation RouteOrigin = "EnableVgwRoutePropagation"
)

Enum values for RouteOrigin

func (RouteOrigin) MarshalValue added in v0.3.0

func (enum RouteOrigin) MarshalValue() (string, error)

func (RouteOrigin) MarshalValueBuf added in v0.3.0

func (enum RouteOrigin) MarshalValueBuf(b []byte) ([]byte, error)

type RouteState

type RouteState string
const (
	RouteStateActive    RouteState = "active"
	RouteStateBlackhole RouteState = "blackhole"
)

Enum values for RouteState

func (RouteState) MarshalValue added in v0.3.0

func (enum RouteState) MarshalValue() (string, error)

func (RouteState) MarshalValueBuf added in v0.3.0

func (enum RouteState) MarshalValueBuf(b []byte) ([]byte, error)

type RouteTable

type RouteTable struct {

	// The associations between the route table and one or more subnets or a gateway.
	Associations []RouteTableAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`

	// The ID of the AWS account that owns the route table.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// Any virtual private gateway (VGW) propagating routes.
	PropagatingVgws []PropagatingVgw `locationName:"propagatingVgwSet" locationNameList:"item" type:"list"`

	// The ID of the route table.
	RouteTableId *string `locationName:"routeTableId" type:"string"`

	// The routes in the route table.
	Routes []Route `locationName:"routeSet" locationNameList:"item" type:"list"`

	// Any tags assigned to the route table.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a route table.

func (RouteTable) String

func (s RouteTable) String() string

String returns the string representation

type RouteTableAssociation

type RouteTableAssociation struct {

	// The state of the association.
	AssociationState *RouteTableAssociationState `locationName:"associationState" type:"structure"`

	// The ID of the internet gateway or virtual private gateway.
	GatewayId *string `locationName:"gatewayId" type:"string"`

	// Indicates whether this is the main route table.
	Main *bool `locationName:"main" type:"boolean"`

	// The ID of the association.
	RouteTableAssociationId *string `locationName:"routeTableAssociationId" type:"string"`

	// The ID of the route table.
	RouteTableId *string `locationName:"routeTableId" type:"string"`

	// The ID of the subnet. A subnet ID is not returned for an implicit association.
	SubnetId *string `locationName:"subnetId" type:"string"`
	// contains filtered or unexported fields
}

Describes an association between a route table and a subnet or gateway.

func (RouteTableAssociation) String

func (s RouteTableAssociation) String() string

String returns the string representation

type RouteTableAssociationState added in v0.18.0

type RouteTableAssociationState struct {

	// The state of the association.
	State RouteTableAssociationStateCode `locationName:"state" type:"string" enum:"true"`

	// The status message, if applicable.
	StatusMessage *string `locationName:"statusMessage" type:"string"`
	// contains filtered or unexported fields
}

Describes the state of an association between a route table and a subnet or gateway.

func (RouteTableAssociationState) String added in v0.18.0

String returns the string representation

type RouteTableAssociationStateCode added in v0.18.0

type RouteTableAssociationStateCode string
const (
	RouteTableAssociationStateCodeAssociating    RouteTableAssociationStateCode = "associating"
	RouteTableAssociationStateCodeAssociated     RouteTableAssociationStateCode = "associated"
	RouteTableAssociationStateCodeDisassociating RouteTableAssociationStateCode = "disassociating"
	RouteTableAssociationStateCodeDisassociated  RouteTableAssociationStateCode = "disassociated"
	RouteTableAssociationStateCodeFailed         RouteTableAssociationStateCode = "failed"
)

Enum values for RouteTableAssociationStateCode

func (RouteTableAssociationStateCode) MarshalValue added in v0.18.0

func (enum RouteTableAssociationStateCode) MarshalValue() (string, error)

func (RouteTableAssociationStateCode) MarshalValueBuf added in v0.18.0

func (enum RouteTableAssociationStateCode) MarshalValueBuf(b []byte) ([]byte, error)

type RuleAction

type RuleAction string
const (
	RuleActionAllow RuleAction = "allow"
	RuleActionDeny  RuleAction = "deny"
)

Enum values for RuleAction

func (RuleAction) MarshalValue added in v0.3.0

func (enum RuleAction) MarshalValue() (string, error)

func (RuleAction) MarshalValueBuf added in v0.3.0

func (enum RuleAction) MarshalValueBuf(b []byte) ([]byte, error)

type RunInstancesInput

type RunInstancesInput struct {

	// Reserved.
	AdditionalInfo *string `locationName:"additionalInfo" type:"string"`

	// The block device mapping entries.
	BlockDeviceMappings []BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`

	// Information about the Capacity Reservation targeting option. If you do not
	// specify this parameter, the instance's Capacity Reservation preference defaults
	// to open, which enables it to run in any open Capacity Reservation that has
	// matching attributes (instance type, platform, Availability Zone).
	CapacityReservationSpecification *CapacityReservationSpecification `type:"structure"`

	// Unique, case-sensitive identifier you provide to ensure the idempotency of
	// the request. If you do not specify a client token, a randomly generated token
	// is used for the request to ensure idempotency.
	//
	// For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	//
	// Constraints: Maximum 64 ASCII characters
	ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`

	// The CPU options for the instance. For more information, see Optimizing CPU
	// options (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	CpuOptions *CpuOptionsRequest `type:"structure"`

	// The credit option for CPU usage of the burstable performance instance. Valid
	// values are standard and unlimited. To change this attribute after launch,
	// use ModifyInstanceCreditSpecification (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceCreditSpecification.html).
	// For more information, see Burstable performance instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// Default: standard (T2 instances) or unlimited (T3/T3a instances)
	CreditSpecification *CreditSpecificationRequest `type:"structure"`

	// If you set this parameter to true, you can't terminate the instance using
	// the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute
	// after launch, use ModifyInstanceAttribute (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceAttribute.html).
	// Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate,
	// you can terminate the instance by running the shutdown command from the instance.
	//
	// Default: false
	DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
	// provides dedicated throughput to Amazon EBS and an optimized configuration
	// stack to provide optimal Amazon EBS I/O performance. This optimization isn't
	// available with all instance types. Additional usage charges apply when using
	// an EBS-optimized instance.
	//
	// Default: false
	EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`

	// An elastic GPU to associate with the instance. An Elastic GPU is a GPU resource
	// that you can attach to your Windows instance to accelerate the graphics performance
	// of your applications. For more information, see Amazon EC2 Elastic GPUs (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	ElasticGpuSpecification []ElasticGpuSpecification `locationNameList:"item" type:"list"`

	// An elastic inference accelerator to associate with the instance. Elastic
	// inference accelerators are a resource you can attach to your Amazon EC2 instances
	// to accelerate your Deep Learning (DL) inference workloads.
	//
	// You cannot specify accelerators from different generations in the same request.
	ElasticInferenceAccelerators []ElasticInferenceAccelerator `locationName:"ElasticInferenceAccelerator" locationNameList:"item" type:"list"`

	// Indicates whether an instance is enabled for hibernation. For more information,
	// see Hibernate your instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	HibernationOptions *HibernationOptionsRequest `type:"structure"`

	// The IAM instance profile.
	IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`

	// The ID of the AMI. An AMI ID is required to launch an instance and must be
	// specified here or in a launch template.
	ImageId *string `type:"string"`

	// Indicates whether an instance stops or terminates when you initiate shutdown
	// from the instance (using the operating system command for system shutdown).
	//
	// Default: stop
	InstanceInitiatedShutdownBehavior ShutdownBehavior `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"true"`

	// The market (purchasing) option for the instances.
	//
	// For RunInstances, persistent Spot Instance requests are only supported when
	// InstanceInterruptionBehavior is set to either hibernate or stop.
	InstanceMarketOptions *InstanceMarketOptionsRequest `type:"structure"`

	// The instance type. For more information, see Instance types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// Default: m1.small
	InstanceType InstanceType `type:"string" enum:"true"`

	// [EC2-VPC] The number of IPv6 addresses to associate with the primary network
	// interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.
	// You cannot specify this option and the option to assign specific IPv6 addresses
	// in the same request. You can specify this option if you've specified a minimum
	// number of instances to launch.
	//
	// You cannot specify this option and the network interfaces option in the same
	// request.
	Ipv6AddressCount *int64 `type:"integer"`

	// [EC2-VPC] The IPv6 addresses from the range of the subnet to associate with
	// the primary network interface. You cannot specify this option and the option
	// to assign a number of IPv6 addresses in the same request. You cannot specify
	// this option if you've specified a minimum number of instances to launch.
	//
	// You cannot specify this option and the network interfaces option in the same
	// request.
	Ipv6Addresses []InstanceIpv6Address `locationName:"Ipv6Address" locationNameList:"item" type:"list"`

	// The ID of the kernel.
	//
	// We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
	// information, see PV-GRUB (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	KernelId *string `type:"string"`

	// The name of the key pair. You can create a key pair using CreateKeyPair (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html)
	// or ImportKeyPair (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html).
	//
	// If you do not specify a key pair, you can't connect to the instance unless
	// you choose an AMI that is configured to allow users another way to log in.
	KeyName *string `type:"string"`

	// The launch template to use to launch the instances. Any parameters that you
	// specify in RunInstances override the same parameters in the launch template.
	// You can specify either the name or ID of a launch template, but not both.
	LaunchTemplate *LaunchTemplateSpecification `type:"structure"`

	// The license configurations.
	LicenseSpecifications []LicenseConfigurationRequest `locationName:"LicenseSpecification" locationNameList:"item" type:"list"`

	// The maximum number of instances to launch. If you specify more instances
	// than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches
	// the largest possible number of instances above MinCount.
	//
	// Constraints: Between 1 and the maximum number you're allowed for the specified
	// instance type. For more information about the default limits, and how to
	// request an increase, see How many instances can I run in Amazon EC2 (http://aws.amazon.com/ec2/faqs/#How_many_instances_can_I_run_in_Amazon_EC2)
	// in the Amazon EC2 FAQ.
	//
	// MaxCount is a required field
	MaxCount *int64 `type:"integer" required:"true"`

	// The metadata options for the instance. For more information, see Instance
	// metadata and user data (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html).
	MetadataOptions *InstanceMetadataOptionsRequest `type:"structure"`

	// The minimum number of instances to launch. If you specify a minimum that
	// is more instances than Amazon EC2 can launch in the target Availability Zone,
	// Amazon EC2 launches no instances.
	//
	// Constraints: Between 1 and the maximum number you're allowed for the specified
	// instance type. For more information about the default limits, and how to
	// request an increase, see How many instances can I run in Amazon EC2 (http://aws.amazon.com/ec2/faqs/#How_many_instances_can_I_run_in_Amazon_EC2)
	// in the Amazon EC2 General FAQ.
	//
	// MinCount is a required field
	MinCount *int64 `type:"integer" required:"true"`

	// Specifies whether detailed monitoring is enabled for the instance.
	Monitoring *RunInstancesMonitoringEnabled `type:"structure"`

	// The network interfaces to associate with the instance. If you specify a network
	// interface, you must specify any security groups and subnets as part of the
	// network interface.
	NetworkInterfaces []InstanceNetworkInterfaceSpecification `locationName:"networkInterface" locationNameList:"item" type:"list"`

	// The placement for the instance.
	Placement *Placement `type:"structure"`

	// [EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4
	// address range of the subnet.
	//
	// Only one private IP address can be designated as primary. You can't specify
	// this option if you've specified the option to designate a private IP address
	// as the primary IP address in a network interface specification. You cannot
	// specify this option if you're launching more than one instance in the request.
	//
	// You cannot specify this option and the network interfaces option in the same
	// request.
	PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`

	// The ID of the RAM disk to select. Some kernels require additional drivers
	// at launch. Check the kernel requirements for information about whether you
	// need to specify a RAM disk. To find kernel requirements, go to the AWS Resource
	// Center and search for the kernel ID.
	//
	// We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
	// information, see PV-GRUB (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	RamdiskId *string `type:"string"`

	// The IDs of the security groups. You can create a security group using CreateSecurityGroup
	// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html).
	//
	// If you specify a network interface, you must specify any security groups
	// as part of the network interface.
	SecurityGroupIds []string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`

	// [EC2-Classic, default VPC] The names of the security groups. For a nondefault
	// VPC, you must use security group IDs instead.
	//
	// If you specify a network interface, you must specify any security groups
	// as part of the network interface.
	//
	// Default: Amazon EC2 uses the default security group.
	SecurityGroups []string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`

	// [EC2-VPC] The ID of the subnet to launch the instance into.
	//
	// If you specify a network interface, you must specify any subnets as part
	// of the network interface.
	SubnetId *string `type:"string"`

	// The tags to apply to the resources during launch. You can only tag instances
	// and volumes on launch. The specified tags are applied to all instances or
	// volumes that are created during launch. To tag a resource after it has been
	// created, see CreateTags (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html).
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The user data to make available to the instance. For more information, see
	// Running commands on your Linux instance at launch (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
	// (Linux) and Adding User Data (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
	// (Windows). If you are using a command line tool, base64-encoding is performed
	// for you, and you can load the text from a file. Otherwise, you must provide
	// base64-encoded text. User data is limited to 16 KB.
	UserData *string `type:"string"`
	// contains filtered or unexported fields
}

func (RunInstancesInput) String

func (s RunInstancesInput) String() string

String returns the string representation

func (*RunInstancesInput) Validate

func (s *RunInstancesInput) Validate() error

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

type RunInstancesMonitoringEnabled

type RunInstancesMonitoringEnabled struct {

	// Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
	// is enabled.
	//
	// Enabled is a required field
	Enabled *bool `locationName:"enabled" type:"boolean" required:"true"`
	// contains filtered or unexported fields
}

Describes the monitoring of an instance.

func (RunInstancesMonitoringEnabled) String

String returns the string representation

func (*RunInstancesMonitoringEnabled) Validate

func (s *RunInstancesMonitoringEnabled) Validate() error

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

type RunInstancesOutput

type RunInstancesOutput struct {

	// [EC2-Classic only] The security groups.
	Groups []GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`

	// The instances.
	Instances []Instance `locationName:"instancesSet" locationNameList:"item" type:"list"`

	// The ID of the AWS account that owns the reservation.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The ID of the requester that launched the instances on your behalf (for example,
	// AWS Management Console or Auto Scaling).
	RequesterId *string `locationName:"requesterId" type:"string"`

	// The ID of the reservation.
	ReservationId *string `locationName:"reservationId" type:"string"`
	// contains filtered or unexported fields
}

Describes a reservation.

func (RunInstancesOutput) String

func (s RunInstancesOutput) String() string

String returns the string representation

type RunInstancesRequest

type RunInstancesRequest struct {
	*aws.Request
	Input *RunInstancesInput
	Copy  func(*RunInstancesInput) RunInstancesRequest
}

RunInstancesRequest is the request type for the RunInstances API operation.

func (RunInstancesRequest) Send

Send marshals and sends the RunInstances API request.

type RunInstancesResponse added in v0.9.0

type RunInstancesResponse struct {
	*RunInstancesOutput
	// contains filtered or unexported fields
}

RunInstancesResponse is the response type for the RunInstances API operation.

func (*RunInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *RunInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RunInstances request.

type RunScheduledInstancesInput

type RunScheduledInstancesInput struct {

	// Unique, case-sensitive identifier that ensures the idempotency of the request.
	// For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `type:"string" idempotencyToken:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The number of instances.
	//
	// Default: 1
	InstanceCount *int64 `type:"integer"`

	// The launch specification. You must match the instance type, Availability
	// Zone, network, and platform of the schedule that you purchased.
	//
	// LaunchSpecification is a required field
	LaunchSpecification *ScheduledInstancesLaunchSpecification `type:"structure" required:"true"`

	// The Scheduled Instance ID.
	//
	// ScheduledInstanceId is a required field
	ScheduledInstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for RunScheduledInstances.

func (RunScheduledInstancesInput) String

String returns the string representation

func (*RunScheduledInstancesInput) Validate

func (s *RunScheduledInstancesInput) Validate() error

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

type RunScheduledInstancesOutput

type RunScheduledInstancesOutput struct {

	// The IDs of the newly launched instances.
	InstanceIdSet []string `locationName:"instanceIdSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Contains the output of RunScheduledInstances.

func (RunScheduledInstancesOutput) String

String returns the string representation

type RunScheduledInstancesRequest

type RunScheduledInstancesRequest struct {
	*aws.Request
	Input *RunScheduledInstancesInput
	Copy  func(*RunScheduledInstancesInput) RunScheduledInstancesRequest
}

RunScheduledInstancesRequest is the request type for the RunScheduledInstances API operation.

func (RunScheduledInstancesRequest) Send

Send marshals and sends the RunScheduledInstances API request.

type RunScheduledInstancesResponse added in v0.9.0

type RunScheduledInstancesResponse struct {
	*RunScheduledInstancesOutput
	// contains filtered or unexported fields
}

RunScheduledInstancesResponse is the response type for the RunScheduledInstances API operation.

func (*RunScheduledInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *RunScheduledInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RunScheduledInstances request.

type S3Storage

type S3Storage struct {

	// The access key ID of the owner of the bucket. Before you specify a value
	// for your access key ID, review and follow the guidance in Best Practices
	// for Managing AWS Access Keys (https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html).
	AWSAccessKeyId *string `type:"string"`

	// The bucket in which to store the AMI. You can specify a bucket that you already
	// own or a new bucket that Amazon EC2 creates on your behalf. If you specify
	// a bucket that belongs to someone else, Amazon EC2 returns an error.
	Bucket *string `locationName:"bucket" type:"string"`

	// The beginning of the file name of the AMI.
	Prefix *string `locationName:"prefix" type:"string"`

	// An Amazon S3 upload policy that gives Amazon EC2 permission to upload items
	// into Amazon S3 on your behalf.
	//
	// UploadPolicy is automatically base64 encoded/decoded by the SDK.
	UploadPolicy []byte `locationName:"uploadPolicy" type:"blob"`

	// The signature of the JSON document.
	UploadPolicySignature *string `locationName:"uploadPolicySignature" type:"string"`
	// contains filtered or unexported fields
}

Describes the storage parameters for S3 and S3 buckets for an instance store-backed AMI.

func (S3Storage) String

func (s S3Storage) String() string

String returns the string representation

type ScheduledInstance

type ScheduledInstance struct {

	// The Availability Zone.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The date when the Scheduled Instance was purchased.
	CreateDate *time.Time `locationName:"createDate" type:"timestamp"`

	// The hourly price for a single instance.
	HourlyPrice *string `locationName:"hourlyPrice" type:"string"`

	// The number of instances.
	InstanceCount *int64 `locationName:"instanceCount" type:"integer"`

	// The instance type.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// The network platform (EC2-Classic or EC2-VPC).
	NetworkPlatform *string `locationName:"networkPlatform" type:"string"`

	// The time for the next schedule to start.
	NextSlotStartTime *time.Time `locationName:"nextSlotStartTime" type:"timestamp"`

	// The platform (Linux/UNIX or Windows).
	Platform *string `locationName:"platform" type:"string"`

	// The time that the previous schedule ended or will end.
	PreviousSlotEndTime *time.Time `locationName:"previousSlotEndTime" type:"timestamp"`

	// The schedule recurrence.
	Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`

	// The Scheduled Instance ID.
	ScheduledInstanceId *string `locationName:"scheduledInstanceId" type:"string"`

	// The number of hours in the schedule.
	SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`

	// The end date for the Scheduled Instance.
	TermEndDate *time.Time `locationName:"termEndDate" type:"timestamp"`

	// The start date for the Scheduled Instance.
	TermStartDate *time.Time `locationName:"termStartDate" type:"timestamp"`

	// The total number of hours for a single instance for the entire term.
	TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
	// contains filtered or unexported fields
}

Describes a Scheduled Instance.

func (ScheduledInstance) String

func (s ScheduledInstance) String() string

String returns the string representation

type ScheduledInstanceAvailability

type ScheduledInstanceAvailability struct {

	// The Availability Zone.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The number of available instances.
	AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`

	// The time period for the first schedule to start.
	FirstSlotStartTime *time.Time `locationName:"firstSlotStartTime" type:"timestamp"`

	// The hourly price for a single instance.
	HourlyPrice *string `locationName:"hourlyPrice" type:"string"`

	// The instance type. You can specify one of the C3, C4, M4, or R3 instance
	// types.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// The maximum term. The only possible value is 365 days.
	MaxTermDurationInDays *int64 `locationName:"maxTermDurationInDays" type:"integer"`

	// The minimum term. The only possible value is 365 days.
	MinTermDurationInDays *int64 `locationName:"minTermDurationInDays" type:"integer"`

	// The network platform (EC2-Classic or EC2-VPC).
	NetworkPlatform *string `locationName:"networkPlatform" type:"string"`

	// The platform (Linux/UNIX or Windows).
	Platform *string `locationName:"platform" type:"string"`

	// The purchase token. This token expires in two hours.
	PurchaseToken *string `locationName:"purchaseToken" type:"string"`

	// The schedule recurrence.
	Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`

	// The number of hours in the schedule.
	SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`

	// The total number of hours for a single instance for the entire term.
	TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
	// contains filtered or unexported fields
}

Describes a schedule that is available for your Scheduled Instances.

func (ScheduledInstanceAvailability) String

String returns the string representation

type ScheduledInstanceRecurrence

type ScheduledInstanceRecurrence struct {

	// The frequency (Daily, Weekly, or Monthly).
	Frequency *string `locationName:"frequency" type:"string"`

	// The interval quantity. The interval unit depends on the value of frequency.
	// For example, every 2 weeks or every 2 months.
	Interval *int64 `locationName:"interval" type:"integer"`

	// The days. For a monthly schedule, this is one or more days of the month (1-31).
	// For a weekly schedule, this is one or more days of the week (1-7, where 1
	// is Sunday).
	OccurrenceDaySet []int64 `locationName:"occurrenceDaySet" locationNameList:"item" type:"list"`

	// Indicates whether the occurrence is relative to the end of the specified
	// week or month.
	OccurrenceRelativeToEnd *bool `locationName:"occurrenceRelativeToEnd" type:"boolean"`

	// The unit for occurrenceDaySet (DayOfWeek or DayOfMonth).
	OccurrenceUnit *string `locationName:"occurrenceUnit" type:"string"`
	// contains filtered or unexported fields
}

Describes the recurring schedule for a Scheduled Instance.

func (ScheduledInstanceRecurrence) String

String returns the string representation

type ScheduledInstanceRecurrenceRequest

type ScheduledInstanceRecurrenceRequest struct {

	// The frequency (Daily, Weekly, or Monthly).
	Frequency *string `type:"string"`

	// The interval quantity. The interval unit depends on the value of Frequency.
	// For example, every 2 weeks or every 2 months.
	Interval *int64 `type:"integer"`

	// The days. For a monthly schedule, this is one or more days of the month (1-31).
	// For a weekly schedule, this is one or more days of the week (1-7, where 1
	// is Sunday). You can't specify this value with a daily schedule. If the occurrence
	// is relative to the end of the month, you can specify only a single day.
	OccurrenceDays []int64 `locationName:"OccurrenceDay" locationNameList:"OccurenceDay" type:"list"`

	// Indicates whether the occurrence is relative to the end of the specified
	// week or month. You can't specify this value with a daily schedule.
	OccurrenceRelativeToEnd *bool `type:"boolean"`

	// The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required
	// for a monthly schedule. You can't specify DayOfWeek with a weekly schedule.
	// You can't specify this value with a daily schedule.
	OccurrenceUnit *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the recurring schedule for a Scheduled Instance.

func (ScheduledInstanceRecurrenceRequest) String

String returns the string representation

type ScheduledInstancesBlockDeviceMapping

type ScheduledInstancesBlockDeviceMapping struct {

	// The device name (for example, /dev/sdh or xvdh).
	DeviceName *string `type:"string"`

	// Parameters used to set up EBS volumes automatically when the instance is
	// launched.
	Ebs *ScheduledInstancesEbs `type:"structure"`

	// Suppresses the specified device included in the block device mapping of the
	// AMI.
	NoDevice *string `type:"string"`

	// The virtual device name (ephemeralN). Instance store volumes are numbered
	// starting from 0. An instance type with two available instance store volumes
	// can specify mappings for ephemeral0 and ephemeral1. The number of available
	// instance store volumes depends on the instance type. After you connect to
	// the instance, you must mount the volume.
	//
	// Constraints: For M3 instances, you must specify instance store volumes in
	// the block device mapping for the instance. When you launch an M3 instance,
	// we ignore any instance store volumes specified in the block device mapping
	// for the AMI.
	VirtualName *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a block device mapping for a Scheduled Instance.

func (ScheduledInstancesBlockDeviceMapping) String

String returns the string representation

type ScheduledInstancesEbs

type ScheduledInstancesEbs struct {

	// Indicates whether the volume is deleted on instance termination.
	DeleteOnTermination *bool `type:"boolean"`

	// Indicates whether the volume is encrypted. You can attached encrypted volumes
	// only to instances that support them.
	Encrypted *bool `type:"boolean"`

	// The number of I/O operations per second (IOPS) that the volume supports.
	// For io1 volumes, this represents the number of IOPS that are provisioned
	// for the volume. For gp2 volumes, this represents the baseline performance
	// of the volume and the rate at which the volume accumulates I/O credits for
	// bursting. For more information about gp2 baseline performance, I/O credits,
	// and bursting, see Amazon EBS Volume Types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
	// gp2 volumes.
	//
	// Condition: This parameter is required for requests to create io1volumes;
	// it is not used in requests to create gp2, st1, sc1, or standard volumes.
	Iops *int64 `type:"integer"`

	// The ID of the snapshot.
	SnapshotId *string `type:"string"`

	// The size of the volume, in GiB.
	//
	// Default: If you're creating the volume from a snapshot and don't specify
	// a volume size, the default is the snapshot size.
	VolumeSize *int64 `type:"integer"`

	// The volume type. gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD,
	// Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for Magnetic.
	//
	// Default: gp2
	VolumeType *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an EBS volume for a Scheduled Instance.

func (ScheduledInstancesEbs) String

func (s ScheduledInstancesEbs) String() string

String returns the string representation

type ScheduledInstancesIamInstanceProfile

type ScheduledInstancesIamInstanceProfile struct {

	// The Amazon Resource Name (ARN).
	Arn *string `type:"string"`

	// The name.
	Name *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an IAM instance profile for a Scheduled Instance.

func (ScheduledInstancesIamInstanceProfile) String

String returns the string representation

type ScheduledInstancesIpv6Address

type ScheduledInstancesIpv6Address struct {

	// The IPv6 address.
	Ipv6Address *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an IPv6 address.

func (ScheduledInstancesIpv6Address) String

String returns the string representation

type ScheduledInstancesLaunchSpecification

type ScheduledInstancesLaunchSpecification struct {

	// The block device mapping entries.
	BlockDeviceMappings []ScheduledInstancesBlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`

	// Indicates whether the instances are optimized for EBS I/O. This optimization
	// provides dedicated throughput to Amazon EBS and an optimized configuration
	// stack to provide optimal EBS I/O performance. This optimization isn't available
	// with all instance types. Additional usage charges apply when using an EBS-optimized
	// instance.
	//
	// Default: false
	EbsOptimized *bool `type:"boolean"`

	// The IAM instance profile.
	IamInstanceProfile *ScheduledInstancesIamInstanceProfile `type:"structure"`

	// The ID of the Amazon Machine Image (AMI).
	//
	// ImageId is a required field
	ImageId *string `type:"string" required:"true"`

	// The instance type.
	InstanceType *string `type:"string"`

	// The ID of the kernel.
	KernelId *string `type:"string"`

	// The name of the key pair.
	KeyName *string `type:"string"`

	// Enable or disable monitoring for the instances.
	Monitoring *ScheduledInstancesMonitoring `type:"structure"`

	// The network interfaces.
	NetworkInterfaces []ScheduledInstancesNetworkInterface `locationName:"NetworkInterface" locationNameList:"NetworkInterface" type:"list"`

	// The placement information.
	Placement *ScheduledInstancesPlacement `type:"structure"`

	// The ID of the RAM disk.
	RamdiskId *string `type:"string"`

	// The IDs of the security groups.
	SecurityGroupIds []string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`

	// The ID of the subnet in which to launch the instances.
	SubnetId *string `type:"string"`

	// The base64-encoded MIME user data.
	UserData *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the launch specification for a Scheduled Instance.

If you are launching the Scheduled Instance in EC2-VPC, you must specify the ID of the subnet. You can specify the subnet using either SubnetId or NetworkInterface.

func (ScheduledInstancesLaunchSpecification) String

String returns the string representation

func (*ScheduledInstancesLaunchSpecification) Validate

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

type ScheduledInstancesMonitoring

type ScheduledInstancesMonitoring struct {

	// Indicates whether monitoring is enabled.
	Enabled *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Describes whether monitoring is enabled for a Scheduled Instance.

func (ScheduledInstancesMonitoring) String

String returns the string representation

type ScheduledInstancesNetworkInterface

type ScheduledInstancesNetworkInterface struct {

	// Indicates whether to assign a public IPv4 address to instances launched in
	// a VPC. The public IPv4 address can only be assigned to a network interface
	// for eth0, and can only be assigned to a new network interface, not an existing
	// one. You cannot specify more than one network interface in the request. If
	// launching into a default subnet, the default value is true.
	AssociatePublicIpAddress *bool `type:"boolean"`

	// Indicates whether to delete the interface when the instance is terminated.
	DeleteOnTermination *bool `type:"boolean"`

	// The description.
	Description *string `type:"string"`

	// The index of the device for the network interface attachment.
	DeviceIndex *int64 `type:"integer"`

	// The IDs of the security groups.
	Groups []string `locationName:"Group" locationNameList:"SecurityGroupId" type:"list"`

	// The number of IPv6 addresses to assign to the network interface. The IPv6
	// addresses are automatically selected from the subnet range.
	Ipv6AddressCount *int64 `type:"integer"`

	// The specific IPv6 addresses from the subnet range.
	Ipv6Addresses []ScheduledInstancesIpv6Address `locationName:"Ipv6Address" locationNameList:"Ipv6Address" type:"list"`

	// The ID of the network interface.
	NetworkInterfaceId *string `type:"string"`

	// The IPv4 address of the network interface within the subnet.
	PrivateIpAddress *string `type:"string"`

	// The private IPv4 addresses.
	PrivateIpAddressConfigs []ScheduledInstancesPrivateIpAddressConfig `locationName:"PrivateIpAddressConfig" locationNameList:"PrivateIpAddressConfigSet" type:"list"`

	// The number of secondary private IPv4 addresses.
	SecondaryPrivateIpAddressCount *int64 `type:"integer"`

	// The ID of the subnet.
	SubnetId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a network interface for a Scheduled Instance.

func (ScheduledInstancesNetworkInterface) String

String returns the string representation

type ScheduledInstancesPlacement

type ScheduledInstancesPlacement struct {

	// The Availability Zone.
	AvailabilityZone *string `type:"string"`

	// The name of the placement group.
	GroupName *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the placement for a Scheduled Instance.

func (ScheduledInstancesPlacement) String

String returns the string representation

type ScheduledInstancesPrivateIpAddressConfig

type ScheduledInstancesPrivateIpAddressConfig struct {

	// Indicates whether this is a primary IPv4 address. Otherwise, this is a secondary
	// IPv4 address.
	Primary *bool `type:"boolean"`

	// The IPv4 address.
	PrivateIpAddress *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a private IPv4 address for a Scheduled Instance.

func (ScheduledInstancesPrivateIpAddressConfig) String

String returns the string representation

type Scope

type Scope string
const (
	ScopeAvailabilityZone Scope = "Availability Zone"
	ScopeRegion           Scope = "Region"
)

Enum values for Scope

func (Scope) MarshalValue added in v0.3.0

func (enum Scope) MarshalValue() (string, error)

func (Scope) MarshalValueBuf added in v0.3.0

func (enum Scope) MarshalValueBuf(b []byte) ([]byte, error)

type SearchLocalGatewayRoutesInput added in v0.18.0

type SearchLocalGatewayRoutesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters.
	//
	// Filters is a required field
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list" required:"true"`

	// The ID of the local gateway route table.
	//
	// LocalGatewayRouteTableId is a required field
	LocalGatewayRouteTableId *string `type:"string" required:"true"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (SearchLocalGatewayRoutesInput) String added in v0.18.0

String returns the string representation

func (*SearchLocalGatewayRoutesInput) Validate added in v0.18.0

func (s *SearchLocalGatewayRoutesInput) Validate() error

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

type SearchLocalGatewayRoutesOutput added in v0.18.0

type SearchLocalGatewayRoutesOutput struct {

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Information about the routes.
	Routes []LocalGatewayRoute `locationName:"routeSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (SearchLocalGatewayRoutesOutput) String added in v0.18.0

String returns the string representation

type SearchLocalGatewayRoutesPaginator added in v0.20.0

type SearchLocalGatewayRoutesPaginator struct {
	aws.Pager
}

SearchLocalGatewayRoutesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewSearchLocalGatewayRoutesPaginator added in v0.20.0

func NewSearchLocalGatewayRoutesPaginator(req SearchLocalGatewayRoutesRequest) SearchLocalGatewayRoutesPaginator

NewSearchLocalGatewayRoutesRequestPaginator returns a paginator for SearchLocalGatewayRoutes. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.SearchLocalGatewayRoutesRequest(input)
p := ec2.NewSearchLocalGatewayRoutesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*SearchLocalGatewayRoutesPaginator) CurrentPage added in v0.20.0

type SearchLocalGatewayRoutesRequest added in v0.18.0

type SearchLocalGatewayRoutesRequest struct {
	*aws.Request
	Input *SearchLocalGatewayRoutesInput
	Copy  func(*SearchLocalGatewayRoutesInput) SearchLocalGatewayRoutesRequest
}

SearchLocalGatewayRoutesRequest is the request type for the SearchLocalGatewayRoutes API operation.

func (SearchLocalGatewayRoutesRequest) Send added in v0.18.0

Send marshals and sends the SearchLocalGatewayRoutes API request.

type SearchLocalGatewayRoutesResponse added in v0.18.0

type SearchLocalGatewayRoutesResponse struct {
	*SearchLocalGatewayRoutesOutput
	// contains filtered or unexported fields
}

SearchLocalGatewayRoutesResponse is the response type for the SearchLocalGatewayRoutes API operation.

func (*SearchLocalGatewayRoutesResponse) SDKResponseMetdata added in v0.18.0

func (r *SearchLocalGatewayRoutesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the SearchLocalGatewayRoutes request.

type SearchTransitGatewayMulticastGroupsInput added in v0.18.0

type SearchTransitGatewayMulticastGroupsInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * group-ip-address - The IP address of the transit gateway multicast group.
	//
	//    * is-group-member - The resource is a group member. Valid values are true
	//    | false.
	//
	//    * is-group-source - The resource is a group source. Valid values are true
	//    | false.
	//
	//    * member-type - The member type. Valid values are igmp | static.
	//
	//    * resource-id - The ID of the resource.
	//
	//    * resource-type - The type of resource. Valid values are vpc | vpn | direct-connect-gateway
	//    | tgw-peering.
	//
	//    * source-type - The source type. Valid values are igmp | static.
	//
	//    * state - The state of the subnet association. Valid values are associated
	//    | associated | disassociated | disassociating.
	//
	//    * subnet-id - The ID of the subnet.
	//
	//    * transit-gateway-attachment-id - The id of the transit gateway attachment.
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`

	// The maximum number of results to return with a single call. To retrieve the
	// remaining results, make another call with the returned nextToken value.
	MaxResults *int64 `min:"5" type:"integer"`

	// The token for the next page of results.
	NextToken *string `type:"string"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `type:"string"`
	// contains filtered or unexported fields
}

func (SearchTransitGatewayMulticastGroupsInput) String added in v0.18.0

String returns the string representation

func (*SearchTransitGatewayMulticastGroupsInput) Validate added in v0.18.0

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

type SearchTransitGatewayMulticastGroupsOutput added in v0.18.0

type SearchTransitGatewayMulticastGroupsOutput struct {

	// Information about the transit gateway multicast group.
	MulticastGroups []TransitGatewayMulticastGroup `locationName:"multicastGroups" locationNameList:"item" type:"list"`

	// The token to use to retrieve the next page of results. This value is null
	// when there are no more results to return.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (SearchTransitGatewayMulticastGroupsOutput) String added in v0.18.0

String returns the string representation

type SearchTransitGatewayMulticastGroupsPaginator added in v0.20.0

type SearchTransitGatewayMulticastGroupsPaginator struct {
	aws.Pager
}

SearchTransitGatewayMulticastGroupsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewSearchTransitGatewayMulticastGroupsPaginator added in v0.20.0

func NewSearchTransitGatewayMulticastGroupsPaginator(req SearchTransitGatewayMulticastGroupsRequest) SearchTransitGatewayMulticastGroupsPaginator

NewSearchTransitGatewayMulticastGroupsRequestPaginator returns a paginator for SearchTransitGatewayMulticastGroups. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.SearchTransitGatewayMulticastGroupsRequest(input)
p := ec2.NewSearchTransitGatewayMulticastGroupsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*SearchTransitGatewayMulticastGroupsPaginator) CurrentPage added in v0.20.0

type SearchTransitGatewayMulticastGroupsRequest added in v0.18.0

SearchTransitGatewayMulticastGroupsRequest is the request type for the SearchTransitGatewayMulticastGroups API operation.

func (SearchTransitGatewayMulticastGroupsRequest) Send added in v0.18.0

Send marshals and sends the SearchTransitGatewayMulticastGroups API request.

type SearchTransitGatewayMulticastGroupsResponse added in v0.18.0

type SearchTransitGatewayMulticastGroupsResponse struct {
	*SearchTransitGatewayMulticastGroupsOutput
	// contains filtered or unexported fields
}

SearchTransitGatewayMulticastGroupsResponse is the response type for the SearchTransitGatewayMulticastGroups API operation.

func (*SearchTransitGatewayMulticastGroupsResponse) SDKResponseMetdata added in v0.18.0

func (r *SearchTransitGatewayMulticastGroupsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the SearchTransitGatewayMulticastGroups request.

type SearchTransitGatewayRoutesInput added in v0.6.0

type SearchTransitGatewayRoutesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// One or more filters. The possible values are:
	//
	//    * attachment.transit-gateway-attachment-id- The id of the transit gateway
	//    attachment.
	//
	//    * attachment.resource-id - The resource id of the transit gateway attachment.
	//
	//    * attachment.resource-type - The attachment resource type (vpc | vpn).
	//
	//    * route-search.exact-match - The exact match of the specified filter.
	//
	//    * route-search.longest-prefix-match - The longest prefix that matches
	//    the route.
	//
	//    * route-search.subnet-of-match - The routes with a subnet that match the
	//    specified CIDR filter.
	//
	//    * route-search.supernet-of-match - The routes with a CIDR that encompass
	//    the CIDR filter. For example, if you have 10.0.1.0/29 and 10.0.1.0/31
	//    routes in your route table and you specify supernet-of-match as 10.0.1.0/30,
	//    then the result returns 10.0.1.0/29.
	//
	//    * state - The state of the route (active | blackhole).
	//
	//    * type - The type of route (propagated | static).
	//
	// Filters is a required field
	Filters []Filter `locationName:"Filter" locationNameList:"Filter" type:"list" required:"true"`

	// The maximum number of routes to return.
	MaxResults *int64 `min:"5" type:"integer"`

	// The ID of the transit gateway route table.
	//
	// TransitGatewayRouteTableId is a required field
	TransitGatewayRouteTableId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (SearchTransitGatewayRoutesInput) String added in v0.6.0

String returns the string representation

func (*SearchTransitGatewayRoutesInput) Validate added in v0.6.0

func (s *SearchTransitGatewayRoutesInput) Validate() error

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

type SearchTransitGatewayRoutesOutput added in v0.6.0

type SearchTransitGatewayRoutesOutput struct {

	// Indicates whether there are additional routes available.
	AdditionalRoutesAvailable *bool `locationName:"additionalRoutesAvailable" type:"boolean"`

	// Information about the routes.
	Routes []TransitGatewayRoute `locationName:"routeSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (SearchTransitGatewayRoutesOutput) String added in v0.6.0

String returns the string representation

type SearchTransitGatewayRoutesRequest added in v0.6.0

type SearchTransitGatewayRoutesRequest struct {
	*aws.Request
	Input *SearchTransitGatewayRoutesInput
	Copy  func(*SearchTransitGatewayRoutesInput) SearchTransitGatewayRoutesRequest
}

SearchTransitGatewayRoutesRequest is the request type for the SearchTransitGatewayRoutes API operation.

func (SearchTransitGatewayRoutesRequest) Send added in v0.6.0

Send marshals and sends the SearchTransitGatewayRoutes API request.

type SearchTransitGatewayRoutesResponse added in v0.9.0

type SearchTransitGatewayRoutesResponse struct {
	*SearchTransitGatewayRoutesOutput
	// contains filtered or unexported fields
}

SearchTransitGatewayRoutesResponse is the response type for the SearchTransitGatewayRoutes API operation.

func (*SearchTransitGatewayRoutesResponse) SDKResponseMetdata added in v0.9.0

func (r *SearchTransitGatewayRoutesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the SearchTransitGatewayRoutes request.

type SecurityGroup

type SecurityGroup struct {

	// A description of the security group.
	Description *string `locationName:"groupDescription" type:"string"`

	// The ID of the security group.
	GroupId *string `locationName:"groupId" type:"string"`

	// The name of the security group.
	GroupName *string `locationName:"groupName" type:"string"`

	// The inbound rules associated with the security group.
	IpPermissions []IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`

	// [VPC only] The outbound rules associated with the security group.
	IpPermissionsEgress []IpPermission `locationName:"ipPermissionsEgress" locationNameList:"item" type:"list"`

	// The AWS account ID of the owner of the security group.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// Any tags assigned to the security group.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// [VPC only] The ID of the VPC for the security group.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a security group

func (SecurityGroup) String

func (s SecurityGroup) String() string

String returns the string representation

type SecurityGroupIdentifier added in v0.2.0

type SecurityGroupIdentifier struct {

	// The ID of the security group.
	GroupId *string `locationName:"groupId" type:"string"`

	// The name of the security group.
	GroupName *string `locationName:"groupName" type:"string"`
	// contains filtered or unexported fields
}

Describes a security group.

func (SecurityGroupIdentifier) String added in v0.2.0

func (s SecurityGroupIdentifier) String() string

String returns the string representation

type SecurityGroupReference

type SecurityGroupReference struct {

	// The ID of your security group.
	GroupId *string `locationName:"groupId" type:"string"`

	// The ID of the VPC with the referencing security group.
	ReferencingVpcId *string `locationName:"referencingVpcId" type:"string"`

	// The ID of the VPC peering connection.
	VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
	// contains filtered or unexported fields
}

Describes a VPC with a security group that references your security group.

func (SecurityGroupReference) String

func (s SecurityGroupReference) String() string

String returns the string representation

type SendDiagnosticInterruptInput added in v0.11.0

type SendDiagnosticInterruptInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the instance.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (SendDiagnosticInterruptInput) String added in v0.11.0

String returns the string representation

func (*SendDiagnosticInterruptInput) Validate added in v0.11.0

func (s *SendDiagnosticInterruptInput) Validate() error

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

type SendDiagnosticInterruptOutput added in v0.11.0

type SendDiagnosticInterruptOutput struct {
	// contains filtered or unexported fields
}

func (SendDiagnosticInterruptOutput) String added in v0.11.0

String returns the string representation

type SendDiagnosticInterruptRequest added in v0.11.0

type SendDiagnosticInterruptRequest struct {
	*aws.Request
	Input *SendDiagnosticInterruptInput
	Copy  func(*SendDiagnosticInterruptInput) SendDiagnosticInterruptRequest
}

SendDiagnosticInterruptRequest is the request type for the SendDiagnosticInterrupt API operation.

func (SendDiagnosticInterruptRequest) Send added in v0.11.0

Send marshals and sends the SendDiagnosticInterrupt API request.

type SendDiagnosticInterruptResponse added in v0.11.0

type SendDiagnosticInterruptResponse struct {
	*SendDiagnosticInterruptOutput
	// contains filtered or unexported fields
}

SendDiagnosticInterruptResponse is the response type for the SendDiagnosticInterrupt API operation.

func (*SendDiagnosticInterruptResponse) SDKResponseMetdata added in v0.11.0

func (r *SendDiagnosticInterruptResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the SendDiagnosticInterrupt request.

type ServiceConfiguration added in v0.2.0

type ServiceConfiguration struct {

	// Indicates whether requests from other AWS accounts to create an endpoint
	// to the service must first be accepted.
	AcceptanceRequired *bool `locationName:"acceptanceRequired" type:"boolean"`

	// The Availability Zones in which the service is available.
	AvailabilityZones []string `locationName:"availabilityZoneSet" locationNameList:"item" type:"list"`

	// The DNS names for the service.
	BaseEndpointDnsNames []string `locationName:"baseEndpointDnsNameSet" locationNameList:"item" type:"list"`

	// Indicates whether the service manages its VPC endpoints. Management of the
	// service VPC endpoints using the VPC endpoint API is restricted.
	ManagesVpcEndpoints *bool `locationName:"managesVpcEndpoints" type:"boolean"`

	// The Amazon Resource Names (ARNs) of the Network Load Balancers for the service.
	NetworkLoadBalancerArns []string `locationName:"networkLoadBalancerArnSet" locationNameList:"item" type:"list"`

	// The private DNS name for the service.
	PrivateDnsName *string `locationName:"privateDnsName" type:"string"`

	// Information about the endpoint service private DNS name configuration.
	PrivateDnsNameConfiguration *PrivateDnsNameConfiguration `locationName:"privateDnsNameConfiguration" type:"structure"`

	// The ID of the service.
	ServiceId *string `locationName:"serviceId" type:"string"`

	// The name of the service.
	ServiceName *string `locationName:"serviceName" type:"string"`

	// The service state.
	ServiceState ServiceState `locationName:"serviceState" type:"string" enum:"true"`

	// The type of service.
	ServiceType []ServiceTypeDetail `locationName:"serviceType" locationNameList:"item" type:"list"`

	// Any tags assigned to the service.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a service configuration for a VPC endpoint service.

func (ServiceConfiguration) String added in v0.2.0

func (s ServiceConfiguration) String() string

String returns the string representation

type ServiceDetail added in v0.2.0

type ServiceDetail struct {

	// Indicates whether VPC endpoint connection requests to the service must be
	// accepted by the service owner.
	AcceptanceRequired *bool `locationName:"acceptanceRequired" type:"boolean"`

	// The Availability Zones in which the service is available.
	AvailabilityZones []string `locationName:"availabilityZoneSet" locationNameList:"item" type:"list"`

	// The DNS names for the service.
	BaseEndpointDnsNames []string `locationName:"baseEndpointDnsNameSet" locationNameList:"item" type:"list"`

	// Indicates whether the service manages its VPC endpoints. Management of the
	// service VPC endpoints using the VPC endpoint API is restricted.
	ManagesVpcEndpoints *bool `locationName:"managesVpcEndpoints" type:"boolean"`

	// The AWS account ID of the service owner.
	Owner *string `locationName:"owner" type:"string"`

	// The private DNS name for the service.
	PrivateDnsName *string `locationName:"privateDnsName" type:"string"`

	// The verification state of the VPC endpoint service.
	//
	// Consumers of the endpoint service cannot use the private name when the state
	// is not verified.
	PrivateDnsNameVerificationState DnsNameState `locationName:"privateDnsNameVerificationState" type:"string" enum:"true"`

	// The ID of the endpoint service.
	ServiceId *string `locationName:"serviceId" type:"string"`

	// The Amazon Resource Name (ARN) of the service.
	ServiceName *string `locationName:"serviceName" type:"string"`

	// The type of service.
	ServiceType []ServiceTypeDetail `locationName:"serviceType" locationNameList:"item" type:"list"`

	// Any tags assigned to the service.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// Indicates whether the service supports endpoint policies.
	VpcEndpointPolicySupported *bool `locationName:"vpcEndpointPolicySupported" type:"boolean"`
	// contains filtered or unexported fields
}

Describes a VPC endpoint service.

func (ServiceDetail) String added in v0.2.0

func (s ServiceDetail) String() string

String returns the string representation

type ServiceState added in v0.2.0

type ServiceState string
const (
	ServiceStatePending   ServiceState = "Pending"
	ServiceStateAvailable ServiceState = "Available"
	ServiceStateDeleting  ServiceState = "Deleting"
	ServiceStateDeleted   ServiceState = "Deleted"
	ServiceStateFailed    ServiceState = "Failed"
)

Enum values for ServiceState

func (ServiceState) MarshalValue added in v0.3.0

func (enum ServiceState) MarshalValue() (string, error)

func (ServiceState) MarshalValueBuf added in v0.3.0

func (enum ServiceState) MarshalValueBuf(b []byte) ([]byte, error)

type ServiceType added in v0.2.0

type ServiceType string
const (
	ServiceTypeInterface ServiceType = "Interface"
	ServiceTypeGateway   ServiceType = "Gateway"
)

Enum values for ServiceType

func (ServiceType) MarshalValue added in v0.3.0

func (enum ServiceType) MarshalValue() (string, error)

func (ServiceType) MarshalValueBuf added in v0.3.0

func (enum ServiceType) MarshalValueBuf(b []byte) ([]byte, error)

type ServiceTypeDetail added in v0.2.0

type ServiceTypeDetail struct {

	// The type of service.
	ServiceType ServiceType `locationName:"serviceType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the type of service for a VPC endpoint.

func (ServiceTypeDetail) String added in v0.2.0

func (s ServiceTypeDetail) String() string

String returns the string representation

type ShutdownBehavior

type ShutdownBehavior string
const (
	ShutdownBehaviorStop      ShutdownBehavior = "stop"
	ShutdownBehaviorTerminate ShutdownBehavior = "terminate"
)

Enum values for ShutdownBehavior

func (ShutdownBehavior) MarshalValue added in v0.3.0

func (enum ShutdownBehavior) MarshalValue() (string, error)

func (ShutdownBehavior) MarshalValueBuf added in v0.3.0

func (enum ShutdownBehavior) MarshalValueBuf(b []byte) ([]byte, error)

type SlotDateTimeRangeRequest

type SlotDateTimeRangeRequest struct {

	// The earliest date and time, in UTC, for the Scheduled Instance to start.
	//
	// EarliestTime is a required field
	EarliestTime *time.Time `type:"timestamp" required:"true"`

	// The latest date and time, in UTC, for the Scheduled Instance to start. This
	// value must be later than or equal to the earliest date and at most three
	// months in the future.
	//
	// LatestTime is a required field
	LatestTime *time.Time `type:"timestamp" required:"true"`
	// contains filtered or unexported fields
}

Describes the time period for a Scheduled Instance to start its first schedule. The time period must span less than one day.

func (SlotDateTimeRangeRequest) String

func (s SlotDateTimeRangeRequest) String() string

String returns the string representation

func (*SlotDateTimeRangeRequest) Validate

func (s *SlotDateTimeRangeRequest) Validate() error

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

type SlotStartTimeRangeRequest

type SlotStartTimeRangeRequest struct {

	// The earliest date and time, in UTC, for the Scheduled Instance to start.
	EarliestTime *time.Time `type:"timestamp"`

	// The latest date and time, in UTC, for the Scheduled Instance to start.
	LatestTime *time.Time `type:"timestamp"`
	// contains filtered or unexported fields
}

Describes the time period for a Scheduled Instance to start its first schedule.

func (SlotStartTimeRangeRequest) String

func (s SlotStartTimeRangeRequest) String() string

String returns the string representation

type Snapshot added in v0.9.0

type Snapshot struct {

	// The data encryption key identifier for the snapshot. This value is a unique
	// identifier that corresponds to the data encryption key that was used to encrypt
	// the original volume or snapshot copy. Because data encryption keys are inherited
	// by volumes created from snapshots, and vice versa, if snapshots share the
	// same data encryption key identifier, then they belong to the same volume/snapshot
	// lineage. This parameter is only returned by DescribeSnapshots.
	DataEncryptionKeyId *string `locationName:"dataEncryptionKeyId" type:"string"`

	// The description for the snapshot.
	Description *string `locationName:"description" type:"string"`

	// Indicates whether the snapshot is encrypted.
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS)
	// customer master key (CMK) that was used to protect the volume encryption
	// key for the parent volume.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// The AWS owner alias, as maintained by Amazon. The possible values are: amazon
	// | self | all | aws-marketplace | microsoft. This AWS owner alias is not to
	// be confused with the user-configured AWS account alias, which is set from
	// the IAM console.
	OwnerAlias *string `locationName:"ownerAlias" type:"string"`

	// The AWS account ID of the EBS snapshot owner.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The progress of the snapshot, as a percentage.
	Progress *string `locationName:"progress" type:"string"`

	// The ID of the snapshot. Each snapshot receives a unique identifier when it
	// is created.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// The time stamp when the snapshot was initiated.
	StartTime *time.Time `locationName:"startTime" type:"timestamp"`

	// The snapshot state.
	State SnapshotState `locationName:"status" type:"string" enum:"true"`

	// Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy
	// operation fails (for example, if the proper AWS Key Management Service (AWS
	// KMS) permissions are not obtained) this field displays error state details
	// to help you diagnose why the error occurred. This parameter is only returned
	// by DescribeSnapshots.
	StateMessage *string `locationName:"statusMessage" type:"string"`

	// Any tags assigned to the snapshot.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the volume that was used to create the snapshot. Snapshots created
	// by the CopySnapshot action have an arbitrary volume ID that should not be
	// used for any purpose.
	VolumeId *string `locationName:"volumeId" type:"string"`

	// The size of the volume, in GiB.
	VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
	// contains filtered or unexported fields
}

Describes a snapshot.

func (Snapshot) String added in v0.9.0

func (s Snapshot) String() string

String returns the string representation

type SnapshotAttributeName

type SnapshotAttributeName string
const (
	SnapshotAttributeNameProductCodes           SnapshotAttributeName = "productCodes"
	SnapshotAttributeNameCreateVolumePermission SnapshotAttributeName = "createVolumePermission"
)

Enum values for SnapshotAttributeName

func (SnapshotAttributeName) MarshalValue added in v0.3.0

func (enum SnapshotAttributeName) MarshalValue() (string, error)

func (SnapshotAttributeName) MarshalValueBuf added in v0.3.0

func (enum SnapshotAttributeName) MarshalValueBuf(b []byte) ([]byte, error)

type SnapshotDetail

type SnapshotDetail struct {

	// A description for the snapshot.
	Description *string `locationName:"description" type:"string"`

	// The block device mapping for the snapshot.
	DeviceName *string `locationName:"deviceName" type:"string"`

	// The size of the disk in the snapshot, in GiB.
	DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`

	// The format of the disk image from which the snapshot is created.
	Format *string `locationName:"format" type:"string"`

	// The percentage of progress for the task.
	Progress *string `locationName:"progress" type:"string"`

	// The snapshot ID of the disk being imported.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// A brief status of the snapshot creation.
	Status *string `locationName:"status" type:"string"`

	// A detailed status message for the snapshot creation.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// The URL used to access the disk image.
	Url *string `locationName:"url" type:"string"`

	// The Amazon S3 bucket for the disk image.
	UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
	// contains filtered or unexported fields
}

Describes the snapshot created from the imported disk.

func (SnapshotDetail) String

func (s SnapshotDetail) String() string

String returns the string representation

type SnapshotDiskContainer

type SnapshotDiskContainer struct {

	// The description of the disk image being imported.
	Description *string `type:"string"`

	// The format of the disk image being imported.
	//
	// Valid values: VHD | VMDK
	Format *string `type:"string"`

	// The URL to the Amazon S3-based disk image being imported. It can either be
	// a https URL (https://..) or an Amazon S3 URL (s3://..).
	Url *string `type:"string"`

	// The Amazon S3 bucket for the disk image.
	UserBucket *UserBucket `type:"structure"`
	// contains filtered or unexported fields
}

The disk container object for the import snapshot request.

func (SnapshotDiskContainer) String

func (s SnapshotDiskContainer) String() string

String returns the string representation

type SnapshotInfo added in v0.10.0

type SnapshotInfo struct {

	// Description specified by the CreateSnapshotRequest that has been applied
	// to all snapshots.
	Description *string `locationName:"description" type:"string"`

	// Indicates whether the snapshot is encrypted.
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// Account id used when creating this snapshot.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// Progress this snapshot has made towards completing.
	Progress *string `locationName:"progress" type:"string"`

	// Snapshot id that can be used to describe this snapshot.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// Time this snapshot was started. This is the same for all snapshots initiated
	// by the same request.
	StartTime *time.Time `locationName:"startTime" type:"timestamp"`

	// Current state of the snapshot.
	State SnapshotState `locationName:"state" type:"string" enum:"true"`

	// Tags associated with this snapshot.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// Source volume from which this snapshot was created.
	VolumeId *string `locationName:"volumeId" type:"string"`

	// Size of the volume from which this snapshot was created.
	VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
	// contains filtered or unexported fields
}

Information about a snapshot.

func (SnapshotInfo) String added in v0.10.0

func (s SnapshotInfo) String() string

String returns the string representation

type SnapshotState

type SnapshotState string
const (
	SnapshotStatePending   SnapshotState = "pending"
	SnapshotStateCompleted SnapshotState = "completed"
	SnapshotStateError     SnapshotState = "error"
)

Enum values for SnapshotState

func (SnapshotState) MarshalValue added in v0.3.0

func (enum SnapshotState) MarshalValue() (string, error)

func (SnapshotState) MarshalValueBuf added in v0.3.0

func (enum SnapshotState) MarshalValueBuf(b []byte) ([]byte, error)

type SnapshotTaskDetail

type SnapshotTaskDetail struct {

	// The description of the snapshot.
	Description *string `locationName:"description" type:"string"`

	// The size of the disk in the snapshot, in GiB.
	DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`

	// Indicates whether the snapshot is encrypted.
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// The format of the disk image from which the snapshot is created.
	Format *string `locationName:"format" type:"string"`

	// The identifier for the AWS Key Management Service (AWS KMS) customer master
	// key (CMK) that was used to create the encrypted snapshot.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// The percentage of completion for the import snapshot task.
	Progress *string `locationName:"progress" type:"string"`

	// The snapshot ID of the disk being imported.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// A brief status for the import snapshot task.
	Status *string `locationName:"status" type:"string"`

	// A detailed status message for the import snapshot task.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// The URL of the disk image from which the snapshot is created.
	Url *string `locationName:"url" type:"string"`

	// The Amazon S3 bucket for the disk image.
	UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
	// contains filtered or unexported fields
}

Details about the import snapshot task.

func (SnapshotTaskDetail) String

func (s SnapshotTaskDetail) String() string

String returns the string representation

type SpotAllocationStrategy added in v0.4.0

type SpotAllocationStrategy string
const (
	SpotAllocationStrategyLowestPrice       SpotAllocationStrategy = "lowest-price"
	SpotAllocationStrategyDiversified       SpotAllocationStrategy = "diversified"
	SpotAllocationStrategyCapacityOptimized SpotAllocationStrategy = "capacity-optimized"
)

Enum values for SpotAllocationStrategy

func (SpotAllocationStrategy) MarshalValue added in v0.4.0

func (enum SpotAllocationStrategy) MarshalValue() (string, error)

func (SpotAllocationStrategy) MarshalValueBuf added in v0.4.0

func (enum SpotAllocationStrategy) MarshalValueBuf(b []byte) ([]byte, error)

type SpotDatafeedSubscription

type SpotDatafeedSubscription struct {

	// The Amazon S3 bucket where the Spot Instance data feed is located.
	Bucket *string `locationName:"bucket" type:"string"`

	// The fault codes for the Spot Instance request, if any.
	Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`

	// The AWS account ID of the account.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The prefix that is prepended to data feed files.
	Prefix *string `locationName:"prefix" type:"string"`

	// The state of the Spot Instance data feed subscription.
	State DatafeedSubscriptionState `locationName:"state" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the data feed for a Spot Instance.

func (SpotDatafeedSubscription) String

func (s SpotDatafeedSubscription) String() string

String returns the string representation

type SpotFleetLaunchSpecification

type SpotFleetLaunchSpecification struct {

	// Deprecated.
	AddressingType *string `locationName:"addressingType" type:"string"`

	// One or more block devices that are mapped to the Spot Instances. You can't
	// specify both a snapshot ID and an encryption value. This is because only
	// blank volumes can be encrypted on creation. If a snapshot is the basis for
	// a volume, it is not blank and its encryption status is used for the volume
	// encryption status.
	BlockDeviceMappings []BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`

	// Indicates whether the instances are optimized for EBS I/O. This optimization
	// provides dedicated throughput to Amazon EBS and an optimized configuration
	// stack to provide optimal EBS I/O performance. This optimization isn't available
	// with all instance types. Additional usage charges apply when using an EBS
	// Optimized instance.
	//
	// Default: false
	EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`

	// The IAM instance profile.
	IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`

	// The ID of the AMI.
	ImageId *string `locationName:"imageId" type:"string"`

	// The instance type.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// The ID of the kernel.
	KernelId *string `locationName:"kernelId" type:"string"`

	// The name of the key pair.
	KeyName *string `locationName:"keyName" type:"string"`

	// Enable or disable monitoring for the instances.
	Monitoring *SpotFleetMonitoring `locationName:"monitoring" type:"structure"`

	// One or more network interfaces. If you specify a network interface, you must
	// specify subnet IDs and security group IDs using the network interface.
	NetworkInterfaces []InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`

	// The placement information.
	Placement *SpotPlacement `locationName:"placement" type:"structure"`

	// The ID of the RAM disk. Some kernels require additional drivers at launch.
	// Check the kernel requirements for information about whether you need to specify
	// a RAM disk. To find kernel requirements, refer to the AWS Resource Center
	// and search for the kernel ID.
	RamdiskId *string `locationName:"ramdiskId" type:"string"`

	// One or more security groups. When requesting instances in a VPC, you must
	// specify the IDs of the security groups. When requesting instances in EC2-Classic,
	// you can specify the names or the IDs of the security groups.
	SecurityGroups []GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`

	// The maximum price per unit hour that you are willing to pay for a Spot Instance.
	// If this value is not specified, the default is the Spot price specified for
	// the fleet. To determine the Spot price per unit hour, divide the Spot price
	// by the value of WeightedCapacity.
	SpotPrice *string `locationName:"spotPrice" type:"string"`

	// The IDs of the subnets in which to launch the instances. To specify multiple
	// subnets, separate them using commas; for example, "subnet-1234abcdeexample1,
	// subnet-0987cdef6example2".
	SubnetId *string `locationName:"subnetId" type:"string"`

	// The tags to apply during creation.
	TagSpecifications []SpotFleetTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"`

	// The Base64-encoded user data that instances use when starting up.
	UserData *string `locationName:"userData" type:"string"`

	// The number of units provided by the specified instance type. These are the
	// same units that you chose to set the target capacity in terms of instances,
	// or a performance characteristic such as vCPUs, memory, or I/O.
	//
	// If the target capacity divided by this value is not a whole number, Amazon
	// EC2 rounds the number of instances to the next whole number. If this value
	// is not specified, the default is 1.
	WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
	// contains filtered or unexported fields
}

Describes the launch specification for one or more Spot Instances. If you include On-Demand capacity in your fleet request, you can't use SpotFleetLaunchSpecification; you must use LaunchTemplateConfig (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_LaunchTemplateConfig.html).

func (SpotFleetLaunchSpecification) String

String returns the string representation

type SpotFleetMonitoring

type SpotFleetMonitoring struct {

	// Enables monitoring for the instance.
	//
	// Default: false
	Enabled *bool `locationName:"enabled" type:"boolean"`
	// contains filtered or unexported fields
}

Describes whether monitoring is enabled.

func (SpotFleetMonitoring) String

func (s SpotFleetMonitoring) String() string

String returns the string representation

type SpotFleetRequestConfig

type SpotFleetRequestConfig struct {

	// The progress of the Spot Fleet request. If there is an error, the status
	// is error. After all requests are placed, the status is pending_fulfillment.
	// If the size of the fleet is equal to or greater than its target capacity,
	// the status is fulfilled. If the size of the fleet is decreased, the status
	// is pending_termination while Spot Instances are terminating.
	ActivityStatus ActivityStatus `locationName:"activityStatus" type:"string" enum:"true"`

	// The creation date and time of the request.
	CreateTime *time.Time `locationName:"createTime" type:"timestamp"`

	// The configuration of the Spot Fleet request.
	SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure"`

	// The ID of the Spot Fleet request.
	SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`

	// The state of the Spot Fleet request.
	SpotFleetRequestState BatchState `locationName:"spotFleetRequestState" type:"string" enum:"true"`

	// The tags for a Spot Fleet resource.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a Spot Fleet request.

func (SpotFleetRequestConfig) String

func (s SpotFleetRequestConfig) String() string

String returns the string representation

type SpotFleetRequestConfigData

type SpotFleetRequestConfigData struct {

	// Indicates how to allocate the target Spot Instance capacity across the Spot
	// Instance pools specified by the Spot Fleet request.
	//
	// If the allocation strategy is lowestPrice, Spot Fleet launches instances
	// from the Spot Instance pools with the lowest price. This is the default allocation
	// strategy.
	//
	// If the allocation strategy is diversified, Spot Fleet launches instances
	// from all the Spot Instance pools that you specify.
	//
	// If the allocation strategy is capacityOptimized, Spot Fleet launches instances
	// from Spot Instance pools with optimal capacity for the number of instances
	// that are launching.
	AllocationStrategy AllocationStrategy `locationName:"allocationStrategy" type:"string" enum:"true"`

	// A unique, case-sensitive identifier that you provide to ensure the idempotency
	// of your listings. This helps to avoid duplicate listings. For more information,
	// see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientToken *string `locationName:"clientToken" type:"string"`

	// Indicates whether running Spot Instances should be terminated if you decrease
	// the target capacity of the Spot Fleet request below the current size of the
	// Spot Fleet.
	ExcessCapacityTerminationPolicy ExcessCapacityTerminationPolicy `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"true"`

	// The number of units fulfilled by this request compared to the set target
	// capacity. You cannot set this value.
	FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"`

	// The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM)
	// role that grants the Spot Fleet the permission to request, launch, terminate,
	// and tag instances on your behalf. For more information, see Spot Fleet prerequisites
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html#spot-fleet-prerequisites)
	// in the Amazon EC2 User Guide for Linux Instances. Spot Fleet can terminate
	// Spot Instances on your behalf when you cancel its Spot Fleet request using
	// CancelSpotFleetRequests (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CancelSpotFleetRequests)
	// or when the Spot Fleet request expires, if you set TerminateInstancesWithExpiration.
	//
	// IamFleetRole is a required field
	IamFleetRole *string `locationName:"iamFleetRole" type:"string" required:"true"`

	// The behavior when a Spot Instance is interrupted. The default is terminate.
	InstanceInterruptionBehavior InstanceInterruptionBehavior `locationName:"instanceInterruptionBehavior" type:"string" enum:"true"`

	// The number of Spot pools across which to allocate your target Spot capacity.
	// Valid only when Spot AllocationStrategy is set to lowest-price. Spot Fleet
	// selects the cheapest Spot pools and evenly allocates your target Spot capacity
	// across the number of Spot pools that you specify.
	InstancePoolsToUseCount *int64 `locationName:"instancePoolsToUseCount" type:"integer"`

	// The launch specifications for the Spot Fleet request. If you specify LaunchSpecifications,
	// you can't specify LaunchTemplateConfigs. If you include On-Demand capacity
	// in your request, you must use LaunchTemplateConfigs.
	LaunchSpecifications []SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" type:"list"`

	// The launch template and overrides. If you specify LaunchTemplateConfigs,
	// you can't specify LaunchSpecifications. If you include On-Demand capacity
	// in your request, you must use LaunchTemplateConfigs.
	LaunchTemplateConfigs []LaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"`

	// One or more Classic Load Balancers and target groups to attach to the Spot
	// Fleet request. Spot Fleet registers the running Spot Instances with the specified
	// Classic Load Balancers and target groups.
	//
	// With Network Load Balancers, Spot Fleet cannot register instances that have
	// the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1,
	// HS1, M1, M2, M3, and T1.
	LoadBalancersConfig *LoadBalancersConfig `locationName:"loadBalancersConfig" type:"structure"`

	// The order of the launch template overrides to use in fulfilling On-Demand
	// capacity. If you specify lowestPrice, Spot Fleet uses price to determine
	// the order, launching the lowest price first. If you specify prioritized,
	// Spot Fleet uses the priority that you assign to each Spot Fleet launch template
	// override, launching the highest priority first. If you do not specify a value,
	// Spot Fleet defaults to lowestPrice.
	OnDemandAllocationStrategy OnDemandAllocationStrategy `locationName:"onDemandAllocationStrategy" type:"string" enum:"true"`

	// The number of On-Demand units fulfilled by this request compared to the set
	// target On-Demand capacity.
	OnDemandFulfilledCapacity *float64 `locationName:"onDemandFulfilledCapacity" type:"double"`

	// The maximum amount per hour for On-Demand Instances that you're willing to
	// pay. You can use the onDemandMaxTotalPrice parameter, the spotMaxTotalPrice
	// parameter, or both parameters to ensure that your fleet cost does not exceed
	// your budget. If you set a maximum price per hour for the On-Demand Instances
	// and Spot Instances in your request, Spot Fleet will launch instances until
	// it reaches the maximum amount you're willing to pay. When the maximum amount
	// you're willing to pay is reached, the fleet stops launching instances even
	// if it hasn’t met the target capacity.
	OnDemandMaxTotalPrice *string `locationName:"onDemandMaxTotalPrice" type:"string"`

	// The number of On-Demand units to request. You can choose to set the target
	// capacity in terms of instances or a performance characteristic that is important
	// to your application workload, such as vCPUs, memory, or I/O. If the request
	// type is maintain, you can specify a target capacity of 0 and add capacity
	// later.
	OnDemandTargetCapacity *int64 `locationName:"onDemandTargetCapacity" type:"integer"`

	// Indicates whether Spot Fleet should replace unhealthy instances.
	ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"`

	// The maximum amount per hour for Spot Instances that you're willing to pay.
	// You can use the spotdMaxTotalPrice parameter, the onDemandMaxTotalPrice parameter,
	// or both parameters to ensure that your fleet cost does not exceed your budget.
	// If you set a maximum price per hour for the On-Demand Instances and Spot
	// Instances in your request, Spot Fleet will launch instances until it reaches
	// the maximum amount you're willing to pay. When the maximum amount you're
	// willing to pay is reached, the fleet stops launching instances even if it
	// hasn’t met the target capacity.
	SpotMaxTotalPrice *string `locationName:"spotMaxTotalPrice" type:"string"`

	// The maximum price per unit hour that you are willing to pay for a Spot Instance.
	// The default is the On-Demand price.
	SpotPrice *string `locationName:"spotPrice" type:"string"`

	// The key-value pair for tagging the Spot Fleet request on creation. The value
	// for ResourceType must be spot-fleet-request, otherwise the Spot Fleet request
	// fails. To tag instances at launch, specify the tags in the launch template
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template)
	// (valid only if you use LaunchTemplateConfigs) or in the SpotFleetTagSpecification
	// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetTagSpecification.html)
	// (valid only if you use LaunchSpecifications). For information about tagging
	// after launch, see Tagging Your Resources (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources).
	TagSpecifications []TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`

	// The number of units to request for the Spot Fleet. You can choose to set
	// the target capacity in terms of instances or a performance characteristic
	// that is important to your application workload, such as vCPUs, memory, or
	// I/O. If the request type is maintain, you can specify a target capacity of
	// 0 and add capacity later.
	//
	// TargetCapacity is a required field
	TargetCapacity *int64 `locationName:"targetCapacity" type:"integer" required:"true"`

	// Indicates whether running Spot Instances are terminated when the Spot Fleet
	// request expires.
	TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"`

	// The type of request. Indicates whether the Spot Fleet only requests the target
	// capacity or also attempts to maintain it. When this value is request, the
	// Spot Fleet only places the required requests. It does not attempt to replenish
	// Spot Instances if capacity is diminished, nor does it submit requests in
	// alternative Spot pools if capacity is not available. When this value is maintain,
	// the Spot Fleet maintains the target capacity. The Spot Fleet places the required
	// requests to meet capacity and automatically replenishes any interrupted instances.
	// Default: maintain. instant is listed but is not used by Spot Fleet.
	Type FleetType `locationName:"type" type:"string" enum:"true"`

	// The start date and time of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
	// By default, Amazon EC2 starts fulfilling the request immediately.
	ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`

	// The end date and time of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
	// After the end date and time, no new Spot Instance requests are placed or
	// able to fulfill the request. If no value is specified, the Spot Fleet request
	// remains until you cancel it.
	ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes the configuration of a Spot Fleet request.

func (SpotFleetRequestConfigData) String

String returns the string representation

func (*SpotFleetRequestConfigData) Validate

func (s *SpotFleetRequestConfigData) Validate() error

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

type SpotFleetTagSpecification

type SpotFleetTagSpecification struct {

	// The type of resource. Currently, the only resource type that is supported
	// is instance. To tag the Spot Fleet request on creation, use the TagSpecifications
	// parameter in SpotFleetRequestConfigData (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html).
	ResourceType ResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The tags.
	Tags []Tag `locationName:"tag" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

The tags for a Spot Fleet resource.

func (SpotFleetTagSpecification) String

func (s SpotFleetTagSpecification) String() string

String returns the string representation

type SpotInstanceInterruptionBehavior added in v0.4.0

type SpotInstanceInterruptionBehavior string
const (
	SpotInstanceInterruptionBehaviorHibernate SpotInstanceInterruptionBehavior = "hibernate"
	SpotInstanceInterruptionBehaviorStop      SpotInstanceInterruptionBehavior = "stop"
	SpotInstanceInterruptionBehaviorTerminate SpotInstanceInterruptionBehavior = "terminate"
)

Enum values for SpotInstanceInterruptionBehavior

func (SpotInstanceInterruptionBehavior) MarshalValue added in v0.4.0

func (enum SpotInstanceInterruptionBehavior) MarshalValue() (string, error)

func (SpotInstanceInterruptionBehavior) MarshalValueBuf added in v0.4.0

func (enum SpotInstanceInterruptionBehavior) MarshalValueBuf(b []byte) ([]byte, error)

type SpotInstanceRequest

type SpotInstanceRequest struct {

	// If you specified a duration and your Spot Instance request was fulfilled,
	// this is the fixed hourly price in effect for the Spot Instance while it runs.
	ActualBlockHourlyPrice *string `locationName:"actualBlockHourlyPrice" type:"string"`

	// The Availability Zone group. If you specify the same Availability Zone group
	// for all Spot Instance requests, all Spot Instances are launched in the same
	// Availability Zone.
	AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`

	// The duration for the Spot Instance, in minutes.
	BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`

	// The date and time when the Spot Instance request was created, in UTC format
	// (for example, YYYY-MM-DDTHH:MM:SSZ).
	CreateTime *time.Time `locationName:"createTime" type:"timestamp"`

	// The fault codes for the Spot Instance request, if any.
	Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`

	// The instance ID, if an instance has been launched to fulfill the Spot Instance
	// request.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The behavior when a Spot Instance is interrupted.
	InstanceInterruptionBehavior InstanceInterruptionBehavior `locationName:"instanceInterruptionBehavior" type:"string" enum:"true"`

	// The instance launch group. Launch groups are Spot Instances that launch together
	// and terminate together.
	LaunchGroup *string `locationName:"launchGroup" type:"string"`

	// Additional information for launching instances.
	LaunchSpecification *LaunchSpecification `locationName:"launchSpecification" type:"structure"`

	// The Availability Zone in which the request is launched.
	LaunchedAvailabilityZone *string `locationName:"launchedAvailabilityZone" type:"string"`

	// The product description associated with the Spot Instance.
	ProductDescription RIProductDescription `locationName:"productDescription" type:"string" enum:"true"`

	// The ID of the Spot Instance request.
	SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`

	// The maximum price per hour that you are willing to pay for a Spot Instance.
	SpotPrice *string `locationName:"spotPrice" type:"string"`

	// The state of the Spot Instance request. Spot status information helps track
	// your Spot Instance requests. For more information, see Spot status (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
	// in the Amazon EC2 User Guide for Linux Instances.
	State SpotInstanceState `locationName:"state" type:"string" enum:"true"`

	// The status code and status message describing the Spot Instance request.
	Status *SpotInstanceStatus `locationName:"status" type:"structure"`

	// Any tags assigned to the resource.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The Spot Instance request type.
	Type SpotInstanceType `locationName:"type" type:"string" enum:"true"`

	// The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	// The request becomes active at this date and time.
	ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`

	// The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	// If this is a one-time request, it remains active until all instances launch,
	// the request is canceled, or this date is reached. If the request is persistent,
	// it remains active until it is canceled or this date is reached. The default
	// end date is 7 days from the current date.
	ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes a Spot Instance request.

func (SpotInstanceRequest) String

func (s SpotInstanceRequest) String() string

String returns the string representation

type SpotInstanceState

type SpotInstanceState string
const (
	SpotInstanceStateOpen      SpotInstanceState = "open"
	SpotInstanceStateActive    SpotInstanceState = "active"
	SpotInstanceStateClosed    SpotInstanceState = "closed"
	SpotInstanceStateCancelled SpotInstanceState = "cancelled"
	SpotInstanceStateFailed    SpotInstanceState = "failed"
)

Enum values for SpotInstanceState

func (SpotInstanceState) MarshalValue added in v0.3.0

func (enum SpotInstanceState) MarshalValue() (string, error)

func (SpotInstanceState) MarshalValueBuf added in v0.3.0

func (enum SpotInstanceState) MarshalValueBuf(b []byte) ([]byte, error)

type SpotInstanceStateFault

type SpotInstanceStateFault struct {

	// The reason code for the Spot Instance state change.
	Code *string `locationName:"code" type:"string"`

	// The message for the Spot Instance state change.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes a Spot Instance state change.

func (SpotInstanceStateFault) String

func (s SpotInstanceStateFault) String() string

String returns the string representation

type SpotInstanceStatus

type SpotInstanceStatus struct {

	// The status code. For a list of status codes, see Spot status codes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html#spot-instance-bid-status-understand)
	// in the Amazon EC2 User Guide for Linux Instances.
	Code *string `locationName:"code" type:"string"`

	// The description for the status code.
	Message *string `locationName:"message" type:"string"`

	// The date and time of the most recent status update, in UTC format (for example,
	// YYYY-MM-DDTHH:MM:SSZ).
	UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes the status of a Spot Instance request.

func (SpotInstanceStatus) String

func (s SpotInstanceStatus) String() string

String returns the string representation

type SpotInstanceType

type SpotInstanceType string
const (
	SpotInstanceTypeOneTime    SpotInstanceType = "one-time"
	SpotInstanceTypePersistent SpotInstanceType = "persistent"
)

Enum values for SpotInstanceType

func (SpotInstanceType) MarshalValue added in v0.3.0

func (enum SpotInstanceType) MarshalValue() (string, error)

func (SpotInstanceType) MarshalValueBuf added in v0.3.0

func (enum SpotInstanceType) MarshalValueBuf(b []byte) ([]byte, error)

type SpotMarketOptions added in v0.2.0

type SpotMarketOptions struct {

	// The required duration for the Spot Instances (also known as Spot blocks),
	// in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
	// or 360).
	BlockDurationMinutes *int64 `type:"integer"`

	// The behavior when a Spot Instance is interrupted. The default is terminate.
	InstanceInterruptionBehavior InstanceInterruptionBehavior `type:"string" enum:"true"`

	// The maximum hourly price you're willing to pay for the Spot Instances. The
	// default is the On-Demand price.
	MaxPrice *string `type:"string"`

	// The Spot Instance request type. For RunInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances),
	// persistent Spot Instance requests are only supported when InstanceInterruptionBehavior
	// is set to either hibernate or stop.
	SpotInstanceType SpotInstanceType `type:"string" enum:"true"`

	// The end date of the request. For a one-time request, the request remains
	// active until all instances launch, the request is canceled, or this date
	// is reached. If the request is persistent, it remains active until it is canceled
	// or this date and time is reached. The default end date is 7 days from the
	// current date.
	ValidUntil *time.Time `type:"timestamp"`
	// contains filtered or unexported fields
}

The options for Spot Instances.

func (SpotMarketOptions) String added in v0.2.0

func (s SpotMarketOptions) String() string

String returns the string representation

type SpotOptions added in v0.4.0

type SpotOptions struct {

	// Indicates how to allocate the target Spot Instance capacity across the Spot
	// Instance pools specified by the EC2 Fleet.
	//
	// If the allocation strategy is lowest-price, EC2 Fleet launches instances
	// from the Spot Instance pools with the lowest price. This is the default allocation
	// strategy.
	//
	// If the allocation strategy is diversified, EC2 Fleet launches instances from
	// all of the Spot Instance pools that you specify.
	//
	// If the allocation strategy is capacity-optimized, EC2 Fleet launches instances
	// from Spot Instance pools with optimal capacity for the number of instances
	// that are launching.
	AllocationStrategy SpotAllocationStrategy `locationName:"allocationStrategy" type:"string" enum:"true"`

	// The behavior when a Spot Instance is interrupted. The default is terminate.
	InstanceInterruptionBehavior SpotInstanceInterruptionBehavior `locationName:"instanceInterruptionBehavior" type:"string" enum:"true"`

	// The number of Spot pools across which to allocate your target Spot capacity.
	// Valid only when AllocationStrategy is set to lowest-price. EC2 Fleet selects
	// the cheapest Spot pools and evenly allocates your target Spot capacity across
	// the number of Spot pools that you specify.
	InstancePoolsToUseCount *int64 `locationName:"instancePoolsToUseCount" type:"integer"`

	// The maximum amount per hour for Spot Instances that you're willing to pay.
	MaxTotalPrice *string `locationName:"maxTotalPrice" type:"string"`

	// The minimum target capacity for Spot Instances in the fleet. If the minimum
	// target capacity is not reached, the fleet launches no instances.
	MinTargetCapacity *int64 `locationName:"minTargetCapacity" type:"integer"`

	// Indicates that the fleet launches all Spot Instances into a single Availability
	// Zone. Supported only for fleets of type instant.
	SingleAvailabilityZone *bool `locationName:"singleAvailabilityZone" type:"boolean"`

	// Indicates that the fleet uses a single instance type to launch all Spot Instances
	// in the fleet. Supported only for fleets of type instant.
	SingleInstanceType *bool `locationName:"singleInstanceType" type:"boolean"`
	// contains filtered or unexported fields
}

Describes the configuration of Spot Instances in an EC2 Fleet.

func (SpotOptions) String added in v0.4.0

func (s SpotOptions) String() string

String returns the string representation

type SpotOptionsRequest added in v0.4.0

type SpotOptionsRequest struct {

	// Indicates how to allocate the target Spot Instance capacity across the Spot
	// Instance pools specified by the EC2 Fleet.
	//
	// If the allocation strategy is lowest-price, EC2 Fleet launches instances
	// from the Spot Instance pools with the lowest price. This is the default allocation
	// strategy.
	//
	// If the allocation strategy is diversified, EC2 Fleet launches instances from
	// all of the Spot Instance pools that you specify.
	//
	// If the allocation strategy is capacity-optimized, EC2 Fleet launches instances
	// from Spot Instance pools with optimal capacity for the number of instances
	// that are launching.
	AllocationStrategy SpotAllocationStrategy `type:"string" enum:"true"`

	// The behavior when a Spot Instance is interrupted. The default is terminate.
	InstanceInterruptionBehavior SpotInstanceInterruptionBehavior `type:"string" enum:"true"`

	// The number of Spot pools across which to allocate your target Spot capacity.
	// Valid only when Spot AllocationStrategy is set to lowest-price. EC2 Fleet
	// selects the cheapest Spot pools and evenly allocates your target Spot capacity
	// across the number of Spot pools that you specify.
	InstancePoolsToUseCount *int64 `type:"integer"`

	// The maximum amount per hour for Spot Instances that you're willing to pay.
	MaxTotalPrice *string `type:"string"`

	// The minimum target capacity for Spot Instances in the fleet. If the minimum
	// target capacity is not reached, the fleet launches no instances.
	MinTargetCapacity *int64 `type:"integer"`

	// Indicates that the fleet launches all Spot Instances into a single Availability
	// Zone. Supported only for fleets of type instant.
	SingleAvailabilityZone *bool `type:"boolean"`

	// Indicates that the fleet uses a single instance type to launch all Spot Instances
	// in the fleet. Supported only for fleets of type instant.
	SingleInstanceType *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Describes the configuration of Spot Instances in an EC2 Fleet request.

func (SpotOptionsRequest) String added in v0.4.0

func (s SpotOptionsRequest) String() string

String returns the string representation

type SpotPlacement

type SpotPlacement struct {

	// The Availability Zone.
	//
	// [Spot Fleet only] To specify multiple Availability Zones, separate them using
	// commas; for example, "us-west-2a, us-west-2b".
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The name of the placement group.
	GroupName *string `locationName:"groupName" type:"string"`

	// The tenancy of the instance (if the instance is running in a VPC). An instance
	// with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
	// is not supported for Spot Instances.
	Tenancy Tenancy `locationName:"tenancy" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes Spot Instance placement.

func (SpotPlacement) String

func (s SpotPlacement) String() string

String returns the string representation

type SpotPrice

type SpotPrice struct {

	// The Availability Zone.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The instance type.
	InstanceType InstanceType `locationName:"instanceType" type:"string" enum:"true"`

	// A general description of the AMI.
	ProductDescription RIProductDescription `locationName:"productDescription" type:"string" enum:"true"`

	// The maximum price per hour that you are willing to pay for a Spot Instance.
	SpotPrice *string `locationName:"spotPrice" type:"string"`

	// The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
	Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes the maximum price per hour that you are willing to pay for a Spot Instance.

func (SpotPrice) String

func (s SpotPrice) String() string

String returns the string representation

type StaleIpPermission

type StaleIpPermission struct {

	// The start of the port range for the TCP and UDP protocols, or an ICMP type
	// number. A value of -1 indicates all ICMP types.
	FromPort *int64 `locationName:"fromPort" type:"integer"`

	// The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers)
	// (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml).
	IpProtocol *string `locationName:"ipProtocol" type:"string"`

	// The IP ranges. Not applicable for stale security group rules.
	IpRanges []string `locationName:"ipRanges" locationNameList:"item" type:"list"`

	// The prefix list IDs. Not applicable for stale security group rules.
	PrefixListIds []string `locationName:"prefixListIds" locationNameList:"item" type:"list"`

	// The end of the port range for the TCP and UDP protocols, or an ICMP type
	// number. A value of -1 indicates all ICMP types.
	ToPort *int64 `locationName:"toPort" type:"integer"`

	// The security group pairs. Returns the ID of the referenced security group
	// and VPC, and the ID and status of the VPC peering connection.
	UserIdGroupPairs []UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes a stale rule in a security group.

func (StaleIpPermission) String

func (s StaleIpPermission) String() string

String returns the string representation

type StaleSecurityGroup

type StaleSecurityGroup struct {

	// The description of the security group.
	Description *string `locationName:"description" type:"string"`

	// The ID of the security group.
	GroupId *string `locationName:"groupId" type:"string"`

	// The name of the security group.
	GroupName *string `locationName:"groupName" type:"string"`

	// Information about the stale inbound rules in the security group.
	StaleIpPermissions []StaleIpPermission `locationName:"staleIpPermissions" locationNameList:"item" type:"list"`

	// Information about the stale outbound rules in the security group.
	StaleIpPermissionsEgress []StaleIpPermission `locationName:"staleIpPermissionsEgress" locationNameList:"item" type:"list"`

	// The ID of the VPC for the security group.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a stale security group (a security group that contains stale rules).

func (StaleSecurityGroup) String

func (s StaleSecurityGroup) String() string

String returns the string representation

type StartInstancesInput

type StartInstancesInput struct {

	// Reserved.
	AdditionalInfo *string `locationName:"additionalInfo" type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The IDs of the instances.
	//
	// InstanceIds is a required field
	InstanceIds []string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (StartInstancesInput) String

func (s StartInstancesInput) String() string

String returns the string representation

func (*StartInstancesInput) Validate

func (s *StartInstancesInput) Validate() error

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

type StartInstancesOutput

type StartInstancesOutput struct {

	// Information about the started instances.
	StartingInstances []InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (StartInstancesOutput) String

func (s StartInstancesOutput) String() string

String returns the string representation

type StartInstancesRequest

type StartInstancesRequest struct {
	*aws.Request
	Input *StartInstancesInput
	Copy  func(*StartInstancesInput) StartInstancesRequest
}

StartInstancesRequest is the request type for the StartInstances API operation.

func (StartInstancesRequest) Send

Send marshals and sends the StartInstances API request.

type StartInstancesResponse added in v0.9.0

type StartInstancesResponse struct {
	*StartInstancesOutput
	// contains filtered or unexported fields
}

StartInstancesResponse is the response type for the StartInstances API operation.

func (*StartInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *StartInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the StartInstances request.

type StartVpcEndpointServicePrivateDnsVerificationInput added in v0.19.0

type StartVpcEndpointServicePrivateDnsVerificationInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the endpoint service.
	//
	// ServiceId is a required field
	ServiceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StartVpcEndpointServicePrivateDnsVerificationInput) String added in v0.19.0

String returns the string representation

func (*StartVpcEndpointServicePrivateDnsVerificationInput) Validate added in v0.19.0

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

type StartVpcEndpointServicePrivateDnsVerificationOutput added in v0.19.0

type StartVpcEndpointServicePrivateDnsVerificationOutput struct {

	// Returns true if the request succeeds; otherwise, it returns an error.
	ReturnValue *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (StartVpcEndpointServicePrivateDnsVerificationOutput) String added in v0.19.0

String returns the string representation

type StartVpcEndpointServicePrivateDnsVerificationRequest added in v0.19.0

StartVpcEndpointServicePrivateDnsVerificationRequest is the request type for the StartVpcEndpointServicePrivateDnsVerification API operation.

func (StartVpcEndpointServicePrivateDnsVerificationRequest) Send added in v0.19.0

Send marshals and sends the StartVpcEndpointServicePrivateDnsVerification API request.

type StartVpcEndpointServicePrivateDnsVerificationResponse added in v0.19.0

type StartVpcEndpointServicePrivateDnsVerificationResponse struct {
	*StartVpcEndpointServicePrivateDnsVerificationOutput
	// contains filtered or unexported fields
}

StartVpcEndpointServicePrivateDnsVerificationResponse is the response type for the StartVpcEndpointServicePrivateDnsVerification API operation.

func (*StartVpcEndpointServicePrivateDnsVerificationResponse) SDKResponseMetdata added in v0.19.0

SDKResponseMetdata returns the response metadata for the StartVpcEndpointServicePrivateDnsVerification request.

type State

type State string
const (
	StatePendingAcceptance State = "PendingAcceptance"
	StatePending           State = "Pending"
	StateAvailable         State = "Available"
	StateDeleting          State = "Deleting"
	StateDeleted           State = "Deleted"
	StateRejected          State = "Rejected"
	StateFailed            State = "Failed"
	StateExpired           State = "Expired"
)

Enum values for State

func (State) MarshalValue added in v0.3.0

func (enum State) MarshalValue() (string, error)

func (State) MarshalValueBuf added in v0.3.0

func (enum State) MarshalValueBuf(b []byte) ([]byte, error)

type StateReason

type StateReason struct {

	// The reason code for the state change.
	Code *string `locationName:"code" type:"string"`

	// The message for the state change.
	//
	//    * Server.InsufficientInstanceCapacity: There was insufficient capacity
	//    available to satisfy the launch request.
	//
	//    * Server.InternalError: An internal error caused the instance to terminate
	//    during launch.
	//
	//    * Server.ScheduledStop: The instance was stopped due to a scheduled retirement.
	//
	//    * Server.SpotInstanceShutdown: The instance was stopped because the number
	//    of Spot requests with a maximum price equal to or higher than the Spot
	//    price exceeded available capacity or because of an increase in the Spot
	//    price.
	//
	//    * Server.SpotInstanceTermination: The instance was terminated because
	//    the number of Spot requests with a maximum price equal to or higher than
	//    the Spot price exceeded available capacity or because of an increase in
	//    the Spot price.
	//
	//    * Client.InstanceInitiatedShutdown: The instance was shut down using the
	//    shutdown -h command from the instance.
	//
	//    * Client.InstanceTerminated: The instance was terminated or rebooted during
	//    AMI creation.
	//
	//    * Client.InternalError: A client error caused the instance to terminate
	//    during launch.
	//
	//    * Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
	//
	//    * Client.UserInitiatedHibernate: Hibernation was initiated on the instance.
	//
	//    * Client.UserInitiatedShutdown: The instance was shut down using the Amazon
	//    EC2 API.
	//
	//    * Client.VolumeLimitExceeded: The limit on the number of EBS volumes or
	//    total storage was exceeded. Decrease usage or request an increase in your
	//    account limits.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes a state change.

func (StateReason) String

func (s StateReason) String() string

String returns the string representation

type Status

type Status string
const (
	StatusMoveInProgress Status = "MoveInProgress"
	StatusInVpc          Status = "InVpc"
	StatusInClassic      Status = "InClassic"
)

Enum values for Status

func (Status) MarshalValue added in v0.3.0

func (enum Status) MarshalValue() (string, error)

func (Status) MarshalValueBuf added in v0.3.0

func (enum Status) MarshalValueBuf(b []byte) ([]byte, error)

type StatusName

type StatusName string
const (
	StatusNameReachability StatusName = "reachability"
)

Enum values for StatusName

func (StatusName) MarshalValue added in v0.3.0

func (enum StatusName) MarshalValue() (string, error)

func (StatusName) MarshalValueBuf added in v0.3.0

func (enum StatusName) MarshalValueBuf(b []byte) ([]byte, error)

type StatusType

type StatusType string
const (
	StatusTypePassed           StatusType = "passed"
	StatusTypeFailed           StatusType = "failed"
	StatusTypeInsufficientData StatusType = "insufficient-data"
	StatusTypeInitializing     StatusType = "initializing"
)

Enum values for StatusType

func (StatusType) MarshalValue added in v0.3.0

func (enum StatusType) MarshalValue() (string, error)

func (StatusType) MarshalValueBuf added in v0.3.0

func (enum StatusType) MarshalValueBuf(b []byte) ([]byte, error)

type StopInstancesInput

type StopInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// Forces the instances to stop. The instances do not have an opportunity to
	// flush file system caches or file system metadata. If you use this option,
	// you must perform file system check and repair procedures. This option is
	// not recommended for Windows instances.
	//
	// Default: false
	Force *bool `locationName:"force" type:"boolean"`

	// Hibernates the instance if the instance was enabled for hibernation at launch.
	// If the instance cannot hibernate successfully, a normal shutdown occurs.
	// For more information, see Hibernate your instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// Default: false
	Hibernate *bool `type:"boolean"`

	// The IDs of the instances.
	//
	// InstanceIds is a required field
	InstanceIds []string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (StopInstancesInput) String

func (s StopInstancesInput) String() string

String returns the string representation

func (*StopInstancesInput) Validate

func (s *StopInstancesInput) Validate() error

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

type StopInstancesOutput

type StopInstancesOutput struct {

	// Information about the stopped instances.
	StoppingInstances []InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (StopInstancesOutput) String

func (s StopInstancesOutput) String() string

String returns the string representation

type StopInstancesRequest

type StopInstancesRequest struct {
	*aws.Request
	Input *StopInstancesInput
	Copy  func(*StopInstancesInput) StopInstancesRequest
}

StopInstancesRequest is the request type for the StopInstances API operation.

func (StopInstancesRequest) Send

Send marshals and sends the StopInstances API request.

type StopInstancesResponse added in v0.9.0

type StopInstancesResponse struct {
	*StopInstancesOutput
	// contains filtered or unexported fields
}

StopInstancesResponse is the response type for the StopInstances API operation.

func (*StopInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *StopInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the StopInstances request.

type Storage

type Storage struct {

	// An Amazon S3 storage location.
	S3 *S3Storage `type:"structure"`
	// contains filtered or unexported fields
}

Describes the storage location for an instance store-backed AMI.

func (Storage) String

func (s Storage) String() string

String returns the string representation

type StorageLocation

type StorageLocation struct {

	// The name of the S3 bucket.
	Bucket *string `type:"string"`

	// The key.
	Key *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a storage location in Amazon S3.

func (StorageLocation) String

func (s StorageLocation) String() string

String returns the string representation

type Subnet

type Subnet struct {

	// Indicates whether a network interface created in this subnet (including a
	// network interface created by RunInstances) receives an IPv6 address.
	AssignIpv6AddressOnCreation *bool `locationName:"assignIpv6AddressOnCreation" type:"boolean"`

	// The Availability Zone of the subnet.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The AZ ID of the subnet.
	AvailabilityZoneId *string `locationName:"availabilityZoneId" type:"string"`

	// The number of unused private IPv4 addresses in the subnet. The IPv4 addresses
	// for any stopped instances are considered unavailable.
	AvailableIpAddressCount *int64 `locationName:"availableIpAddressCount" type:"integer"`

	// The IPv4 CIDR block assigned to the subnet.
	CidrBlock *string `locationName:"cidrBlock" type:"string"`

	// The customer-owned IPv4 address pool associated with the subnet.
	CustomerOwnedIpv4Pool *string `locationName:"customerOwnedIpv4Pool" type:"string"`

	// Indicates whether this is the default subnet for the Availability Zone.
	DefaultForAz *bool `locationName:"defaultForAz" type:"boolean"`

	// Information about the IPv6 CIDR blocks associated with the subnet.
	Ipv6CidrBlockAssociationSet []SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`

	// Indicates whether a network interface created in this subnet (including a
	// network interface created by RunInstances) receives a customer-owned IPv4
	// address.
	MapCustomerOwnedIpOnLaunch *bool `locationName:"mapCustomerOwnedIpOnLaunch" type:"boolean"`

	// Indicates whether instances launched in this subnet receive a public IPv4
	// address.
	MapPublicIpOnLaunch *bool `locationName:"mapPublicIpOnLaunch" type:"boolean"`

	// The Amazon Resource Name (ARN) of the Outpost.
	OutpostArn *string `locationName:"outpostArn" type:"string"`

	// The ID of the AWS account that owns the subnet.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The current state of the subnet.
	State SubnetState `locationName:"state" type:"string" enum:"true"`

	// The Amazon Resource Name (ARN) of the subnet.
	SubnetArn *string `locationName:"subnetArn" type:"string"`

	// The ID of the subnet.
	SubnetId *string `locationName:"subnetId" type:"string"`

	// Any tags assigned to the subnet.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VPC the subnet is in.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a subnet.

func (Subnet) String

func (s Subnet) String() string

String returns the string representation

type SubnetAssociation added in v0.18.0

type SubnetAssociation struct {

	// The state of the subnet association.
	State TransitGatewayMulitcastDomainAssociationState `locationName:"state" type:"string" enum:"true"`

	// The ID of the subnet.
	SubnetId *string `locationName:"subnetId" type:"string"`
	// contains filtered or unexported fields
}

Describes the subnet association with the transit gateway multicast domain.

func (SubnetAssociation) String added in v0.18.0

func (s SubnetAssociation) String() string

String returns the string representation

type SubnetCidrBlockState

type SubnetCidrBlockState struct {

	// The state of a CIDR block.
	State SubnetCidrBlockStateCode `locationName:"state" type:"string" enum:"true"`

	// A message about the status of the CIDR block, if applicable.
	StatusMessage *string `locationName:"statusMessage" type:"string"`
	// contains filtered or unexported fields
}

Describes the state of a CIDR block.

func (SubnetCidrBlockState) String

func (s SubnetCidrBlockState) String() string

String returns the string representation

type SubnetCidrBlockStateCode

type SubnetCidrBlockStateCode string
const (
	SubnetCidrBlockStateCodeAssociating    SubnetCidrBlockStateCode = "associating"
	SubnetCidrBlockStateCodeAssociated     SubnetCidrBlockStateCode = "associated"
	SubnetCidrBlockStateCodeDisassociating SubnetCidrBlockStateCode = "disassociating"
	SubnetCidrBlockStateCodeDisassociated  SubnetCidrBlockStateCode = "disassociated"
	SubnetCidrBlockStateCodeFailing        SubnetCidrBlockStateCode = "failing"
	SubnetCidrBlockStateCodeFailed         SubnetCidrBlockStateCode = "failed"
)

Enum values for SubnetCidrBlockStateCode

func (SubnetCidrBlockStateCode) MarshalValue added in v0.3.0

func (enum SubnetCidrBlockStateCode) MarshalValue() (string, error)

func (SubnetCidrBlockStateCode) MarshalValueBuf added in v0.3.0

func (enum SubnetCidrBlockStateCode) MarshalValueBuf(b []byte) ([]byte, error)

type SubnetIpv6CidrBlockAssociation

type SubnetIpv6CidrBlockAssociation struct {

	// The association ID for the CIDR block.
	AssociationId *string `locationName:"associationId" type:"string"`

	// The IPv6 CIDR block.
	Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`

	// Information about the state of the CIDR block.
	Ipv6CidrBlockState *SubnetCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`
	// contains filtered or unexported fields
}

Describes an IPv6 CIDR block associated with a subnet.

func (SubnetIpv6CidrBlockAssociation) String

String returns the string representation

type SubnetState

type SubnetState string
const (
	SubnetStatePending   SubnetState = "pending"
	SubnetStateAvailable SubnetState = "available"
)

Enum values for SubnetState

func (SubnetState) MarshalValue added in v0.3.0

func (enum SubnetState) MarshalValue() (string, error)

func (SubnetState) MarshalValueBuf added in v0.3.0

func (enum SubnetState) MarshalValueBuf(b []byte) ([]byte, error)

type SuccessfulInstanceCreditSpecificationItem added in v0.2.0

type SuccessfulInstanceCreditSpecificationItem struct {

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`
	// contains filtered or unexported fields
}

Describes the burstable performance instance whose credit option for CPU usage was successfully modified.

func (SuccessfulInstanceCreditSpecificationItem) String added in v0.2.0

String returns the string representation

type SuccessfulQueuedPurchaseDeletion added in v0.14.0

type SuccessfulQueuedPurchaseDeletion struct {

	// The ID of the Reserved Instance.
	ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
	// contains filtered or unexported fields
}

Describes a Reserved Instance whose queued purchase was successfully deleted.

func (SuccessfulQueuedPurchaseDeletion) String added in v0.14.0

String returns the string representation

type SummaryStatus

type SummaryStatus string
const (
	SummaryStatusOk               SummaryStatus = "ok"
	SummaryStatusImpaired         SummaryStatus = "impaired"
	SummaryStatusInsufficientData SummaryStatus = "insufficient-data"
	SummaryStatusNotApplicable    SummaryStatus = "not-applicable"
	SummaryStatusInitializing     SummaryStatus = "initializing"
)

Enum values for SummaryStatus

func (SummaryStatus) MarshalValue added in v0.3.0

func (enum SummaryStatus) MarshalValue() (string, error)

func (SummaryStatus) MarshalValueBuf added in v0.3.0

func (enum SummaryStatus) MarshalValueBuf(b []byte) ([]byte, error)

type Tag

type Tag struct {

	// The key of the tag.
	//
	// Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode
	// characters. May not begin with aws:.
	Key *string `locationName:"key" type:"string"`

	// The value of the tag.
	//
	// Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode
	// characters.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

Describes a tag.

func (Tag) String

func (s Tag) String() string

String returns the string representation

type TagDescription

type TagDescription struct {

	// The tag key.
	Key *string `locationName:"key" type:"string"`

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The resource type.
	ResourceType ResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The tag value.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

Describes a tag.

func (TagDescription) String

func (s TagDescription) String() string

String returns the string representation

type TagSpecification

type TagSpecification struct {

	// The type of resource to tag. Currently, the resource types that support tagging
	// on creation are: capacity-reservation | client-vpn-endpoint | dedicated-host
	// | dhcp-options | export-image-task | export-instance-task | fleet | fpga-image
	// | host-reservation | import-image-task | import-snapshot-task | instance
	// | internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | launch-template
	// | placement-group | prefix-list | natgateway | network-acl | security-group
	// | spot-fleet-request | spot-instances-request | snapshot | subnet | traffic-mirror-filter
	// | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment
	// | transit-gateway-route-table | volume |vpc | vpc-endpoint (for interface
	// and gateway endpoints) | vpc-endpoint-service (for AWS PrivateLink) | vpc-flow-log.
	//
	// To tag a resource after it has been created, see CreateTags (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html).
	ResourceType ResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The tags to apply to the resource.
	Tags []Tag `locationName:"Tag" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

The tags to apply to a resource when the resource is being created.

func (TagSpecification) String

func (s TagSpecification) String() string

String returns the string representation

type TargetCapacitySpecification added in v0.4.0

type TargetCapacitySpecification struct {

	// The default TotalTargetCapacity, which is either Spot or On-Demand.
	DefaultTargetCapacityType DefaultTargetCapacityType `locationName:"defaultTargetCapacityType" type:"string" enum:"true"`

	// The number of On-Demand units to request. If you specify a target capacity
	// for Spot units, you cannot specify a target capacity for On-Demand units.
	OnDemandTargetCapacity *int64 `locationName:"onDemandTargetCapacity" type:"integer"`

	// The maximum number of Spot units to launch. If you specify a target capacity
	// for On-Demand units, you cannot specify a target capacity for Spot units.
	SpotTargetCapacity *int64 `locationName:"spotTargetCapacity" type:"integer"`

	// The number of units to request, filled using DefaultTargetCapacityType.
	TotalTargetCapacity *int64 `locationName:"totalTargetCapacity" type:"integer"`
	// contains filtered or unexported fields
}

The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.

You can use the On-Demand Instance MaxTotalPrice parameter, the Spot Instance MaxTotalPrice, or both to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, EC2 Fleet will launch instances until it reaches the maximum amount that you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity. The MaxTotalPrice parameters are located in OnDemandOptions (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_OnDemandOptions.html) and SpotOptions (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotOptions)

func (TargetCapacitySpecification) String added in v0.4.0

String returns the string representation

type TargetCapacitySpecificationRequest added in v0.4.0

type TargetCapacitySpecificationRequest struct {

	// The default TotalTargetCapacity, which is either Spot or On-Demand.
	DefaultTargetCapacityType DefaultTargetCapacityType `type:"string" enum:"true"`

	// The number of On-Demand units to request.
	OnDemandTargetCapacity *int64 `type:"integer"`

	// The number of Spot units to request.
	SpotTargetCapacity *int64 `type:"integer"`

	// The number of units to request, filled using DefaultTargetCapacityType.
	//
	// TotalTargetCapacity is a required field
	TotalTargetCapacity *int64 `type:"integer" required:"true"`
	// contains filtered or unexported fields
}

The number of units to request. You can choose to set the target capacity as the number of instances. Or you can set the target capacity to a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.

You can use the On-Demand Instance MaxTotalPrice parameter, the Spot Instance MaxTotalPrice parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, EC2 Fleet will launch instances until it reaches the maximum amount that you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity. The MaxTotalPrice parameters are located in OnDemandOptionsRequest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_OnDemandOptionsRequest) and SpotOptionsRequest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotOptionsRequest).

func (TargetCapacitySpecificationRequest) String added in v0.4.0

String returns the string representation

func (*TargetCapacitySpecificationRequest) Validate added in v0.4.0

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

type TargetConfiguration

type TargetConfiguration struct {

	// The number of instances the Convertible Reserved Instance offering can be
	// applied to. This parameter is reserved and cannot be specified in a request
	InstanceCount *int64 `locationName:"instanceCount" type:"integer"`

	// The ID of the Convertible Reserved Instance offering.
	OfferingId *string `locationName:"offeringId" type:"string"`
	// contains filtered or unexported fields
}

Information about the Convertible Reserved Instance offering.

func (TargetConfiguration) String

func (s TargetConfiguration) String() string

String returns the string representation

type TargetConfigurationRequest

type TargetConfigurationRequest struct {

	// The number of instances the Covertible Reserved Instance offering can be
	// applied to. This parameter is reserved and cannot be specified in a request
	InstanceCount *int64 `type:"integer"`

	// The Convertible Reserved Instance offering ID.
	//
	// OfferingId is a required field
	OfferingId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Details about the target configuration.

func (TargetConfigurationRequest) String

String returns the string representation

func (*TargetConfigurationRequest) Validate

func (s *TargetConfigurationRequest) Validate() error

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

type TargetGroup added in v0.2.0

type TargetGroup struct {

	// The Amazon Resource Name (ARN) of the target group.
	Arn *string `locationName:"arn" type:"string"`
	// contains filtered or unexported fields
}

Describes a load balancer target group.

func (TargetGroup) String added in v0.2.0

func (s TargetGroup) String() string

String returns the string representation

type TargetGroupsConfig added in v0.2.0

type TargetGroupsConfig struct {

	// One or more target groups.
	TargetGroups []TargetGroup `locationName:"targetGroups" locationNameList:"item" min:"1" type:"list"`
	// contains filtered or unexported fields
}

Describes the target groups to attach to a Spot Fleet. Spot Fleet registers the running Spot Instances with these target groups.

func (TargetGroupsConfig) String added in v0.2.0

func (s TargetGroupsConfig) String() string

String returns the string representation

func (*TargetGroupsConfig) Validate added in v0.2.0

func (s *TargetGroupsConfig) Validate() error

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

type TargetNetwork added in v0.7.0

type TargetNetwork struct {

	// The ID of the association.
	AssociationId *string `locationName:"associationId" type:"string"`

	// The ID of the Client VPN endpoint with which the target network is associated.
	ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`

	// The IDs of the security groups applied to the target network association.
	SecurityGroups []string `locationName:"securityGroups" locationNameList:"item" type:"list"`

	// The current state of the target network association.
	Status *AssociationStatus `locationName:"status" type:"structure"`

	// The ID of the subnet specified as the target network.
	TargetNetworkId *string `locationName:"targetNetworkId" type:"string"`

	// The ID of the VPC in which the target network (subnet) is located.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a target network associated with a Client VPN endpoint.

func (TargetNetwork) String added in v0.7.0

func (s TargetNetwork) String() string

String returns the string representation

type TargetReservationValue

type TargetReservationValue struct {

	// The total value of the Convertible Reserved Instances that make up the exchange.
	// This is the sum of the list value, remaining upfront price, and additional
	// upfront cost of the exchange.
	ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`

	// The configuration of the Convertible Reserved Instances that make up the
	// exchange.
	TargetConfiguration *TargetConfiguration `locationName:"targetConfiguration" type:"structure"`
	// contains filtered or unexported fields
}

The total value of the new Convertible Reserved Instances.

func (TargetReservationValue) String

func (s TargetReservationValue) String() string

String returns the string representation

type TelemetryStatus

type TelemetryStatus string
const (
	TelemetryStatusUp   TelemetryStatus = "UP"
	TelemetryStatusDown TelemetryStatus = "DOWN"
)

Enum values for TelemetryStatus

func (TelemetryStatus) MarshalValue added in v0.3.0

func (enum TelemetryStatus) MarshalValue() (string, error)

func (TelemetryStatus) MarshalValueBuf added in v0.3.0

func (enum TelemetryStatus) MarshalValueBuf(b []byte) ([]byte, error)

type Tenancy

type Tenancy string
const (
	TenancyDefault   Tenancy = "default"
	TenancyDedicated Tenancy = "dedicated"
	TenancyHost      Tenancy = "host"
)

Enum values for Tenancy

func (Tenancy) MarshalValue added in v0.3.0

func (enum Tenancy) MarshalValue() (string, error)

func (Tenancy) MarshalValueBuf added in v0.3.0

func (enum Tenancy) MarshalValueBuf(b []byte) ([]byte, error)

type TerminateClientVpnConnectionsInput added in v0.7.0

type TerminateClientVpnConnectionsInput struct {

	// The ID of the Client VPN endpoint to which the client is connected.
	//
	// ClientVpnEndpointId is a required field
	ClientVpnEndpointId *string `type:"string" required:"true"`

	// The ID of the client connection to be terminated.
	ConnectionId *string `type:"string"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The name of the user who initiated the connection. Use this option to terminate
	// all active connections for the specified user. This option can only be used
	// if the user has established up to five connections.
	Username *string `type:"string"`
	// contains filtered or unexported fields
}

func (TerminateClientVpnConnectionsInput) String added in v0.7.0

String returns the string representation

func (*TerminateClientVpnConnectionsInput) Validate added in v0.7.0

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

type TerminateClientVpnConnectionsOutput added in v0.7.0

type TerminateClientVpnConnectionsOutput struct {

	// The ID of the Client VPN endpoint.
	ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`

	// The current state of the client connections.
	ConnectionStatuses []TerminateConnectionStatus `locationName:"connectionStatuses" locationNameList:"item" type:"list"`

	// The user who established the terminated client connections.
	Username *string `locationName:"username" type:"string"`
	// contains filtered or unexported fields
}

func (TerminateClientVpnConnectionsOutput) String added in v0.7.0

String returns the string representation

type TerminateClientVpnConnectionsRequest added in v0.7.0

type TerminateClientVpnConnectionsRequest struct {
	*aws.Request
	Input *TerminateClientVpnConnectionsInput
	Copy  func(*TerminateClientVpnConnectionsInput) TerminateClientVpnConnectionsRequest
}

TerminateClientVpnConnectionsRequest is the request type for the TerminateClientVpnConnections API operation.

func (TerminateClientVpnConnectionsRequest) Send added in v0.7.0

Send marshals and sends the TerminateClientVpnConnections API request.

type TerminateClientVpnConnectionsResponse added in v0.9.0

type TerminateClientVpnConnectionsResponse struct {
	*TerminateClientVpnConnectionsOutput
	// contains filtered or unexported fields
}

TerminateClientVpnConnectionsResponse is the response type for the TerminateClientVpnConnections API operation.

func (*TerminateClientVpnConnectionsResponse) SDKResponseMetdata added in v0.9.0

func (r *TerminateClientVpnConnectionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the TerminateClientVpnConnections request.

type TerminateConnectionStatus added in v0.7.0

type TerminateConnectionStatus struct {

	// The ID of the client connection.
	ConnectionId *string `locationName:"connectionId" type:"string"`

	// A message about the status of the client connection, if applicable.
	CurrentStatus *VpnConnectionStatus `locationName:"currentStatus" type:"structure"`

	// The state of the client connection.
	PreviousStatus *VpnConnectionStatus `locationName:"previousStatus" type:"structure"`
	// contains filtered or unexported fields
}

Information about a terminated Client VPN endpoint client connection.

func (TerminateConnectionStatus) String added in v0.7.0

func (s TerminateConnectionStatus) String() string

String returns the string representation

type TerminateInstancesInput

type TerminateInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The IDs of the instances.
	//
	// Constraints: Up to 1000 instance IDs. We recommend breaking up this request
	// into smaller batches.
	//
	// InstanceIds is a required field
	InstanceIds []string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (TerminateInstancesInput) String

func (s TerminateInstancesInput) String() string

String returns the string representation

func (*TerminateInstancesInput) Validate

func (s *TerminateInstancesInput) Validate() error

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

type TerminateInstancesOutput

type TerminateInstancesOutput struct {

	// Information about the terminated instances.
	TerminatingInstances []InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (TerminateInstancesOutput) String

func (s TerminateInstancesOutput) String() string

String returns the string representation

type TerminateInstancesRequest

type TerminateInstancesRequest struct {
	*aws.Request
	Input *TerminateInstancesInput
	Copy  func(*TerminateInstancesInput) TerminateInstancesRequest
}

TerminateInstancesRequest is the request type for the TerminateInstances API operation.

func (TerminateInstancesRequest) Send

Send marshals and sends the TerminateInstances API request.

type TerminateInstancesResponse added in v0.9.0

type TerminateInstancesResponse struct {
	*TerminateInstancesOutput
	// contains filtered or unexported fields
}

TerminateInstancesResponse is the response type for the TerminateInstances API operation.

func (*TerminateInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *TerminateInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the TerminateInstances request.

type TrafficDirection added in v0.10.0

type TrafficDirection string
const (
	TrafficDirectionIngress TrafficDirection = "ingress"
	TrafficDirectionEgress  TrafficDirection = "egress"
)

Enum values for TrafficDirection

func (TrafficDirection) MarshalValue added in v0.10.0

func (enum TrafficDirection) MarshalValue() (string, error)

func (TrafficDirection) MarshalValueBuf added in v0.10.0

func (enum TrafficDirection) MarshalValueBuf(b []byte) ([]byte, error)

type TrafficMirrorFilter added in v0.10.0

type TrafficMirrorFilter struct {

	// The description of the Traffic Mirror filter.
	Description *string `locationName:"description" type:"string"`

	// Information about the egress rules that are associated with the Traffic Mirror
	// filter.
	EgressFilterRules []TrafficMirrorFilterRule `locationName:"egressFilterRuleSet" locationNameList:"item" type:"list"`

	// Information about the ingress rules that are associated with the Traffic
	// Mirror filter.
	IngressFilterRules []TrafficMirrorFilterRule `locationName:"ingressFilterRuleSet" locationNameList:"item" type:"list"`

	// The network service traffic that is associated with the Traffic Mirror filter.
	NetworkServices []TrafficMirrorNetworkService `locationName:"networkServiceSet" locationNameList:"item" type:"list"`

	// The tags assigned to the Traffic Mirror filter.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the Traffic Mirror filter.
	TrafficMirrorFilterId *string `locationName:"trafficMirrorFilterId" type:"string"`
	// contains filtered or unexported fields
}

Describes the Traffic Mirror filter.

func (TrafficMirrorFilter) String added in v0.10.0

func (s TrafficMirrorFilter) String() string

String returns the string representation

type TrafficMirrorFilterRule added in v0.10.0

type TrafficMirrorFilterRule struct {

	// The description of the Traffic Mirror rule.
	Description *string `locationName:"description" type:"string"`

	// The destination CIDR block assigned to the Traffic Mirror rule.
	DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`

	// The destination port range assigned to the Traffic Mirror rule.
	DestinationPortRange *TrafficMirrorPortRange `locationName:"destinationPortRange" type:"structure"`

	// The protocol assigned to the Traffic Mirror rule.
	Protocol *int64 `locationName:"protocol" type:"integer"`

	// The action assigned to the Traffic Mirror rule.
	RuleAction TrafficMirrorRuleAction `locationName:"ruleAction" type:"string" enum:"true"`

	// The rule number of the Traffic Mirror rule.
	RuleNumber *int64 `locationName:"ruleNumber" type:"integer"`

	// The source CIDR block assigned to the Traffic Mirror rule.
	SourceCidrBlock *string `locationName:"sourceCidrBlock" type:"string"`

	// The source port range assigned to the Traffic Mirror rule.
	SourcePortRange *TrafficMirrorPortRange `locationName:"sourcePortRange" type:"structure"`

	// The traffic direction assigned to the Traffic Mirror rule.
	TrafficDirection TrafficDirection `locationName:"trafficDirection" type:"string" enum:"true"`

	// The ID of the Traffic Mirror filter that the rule is associated with.
	TrafficMirrorFilterId *string `locationName:"trafficMirrorFilterId" type:"string"`

	// The ID of the Traffic Mirror rule.
	TrafficMirrorFilterRuleId *string `locationName:"trafficMirrorFilterRuleId" type:"string"`
	// contains filtered or unexported fields
}

Describes the Traffic Mirror rule.

func (TrafficMirrorFilterRule) String added in v0.10.0

func (s TrafficMirrorFilterRule) String() string

String returns the string representation

type TrafficMirrorFilterRuleField added in v0.10.0

type TrafficMirrorFilterRuleField string
const (
	TrafficMirrorFilterRuleFieldDestinationPortRange TrafficMirrorFilterRuleField = "destination-port-range"
	TrafficMirrorFilterRuleFieldSourcePortRange      TrafficMirrorFilterRuleField = "source-port-range"
	TrafficMirrorFilterRuleFieldProtocol             TrafficMirrorFilterRuleField = "protocol"
	TrafficMirrorFilterRuleFieldDescription          TrafficMirrorFilterRuleField = "description"
)

Enum values for TrafficMirrorFilterRuleField

func (TrafficMirrorFilterRuleField) MarshalValue added in v0.10.0

func (enum TrafficMirrorFilterRuleField) MarshalValue() (string, error)

func (TrafficMirrorFilterRuleField) MarshalValueBuf added in v0.10.0

func (enum TrafficMirrorFilterRuleField) MarshalValueBuf(b []byte) ([]byte, error)

type TrafficMirrorNetworkService added in v0.10.0

type TrafficMirrorNetworkService string
const (
	TrafficMirrorNetworkServiceAmazonDns TrafficMirrorNetworkService = "amazon-dns"
)

Enum values for TrafficMirrorNetworkService

func (TrafficMirrorNetworkService) MarshalValue added in v0.10.0

func (enum TrafficMirrorNetworkService) MarshalValue() (string, error)

func (TrafficMirrorNetworkService) MarshalValueBuf added in v0.10.0

func (enum TrafficMirrorNetworkService) MarshalValueBuf(b []byte) ([]byte, error)

type TrafficMirrorPortRange added in v0.10.0

type TrafficMirrorPortRange struct {

	// The start of the Traffic Mirror port range. This applies to the TCP and UDP
	// protocols.
	FromPort *int64 `locationName:"fromPort" type:"integer"`

	// The end of the Traffic Mirror port range. This applies to the TCP and UDP
	// protocols.
	ToPort *int64 `locationName:"toPort" type:"integer"`
	// contains filtered or unexported fields
}

Describes the Traffic Mirror port range.

func (TrafficMirrorPortRange) String added in v0.10.0

func (s TrafficMirrorPortRange) String() string

String returns the string representation

type TrafficMirrorPortRangeRequest added in v0.10.0

type TrafficMirrorPortRangeRequest struct {

	// The first port in the Traffic Mirror port range. This applies to the TCP
	// and UDP protocols.
	FromPort *int64 `type:"integer"`

	// The last port in the Traffic Mirror port range. This applies to the TCP and
	// UDP protocols.
	ToPort *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Information about the Traffic Mirror filter rule port range.

func (TrafficMirrorPortRangeRequest) String added in v0.10.0

String returns the string representation

type TrafficMirrorRuleAction added in v0.10.0

type TrafficMirrorRuleAction string
const (
	TrafficMirrorRuleActionAccept TrafficMirrorRuleAction = "accept"
	TrafficMirrorRuleActionReject TrafficMirrorRuleAction = "reject"
)

Enum values for TrafficMirrorRuleAction

func (TrafficMirrorRuleAction) MarshalValue added in v0.10.0

func (enum TrafficMirrorRuleAction) MarshalValue() (string, error)

func (TrafficMirrorRuleAction) MarshalValueBuf added in v0.10.0

func (enum TrafficMirrorRuleAction) MarshalValueBuf(b []byte) ([]byte, error)

type TrafficMirrorSession added in v0.10.0

type TrafficMirrorSession struct {

	// The description of the Traffic Mirror session.
	Description *string `locationName:"description" type:"string"`

	// The ID of the Traffic Mirror session's network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The ID of the account that owns the Traffic Mirror session.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The number of bytes in each packet to mirror. These are the bytes after the
	// VXLAN header. To mirror a subset, set this to the length (in bytes) to mirror.
	// For example, if you set this value to 100, then the first 100 bytes that
	// meet the filter criteria are copied to the target. Do not specify this parameter
	// when you want to mirror the entire packet
	PacketLength *int64 `locationName:"packetLength" type:"integer"`

	// The session number determines the order in which sessions are evaluated when
	// an interface is used by multiple sessions. The first session with a matching
	// filter is the one that mirrors the packets.
	//
	// Valid values are 1-32766.
	SessionNumber *int64 `locationName:"sessionNumber" type:"integer"`

	// The tags assigned to the Traffic Mirror session.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the Traffic Mirror filter.
	TrafficMirrorFilterId *string `locationName:"trafficMirrorFilterId" type:"string"`

	// The ID for the Traffic Mirror session.
	TrafficMirrorSessionId *string `locationName:"trafficMirrorSessionId" type:"string"`

	// The ID of the Traffic Mirror target.
	TrafficMirrorTargetId *string `locationName:"trafficMirrorTargetId" type:"string"`

	// The virtual network ID associated with the Traffic Mirror session.
	VirtualNetworkId *int64 `locationName:"virtualNetworkId" type:"integer"`
	// contains filtered or unexported fields
}

Describes a Traffic Mirror session.

func (TrafficMirrorSession) String added in v0.10.0

func (s TrafficMirrorSession) String() string

String returns the string representation

type TrafficMirrorSessionField added in v0.10.0

type TrafficMirrorSessionField string
const (
	TrafficMirrorSessionFieldPacketLength     TrafficMirrorSessionField = "packet-length"
	TrafficMirrorSessionFieldDescription      TrafficMirrorSessionField = "description"
	TrafficMirrorSessionFieldVirtualNetworkId TrafficMirrorSessionField = "virtual-network-id"
)

Enum values for TrafficMirrorSessionField

func (TrafficMirrorSessionField) MarshalValue added in v0.10.0

func (enum TrafficMirrorSessionField) MarshalValue() (string, error)

func (TrafficMirrorSessionField) MarshalValueBuf added in v0.10.0

func (enum TrafficMirrorSessionField) MarshalValueBuf(b []byte) ([]byte, error)

type TrafficMirrorTarget added in v0.10.0

type TrafficMirrorTarget struct {

	// Information about the Traffic Mirror target.
	Description *string `locationName:"description" type:"string"`

	// The network interface ID that is attached to the target.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The Amazon Resource Name (ARN) of the Network Load Balancer.
	NetworkLoadBalancerArn *string `locationName:"networkLoadBalancerArn" type:"string"`

	// The ID of the account that owns the Traffic Mirror target.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The tags assigned to the Traffic Mirror target.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the Traffic Mirror target.
	TrafficMirrorTargetId *string `locationName:"trafficMirrorTargetId" type:"string"`

	// The type of Traffic Mirror target.
	Type TrafficMirrorTargetType `locationName:"type" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a Traffic Mirror target.

func (TrafficMirrorTarget) String added in v0.10.0

func (s TrafficMirrorTarget) String() string

String returns the string representation

type TrafficMirrorTargetType added in v0.10.0

type TrafficMirrorTargetType string
const (
	TrafficMirrorTargetTypeNetworkInterface    TrafficMirrorTargetType = "network-interface"
	TrafficMirrorTargetTypeNetworkLoadBalancer TrafficMirrorTargetType = "network-load-balancer"
)

Enum values for TrafficMirrorTargetType

func (TrafficMirrorTargetType) MarshalValue added in v0.10.0

func (enum TrafficMirrorTargetType) MarshalValue() (string, error)

func (TrafficMirrorTargetType) MarshalValueBuf added in v0.10.0

func (enum TrafficMirrorTargetType) MarshalValueBuf(b []byte) ([]byte, error)

type TrafficType

type TrafficType string
const (
	TrafficTypeAccept TrafficType = "ACCEPT"
	TrafficTypeReject TrafficType = "REJECT"
	TrafficTypeAll    TrafficType = "ALL"
)

Enum values for TrafficType

func (TrafficType) MarshalValue added in v0.3.0

func (enum TrafficType) MarshalValue() (string, error)

func (TrafficType) MarshalValueBuf added in v0.3.0

func (enum TrafficType) MarshalValueBuf(b []byte) ([]byte, error)

type TransitGateway added in v0.6.0

type TransitGateway struct {

	// The creation time.
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`

	// The description of the transit gateway.
	Description *string `locationName:"description" type:"string"`

	// The transit gateway options.
	Options *TransitGatewayOptions `locationName:"options" type:"structure"`

	// The ID of the AWS account ID that owns the transit gateway.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The state of the transit gateway.
	State TransitGatewayState `locationName:"state" type:"string" enum:"true"`

	// The tags for the transit gateway.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The Amazon Resource Name (ARN) of the transit gateway.
	TransitGatewayArn *string `locationName:"transitGatewayArn" type:"string"`

	// The ID of the transit gateway.
	TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
	// contains filtered or unexported fields
}

Describes a transit gateway.

func (TransitGateway) String added in v0.6.0

func (s TransitGateway) String() string

String returns the string representation

type TransitGatewayAssociation added in v0.6.0

type TransitGatewayAssociation struct {

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The resource type.
	ResourceType TransitGatewayAttachmentResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The state of the association.
	State TransitGatewayAssociationState `locationName:"state" type:"string" enum:"true"`

	// The ID of the attachment.
	TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`

	// The ID of the transit gateway route table.
	TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
	// contains filtered or unexported fields
}

Describes an association between a resource attachment and a transit gateway route table.

func (TransitGatewayAssociation) String added in v0.6.0

func (s TransitGatewayAssociation) String() string

String returns the string representation

type TransitGatewayAssociationState added in v0.6.0

type TransitGatewayAssociationState string
const (
	TransitGatewayAssociationStateAssociating    TransitGatewayAssociationState = "associating"
	TransitGatewayAssociationStateAssociated     TransitGatewayAssociationState = "associated"
	TransitGatewayAssociationStateDisassociating TransitGatewayAssociationState = "disassociating"
	TransitGatewayAssociationStateDisassociated  TransitGatewayAssociationState = "disassociated"
)

Enum values for TransitGatewayAssociationState

func (TransitGatewayAssociationState) MarshalValue added in v0.6.0

func (enum TransitGatewayAssociationState) MarshalValue() (string, error)

func (TransitGatewayAssociationState) MarshalValueBuf added in v0.6.0

func (enum TransitGatewayAssociationState) MarshalValueBuf(b []byte) ([]byte, error)

type TransitGatewayAttachment added in v0.6.0

type TransitGatewayAttachment struct {

	// The association.
	Association *TransitGatewayAttachmentAssociation `locationName:"association" type:"structure"`

	// The creation time.
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The ID of the AWS account that owns the resource.
	ResourceOwnerId *string `locationName:"resourceOwnerId" type:"string"`

	// The resource type.
	ResourceType TransitGatewayAttachmentResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The attachment state.
	State TransitGatewayAttachmentState `locationName:"state" type:"string" enum:"true"`

	// The tags for the attachment.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the attachment.
	TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`

	// The ID of the transit gateway.
	TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`

	// The ID of the AWS account that owns the transit gateway.
	TransitGatewayOwnerId *string `locationName:"transitGatewayOwnerId" type:"string"`
	// contains filtered or unexported fields
}

Describes an attachment between a resource and a transit gateway.

func (TransitGatewayAttachment) String added in v0.6.0

func (s TransitGatewayAttachment) String() string

String returns the string representation

type TransitGatewayAttachmentAssociation added in v0.6.0

type TransitGatewayAttachmentAssociation struct {

	// The state of the association.
	State TransitGatewayAssociationState `locationName:"state" type:"string" enum:"true"`

	// The ID of the route table for the transit gateway.
	TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
	// contains filtered or unexported fields
}

Describes an association.

func (TransitGatewayAttachmentAssociation) String added in v0.6.0

String returns the string representation

type TransitGatewayAttachmentPropagation added in v0.6.0

type TransitGatewayAttachmentPropagation struct {

	// The state of the propagation route table.
	State TransitGatewayPropagationState `locationName:"state" type:"string" enum:"true"`

	// The ID of the propagation route table.
	TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
	// contains filtered or unexported fields
}

Describes a propagation route table.

func (TransitGatewayAttachmentPropagation) String added in v0.6.0

String returns the string representation

type TransitGatewayAttachmentResourceType added in v0.6.0

type TransitGatewayAttachmentResourceType string
const (
	TransitGatewayAttachmentResourceTypeVpc                  TransitGatewayAttachmentResourceType = "vpc"
	TransitGatewayAttachmentResourceTypeVpn                  TransitGatewayAttachmentResourceType = "vpn"
	TransitGatewayAttachmentResourceTypeDirectConnectGateway TransitGatewayAttachmentResourceType = "direct-connect-gateway"
	TransitGatewayAttachmentResourceTypeTgwPeering           TransitGatewayAttachmentResourceType = "tgw-peering"
)

Enum values for TransitGatewayAttachmentResourceType

func (TransitGatewayAttachmentResourceType) MarshalValue added in v0.6.0

func (enum TransitGatewayAttachmentResourceType) MarshalValue() (string, error)

func (TransitGatewayAttachmentResourceType) MarshalValueBuf added in v0.6.0

func (enum TransitGatewayAttachmentResourceType) MarshalValueBuf(b []byte) ([]byte, error)

type TransitGatewayAttachmentState added in v0.6.0

type TransitGatewayAttachmentState string
const (
	TransitGatewayAttachmentStateInitiating        TransitGatewayAttachmentState = "initiating"
	TransitGatewayAttachmentStatePendingAcceptance TransitGatewayAttachmentState = "pendingAcceptance"
	TransitGatewayAttachmentStateRollingBack       TransitGatewayAttachmentState = "rollingBack"
	TransitGatewayAttachmentStatePending           TransitGatewayAttachmentState = "pending"
	TransitGatewayAttachmentStateAvailable         TransitGatewayAttachmentState = "available"
	TransitGatewayAttachmentStateModifying         TransitGatewayAttachmentState = "modifying"
	TransitGatewayAttachmentStateDeleting          TransitGatewayAttachmentState = "deleting"
	TransitGatewayAttachmentStateDeleted           TransitGatewayAttachmentState = "deleted"
	TransitGatewayAttachmentStateFailed            TransitGatewayAttachmentState = "failed"
	TransitGatewayAttachmentStateRejected          TransitGatewayAttachmentState = "rejected"
	TransitGatewayAttachmentStateRejecting         TransitGatewayAttachmentState = "rejecting"
	TransitGatewayAttachmentStateFailing           TransitGatewayAttachmentState = "failing"
)

Enum values for TransitGatewayAttachmentState

func (TransitGatewayAttachmentState) MarshalValue added in v0.6.0

func (enum TransitGatewayAttachmentState) MarshalValue() (string, error)

func (TransitGatewayAttachmentState) MarshalValueBuf added in v0.6.0

func (enum TransitGatewayAttachmentState) MarshalValueBuf(b []byte) ([]byte, error)

type TransitGatewayMulitcastDomainAssociationState added in v0.18.0

type TransitGatewayMulitcastDomainAssociationState string
const (
	TransitGatewayMulitcastDomainAssociationStateAssociating    TransitGatewayMulitcastDomainAssociationState = "associating"
	TransitGatewayMulitcastDomainAssociationStateAssociated     TransitGatewayMulitcastDomainAssociationState = "associated"
	TransitGatewayMulitcastDomainAssociationStateDisassociating TransitGatewayMulitcastDomainAssociationState = "disassociating"
	TransitGatewayMulitcastDomainAssociationStateDisassociated  TransitGatewayMulitcastDomainAssociationState = "disassociated"
)

Enum values for TransitGatewayMulitcastDomainAssociationState

func (TransitGatewayMulitcastDomainAssociationState) MarshalValue added in v0.18.0

func (TransitGatewayMulitcastDomainAssociationState) MarshalValueBuf added in v0.18.0

func (enum TransitGatewayMulitcastDomainAssociationState) MarshalValueBuf(b []byte) ([]byte, error)

type TransitGatewayMulticastDeregisteredGroupMembers added in v0.18.0

type TransitGatewayMulticastDeregisteredGroupMembers struct {

	// The network interface IDs of the deregistered members.
	DeregisteredNetworkInterfaceIds []string `locationName:"deregisteredNetworkInterfaceIds" locationNameList:"item" type:"list"`

	// The IP address assigned to the transit gateway multicast group.
	GroupIpAddress *string `locationName:"groupIpAddress" type:"string"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `locationName:"transitGatewayMulticastDomainId" type:"string"`
	// contains filtered or unexported fields
}

Describes the deregistered transit gateway multicast group members.

func (TransitGatewayMulticastDeregisteredGroupMembers) String added in v0.18.0

String returns the string representation

type TransitGatewayMulticastDeregisteredGroupSources added in v0.18.0

type TransitGatewayMulticastDeregisteredGroupSources struct {

	// The network interface IDs of the non-registered members.
	DeregisteredNetworkInterfaceIds []string `locationName:"deregisteredNetworkInterfaceIds" locationNameList:"item" type:"list"`

	// The IP address assigned to the transit gateway multicast group.
	GroupIpAddress *string `locationName:"groupIpAddress" type:"string"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `locationName:"transitGatewayMulticastDomainId" type:"string"`
	// contains filtered or unexported fields
}

Describes the deregistered transit gateway multicast group sources.

func (TransitGatewayMulticastDeregisteredGroupSources) String added in v0.18.0

String returns the string representation

type TransitGatewayMulticastDomain added in v0.18.0

type TransitGatewayMulticastDomain struct {

	// The time the transit gateway multicast domain was created.
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`

	// The state of the transit gateway multicast domain.
	State TransitGatewayMulticastDomainState `locationName:"state" type:"string" enum:"true"`

	// The tags for the transit gateway multicast domain.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the transit gateway.
	TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `locationName:"transitGatewayMulticastDomainId" type:"string"`
	// contains filtered or unexported fields
}

Describes the transit gateway multicast domain.

func (TransitGatewayMulticastDomain) String added in v0.18.0

String returns the string representation

type TransitGatewayMulticastDomainAssociation added in v0.18.0

type TransitGatewayMulticastDomainAssociation struct {

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The type of resource, for example a VPC attachment.
	ResourceType TransitGatewayAttachmentResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The subnet associated with the transit gateway multicast domain.
	Subnet *SubnetAssociation `locationName:"subnet" type:"structure"`

	// The ID of the transit gateway attachment.
	TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
	// contains filtered or unexported fields
}

Describes the resources associated with the transit gateway multicast domain.

func (TransitGatewayMulticastDomainAssociation) String added in v0.18.0

String returns the string representation

type TransitGatewayMulticastDomainAssociations added in v0.18.0

type TransitGatewayMulticastDomainAssociations struct {

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The type of resource, for example a VPC attachment.
	ResourceType TransitGatewayAttachmentResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The subnets associated with the multicast domain.
	Subnets []SubnetAssociation `locationName:"subnets" locationNameList:"item" type:"list"`

	// The ID of the transit gateway attachment.
	TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `locationName:"transitGatewayMulticastDomainId" type:"string"`
	// contains filtered or unexported fields
}

Describes the multicast domain associations.

func (TransitGatewayMulticastDomainAssociations) String added in v0.18.0

String returns the string representation

type TransitGatewayMulticastDomainState added in v0.18.0

type TransitGatewayMulticastDomainState string
const (
	TransitGatewayMulticastDomainStatePending   TransitGatewayMulticastDomainState = "pending"
	TransitGatewayMulticastDomainStateAvailable TransitGatewayMulticastDomainState = "available"
	TransitGatewayMulticastDomainStateDeleting  TransitGatewayMulticastDomainState = "deleting"
	TransitGatewayMulticastDomainStateDeleted   TransitGatewayMulticastDomainState = "deleted"
)

Enum values for TransitGatewayMulticastDomainState

func (TransitGatewayMulticastDomainState) MarshalValue added in v0.18.0

func (enum TransitGatewayMulticastDomainState) MarshalValue() (string, error)

func (TransitGatewayMulticastDomainState) MarshalValueBuf added in v0.18.0

func (enum TransitGatewayMulticastDomainState) MarshalValueBuf(b []byte) ([]byte, error)

type TransitGatewayMulticastGroup added in v0.18.0

type TransitGatewayMulticastGroup struct {

	// The IP address assigned to the transit gateway multicast group.
	GroupIpAddress *string `locationName:"groupIpAddress" type:"string"`

	// Indicates that the resource is a transit gateway multicast group member.
	GroupMember *bool `locationName:"groupMember" type:"boolean"`

	// Indicates that the resource is a transit gateway multicast group member.
	GroupSource *bool `locationName:"groupSource" type:"boolean"`

	// The member type (for example, static).
	MemberType MembershipType `locationName:"memberType" type:"string" enum:"true"`

	// The ID of the transit gateway attachment.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The type of resource, for example a VPC attachment.
	ResourceType TransitGatewayAttachmentResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The source type.
	SourceType MembershipType `locationName:"sourceType" type:"string" enum:"true"`

	// The ID of the subnet.
	SubnetId *string `locationName:"subnetId" type:"string"`

	// The ID of the transit gateway attachment.
	TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
	// contains filtered or unexported fields
}

Describes the transit gateway multicast group resources.

func (TransitGatewayMulticastGroup) String added in v0.18.0

String returns the string representation

type TransitGatewayMulticastRegisteredGroupMembers added in v0.18.0

type TransitGatewayMulticastRegisteredGroupMembers struct {

	// The IP address assigned to the transit gateway multicast group.
	GroupIpAddress *string `locationName:"groupIpAddress" type:"string"`

	// The ID of the registered network interfaces.
	RegisteredNetworkInterfaceIds []string `locationName:"registeredNetworkInterfaceIds" locationNameList:"item" type:"list"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `locationName:"transitGatewayMulticastDomainId" type:"string"`
	// contains filtered or unexported fields
}

Describes the registered transit gateway multicast group members.

func (TransitGatewayMulticastRegisteredGroupMembers) String added in v0.18.0

String returns the string representation

type TransitGatewayMulticastRegisteredGroupSources added in v0.18.0

type TransitGatewayMulticastRegisteredGroupSources struct {

	// The IP address assigned to the transit gateway multicast group.
	GroupIpAddress *string `locationName:"groupIpAddress" type:"string"`

	// The IDs of the network interfaces members registered with the transit gateway
	// multicast group.
	RegisteredNetworkInterfaceIds []string `locationName:"registeredNetworkInterfaceIds" locationNameList:"item" type:"list"`

	// The ID of the transit gateway multicast domain.
	TransitGatewayMulticastDomainId *string `locationName:"transitGatewayMulticastDomainId" type:"string"`
	// contains filtered or unexported fields
}

Describes the members registered with the transit gateway multicast group.

func (TransitGatewayMulticastRegisteredGroupSources) String added in v0.18.0

String returns the string representation

type TransitGatewayOptions added in v0.6.0

type TransitGatewayOptions struct {

	// A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
	// The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294
	// for 32-bit ASNs.
	AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"`

	// The ID of the default association route table.
	AssociationDefaultRouteTableId *string `locationName:"associationDefaultRouteTableId" type:"string"`

	// Indicates whether attachment requests are automatically accepted.
	AutoAcceptSharedAttachments AutoAcceptSharedAttachmentsValue `locationName:"autoAcceptSharedAttachments" type:"string" enum:"true"`

	// Indicates whether resource attachments are automatically associated with
	// the default association route table.
	DefaultRouteTableAssociation DefaultRouteTableAssociationValue `locationName:"defaultRouteTableAssociation" type:"string" enum:"true"`

	// Indicates whether resource attachments automatically propagate routes to
	// the default propagation route table.
	DefaultRouteTablePropagation DefaultRouteTablePropagationValue `locationName:"defaultRouteTablePropagation" type:"string" enum:"true"`

	// Indicates whether DNS support is enabled.
	DnsSupport DnsSupportValue `locationName:"dnsSupport" type:"string" enum:"true"`

	// Indicates whether multicast is enabled on the transit gateway
	MulticastSupport MulticastSupportValue `locationName:"multicastSupport" type:"string" enum:"true"`

	// The ID of the default propagation route table.
	PropagationDefaultRouteTableId *string `locationName:"propagationDefaultRouteTableId" type:"string"`

	// Indicates whether Equal Cost Multipath Protocol support is enabled.
	VpnEcmpSupport VpnEcmpSupportValue `locationName:"vpnEcmpSupport" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the options for a transit gateway.

func (TransitGatewayOptions) String added in v0.6.0

func (s TransitGatewayOptions) String() string

String returns the string representation

type TransitGatewayPeeringAttachment added in v0.18.0

type TransitGatewayPeeringAttachment struct {

	// Information about the accepter transit gateway.
	AccepterTgwInfo *PeeringTgwInfo `locationName:"accepterTgwInfo" type:"structure"`

	// The time the transit gateway peering attachment was created.
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`

	// Information about the requester transit gateway.
	RequesterTgwInfo *PeeringTgwInfo `locationName:"requesterTgwInfo" type:"structure"`

	// The state of the transit gateway peering attachment.
	State TransitGatewayAttachmentState `locationName:"state" type:"string" enum:"true"`

	// The status of the transit gateway peering attachment.
	Status *PeeringAttachmentStatus `locationName:"status" type:"structure"`

	// The tags for the transit gateway peering attachment.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the transit gateway peering attachment.
	TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
	// contains filtered or unexported fields
}

Describes the transit gateway peering attachment.

func (TransitGatewayPeeringAttachment) String added in v0.18.0

String returns the string representation

type TransitGatewayPropagation added in v0.6.0

type TransitGatewayPropagation struct {

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The resource type.
	ResourceType TransitGatewayAttachmentResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The state.
	State TransitGatewayPropagationState `locationName:"state" type:"string" enum:"true"`

	// The ID of the attachment.
	TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`

	// The ID of the transit gateway route table.
	TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
	// contains filtered or unexported fields
}

Describes route propagation.

func (TransitGatewayPropagation) String added in v0.6.0

func (s TransitGatewayPropagation) String() string

String returns the string representation

type TransitGatewayPropagationState added in v0.6.0

type TransitGatewayPropagationState string
const (
	TransitGatewayPropagationStateEnabling  TransitGatewayPropagationState = "enabling"
	TransitGatewayPropagationStateEnabled   TransitGatewayPropagationState = "enabled"
	TransitGatewayPropagationStateDisabling TransitGatewayPropagationState = "disabling"
	TransitGatewayPropagationStateDisabled  TransitGatewayPropagationState = "disabled"
)

Enum values for TransitGatewayPropagationState

func (TransitGatewayPropagationState) MarshalValue added in v0.6.0

func (enum TransitGatewayPropagationState) MarshalValue() (string, error)

func (TransitGatewayPropagationState) MarshalValueBuf added in v0.6.0

func (enum TransitGatewayPropagationState) MarshalValueBuf(b []byte) ([]byte, error)

type TransitGatewayRequestOptions added in v0.6.0

type TransitGatewayRequestOptions struct {

	// A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
	// The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294
	// for 32-bit ASNs. The default is 64512.
	AmazonSideAsn *int64 `type:"long"`

	// Enable or disable automatic acceptance of attachment requests. Disabled by
	// default.
	AutoAcceptSharedAttachments AutoAcceptSharedAttachmentsValue `type:"string" enum:"true"`

	// Enable or disable automatic association with the default association route
	// table. Enabled by default.
	DefaultRouteTableAssociation DefaultRouteTableAssociationValue `type:"string" enum:"true"`

	// Enable or disable automatic propagation of routes to the default propagation
	// route table. Enabled by default.
	DefaultRouteTablePropagation DefaultRouteTablePropagationValue `type:"string" enum:"true"`

	// Enable or disable DNS support. Enabled by default.
	DnsSupport DnsSupportValue `type:"string" enum:"true"`

	// Indicates whether multicast is enabled on the transit gateway
	MulticastSupport MulticastSupportValue `type:"string" enum:"true"`

	// Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
	VpnEcmpSupport VpnEcmpSupportValue `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the options for a transit gateway.

func (TransitGatewayRequestOptions) String added in v0.6.0

String returns the string representation

type TransitGatewayRoute added in v0.6.0

type TransitGatewayRoute struct {

	// The CIDR block used for destination matches.
	DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`

	// The state of the route.
	State TransitGatewayRouteState `locationName:"state" type:"string" enum:"true"`

	// The attachments.
	TransitGatewayAttachments []TransitGatewayRouteAttachment `locationName:"transitGatewayAttachments" locationNameList:"item" type:"list"`

	// The route type.
	Type TransitGatewayRouteType `locationName:"type" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a route for a transit gateway route table.

func (TransitGatewayRoute) String added in v0.6.0

func (s TransitGatewayRoute) String() string

String returns the string representation

type TransitGatewayRouteAttachment added in v0.6.0

type TransitGatewayRouteAttachment struct {

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The resource type.
	ResourceType TransitGatewayAttachmentResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The ID of the attachment.
	TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
	// contains filtered or unexported fields
}

Describes a route attachment.

func (TransitGatewayRouteAttachment) String added in v0.6.0

String returns the string representation

type TransitGatewayRouteState added in v0.6.0

type TransitGatewayRouteState string
const (
	TransitGatewayRouteStatePending   TransitGatewayRouteState = "pending"
	TransitGatewayRouteStateActive    TransitGatewayRouteState = "active"
	TransitGatewayRouteStateBlackhole TransitGatewayRouteState = "blackhole"
	TransitGatewayRouteStateDeleting  TransitGatewayRouteState = "deleting"
	TransitGatewayRouteStateDeleted   TransitGatewayRouteState = "deleted"
)

Enum values for TransitGatewayRouteState

func (TransitGatewayRouteState) MarshalValue added in v0.6.0

func (enum TransitGatewayRouteState) MarshalValue() (string, error)

func (TransitGatewayRouteState) MarshalValueBuf added in v0.6.0

func (enum TransitGatewayRouteState) MarshalValueBuf(b []byte) ([]byte, error)

type TransitGatewayRouteTable added in v0.6.0

type TransitGatewayRouteTable struct {

	// The creation time.
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`

	// Indicates whether this is the default association route table for the transit
	// gateway.
	DefaultAssociationRouteTable *bool `locationName:"defaultAssociationRouteTable" type:"boolean"`

	// Indicates whether this is the default propagation route table for the transit
	// gateway.
	DefaultPropagationRouteTable *bool `locationName:"defaultPropagationRouteTable" type:"boolean"`

	// The state of the transit gateway route table.
	State TransitGatewayRouteTableState `locationName:"state" type:"string" enum:"true"`

	// Any tags assigned to the route table.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the transit gateway.
	TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`

	// The ID of the transit gateway route table.
	TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
	// contains filtered or unexported fields
}

Describes a transit gateway route table.

func (TransitGatewayRouteTable) String added in v0.6.0

func (s TransitGatewayRouteTable) String() string

String returns the string representation

type TransitGatewayRouteTableAssociation added in v0.6.0

type TransitGatewayRouteTableAssociation struct {

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The resource type.
	ResourceType TransitGatewayAttachmentResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The state of the association.
	State TransitGatewayAssociationState `locationName:"state" type:"string" enum:"true"`

	// The ID of the attachment.
	TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
	// contains filtered or unexported fields
}

Describes an association between a route table and a resource attachment.

func (TransitGatewayRouteTableAssociation) String added in v0.6.0

String returns the string representation

type TransitGatewayRouteTablePropagation added in v0.6.0

type TransitGatewayRouteTablePropagation struct {

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// The type of resource.
	ResourceType TransitGatewayAttachmentResourceType `locationName:"resourceType" type:"string" enum:"true"`

	// The state of the resource.
	State TransitGatewayPropagationState `locationName:"state" type:"string" enum:"true"`

	// The ID of the attachment.
	TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
	// contains filtered or unexported fields
}

Describes a route table propagation.

func (TransitGatewayRouteTablePropagation) String added in v0.6.0

String returns the string representation

type TransitGatewayRouteTableState added in v0.6.0

type TransitGatewayRouteTableState string
const (
	TransitGatewayRouteTableStatePending   TransitGatewayRouteTableState = "pending"
	TransitGatewayRouteTableStateAvailable TransitGatewayRouteTableState = "available"
	TransitGatewayRouteTableStateDeleting  TransitGatewayRouteTableState = "deleting"
	TransitGatewayRouteTableStateDeleted   TransitGatewayRouteTableState = "deleted"
)

Enum values for TransitGatewayRouteTableState

func (TransitGatewayRouteTableState) MarshalValue added in v0.6.0

func (enum TransitGatewayRouteTableState) MarshalValue() (string, error)

func (TransitGatewayRouteTableState) MarshalValueBuf added in v0.6.0

func (enum TransitGatewayRouteTableState) MarshalValueBuf(b []byte) ([]byte, error)

type TransitGatewayRouteType added in v0.6.0

type TransitGatewayRouteType string
const (
	TransitGatewayRouteTypeStatic     TransitGatewayRouteType = "static"
	TransitGatewayRouteTypePropagated TransitGatewayRouteType = "propagated"
)

Enum values for TransitGatewayRouteType

func (TransitGatewayRouteType) MarshalValue added in v0.6.0

func (enum TransitGatewayRouteType) MarshalValue() (string, error)

func (TransitGatewayRouteType) MarshalValueBuf added in v0.6.0

func (enum TransitGatewayRouteType) MarshalValueBuf(b []byte) ([]byte, error)

type TransitGatewayState added in v0.6.0

type TransitGatewayState string
const (
	TransitGatewayStatePending   TransitGatewayState = "pending"
	TransitGatewayStateAvailable TransitGatewayState = "available"
	TransitGatewayStateModifying TransitGatewayState = "modifying"
	TransitGatewayStateDeleting  TransitGatewayState = "deleting"
	TransitGatewayStateDeleted   TransitGatewayState = "deleted"
)

Enum values for TransitGatewayState

func (TransitGatewayState) MarshalValue added in v0.6.0

func (enum TransitGatewayState) MarshalValue() (string, error)

func (TransitGatewayState) MarshalValueBuf added in v0.6.0

func (enum TransitGatewayState) MarshalValueBuf(b []byte) ([]byte, error)

type TransitGatewayVpcAttachment added in v0.6.0

type TransitGatewayVpcAttachment struct {

	// The creation time.
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`

	// The VPC attachment options.
	Options *TransitGatewayVpcAttachmentOptions `locationName:"options" type:"structure"`

	// The state of the VPC attachment.
	State TransitGatewayAttachmentState `locationName:"state" type:"string" enum:"true"`

	// The IDs of the subnets.
	SubnetIds []string `locationName:"subnetIds" locationNameList:"item" type:"list"`

	// The tags for the VPC attachment.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the attachment.
	TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`

	// The ID of the transit gateway.
	TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`

	// The ID of the AWS account that owns the VPC.
	VpcOwnerId *string `locationName:"vpcOwnerId" type:"string"`
	// contains filtered or unexported fields
}

Describes a VPC attachment.

func (TransitGatewayVpcAttachment) String added in v0.6.0

String returns the string representation

type TransitGatewayVpcAttachmentOptions added in v0.6.0

type TransitGatewayVpcAttachmentOptions struct {

	// Indicates whether DNS support is enabled.
	DnsSupport DnsSupportValue `locationName:"dnsSupport" type:"string" enum:"true"`

	// Indicates whether IPv6 support is disabled.
	Ipv6Support Ipv6SupportValue `locationName:"ipv6Support" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the VPC attachment options.

func (TransitGatewayVpcAttachmentOptions) String added in v0.6.0

String returns the string representation

type TransportProtocol added in v0.7.0

type TransportProtocol string
const (
	TransportProtocolTcp TransportProtocol = "tcp"
	TransportProtocolUdp TransportProtocol = "udp"
)

Enum values for TransportProtocol

func (TransportProtocol) MarshalValue added in v0.7.0

func (enum TransportProtocol) MarshalValue() (string, error)

func (TransportProtocol) MarshalValueBuf added in v0.7.0

func (enum TransportProtocol) MarshalValueBuf(b []byte) ([]byte, error)

type TunnelOption added in v0.12.0

type TunnelOption struct {

	// The number of seconds after which a DPD timeout occurs.
	DpdTimeoutSeconds *int64 `locationName:"dpdTimeoutSeconds" type:"integer"`

	// The IKE versions that are permitted for the VPN tunnel.
	IkeVersions []IKEVersionsListValue `locationName:"ikeVersionSet" locationNameList:"item" type:"list"`

	// The external IP address of the VPN tunnel.
	OutsideIpAddress *string `locationName:"outsideIpAddress" type:"string"`

	// The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 1
	// IKE negotiations.
	Phase1DHGroupNumbers []Phase1DHGroupNumbersListValue `locationName:"phase1DHGroupNumberSet" locationNameList:"item" type:"list"`

	// The permitted encryption algorithms for the VPN tunnel for phase 1 IKE negotiations.
	Phase1EncryptionAlgorithms []Phase1EncryptionAlgorithmsListValue `locationName:"phase1EncryptionAlgorithmSet" locationNameList:"item" type:"list"`

	// The permitted integrity algorithms for the VPN tunnel for phase 1 IKE negotiations.
	Phase1IntegrityAlgorithms []Phase1IntegrityAlgorithmsListValue `locationName:"phase1IntegrityAlgorithmSet" locationNameList:"item" type:"list"`

	// The lifetime for phase 1 of the IKE negotiation, in seconds.
	Phase1LifetimeSeconds *int64 `locationName:"phase1LifetimeSeconds" type:"integer"`

	// The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2
	// IKE negotiations.
	Phase2DHGroupNumbers []Phase2DHGroupNumbersListValue `locationName:"phase2DHGroupNumberSet" locationNameList:"item" type:"list"`

	// The permitted encryption algorithms for the VPN tunnel for phase 2 IKE negotiations.
	Phase2EncryptionAlgorithms []Phase2EncryptionAlgorithmsListValue `locationName:"phase2EncryptionAlgorithmSet" locationNameList:"item" type:"list"`

	// The permitted integrity algorithms for the VPN tunnel for phase 2 IKE negotiations.
	Phase2IntegrityAlgorithms []Phase2IntegrityAlgorithmsListValue `locationName:"phase2IntegrityAlgorithmSet" locationNameList:"item" type:"list"`

	// The lifetime for phase 2 of the IKE negotiation, in seconds.
	Phase2LifetimeSeconds *int64 `locationName:"phase2LifetimeSeconds" type:"integer"`

	// The pre-shared key (PSK) to establish initial authentication between the
	// virtual private gateway and the customer gateway.
	PreSharedKey *string `locationName:"preSharedKey" type:"string"`

	// The percentage of the rekey window determined by RekeyMarginTimeSeconds during
	// which the rekey time is randomly selected.
	RekeyFuzzPercentage *int64 `locationName:"rekeyFuzzPercentage" type:"integer"`

	// The margin time, in seconds, before the phase 2 lifetime expires, during
	// which the AWS side of the VPN connection performs an IKE rekey.
	RekeyMarginTimeSeconds *int64 `locationName:"rekeyMarginTimeSeconds" type:"integer"`

	// The number of packets in an IKE replay window.
	ReplayWindowSize *int64 `locationName:"replayWindowSize" type:"integer"`

	// The range of inside IP addresses for the tunnel.
	TunnelInsideCidr *string `locationName:"tunnelInsideCidr" type:"string"`
	// contains filtered or unexported fields
}

The VPN tunnel options.

func (TunnelOption) String added in v0.12.0

func (s TunnelOption) String() string

String returns the string representation

type UnassignIpv6AddressesInput

type UnassignIpv6AddressesInput struct {

	// The IPv6 addresses to unassign from the network interface.
	//
	// Ipv6Addresses is a required field
	Ipv6Addresses []string `locationName:"ipv6Addresses" locationNameList:"item" type:"list" required:"true"`

	// The ID of the network interface.
	//
	// NetworkInterfaceId is a required field
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UnassignIpv6AddressesInput) String

String returns the string representation

func (*UnassignIpv6AddressesInput) Validate

func (s *UnassignIpv6AddressesInput) Validate() error

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

type UnassignIpv6AddressesOutput

type UnassignIpv6AddressesOutput struct {

	// The ID of the network interface.
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`

	// The IPv6 addresses that have been unassigned from the network interface.
	UnassignedIpv6Addresses []string `locationName:"unassignedIpv6Addresses" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (UnassignIpv6AddressesOutput) String

String returns the string representation

type UnassignIpv6AddressesRequest

type UnassignIpv6AddressesRequest struct {
	*aws.Request
	Input *UnassignIpv6AddressesInput
	Copy  func(*UnassignIpv6AddressesInput) UnassignIpv6AddressesRequest
}

UnassignIpv6AddressesRequest is the request type for the UnassignIpv6Addresses API operation.

func (UnassignIpv6AddressesRequest) Send

Send marshals and sends the UnassignIpv6Addresses API request.

type UnassignIpv6AddressesResponse added in v0.9.0

type UnassignIpv6AddressesResponse struct {
	*UnassignIpv6AddressesOutput
	// contains filtered or unexported fields
}

UnassignIpv6AddressesResponse is the response type for the UnassignIpv6Addresses API operation.

func (*UnassignIpv6AddressesResponse) SDKResponseMetdata added in v0.9.0

func (r *UnassignIpv6AddressesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UnassignIpv6Addresses request.

type UnassignPrivateIpAddressesInput

type UnassignPrivateIpAddressesInput struct {

	// The ID of the network interface.
	//
	// NetworkInterfaceId is a required field
	NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`

	// The secondary private IP addresses to unassign from the network interface.
	// You can specify this option multiple times to unassign more than one IP address.
	//
	// PrivateIpAddresses is a required field
	PrivateIpAddresses []string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Contains the parameters for UnassignPrivateIpAddresses.

func (UnassignPrivateIpAddressesInput) String

String returns the string representation

func (*UnassignPrivateIpAddressesInput) Validate

func (s *UnassignPrivateIpAddressesInput) Validate() error

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

type UnassignPrivateIpAddressesOutput

type UnassignPrivateIpAddressesOutput struct {
	// contains filtered or unexported fields
}

func (UnassignPrivateIpAddressesOutput) String

String returns the string representation

type UnassignPrivateIpAddressesRequest

type UnassignPrivateIpAddressesRequest struct {
	*aws.Request
	Input *UnassignPrivateIpAddressesInput
	Copy  func(*UnassignPrivateIpAddressesInput) UnassignPrivateIpAddressesRequest
}

UnassignPrivateIpAddressesRequest is the request type for the UnassignPrivateIpAddresses API operation.

func (UnassignPrivateIpAddressesRequest) Send

Send marshals and sends the UnassignPrivateIpAddresses API request.

type UnassignPrivateIpAddressesResponse added in v0.9.0

type UnassignPrivateIpAddressesResponse struct {
	*UnassignPrivateIpAddressesOutput
	// contains filtered or unexported fields
}

UnassignPrivateIpAddressesResponse is the response type for the UnassignPrivateIpAddresses API operation.

func (*UnassignPrivateIpAddressesResponse) SDKResponseMetdata added in v0.9.0

func (r *UnassignPrivateIpAddressesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UnassignPrivateIpAddresses request.

type UnlimitedSupportedInstanceFamily added in v0.18.0

type UnlimitedSupportedInstanceFamily string
const (
	UnlimitedSupportedInstanceFamilyT2  UnlimitedSupportedInstanceFamily = "t2"
	UnlimitedSupportedInstanceFamilyT3  UnlimitedSupportedInstanceFamily = "t3"
	UnlimitedSupportedInstanceFamilyT3a UnlimitedSupportedInstanceFamily = "t3a"
)

Enum values for UnlimitedSupportedInstanceFamily

func (UnlimitedSupportedInstanceFamily) MarshalValue added in v0.18.0

func (enum UnlimitedSupportedInstanceFamily) MarshalValue() (string, error)

func (UnlimitedSupportedInstanceFamily) MarshalValueBuf added in v0.18.0

func (enum UnlimitedSupportedInstanceFamily) MarshalValueBuf(b []byte) ([]byte, error)

type UnmonitorInstancesInput

type UnmonitorInstancesInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `locationName:"dryRun" type:"boolean"`

	// The IDs of the instances.
	//
	// InstanceIds is a required field
	InstanceIds []string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (UnmonitorInstancesInput) String

func (s UnmonitorInstancesInput) String() string

String returns the string representation

func (*UnmonitorInstancesInput) Validate

func (s *UnmonitorInstancesInput) Validate() error

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

type UnmonitorInstancesOutput

type UnmonitorInstancesOutput struct {

	// The monitoring information.
	InstanceMonitorings []InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

func (UnmonitorInstancesOutput) String

func (s UnmonitorInstancesOutput) String() string

String returns the string representation

type UnmonitorInstancesRequest

type UnmonitorInstancesRequest struct {
	*aws.Request
	Input *UnmonitorInstancesInput
	Copy  func(*UnmonitorInstancesInput) UnmonitorInstancesRequest
}

UnmonitorInstancesRequest is the request type for the UnmonitorInstances API operation.

func (UnmonitorInstancesRequest) Send

Send marshals and sends the UnmonitorInstances API request.

type UnmonitorInstancesResponse added in v0.9.0

type UnmonitorInstancesResponse struct {
	*UnmonitorInstancesOutput
	// contains filtered or unexported fields
}

UnmonitorInstancesResponse is the response type for the UnmonitorInstances API operation.

func (*UnmonitorInstancesResponse) SDKResponseMetdata added in v0.9.0

func (r *UnmonitorInstancesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UnmonitorInstances request.

type UnsuccessfulInstanceCreditSpecificationErrorCode added in v0.2.0

type UnsuccessfulInstanceCreditSpecificationErrorCode string
const (
	UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdMalformed              UnsuccessfulInstanceCreditSpecificationErrorCode = "InvalidInstanceID.Malformed"
	UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdNotFound               UnsuccessfulInstanceCreditSpecificationErrorCode = "InvalidInstanceID.NotFound"
	UnsuccessfulInstanceCreditSpecificationErrorCodeIncorrectInstanceState                  UnsuccessfulInstanceCreditSpecificationErrorCode = "IncorrectInstanceState"
	UnsuccessfulInstanceCreditSpecificationErrorCodeInstanceCreditSpecificationNotSupported UnsuccessfulInstanceCreditSpecificationErrorCode = "InstanceCreditSpecification.NotSupported"
)

Enum values for UnsuccessfulInstanceCreditSpecificationErrorCode

func (UnsuccessfulInstanceCreditSpecificationErrorCode) MarshalValue added in v0.3.0

func (UnsuccessfulInstanceCreditSpecificationErrorCode) MarshalValueBuf added in v0.3.0

func (enum UnsuccessfulInstanceCreditSpecificationErrorCode) MarshalValueBuf(b []byte) ([]byte, error)

type UnsuccessfulInstanceCreditSpecificationItem added in v0.2.0

type UnsuccessfulInstanceCreditSpecificationItem struct {

	// The applicable error for the burstable performance instance whose credit
	// option for CPU usage was not modified.
	Error *UnsuccessfulInstanceCreditSpecificationItemError `locationName:"error" type:"structure"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`
	// contains filtered or unexported fields
}

Describes the burstable performance instance whose credit option for CPU usage was not modified.

func (UnsuccessfulInstanceCreditSpecificationItem) String added in v0.2.0

String returns the string representation

type UnsuccessfulInstanceCreditSpecificationItemError added in v0.2.0

type UnsuccessfulInstanceCreditSpecificationItemError struct {

	// The error code.
	Code UnsuccessfulInstanceCreditSpecificationErrorCode `locationName:"code" type:"string" enum:"true"`

	// The applicable error message.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Information about the error for the burstable performance instance whose credit option for CPU usage was not modified.

func (UnsuccessfulInstanceCreditSpecificationItemError) String added in v0.2.0

String returns the string representation

type UnsuccessfulItem

type UnsuccessfulItem struct {

	// Information about the error.
	Error *UnsuccessfulItemError `locationName:"error" type:"structure"`

	// The ID of the resource.
	ResourceId *string `locationName:"resourceId" type:"string"`
	// contains filtered or unexported fields
}

Information about items that were not successfully processed in a batch call.

func (UnsuccessfulItem) String

func (s UnsuccessfulItem) String() string

String returns the string representation

type UnsuccessfulItemError

type UnsuccessfulItemError struct {

	// The error code.
	Code *string `locationName:"code" type:"string"`

	// The error message accompanying the error code.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Information about the error that occurred. For more information about errors, see Error Codes (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).

func (UnsuccessfulItemError) String

func (s UnsuccessfulItemError) String() string

String returns the string representation

type UpdateSecurityGroupRuleDescriptionsEgressInput

type UpdateSecurityGroupRuleDescriptionsEgressInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the security group. You must specify either the security group
	// ID or the security group name in the request. For security groups in a nondefault
	// VPC, you must specify the security group ID.
	GroupId *string `type:"string"`

	// [Default VPC] The name of the security group. You must specify either the
	// security group ID or the security group name in the request.
	GroupName *string `type:"string"`

	// The IP permissions for the security group rule.
	//
	// IpPermissions is a required field
	IpPermissions []IpPermission `locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateSecurityGroupRuleDescriptionsEgressInput) String

String returns the string representation

func (*UpdateSecurityGroupRuleDescriptionsEgressInput) Validate

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

type UpdateSecurityGroupRuleDescriptionsEgressOutput

type UpdateSecurityGroupRuleDescriptionsEgressOutput struct {

	// Returns true if the request succeeds; otherwise, returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (UpdateSecurityGroupRuleDescriptionsEgressOutput) String

String returns the string representation

type UpdateSecurityGroupRuleDescriptionsEgressRequest

UpdateSecurityGroupRuleDescriptionsEgressRequest is the request type for the UpdateSecurityGroupRuleDescriptionsEgress API operation.

func (UpdateSecurityGroupRuleDescriptionsEgressRequest) Send

Send marshals and sends the UpdateSecurityGroupRuleDescriptionsEgress API request.

type UpdateSecurityGroupRuleDescriptionsEgressResponse added in v0.9.0

type UpdateSecurityGroupRuleDescriptionsEgressResponse struct {
	*UpdateSecurityGroupRuleDescriptionsEgressOutput
	// contains filtered or unexported fields
}

UpdateSecurityGroupRuleDescriptionsEgressResponse is the response type for the UpdateSecurityGroupRuleDescriptionsEgress API operation.

func (*UpdateSecurityGroupRuleDescriptionsEgressResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the UpdateSecurityGroupRuleDescriptionsEgress request.

type UpdateSecurityGroupRuleDescriptionsIngressInput

type UpdateSecurityGroupRuleDescriptionsIngressInput struct {

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`

	// The ID of the security group. You must specify either the security group
	// ID or the security group name in the request. For security groups in a nondefault
	// VPC, you must specify the security group ID.
	GroupId *string `type:"string"`

	// [EC2-Classic, default VPC] The name of the security group. You must specify
	// either the security group ID or the security group name in the request.
	GroupName *string `type:"string"`

	// The IP permissions for the security group rule.
	//
	// IpPermissions is a required field
	IpPermissions []IpPermission `locationNameList:"item" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateSecurityGroupRuleDescriptionsIngressInput) String

String returns the string representation

func (*UpdateSecurityGroupRuleDescriptionsIngressInput) Validate

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

type UpdateSecurityGroupRuleDescriptionsIngressOutput

type UpdateSecurityGroupRuleDescriptionsIngressOutput struct {

	// Returns true if the request succeeds; otherwise, returns an error.
	Return *bool `locationName:"return" type:"boolean"`
	// contains filtered or unexported fields
}

func (UpdateSecurityGroupRuleDescriptionsIngressOutput) String

String returns the string representation

type UpdateSecurityGroupRuleDescriptionsIngressRequest

UpdateSecurityGroupRuleDescriptionsIngressRequest is the request type for the UpdateSecurityGroupRuleDescriptionsIngress API operation.

func (UpdateSecurityGroupRuleDescriptionsIngressRequest) Send

Send marshals and sends the UpdateSecurityGroupRuleDescriptionsIngress API request.

type UpdateSecurityGroupRuleDescriptionsIngressResponse added in v0.9.0

type UpdateSecurityGroupRuleDescriptionsIngressResponse struct {
	*UpdateSecurityGroupRuleDescriptionsIngressOutput
	// contains filtered or unexported fields
}

UpdateSecurityGroupRuleDescriptionsIngressResponse is the response type for the UpdateSecurityGroupRuleDescriptionsIngress API operation.

func (*UpdateSecurityGroupRuleDescriptionsIngressResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the UpdateSecurityGroupRuleDescriptionsIngress request.

type UsageClassType added in v0.18.0

type UsageClassType string
const (
	UsageClassTypeSpot     UsageClassType = "spot"
	UsageClassTypeOnDemand UsageClassType = "on-demand"
)

Enum values for UsageClassType

func (UsageClassType) MarshalValue added in v0.18.0

func (enum UsageClassType) MarshalValue() (string, error)

func (UsageClassType) MarshalValueBuf added in v0.18.0

func (enum UsageClassType) MarshalValueBuf(b []byte) ([]byte, error)

type UserBucket

type UserBucket struct {

	// The name of the Amazon S3 bucket where the disk image is located.
	S3Bucket *string `type:"string"`

	// The file name of the disk image.
	S3Key *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the Amazon S3 bucket for the disk image.

func (UserBucket) String

func (s UserBucket) String() string

String returns the string representation

type UserBucketDetails

type UserBucketDetails struct {

	// The Amazon S3 bucket from which the disk image was created.
	S3Bucket *string `locationName:"s3Bucket" type:"string"`

	// The file name of the disk image.
	S3Key *string `locationName:"s3Key" type:"string"`
	// contains filtered or unexported fields
}

Describes the Amazon S3 bucket for the disk image.

func (UserBucketDetails) String

func (s UserBucketDetails) String() string

String returns the string representation

type UserData

type UserData struct {

	// The user data. If you are using an AWS SDK or command line tool, Base64-encoding
	// is performed for you, and you can load the text from a file. Otherwise, you
	// must provide Base64-encoded text.
	Data *string `locationName:"data" type:"string"`
	// contains filtered or unexported fields
}

Describes the user data for an instance.

func (UserData) String

func (s UserData) String() string

String returns the string representation

type UserIdGroupPair

type UserIdGroupPair struct {

	// A description for the security group rule that references this user ID group
	// pair.
	//
	// Constraints: Up to 255 characters in length. Allowed characters are a-z,
	// A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
	Description *string `locationName:"description" type:"string"`

	// The ID of the security group.
	GroupId *string `locationName:"groupId" type:"string"`

	// The name of the security group. In a request, use this parameter for a security
	// group in EC2-Classic or a default VPC only. For a security group in a nondefault
	// VPC, use the security group ID.
	//
	// For a referenced security group in another VPC, this value is not returned
	// if the referenced security group is deleted.
	GroupName *string `locationName:"groupName" type:"string"`

	// The status of a VPC peering connection, if applicable.
	PeeringStatus *string `locationName:"peeringStatus" type:"string"`

	// The ID of an AWS account.
	//
	// For a referenced security group in another VPC, the account ID of the referenced
	// security group is returned in the response. If the referenced security group
	// is deleted, this value is not returned.
	//
	// [EC2-Classic] Required when adding or removing rules that reference a security
	// group in another AWS account.
	UserId *string `locationName:"userId" type:"string"`

	// The ID of the VPC for the referenced security group, if applicable.
	VpcId *string `locationName:"vpcId" type:"string"`

	// The ID of the VPC peering connection, if applicable.
	VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
	// contains filtered or unexported fields
}

Describes a security group and AWS account ID pair.

func (UserIdGroupPair) String

func (s UserIdGroupPair) String() string

String returns the string representation

type VCpuInfo added in v0.18.0

type VCpuInfo struct {

	// The default number of cores for the instance type.
	DefaultCores *int64 `locationName:"defaultCores" type:"integer"`

	// The default number of threads per core for the instance type.
	DefaultThreadsPerCore *int64 `locationName:"defaultThreadsPerCore" type:"integer"`

	// The default number of vCPUs for the instance type.
	DefaultVCpus *int64 `locationName:"defaultVCpus" type:"integer"`

	// List of the valid number of cores that can be configured for the instance
	// type.
	ValidCores []int64 `locationName:"validCores" locationNameList:"item" type:"list"`

	// List of the valid number of threads per core that can be configured for the
	// instance type.
	ValidThreadsPerCore []int64 `locationName:"validThreadsPerCore" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes the vCPU configurations for the instance type.

func (VCpuInfo) String added in v0.18.0

func (s VCpuInfo) String() string

String returns the string representation

type ValidationError added in v0.23.0

type ValidationError struct {

	// The error code that indicates why the parameter or parameter combination
	// is not valid. For more information about error codes, see Error Codes (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
	Code *string `locationName:"code" type:"string"`

	// The error message that describes why the parameter or parameter combination
	// is not valid. For more information about error messages, see Error Codes
	// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

The error code and error message that is returned for a parameter or parameter combination that is not valid when a new launch template or new version of a launch template is created.

func (ValidationError) String added in v0.23.0

func (s ValidationError) String() string

String returns the string representation

type ValidationWarning added in v0.23.0

type ValidationWarning struct {

	// The error codes and error messages.
	Errors []ValidationError `locationName:"errorSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

The error codes and error messages that are returned for the parameters or parameter combinations that are not valid when a new launch template or new version of a launch template is created.

func (ValidationWarning) String added in v0.23.0

func (s ValidationWarning) String() string

String returns the string representation

type VgwTelemetry

type VgwTelemetry struct {

	// The number of accepted routes.
	AcceptedRouteCount *int64 `locationName:"acceptedRouteCount" type:"integer"`

	// The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate.
	CertificateArn *string `locationName:"certificateArn" type:"string"`

	// The date and time of the last change in status.
	LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp"`

	// The Internet-routable IP address of the virtual private gateway's outside
	// interface.
	OutsideIpAddress *string `locationName:"outsideIpAddress" type:"string"`

	// The status of the VPN tunnel.
	Status TelemetryStatus `locationName:"status" type:"string" enum:"true"`

	// If an error occurs, a description of the error.
	StatusMessage *string `locationName:"statusMessage" type:"string"`
	// contains filtered or unexported fields
}

Describes telemetry for a VPN tunnel.

func (VgwTelemetry) String

func (s VgwTelemetry) String() string

String returns the string representation

type VirtualizationType

type VirtualizationType string
const (
	VirtualizationTypeHvm         VirtualizationType = "hvm"
	VirtualizationTypeParavirtual VirtualizationType = "paravirtual"
)

Enum values for VirtualizationType

func (VirtualizationType) MarshalValue added in v0.3.0

func (enum VirtualizationType) MarshalValue() (string, error)

func (VirtualizationType) MarshalValueBuf added in v0.3.0

func (enum VirtualizationType) MarshalValueBuf(b []byte) ([]byte, error)

type Volume added in v0.9.0

type Volume struct {

	// Information about the volume attachments.
	Attachments []VolumeAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`

	// The Availability Zone for the volume.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The time stamp when volume creation was initiated.
	CreateTime *time.Time `locationName:"createTime" type:"timestamp"`

	// Indicates whether the volume is encrypted.
	Encrypted *bool `locationName:"encrypted" type:"boolean"`

	// Indicates whether the volume was created using fast snapshot restore.
	FastRestored *bool `locationName:"fastRestored" type:"boolean"`

	// The number of I/O operations per second (IOPS) that the volume supports.
	// For Provisioned IOPS SSD volumes, this represents the number of IOPS that
	// are provisioned for the volume. For General Purpose SSD volumes, this represents
	// the baseline performance of the volume and the rate at which the volume accumulates
	// I/O credits for bursting. For more information, see Amazon EBS Volume Types
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
	// in the Amazon Elastic Compute Cloud User Guide.
	//
	// Constraints: Range is 100-16,000 IOPS for gp2 volumes and 100 to 64,000IOPS
	// for io1 volumes, in most Regions. The maximum IOPS for io1 of 64,000 is guaranteed
	// only on Nitro-based instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances).
	// Other instance families guarantee performance up to 32,000 IOPS.
	//
	// Condition: This parameter is required for requests to create io1 volumes;
	// it is not used in requests to create gp2, st1, sc1, or standard volumes.
	Iops *int64 `locationName:"iops" type:"integer"`

	// The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS)
	// customer master key (CMK) that was used to protect the volume encryption
	// key for the volume.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// Indicates whether Amazon EBS Multi-Attach is enabled.
	MultiAttachEnabled *bool `locationName:"multiAttachEnabled" type:"boolean"`

	// The Amazon Resource Name (ARN) of the Outpost.
	OutpostArn *string `locationName:"outpostArn" type:"string"`

	// The size of the volume, in GiBs.
	Size *int64 `locationName:"size" type:"integer"`

	// The snapshot from which the volume was created, if applicable.
	SnapshotId *string `locationName:"snapshotId" type:"string"`

	// The volume state.
	State VolumeState `locationName:"status" type:"string" enum:"true"`

	// Any tags assigned to the volume.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the volume.
	VolumeId *string `locationName:"volumeId" type:"string"`

	// The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
	// IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
	// for Magnetic volumes.
	VolumeType VolumeType `locationName:"volumeType" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a volume.

func (Volume) String added in v0.9.0

func (s Volume) String() string

String returns the string representation

type VolumeAttachment added in v0.9.0

type VolumeAttachment struct {

	// The time stamp when the attachment initiated.
	AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`

	// Indicates whether the EBS volume is deleted on instance termination.
	DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`

	// The device name.
	Device *string `locationName:"device" type:"string"`

	// The ID of the instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The attachment state of the volume.
	State VolumeAttachmentState `locationName:"status" type:"string" enum:"true"`

	// The ID of the volume.
	VolumeId *string `locationName:"volumeId" type:"string"`
	// contains filtered or unexported fields
}

Describes volume attachment details.

func (VolumeAttachment) String added in v0.9.0

func (s VolumeAttachment) String() string

String returns the string representation

type VolumeAttachmentState

type VolumeAttachmentState string
const (
	VolumeAttachmentStateAttaching VolumeAttachmentState = "attaching"
	VolumeAttachmentStateAttached  VolumeAttachmentState = "attached"
	VolumeAttachmentStateDetaching VolumeAttachmentState = "detaching"
	VolumeAttachmentStateDetached  VolumeAttachmentState = "detached"
	VolumeAttachmentStateBusy      VolumeAttachmentState = "busy"
)

Enum values for VolumeAttachmentState

func (VolumeAttachmentState) MarshalValue added in v0.3.0

func (enum VolumeAttachmentState) MarshalValue() (string, error)

func (VolumeAttachmentState) MarshalValueBuf added in v0.3.0

func (enum VolumeAttachmentState) MarshalValueBuf(b []byte) ([]byte, error)

type VolumeAttributeName

type VolumeAttributeName string
const (
	VolumeAttributeNameAutoEnableIo VolumeAttributeName = "autoEnableIO"
	VolumeAttributeNameProductCodes VolumeAttributeName = "productCodes"
)

Enum values for VolumeAttributeName

func (VolumeAttributeName) MarshalValue added in v0.3.0

func (enum VolumeAttributeName) MarshalValue() (string, error)

func (VolumeAttributeName) MarshalValueBuf added in v0.3.0

func (enum VolumeAttributeName) MarshalValueBuf(b []byte) ([]byte, error)

type VolumeDetail

type VolumeDetail struct {

	// The size of the volume, in GiB.
	//
	// Size is a required field
	Size *int64 `locationName:"size" type:"long" required:"true"`
	// contains filtered or unexported fields
}

Describes an EBS volume.

func (VolumeDetail) String

func (s VolumeDetail) String() string

String returns the string representation

func (*VolumeDetail) Validate

func (s *VolumeDetail) Validate() error

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

type VolumeModification

type VolumeModification struct {

	// The modification completion or failure time.
	EndTime *time.Time `locationName:"endTime" type:"timestamp"`

	// The current modification state. The modification state is null for unmodified
	// volumes.
	ModificationState VolumeModificationState `locationName:"modificationState" type:"string" enum:"true"`

	// The original IOPS rate of the volume.
	OriginalIops *int64 `locationName:"originalIops" type:"integer"`

	// The original size of the volume, in GiB.
	OriginalSize *int64 `locationName:"originalSize" type:"integer"`

	// The original EBS volume type of the volume.
	OriginalVolumeType VolumeType `locationName:"originalVolumeType" type:"string" enum:"true"`

	// The modification progress, from 0 to 100 percent complete.
	Progress *int64 `locationName:"progress" type:"long"`

	// The modification start time.
	StartTime *time.Time `locationName:"startTime" type:"timestamp"`

	// A status message about the modification progress or failure.
	StatusMessage *string `locationName:"statusMessage" type:"string"`

	// The target IOPS rate of the volume.
	TargetIops *int64 `locationName:"targetIops" type:"integer"`

	// The target size of the volume, in GiB.
	TargetSize *int64 `locationName:"targetSize" type:"integer"`

	// The target EBS volume type of the volume.
	TargetVolumeType VolumeType `locationName:"targetVolumeType" type:"string" enum:"true"`

	// The ID of the volume.
	VolumeId *string `locationName:"volumeId" type:"string"`
	// contains filtered or unexported fields
}

Describes the modification status of an EBS volume.

If the volume has never been modified, some element values will be null.

func (VolumeModification) String

func (s VolumeModification) String() string

String returns the string representation

type VolumeModificationState

type VolumeModificationState string
const (
	VolumeModificationStateModifying  VolumeModificationState = "modifying"
	VolumeModificationStateOptimizing VolumeModificationState = "optimizing"
	VolumeModificationStateCompleted  VolumeModificationState = "completed"
	VolumeModificationStateFailed     VolumeModificationState = "failed"
)

Enum values for VolumeModificationState

func (VolumeModificationState) MarshalValue added in v0.3.0

func (enum VolumeModificationState) MarshalValue() (string, error)

func (VolumeModificationState) MarshalValueBuf added in v0.3.0

func (enum VolumeModificationState) MarshalValueBuf(b []byte) ([]byte, error)

type VolumeState

type VolumeState string
const (
	VolumeStateCreating  VolumeState = "creating"
	VolumeStateAvailable VolumeState = "available"
	VolumeStateInUse     VolumeState = "in-use"
	VolumeStateDeleting  VolumeState = "deleting"
	VolumeStateDeleted   VolumeState = "deleted"
	VolumeStateError     VolumeState = "error"
)

Enum values for VolumeState

func (VolumeState) MarshalValue added in v0.3.0

func (enum VolumeState) MarshalValue() (string, error)

func (VolumeState) MarshalValueBuf added in v0.3.0

func (enum VolumeState) MarshalValueBuf(b []byte) ([]byte, error)

type VolumeStatusAction

type VolumeStatusAction struct {

	// The code identifying the operation, for example, enable-volume-io.
	Code *string `locationName:"code" type:"string"`

	// A description of the operation.
	Description *string `locationName:"description" type:"string"`

	// The ID of the event associated with this operation.
	EventId *string `locationName:"eventId" type:"string"`

	// The event type associated with this operation.
	EventType *string `locationName:"eventType" type:"string"`
	// contains filtered or unexported fields
}

Describes a volume status operation code.

func (VolumeStatusAction) String

func (s VolumeStatusAction) String() string

String returns the string representation

type VolumeStatusAttachmentStatus added in v0.20.0

type VolumeStatusAttachmentStatus struct {

	// The ID of the attached instance.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The maximum IOPS supported by the attached instance.
	IoPerformance *string `locationName:"ioPerformance" type:"string"`
	// contains filtered or unexported fields
}

Information about the instances to which the volume is attached.

func (VolumeStatusAttachmentStatus) String added in v0.20.0

String returns the string representation

type VolumeStatusDetails

type VolumeStatusDetails struct {

	// The name of the volume status.
	Name VolumeStatusName `locationName:"name" type:"string" enum:"true"`

	// The intended status of the volume status.
	Status *string `locationName:"status" type:"string"`
	// contains filtered or unexported fields
}

Describes a volume status.

func (VolumeStatusDetails) String

func (s VolumeStatusDetails) String() string

String returns the string representation

type VolumeStatusEvent

type VolumeStatusEvent struct {

	// A description of the event.
	Description *string `locationName:"description" type:"string"`

	// The ID of this event.
	EventId *string `locationName:"eventId" type:"string"`

	// The type of this event.
	EventType *string `locationName:"eventType" type:"string"`

	// The ID of the instance associated with the event.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// The latest end time of the event.
	NotAfter *time.Time `locationName:"notAfter" type:"timestamp"`

	// The earliest start time of the event.
	NotBefore *time.Time `locationName:"notBefore" type:"timestamp"`
	// contains filtered or unexported fields
}

Describes a volume status event.

func (VolumeStatusEvent) String

func (s VolumeStatusEvent) String() string

String returns the string representation

type VolumeStatusInfo

type VolumeStatusInfo struct {

	// The details of the volume status.
	Details []VolumeStatusDetails `locationName:"details" locationNameList:"item" type:"list"`

	// The status of the volume.
	Status VolumeStatusInfoStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the status of a volume.

func (VolumeStatusInfo) String

func (s VolumeStatusInfo) String() string

String returns the string representation

type VolumeStatusInfoStatus

type VolumeStatusInfoStatus string
const (
	VolumeStatusInfoStatusOk               VolumeStatusInfoStatus = "ok"
	VolumeStatusInfoStatusImpaired         VolumeStatusInfoStatus = "impaired"
	VolumeStatusInfoStatusInsufficientData VolumeStatusInfoStatus = "insufficient-data"
)

Enum values for VolumeStatusInfoStatus

func (VolumeStatusInfoStatus) MarshalValue added in v0.3.0

func (enum VolumeStatusInfoStatus) MarshalValue() (string, error)

func (VolumeStatusInfoStatus) MarshalValueBuf added in v0.3.0

func (enum VolumeStatusInfoStatus) MarshalValueBuf(b []byte) ([]byte, error)

type VolumeStatusItem

type VolumeStatusItem struct {

	// The details of the operation.
	Actions []VolumeStatusAction `locationName:"actionsSet" locationNameList:"item" type:"list"`

	// Information about the instances to which the volume is attached.
	AttachmentStatuses []VolumeStatusAttachmentStatus `locationName:"attachmentStatuses" locationNameList:"item" type:"list"`

	// The Availability Zone of the volume.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// A list of events associated with the volume.
	Events []VolumeStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`

	// The Amazon Resource Name (ARN) of the Outpost.
	OutpostArn *string `locationName:"outpostArn" type:"string"`

	// The volume ID.
	VolumeId *string `locationName:"volumeId" type:"string"`

	// The volume status.
	VolumeStatus *VolumeStatusInfo `locationName:"volumeStatus" type:"structure"`
	// contains filtered or unexported fields
}

Describes the volume status.

func (VolumeStatusItem) String

func (s VolumeStatusItem) String() string

String returns the string representation

type VolumeStatusName

type VolumeStatusName string
const (
	VolumeStatusNameIoEnabled     VolumeStatusName = "io-enabled"
	VolumeStatusNameIoPerformance VolumeStatusName = "io-performance"
)

Enum values for VolumeStatusName

func (VolumeStatusName) MarshalValue added in v0.3.0

func (enum VolumeStatusName) MarshalValue() (string, error)

func (VolumeStatusName) MarshalValueBuf added in v0.3.0

func (enum VolumeStatusName) MarshalValueBuf(b []byte) ([]byte, error)

type VolumeType

type VolumeType string
const (
	VolumeTypeStandard VolumeType = "standard"
	VolumeTypeIo1      VolumeType = "io1"
	VolumeTypeGp2      VolumeType = "gp2"
	VolumeTypeSc1      VolumeType = "sc1"
	VolumeTypeSt1      VolumeType = "st1"
)

Enum values for VolumeType

func (VolumeType) MarshalValue added in v0.3.0

func (enum VolumeType) MarshalValue() (string, error)

func (VolumeType) MarshalValueBuf added in v0.3.0

func (enum VolumeType) MarshalValueBuf(b []byte) ([]byte, error)

type Vpc

type Vpc struct {

	// The primary IPv4 CIDR block for the VPC.
	CidrBlock *string `locationName:"cidrBlock" type:"string"`

	// Information about the IPv4 CIDR blocks associated with the VPC.
	CidrBlockAssociationSet []VpcCidrBlockAssociation `locationName:"cidrBlockAssociationSet" locationNameList:"item" type:"list"`

	// The ID of the set of DHCP options you've associated with the VPC (or default
	// if the default options are associated with the VPC).
	DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`

	// The allowed tenancy of instances launched into the VPC.
	InstanceTenancy Tenancy `locationName:"instanceTenancy" type:"string" enum:"true"`

	// Information about the IPv6 CIDR blocks associated with the VPC.
	Ipv6CidrBlockAssociationSet []VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`

	// Indicates whether the VPC is the default VPC.
	IsDefault *bool `locationName:"isDefault" type:"boolean"`

	// The ID of the AWS account that owns the VPC.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The current state of the VPC.
	State VpcState `locationName:"state" type:"string" enum:"true"`

	// Any tags assigned to the VPC.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a VPC.

func (Vpc) String

func (s Vpc) String() string

String returns the string representation

type VpcAttachment

type VpcAttachment struct {

	// The current state of the attachment.
	State AttachmentStatus `locationName:"state" type:"string" enum:"true"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes an attachment between a virtual private gateway and a VPC.

func (VpcAttachment) String

func (s VpcAttachment) String() string

String returns the string representation

type VpcAttributeName

type VpcAttributeName string
const (
	VpcAttributeNameEnableDnsSupport   VpcAttributeName = "enableDnsSupport"
	VpcAttributeNameEnableDnsHostnames VpcAttributeName = "enableDnsHostnames"
)

Enum values for VpcAttributeName

func (VpcAttributeName) MarshalValue added in v0.3.0

func (enum VpcAttributeName) MarshalValue() (string, error)

func (VpcAttributeName) MarshalValueBuf added in v0.3.0

func (enum VpcAttributeName) MarshalValueBuf(b []byte) ([]byte, error)

type VpcCidrBlockAssociation

type VpcCidrBlockAssociation struct {

	// The association ID for the IPv4 CIDR block.
	AssociationId *string `locationName:"associationId" type:"string"`

	// The IPv4 CIDR block.
	CidrBlock *string `locationName:"cidrBlock" type:"string"`

	// Information about the state of the CIDR block.
	CidrBlockState *VpcCidrBlockState `locationName:"cidrBlockState" type:"structure"`
	// contains filtered or unexported fields
}

Describes an IPv4 CIDR block associated with a VPC.

func (VpcCidrBlockAssociation) String

func (s VpcCidrBlockAssociation) String() string

String returns the string representation

type VpcCidrBlockState

type VpcCidrBlockState struct {

	// The state of the CIDR block.
	State VpcCidrBlockStateCode `locationName:"state" type:"string" enum:"true"`

	// A message about the status of the CIDR block, if applicable.
	StatusMessage *string `locationName:"statusMessage" type:"string"`
	// contains filtered or unexported fields
}

Describes the state of a CIDR block.

func (VpcCidrBlockState) String

func (s VpcCidrBlockState) String() string

String returns the string representation

type VpcCidrBlockStateCode

type VpcCidrBlockStateCode string
const (
	VpcCidrBlockStateCodeAssociating    VpcCidrBlockStateCode = "associating"
	VpcCidrBlockStateCodeAssociated     VpcCidrBlockStateCode = "associated"
	VpcCidrBlockStateCodeDisassociating VpcCidrBlockStateCode = "disassociating"
	VpcCidrBlockStateCodeDisassociated  VpcCidrBlockStateCode = "disassociated"
	VpcCidrBlockStateCodeFailing        VpcCidrBlockStateCode = "failing"
	VpcCidrBlockStateCodeFailed         VpcCidrBlockStateCode = "failed"
)

Enum values for VpcCidrBlockStateCode

func (VpcCidrBlockStateCode) MarshalValue added in v0.3.0

func (enum VpcCidrBlockStateCode) MarshalValue() (string, error)

func (VpcCidrBlockStateCode) MarshalValueBuf added in v0.3.0

func (enum VpcCidrBlockStateCode) MarshalValueBuf(b []byte) ([]byte, error)
type VpcClassicLink struct {

	// Indicates whether the VPC is enabled for ClassicLink.
	ClassicLinkEnabled *bool `locationName:"classicLinkEnabled" type:"boolean"`

	// Any tags assigned to the VPC.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes whether a VPC is enabled for ClassicLink.

func (VpcClassicLink) String

func (s VpcClassicLink) String() string

String returns the string representation

type VpcEndpoint

type VpcEndpoint struct {

	// The date and time that the VPC endpoint was created.
	CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp"`

	// (Interface endpoint) The DNS entries for the endpoint.
	DnsEntries []DnsEntry `locationName:"dnsEntrySet" locationNameList:"item" type:"list"`

	// (Interface endpoint) Information about the security groups that are associated
	// with the network interface.
	Groups []SecurityGroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`

	// The last error that occurred for VPC endpoint.
	LastError *LastError `locationName:"lastError" type:"structure"`

	// (Interface endpoint) One or more network interfaces for the endpoint.
	NetworkInterfaceIds []string `locationName:"networkInterfaceIdSet" locationNameList:"item" type:"list"`

	// The ID of the AWS account that owns the VPC endpoint.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// The policy document associated with the endpoint, if applicable.
	PolicyDocument *string `locationName:"policyDocument" type:"string"`

	// (Interface endpoint) Indicates whether the VPC is associated with a private
	// hosted zone.
	PrivateDnsEnabled *bool `locationName:"privateDnsEnabled" type:"boolean"`

	// Indicates whether the VPC endpoint is being managed by its service.
	RequesterManaged *bool `locationName:"requesterManaged" type:"boolean"`

	// (Gateway endpoint) One or more route tables associated with the endpoint.
	RouteTableIds []string `locationName:"routeTableIdSet" locationNameList:"item" type:"list"`

	// The name of the service to which the endpoint is associated.
	ServiceName *string `locationName:"serviceName" type:"string"`

	// The state of the VPC endpoint.
	State State `locationName:"state" type:"string" enum:"true"`

	// (Interface endpoint) One or more subnets in which the endpoint is located.
	SubnetIds []string `locationName:"subnetIdSet" locationNameList:"item" type:"list"`

	// Any tags assigned to the VPC endpoint.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VPC endpoint.
	VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`

	// The type of endpoint.
	VpcEndpointType VpcEndpointType `locationName:"vpcEndpointType" type:"string" enum:"true"`

	// The ID of the VPC to which the endpoint is associated.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a VPC endpoint.

func (VpcEndpoint) String

func (s VpcEndpoint) String() string

String returns the string representation

type VpcEndpointConnection added in v0.2.0

type VpcEndpointConnection struct {

	// The date and time that the VPC endpoint was created.
	CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp"`

	// The DNS entries for the VPC endpoint.
	DnsEntries []DnsEntry `locationName:"dnsEntrySet" locationNameList:"item" type:"list"`

	// The Amazon Resource Names (ARNs) of the network load balancers for the service.
	NetworkLoadBalancerArns []string `locationName:"networkLoadBalancerArnSet" locationNameList:"item" type:"list"`

	// The ID of the service to which the endpoint is connected.
	ServiceId *string `locationName:"serviceId" type:"string"`

	// The ID of the VPC endpoint.
	VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`

	// The AWS account ID of the owner of the VPC endpoint.
	VpcEndpointOwner *string `locationName:"vpcEndpointOwner" type:"string"`

	// The state of the VPC endpoint.
	VpcEndpointState State `locationName:"vpcEndpointState" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a VPC endpoint connection to a service.

func (VpcEndpointConnection) String added in v0.2.0

func (s VpcEndpointConnection) String() string

String returns the string representation

type VpcEndpointType added in v0.2.0

type VpcEndpointType string
const (
	VpcEndpointTypeInterface VpcEndpointType = "Interface"
	VpcEndpointTypeGateway   VpcEndpointType = "Gateway"
)

Enum values for VpcEndpointType

func (VpcEndpointType) MarshalValue added in v0.3.0

func (enum VpcEndpointType) MarshalValue() (string, error)

func (VpcEndpointType) MarshalValueBuf added in v0.3.0

func (enum VpcEndpointType) MarshalValueBuf(b []byte) ([]byte, error)

type VpcIpv6CidrBlockAssociation

type VpcIpv6CidrBlockAssociation struct {

	// The association ID for the IPv6 CIDR block.
	AssociationId *string `locationName:"associationId" type:"string"`

	// The IPv6 CIDR block.
	Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`

	// Information about the state of the CIDR block.
	Ipv6CidrBlockState *VpcCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`

	// The ID of the IPv6 address pool from which the IPv6 CIDR block is allocated.
	Ipv6Pool *string `locationName:"ipv6Pool" type:"string"`

	// The name of the location from which we advertise the IPV6 CIDR block.
	NetworkBorderGroup *string `locationName:"networkBorderGroup" type:"string"`
	// contains filtered or unexported fields
}

Describes an IPv6 CIDR block associated with a VPC.

func (VpcIpv6CidrBlockAssociation) String

String returns the string representation

type VpcPeeringConnection

type VpcPeeringConnection struct {

	// Information about the accepter VPC. CIDR block information is only returned
	// when describing an active VPC peering connection.
	AccepterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"accepterVpcInfo" type:"structure"`

	// The time that an unaccepted VPC peering connection will expire.
	ExpirationTime *time.Time `locationName:"expirationTime" type:"timestamp"`

	// Information about the requester VPC. CIDR block information is only returned
	// when describing an active VPC peering connection.
	RequesterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"requesterVpcInfo" type:"structure"`

	// The status of the VPC peering connection.
	Status *VpcPeeringConnectionStateReason `locationName:"status" type:"structure"`

	// Any tags assigned to the resource.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The ID of the VPC peering connection.
	VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
	// contains filtered or unexported fields
}

Describes a VPC peering connection.

func (VpcPeeringConnection) String

func (s VpcPeeringConnection) String() string

String returns the string representation

type VpcPeeringConnectionOptionsDescription

type VpcPeeringConnectionOptionsDescription struct {

	// Indicates whether a local VPC can resolve public DNS hostnames to private
	// IP addresses when queried from instances in a peer VPC.
	AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`

	// Indicates whether a local ClassicLink connection can communicate with the
	// peer VPC over the VPC peering connection.
	AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`

	// Indicates whether a local VPC can communicate with a ClassicLink connection
	// in the peer VPC over the VPC peering connection.
	AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
	// contains filtered or unexported fields
}

Describes the VPC peering connection options.

func (VpcPeeringConnectionOptionsDescription) String

String returns the string representation

type VpcPeeringConnectionStateReason

type VpcPeeringConnectionStateReason struct {

	// The status of the VPC peering connection.
	Code VpcPeeringConnectionStateReasonCode `locationName:"code" type:"string" enum:"true"`

	// A message that provides more information about the status, if applicable.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes the status of a VPC peering connection.

func (VpcPeeringConnectionStateReason) String

String returns the string representation

type VpcPeeringConnectionStateReasonCode

type VpcPeeringConnectionStateReasonCode string
const (
	VpcPeeringConnectionStateReasonCodeInitiatingRequest VpcPeeringConnectionStateReasonCode = "initiating-request"
	VpcPeeringConnectionStateReasonCodePendingAcceptance VpcPeeringConnectionStateReasonCode = "pending-acceptance"
	VpcPeeringConnectionStateReasonCodeActive            VpcPeeringConnectionStateReasonCode = "active"
	VpcPeeringConnectionStateReasonCodeDeleted           VpcPeeringConnectionStateReasonCode = "deleted"
	VpcPeeringConnectionStateReasonCodeRejected          VpcPeeringConnectionStateReasonCode = "rejected"
	VpcPeeringConnectionStateReasonCodeFailed            VpcPeeringConnectionStateReasonCode = "failed"
	VpcPeeringConnectionStateReasonCodeExpired           VpcPeeringConnectionStateReasonCode = "expired"
	VpcPeeringConnectionStateReasonCodeProvisioning      VpcPeeringConnectionStateReasonCode = "provisioning"
	VpcPeeringConnectionStateReasonCodeDeleting          VpcPeeringConnectionStateReasonCode = "deleting"
)

Enum values for VpcPeeringConnectionStateReasonCode

func (VpcPeeringConnectionStateReasonCode) MarshalValue added in v0.3.0

func (enum VpcPeeringConnectionStateReasonCode) MarshalValue() (string, error)

func (VpcPeeringConnectionStateReasonCode) MarshalValueBuf added in v0.3.0

func (enum VpcPeeringConnectionStateReasonCode) MarshalValueBuf(b []byte) ([]byte, error)

type VpcPeeringConnectionVpcInfo

type VpcPeeringConnectionVpcInfo struct {

	// The IPv4 CIDR block for the VPC.
	CidrBlock *string `locationName:"cidrBlock" type:"string"`

	// Information about the IPv4 CIDR blocks for the VPC.
	CidrBlockSet []CidrBlock `locationName:"cidrBlockSet" locationNameList:"item" type:"list"`

	// The IPv6 CIDR block for the VPC.
	Ipv6CidrBlockSet []Ipv6CidrBlock `locationName:"ipv6CidrBlockSet" locationNameList:"item" type:"list"`

	// The AWS account ID of the VPC owner.
	OwnerId *string `locationName:"ownerId" type:"string"`

	// Information about the VPC peering connection options for the accepter or
	// requester VPC.
	PeeringOptions *VpcPeeringConnectionOptionsDescription `locationName:"peeringOptions" type:"structure"`

	// The Region in which the VPC is located.
	Region *string `locationName:"region" type:"string"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`
	// contains filtered or unexported fields
}

Describes a VPC in a VPC peering connection.

func (VpcPeeringConnectionVpcInfo) String

String returns the string representation

type VpcState

type VpcState string
const (
	VpcStatePending   VpcState = "pending"
	VpcStateAvailable VpcState = "available"
)

Enum values for VpcState

func (VpcState) MarshalValue added in v0.3.0

func (enum VpcState) MarshalValue() (string, error)

func (VpcState) MarshalValueBuf added in v0.3.0

func (enum VpcState) MarshalValueBuf(b []byte) ([]byte, error)

type VpcTenancy added in v0.2.0

type VpcTenancy string
const (
	VpcTenancyDefault VpcTenancy = "default"
)

Enum values for VpcTenancy

func (VpcTenancy) MarshalValue added in v0.3.0

func (enum VpcTenancy) MarshalValue() (string, error)

func (VpcTenancy) MarshalValueBuf added in v0.3.0

func (enum VpcTenancy) MarshalValueBuf(b []byte) ([]byte, error)

type VpnAuthentication added in v0.9.0

type VpnAuthentication struct {

	// Information about the Active Directory, if applicable.
	ActiveDirectory *DirectoryServiceAuthentication `locationName:"activeDirectory" type:"structure"`

	// Information about the IAM SAML identity provider, if applicable.
	FederatedAuthentication *FederatedAuthentication `locationName:"federatedAuthentication" type:"structure"`

	// Information about the authentication certificates, if applicable.
	MutualAuthentication *CertificateAuthentication `locationName:"mutualAuthentication" type:"structure"`

	// The authentication type used.
	Type VpnAuthenticationType `locationName:"type" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the authentication methods used by a Client VPN endpoint. For more information, see Authentication (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/authentication-authrization.html#client-authentication) in the AWS Client VPN Administrator Guide.

func (VpnAuthentication) String added in v0.9.0

func (s VpnAuthentication) String() string

String returns the string representation

type VpnAuthenticationRequest added in v0.9.0

type VpnAuthenticationRequest struct {

	// Information about the Active Directory to be used, if applicable. You must
	// provide this information if Type is directory-service-authentication.
	ActiveDirectory *DirectoryServiceAuthenticationRequest `type:"structure"`

	// Information about the IAM SAML identity provider to be used, if applicable.
	// You must provide this information if Type is federated-authentication.
	FederatedAuthentication *FederatedAuthenticationRequest `type:"structure"`

	// Information about the authentication certificates to be used, if applicable.
	// You must provide this information if Type is certificate-authentication.
	MutualAuthentication *CertificateAuthenticationRequest `type:"structure"`

	// The type of client authentication to be used.
	Type VpnAuthenticationType `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the authentication method to be used by a Client VPN endpoint. For more information, see Authentication (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/authentication-authrization.html#client-authentication) in the AWS Client VPN Administrator Guide.

func (VpnAuthenticationRequest) String added in v0.9.0

func (s VpnAuthenticationRequest) String() string

String returns the string representation

type VpnAuthenticationType added in v0.9.0

type VpnAuthenticationType string
const (
	VpnAuthenticationTypeCertificateAuthentication      VpnAuthenticationType = "certificate-authentication"
	VpnAuthenticationTypeDirectoryServiceAuthentication VpnAuthenticationType = "directory-service-authentication"
	VpnAuthenticationTypeFederatedAuthentication        VpnAuthenticationType = "federated-authentication"
)

Enum values for VpnAuthenticationType

func (VpnAuthenticationType) MarshalValue added in v0.9.0

func (enum VpnAuthenticationType) MarshalValue() (string, error)

func (VpnAuthenticationType) MarshalValueBuf added in v0.9.0

func (enum VpnAuthenticationType) MarshalValueBuf(b []byte) ([]byte, error)

type VpnAuthorizationRuleStatus added in v0.9.0

type VpnAuthorizationRuleStatus struct {

	// The state of the authorization rule.
	Code VpnAuthorizationRuleStatusCode `locationName:"code" type:"string" enum:"true"`

	// A message about the status of the authorization rule, if applicable.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes the state of an authorization rule.

func (VpnAuthorizationRuleStatus) String added in v0.9.0

String returns the string representation

type VpnAuthorizationRuleStatusCode added in v0.9.0

type VpnAuthorizationRuleStatusCode string
const (
	VpnAuthorizationRuleStatusCodeAuthorizing VpnAuthorizationRuleStatusCode = "authorizing"
	VpnAuthorizationRuleStatusCodeActive      VpnAuthorizationRuleStatusCode = "active"
	VpnAuthorizationRuleStatusCodeFailed      VpnAuthorizationRuleStatusCode = "failed"
	VpnAuthorizationRuleStatusCodeRevoking    VpnAuthorizationRuleStatusCode = "revoking"
)

Enum values for VpnAuthorizationRuleStatusCode

func (VpnAuthorizationRuleStatusCode) MarshalValue added in v0.9.0

func (enum VpnAuthorizationRuleStatusCode) MarshalValue() (string, error)

func (VpnAuthorizationRuleStatusCode) MarshalValueBuf added in v0.9.0

func (enum VpnAuthorizationRuleStatusCode) MarshalValueBuf(b []byte) ([]byte, error)

type VpnConnection

type VpnConnection struct {

	// The IP address of the client.
	ClientIp *string `locationName:"clientIp" type:"string"`

	// The ID of the Client VPN endpoint to which the client is connected.
	ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`

	// The common name associated with the client. This is either the name of the
	// client certificate, or the Active Directory user name.
	CommonName *string `locationName:"commonName" type:"string"`

	// The date and time the client connection was terminated.
	ConnectionEndTime *string `locationName:"connectionEndTime" type:"string"`

	// The date and time the client connection was established.
	ConnectionEstablishedTime *string `locationName:"connectionEstablishedTime" type:"string"`

	// The ID of the client connection.
	ConnectionId *string `locationName:"connectionId" type:"string"`

	// The number of bytes received by the client.
	EgressBytes *string `locationName:"egressBytes" type:"string"`

	// The number of packets received by the client.
	EgressPackets *string `locationName:"egressPackets" type:"string"`

	// The number of bytes sent by the client.
	IngressBytes *string `locationName:"ingressBytes" type:"string"`

	// The number of packets sent by the client.
	IngressPackets *string `locationName:"ingressPackets" type:"string"`

	// The current state of the client connection.
	Status *VpnConnectionStatus `locationName:"status" type:"structure"`

	// The current date and time.
	Timestamp *string `locationName:"timestamp" type:"string"`

	// The username of the client who established the client connection. This information
	// is only provided if Active Directory client authentication is used.
	Username *string `locationName:"username" type:"string"`
	// contains filtered or unexported fields
}

Describes a client connection.

func (VpnConnection) String

func (s VpnConnection) String() string

String returns the string representation

type VpnConnectionOptions

type VpnConnectionOptions struct {

	// Indicates whether acceleration is enabled for the VPN connection.
	EnableAcceleration *bool `locationName:"enableAcceleration" type:"boolean"`

	// Indicates whether the VPN connection uses static routes only. Static routes
	// must be used for devices that don't support BGP.
	StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`

	// Indicates the VPN tunnel options.
	TunnelOptions []TunnelOption `locationName:"tunnelOptionSet" locationNameList:"item" type:"list"`
	// contains filtered or unexported fields
}

Describes VPN connection options.

func (VpnConnectionOptions) String

func (s VpnConnectionOptions) String() string

String returns the string representation

type VpnConnectionOptionsSpecification

type VpnConnectionOptionsSpecification struct {

	// Indicate whether to enable acceleration for the VPN connection.
	//
	// Default: false
	EnableAcceleration *bool `type:"boolean"`

	// Indicate whether the VPN connection uses static routes only. If you are creating
	// a VPN connection for a device that does not support BGP, you must specify
	// true. Use CreateVpnConnectionRoute to create a static route.
	//
	// Default: false
	StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`

	// The tunnel options for the VPN connection.
	TunnelOptions []VpnTunnelOptionsSpecification `type:"list"`
	// contains filtered or unexported fields
}

Describes VPN connection options.

func (VpnConnectionOptionsSpecification) String

String returns the string representation

type VpnConnectionStatus added in v0.9.0

type VpnConnectionStatus struct {

	// The state of the client connection.
	Code VpnConnectionStatusCode `locationName:"code" type:"string" enum:"true"`

	// A message about the status of the client connection, if applicable.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes the status of a client connection.

func (VpnConnectionStatus) String added in v0.9.0

func (s VpnConnectionStatus) String() string

String returns the string representation

type VpnConnectionStatusCode added in v0.9.0

type VpnConnectionStatusCode string
const (
	VpnConnectionStatusCodeActive            VpnConnectionStatusCode = "active"
	VpnConnectionStatusCodeFailedToTerminate VpnConnectionStatusCode = "failed-to-terminate"
	VpnConnectionStatusCodeTerminating       VpnConnectionStatusCode = "terminating"
	VpnConnectionStatusCodeTerminated        VpnConnectionStatusCode = "terminated"
)

Enum values for VpnConnectionStatusCode

func (VpnConnectionStatusCode) MarshalValue added in v0.9.0

func (enum VpnConnectionStatusCode) MarshalValue() (string, error)

func (VpnConnectionStatusCode) MarshalValueBuf added in v0.9.0

func (enum VpnConnectionStatusCode) MarshalValueBuf(b []byte) ([]byte, error)

type VpnEcmpSupportValue added in v0.6.0

type VpnEcmpSupportValue string
const (
	VpnEcmpSupportValueEnable  VpnEcmpSupportValue = "enable"
	VpnEcmpSupportValueDisable VpnEcmpSupportValue = "disable"
)

Enum values for VpnEcmpSupportValue

func (VpnEcmpSupportValue) MarshalValue added in v0.6.0

func (enum VpnEcmpSupportValue) MarshalValue() (string, error)

func (VpnEcmpSupportValue) MarshalValueBuf added in v0.6.0

func (enum VpnEcmpSupportValue) MarshalValueBuf(b []byte) ([]byte, error)

type VpnEndpoint added in v0.9.0

type VpnEndpoint struct {

	// Information about the associated target networks. A target network is a subnet
	// in a VPC.
	AssociatedTargetNetworks []AssociatedTargetNetwork `locationName:"associatedTargetNetwork" locationNameList:"item" deprecated:"true" type:"list"`

	// Information about the authentication method used by the Client VPN endpoint.
	AuthenticationOptions []VpnAuthentication `locationName:"authenticationOptions" locationNameList:"item" type:"list"`

	// The IPv4 address range, in CIDR notation, from which client IP addresses
	// are assigned.
	ClientCidrBlock *string `locationName:"clientCidrBlock" type:"string"`

	// The ID of the Client VPN endpoint.
	ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`

	// Information about the client connection logging options for the Client VPN
	// endpoint.
	ConnectionLogOptions *ConnectionLogResponseOptions `locationName:"connectionLogOptions" type:"structure"`

	// The date and time the Client VPN endpoint was created.
	CreationTime *string `locationName:"creationTime" type:"string"`

	// The date and time the Client VPN endpoint was deleted, if applicable.
	DeletionTime *string `locationName:"deletionTime" type:"string"`

	// A brief description of the endpoint.
	Description *string `locationName:"description" type:"string"`

	// The DNS name to be used by clients when connecting to the Client VPN endpoint.
	DnsName *string `locationName:"dnsName" type:"string"`

	// Information about the DNS servers to be used for DNS resolution.
	DnsServers []string `locationName:"dnsServer" locationNameList:"item" type:"list"`

	// The IDs of the security groups for the target network.
	SecurityGroupIds []string `locationName:"securityGroupIdSet" locationNameList:"item" type:"list"`

	// The ARN of the server certificate.
	ServerCertificateArn *string `locationName:"serverCertificateArn" type:"string"`

	// Indicates whether split-tunnel is enabled in the AWS Client VPN endpoint.
	//
	// For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client
	// VPN Endpoint (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html)
	// in the AWS Client VPN Administrator Guide.
	SplitTunnel *bool `locationName:"splitTunnel" type:"boolean"`

	// The current state of the Client VPN endpoint.
	Status *VpnEndpointStatus `locationName:"status" type:"structure"`

	// Any tags assigned to the Client VPN endpoint.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The transport protocol used by the Client VPN endpoint.
	TransportProtocol TransportProtocol `locationName:"transportProtocol" type:"string" enum:"true"`

	// The ID of the VPC.
	VpcId *string `locationName:"vpcId" type:"string"`

	// The port number for the Client VPN endpoint.
	VpnPort *int64 `locationName:"vpnPort" type:"integer"`

	// The protocol used by the VPN session.
	VpnProtocol VpnProtocol `locationName:"vpnProtocol" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a Client VPN endpoint.

func (VpnEndpoint) String added in v0.9.0

func (s VpnEndpoint) String() string

String returns the string representation

type VpnEndpointStatus added in v0.9.0

type VpnEndpointStatus struct {

	// The state of the Client VPN endpoint. Possible states include:
	//
	//    * pending-associate - The Client VPN endpoint has been created but no
	//    target networks have been associated. The Client VPN endpoint cannot accept
	//    connections.
	//
	//    * available - The Client VPN endpoint has been created and a target network
	//    has been associated. The Client VPN endpoint can accept connections.
	//
	//    * deleting - The Client VPN endpoint is being deleted. The Client VPN
	//    endpoint cannot accept connections.
	//
	//    * deleted - The Client VPN endpoint has been deleted. The Client VPN endpoint
	//    cannot accept connections.
	Code VpnEndpointStatusCode `locationName:"code" type:"string" enum:"true"`

	// A message about the status of the Client VPN endpoint.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes the state of a Client VPN endpoint.

func (VpnEndpointStatus) String added in v0.9.0

func (s VpnEndpointStatus) String() string

String returns the string representation

type VpnEndpointStatusCode added in v0.9.0

type VpnEndpointStatusCode string
const (
	VpnEndpointStatusCodePendingAssociate VpnEndpointStatusCode = "pending-associate"
	VpnEndpointStatusCodeAvailable        VpnEndpointStatusCode = "available"
	VpnEndpointStatusCodeDeleting         VpnEndpointStatusCode = "deleting"
	VpnEndpointStatusCodeDeleted          VpnEndpointStatusCode = "deleted"
)

Enum values for VpnEndpointStatusCode

func (VpnEndpointStatusCode) MarshalValue added in v0.9.0

func (enum VpnEndpointStatusCode) MarshalValue() (string, error)

func (VpnEndpointStatusCode) MarshalValueBuf added in v0.9.0

func (enum VpnEndpointStatusCode) MarshalValueBuf(b []byte) ([]byte, error)

type VpnGateway

type VpnGateway struct {

	// The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
	AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"`

	// The Availability Zone where the virtual private gateway was created, if applicable.
	// This field may be empty or not returned.
	AvailabilityZone *string `locationName:"availabilityZone" type:"string"`

	// The current state of the virtual private gateway.
	State VpnState `locationName:"state" type:"string" enum:"true"`

	// Any tags assigned to the virtual private gateway.
	Tags []Tag `locationName:"tagSet" locationNameList:"item" type:"list"`

	// The type of VPN connection the virtual private gateway supports.
	Type GatewayType `locationName:"type" type:"string" enum:"true"`

	// Any VPCs attached to the virtual private gateway.
	VpcAttachments []VpcAttachment `locationName:"attachments" locationNameList:"item" type:"list"`

	// The ID of the virtual private gateway.
	VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
	// contains filtered or unexported fields
}

Describes a virtual private gateway.

func (VpnGateway) String

func (s VpnGateway) String() string

String returns the string representation

type VpnProtocol added in v0.7.0

type VpnProtocol string
const (
	VpnProtocolOpenvpn VpnProtocol = "openvpn"
)

Enum values for VpnProtocol

func (VpnProtocol) MarshalValue added in v0.7.0

func (enum VpnProtocol) MarshalValue() (string, error)

func (VpnProtocol) MarshalValueBuf added in v0.7.0

func (enum VpnProtocol) MarshalValueBuf(b []byte) ([]byte, error)

type VpnRoute added in v0.9.0

type VpnRoute struct {

	// The ID of the Client VPN endpoint with which the route is associated.
	ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`

	// A brief description of the route.
	Description *string `locationName:"description" type:"string"`

	// The IPv4 address range, in CIDR notation, of the route destination.
	DestinationCidr *string `locationName:"destinationCidr" type:"string"`

	// Indicates how the route was associated with the Client VPN endpoint. associate
	// indicates that the route was automatically added when the target network
	// was associated with the Client VPN endpoint. add-route indicates that the
	// route was manually added using the CreateClientVpnRoute action.
	Origin *string `locationName:"origin" type:"string"`

	// The current state of the route.
	Status *VpnRouteStatus `locationName:"status" type:"structure"`

	// The ID of the subnet through which traffic is routed.
	TargetSubnet *string `locationName:"targetSubnet" type:"string"`

	// The route type.
	Type *string `locationName:"type" type:"string"`
	// contains filtered or unexported fields
}

Information about a Client VPN endpoint route.

func (VpnRoute) String added in v0.9.0

func (s VpnRoute) String() string

String returns the string representation

type VpnRouteStatus added in v0.9.0

type VpnRouteStatus struct {

	// The state of the Client VPN endpoint route.
	Code VpnRouteStatusCode `locationName:"code" type:"string" enum:"true"`

	// A message about the status of the Client VPN endpoint route, if applicable.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Describes the state of a Client VPN endpoint route.

func (VpnRouteStatus) String added in v0.9.0

func (s VpnRouteStatus) String() string

String returns the string representation

type VpnRouteStatusCode added in v0.9.0

type VpnRouteStatusCode string
const (
	VpnRouteStatusCodeCreating VpnRouteStatusCode = "creating"
	VpnRouteStatusCodeActive   VpnRouteStatusCode = "active"
	VpnRouteStatusCodeFailed   VpnRouteStatusCode = "failed"
	VpnRouteStatusCodeDeleting VpnRouteStatusCode = "deleting"
)

Enum values for VpnRouteStatusCode

func (VpnRouteStatusCode) MarshalValue added in v0.9.0

func (enum VpnRouteStatusCode) MarshalValue() (string, error)

func (VpnRouteStatusCode) MarshalValueBuf added in v0.9.0

func (enum VpnRouteStatusCode) MarshalValueBuf(b []byte) ([]byte, error)

type VpnState

type VpnState string
const (
	VpnStatePending   VpnState = "pending"
	VpnStateAvailable VpnState = "available"
	VpnStateDeleting  VpnState = "deleting"
	VpnStateDeleted   VpnState = "deleted"
)

Enum values for VpnState

func (VpnState) MarshalValue added in v0.3.0

func (enum VpnState) MarshalValue() (string, error)

func (VpnState) MarshalValueBuf added in v0.3.0

func (enum VpnState) MarshalValueBuf(b []byte) ([]byte, error)

type VpnStaticRoute

type VpnStaticRoute struct {

	// The CIDR block associated with the local subnet of the customer data center.
	DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`

	// Indicates how the routes were provided.
	Source VpnStaticRouteSource `locationName:"source" type:"string" enum:"true"`

	// The current state of the static route.
	State VpnState `locationName:"state" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes a static route for a VPN connection.

func (VpnStaticRoute) String

func (s VpnStaticRoute) String() string

String returns the string representation

type VpnStaticRouteSource

type VpnStaticRouteSource string
const (
	VpnStaticRouteSourceStatic VpnStaticRouteSource = "Static"
)

Enum values for VpnStaticRouteSource

func (VpnStaticRouteSource) MarshalValue added in v0.3.0

func (enum VpnStaticRouteSource) MarshalValue() (string, error)

func (VpnStaticRouteSource) MarshalValueBuf added in v0.3.0

func (enum VpnStaticRouteSource) MarshalValueBuf(b []byte) ([]byte, error)

type VpnTunnelOptionsSpecification

type VpnTunnelOptionsSpecification struct {

	// The number of seconds after which a DPD timeout occurs.
	//
	// Constraints: A value between 0 and 30.
	//
	// Default: 30
	DPDTimeoutSeconds *int64 `type:"integer"`

	// The IKE versions that are permitted for the VPN tunnel.
	//
	// Valid values: ikev1 | ikev2
	IKEVersions []IKEVersionsRequestListValue `locationName:"IKEVersion" locationNameList:"item" type:"list"`

	// One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel
	// for phase 1 IKE negotiations.
	//
	// Valid values: 2 | 14 | 15 | 16 | 17 | 18 | 22 | 23 | 24
	Phase1DHGroupNumbers []Phase1DHGroupNumbersRequestListValue `locationName:"Phase1DHGroupNumber" locationNameList:"item" type:"list"`

	// One or more encryption algorithms that are permitted for the VPN tunnel for
	// phase 1 IKE negotiations.
	//
	// Valid values: AES128 | AES256
	Phase1EncryptionAlgorithms []Phase1EncryptionAlgorithmsRequestListValue `locationName:"Phase1EncryptionAlgorithm" locationNameList:"item" type:"list"`

	// One or more integrity algorithms that are permitted for the VPN tunnel for
	// phase 1 IKE negotiations.
	//
	// Valid values: SHA1 | SHA2-256
	Phase1IntegrityAlgorithms []Phase1IntegrityAlgorithmsRequestListValue `locationName:"Phase1IntegrityAlgorithm" locationNameList:"item" type:"list"`

	// The lifetime for phase 1 of the IKE negotiation, in seconds.
	//
	// Constraints: A value between 900 and 28,800.
	//
	// Default: 28800
	Phase1LifetimeSeconds *int64 `type:"integer"`

	// One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel
	// for phase 2 IKE negotiations.
	//
	// Valid values: 2 | 5 | 14 | 15 | 16 | 17 | 18 | 22 | 23 | 24
	Phase2DHGroupNumbers []Phase2DHGroupNumbersRequestListValue `locationName:"Phase2DHGroupNumber" locationNameList:"item" type:"list"`

	// One or more encryption algorithms that are permitted for the VPN tunnel for
	// phase 2 IKE negotiations.
	//
	// Valid values: AES128 | AES256
	Phase2EncryptionAlgorithms []Phase2EncryptionAlgorithmsRequestListValue `locationName:"Phase2EncryptionAlgorithm" locationNameList:"item" type:"list"`

	// One or more integrity algorithms that are permitted for the VPN tunnel for
	// phase 2 IKE negotiations.
	//
	// Valid values: SHA1 | SHA2-256
	Phase2IntegrityAlgorithms []Phase2IntegrityAlgorithmsRequestListValue `locationName:"Phase2IntegrityAlgorithm" locationNameList:"item" type:"list"`

	// The lifetime for phase 2 of the IKE negotiation, in seconds.
	//
	// Constraints: A value between 900 and 3,600. The value must be less than the
	// value for Phase1LifetimeSeconds.
	//
	// Default: 3600
	Phase2LifetimeSeconds *int64 `type:"integer"`

	// The pre-shared key (PSK) to establish initial authentication between the
	// virtual private gateway and customer gateway.
	//
	// Constraints: Allowed characters are alphanumeric characters, periods (.),
	// and underscores (_). Must be between 8 and 64 characters in length and cannot
	// start with zero (0).
	PreSharedKey *string `type:"string"`

	// The percentage of the rekey window (determined by RekeyMarginTimeSeconds)
	// during which the rekey time is randomly selected.
	//
	// Constraints: A value between 0 and 100.
	//
	// Default: 100
	RekeyFuzzPercentage *int64 `type:"integer"`

	// The margin time, in seconds, before the phase 2 lifetime expires, during
	// which the AWS side of the VPN connection performs an IKE rekey. The exact
	// time of the rekey is randomly selected based on the value for RekeyFuzzPercentage.
	//
	// Constraints: A value between 60 and half of Phase2LifetimeSeconds.
	//
	// Default: 540
	RekeyMarginTimeSeconds *int64 `type:"integer"`

	// The number of packets in an IKE replay window.
	//
	// Constraints: A value between 64 and 2048.
	//
	// Default: 1024
	ReplayWindowSize *int64 `type:"integer"`

	// The range of inside IP addresses for the tunnel. Any specified CIDR blocks
	// must be unique across all VPN connections that use the same virtual private
	// gateway.
	//
	// Constraints: A size /30 CIDR block from the 169.254.0.0/16 range. The following
	// CIDR blocks are reserved and cannot be used:
	//
	//    * 169.254.0.0/30
	//
	//    * 169.254.1.0/30
	//
	//    * 169.254.2.0/30
	//
	//    * 169.254.3.0/30
	//
	//    * 169.254.4.0/30
	//
	//    * 169.254.5.0/30
	//
	//    * 169.254.169.252/30
	TunnelInsideCidr *string `type:"string"`
	// contains filtered or unexported fields
}

The tunnel options for a single VPN tunnel.

func (VpnTunnelOptionsSpecification) String

String returns the string representation

type WithdrawByoipCidrInput added in v0.6.0

type WithdrawByoipCidrInput struct {

	// The address range, in CIDR notation.
	//
	// Cidr is a required field
	Cidr *string `type:"string" required:"true"`

	// Checks whether you have the required permissions for the action, without
	// actually making the request, and provides an error response. If you have
	// the required permissions, the error response is DryRunOperation. Otherwise,
	// it is UnauthorizedOperation.
	DryRun *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (WithdrawByoipCidrInput) String added in v0.6.0

func (s WithdrawByoipCidrInput) String() string

String returns the string representation

func (*WithdrawByoipCidrInput) Validate added in v0.6.0

func (s *WithdrawByoipCidrInput) Validate() error

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

type WithdrawByoipCidrOutput added in v0.6.0

type WithdrawByoipCidrOutput struct {

	// Information about the address pool.
	ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
	// contains filtered or unexported fields
}

func (WithdrawByoipCidrOutput) String added in v0.6.0

func (s WithdrawByoipCidrOutput) String() string

String returns the string representation

type WithdrawByoipCidrRequest added in v0.6.0

type WithdrawByoipCidrRequest struct {
	*aws.Request
	Input *WithdrawByoipCidrInput
	Copy  func(*WithdrawByoipCidrInput) WithdrawByoipCidrRequest
}

WithdrawByoipCidrRequest is the request type for the WithdrawByoipCidr API operation.

func (WithdrawByoipCidrRequest) Send added in v0.6.0

Send marshals and sends the WithdrawByoipCidr API request.

type WithdrawByoipCidrResponse added in v0.9.0

type WithdrawByoipCidrResponse struct {
	*WithdrawByoipCidrOutput
	// contains filtered or unexported fields
}

WithdrawByoipCidrResponse is the response type for the WithdrawByoipCidr API operation.

func (*WithdrawByoipCidrResponse) SDKResponseMetdata added in v0.9.0

func (r *WithdrawByoipCidrResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the WithdrawByoipCidr request.

Source Files

Directories

Path Synopsis
Package ec2iface provides an interface to enable mocking the Amazon Elastic Compute Cloud service client for testing your code.
Package ec2iface provides an interface to enable mocking the Amazon Elastic Compute Cloud service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL