Documentation
¶
Overview ¶
Package elasticinference provides the client and types for making API requests to Amazon Elastic Inference.
Elastic Inference public APIs.
See https://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25 for more information on this service.
See elasticinference package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/elasticinference/
Using the Client ¶
To use Amazon Elastic Inference 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 Elastic Inference client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/elasticinference/#New
Index ¶
- Constants
- type AcceleratorType
- type AcceleratorTypeOffering
- type Client
- func (c *Client) DescribeAcceleratorOfferingsRequest(input *DescribeAcceleratorOfferingsInput) DescribeAcceleratorOfferingsRequest
- func (c *Client) DescribeAcceleratorTypesRequest(input *DescribeAcceleratorTypesInput) DescribeAcceleratorTypesRequest
- func (c *Client) DescribeAcceleratorsRequest(input *DescribeAcceleratorsInput) DescribeAcceleratorsRequest
- func (c *Client) ListTagsForResourceRequest(input *ListTagsForResourceInput) ListTagsForResourceRequest
- func (c *Client) TagResourceRequest(input *TagResourceInput) TagResourceRequest
- func (c *Client) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
- type DescribeAcceleratorOfferingsInput
- type DescribeAcceleratorOfferingsOutput
- type DescribeAcceleratorOfferingsRequest
- type DescribeAcceleratorOfferingsResponse
- type DescribeAcceleratorTypesInput
- type DescribeAcceleratorTypesOutput
- type DescribeAcceleratorTypesRequest
- type DescribeAcceleratorTypesResponse
- type DescribeAcceleratorsInput
- type DescribeAcceleratorsOutput
- type DescribeAcceleratorsPaginator
- type DescribeAcceleratorsRequest
- type DescribeAcceleratorsResponse
- type ElasticInferenceAccelerator
- type ElasticInferenceAcceleratorHealth
- type Filter
- type KeyValuePair
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type ListTagsForResourceRequest
- type ListTagsForResourceResponse
- type LocationType
- type MemoryInfo
- type TagResourceInput
- type TagResourceOutput
- type TagResourceRequest
- type TagResourceResponse
- type UntagResourceInput
- type UntagResourceOutput
- type UntagResourceRequest
- type UntagResourceResponse
Constants ¶
const ( ServiceName = "Amazon Elastic Inference" // Service's name ServiceID = "ElasticInference" // Service's identifier EndpointsID = "api.elastic-inference" // Service's Endpoint identifier )
const ( // ErrCodeBadRequestException for service response error code // "BadRequestException". // // Raised when a malformed input has been provided to the API. ErrCodeBadRequestException = "BadRequestException" // ErrCodeInternalServerException for service response error code // "InternalServerException". // // Raised when an unexpected error occurred during request processing. ErrCodeInternalServerException = "InternalServerException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // Raised when the requested resource cannot be found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceleratorType ¶ added in v0.22.0
type AcceleratorType struct { // The name of the Elastic Inference Accelerator type. AcceleratorTypeName *string `locationName:"acceleratorTypeName" min:"1" type:"string"` // The memory information of the Elastic Inference Accelerator type. MemoryInfo *MemoryInfo `locationName:"memoryInfo" type:"structure"` // The throughput information of the Elastic Inference Accelerator type. ThroughputInfo []KeyValuePair `locationName:"throughputInfo" type:"list"` // contains filtered or unexported fields }
The details of an Elastic Inference Accelerator type.
func (AcceleratorType) MarshalFields ¶ added in v0.22.0
func (s AcceleratorType) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AcceleratorType) String ¶ added in v0.22.0
func (s AcceleratorType) String() string
String returns the string representation
type AcceleratorTypeOffering ¶ added in v0.22.0
type AcceleratorTypeOffering struct { // The name of the Elastic Inference Accelerator type. AcceleratorType *string `locationName:"acceleratorType" min:"1" type:"string"` // The location for the offering. It will return either the region, availability // zone or availability zone id for the offering depending on the locationType // value. Location *string `locationName:"location" min:"1" type:"string"` // The location type for the offering. It can assume the following values: region: // defines that the offering is at the regional level. availability-zone: defines // that the offering is at the availability zone level. availability-zone-id: // defines that the offering is at the availability zone level, defined by the // availability zone id. LocationType LocationType `locationName:"locationType" min:"1" type:"string" enum:"true"` // contains filtered or unexported fields }
The offering for an Elastic Inference Accelerator type.
func (AcceleratorTypeOffering) MarshalFields ¶ added in v0.22.0
func (s AcceleratorTypeOffering) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AcceleratorTypeOffering) String ¶ added in v0.22.0
func (s AcceleratorTypeOffering) String() string
String returns the string representation
type Client ¶
Client provides the API operation methods for making requests to Amazon Elastic Inference. 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 ¶
New creates a new instance of the client from the provided Config.
Example:
// Create a client from just a config. svc := elasticinference.New(myConfig)
func (*Client) DescribeAcceleratorOfferingsRequest ¶ added in v0.22.0
func (c *Client) DescribeAcceleratorOfferingsRequest(input *DescribeAcceleratorOfferingsInput) DescribeAcceleratorOfferingsRequest
DescribeAcceleratorOfferingsRequest returns a request value for making API operation for Amazon Elastic Inference.
Describes the locations in which a given accelerator type or set of types is present in a given region.
// Example sending a request using DescribeAcceleratorOfferingsRequest. req := client.DescribeAcceleratorOfferingsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorOfferings
func (*Client) DescribeAcceleratorTypesRequest ¶ added in v0.22.0
func (c *Client) DescribeAcceleratorTypesRequest(input *DescribeAcceleratorTypesInput) DescribeAcceleratorTypesRequest
DescribeAcceleratorTypesRequest returns a request value for making API operation for Amazon Elastic Inference.
Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput.
// Example sending a request using DescribeAcceleratorTypesRequest. req := client.DescribeAcceleratorTypesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAcceleratorTypes
func (*Client) DescribeAcceleratorsRequest ¶ added in v0.22.0
func (c *Client) DescribeAcceleratorsRequest(input *DescribeAcceleratorsInput) DescribeAcceleratorsRequest
DescribeAcceleratorsRequest returns a request value for making API operation for Amazon Elastic Inference.
Describes information over a provided set of accelerators belonging to an account.
// Example sending a request using DescribeAcceleratorsRequest. req := client.DescribeAcceleratorsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/DescribeAccelerators
func (*Client) ListTagsForResourceRequest ¶
func (c *Client) ListTagsForResourceRequest(input *ListTagsForResourceInput) ListTagsForResourceRequest
ListTagsForResourceRequest returns a request value for making API operation for Amazon Elastic Inference.
Returns all tags of an Elastic Inference Accelerator.
// Example sending a request using ListTagsForResourceRequest. req := client.ListTagsForResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/ListTagsForResource
func (*Client) TagResourceRequest ¶
func (c *Client) TagResourceRequest(input *TagResourceInput) TagResourceRequest
TagResourceRequest returns a request value for making API operation for Amazon Elastic Inference.
Adds the specified tags to an Elastic Inference Accelerator.
// Example sending a request using TagResourceRequest. req := client.TagResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/TagResource
func (*Client) UntagResourceRequest ¶
func (c *Client) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
UntagResourceRequest returns a request value for making API operation for Amazon Elastic Inference.
Removes the specified tags from an Elastic Inference Accelerator.
// Example sending a request using UntagResourceRequest. req := client.UntagResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/UntagResource
type DescribeAcceleratorOfferingsInput ¶ added in v0.22.0
type DescribeAcceleratorOfferingsInput struct { // The list of accelerator types to describe. AcceleratorTypes []string `locationName:"acceleratorTypes" type:"list"` // The location type that you want to describe accelerator type offerings for. // It can assume the following values: region: will return the accelerator type // offering at the regional level. availability-zone: will return the accelerator // type offering at the availability zone level. availability-zone-id: will // return the accelerator type offering at the availability zone level returning // the availability zone id. // // LocationType is a required field LocationType LocationType `locationName:"locationType" min:"1" type:"string" required:"true" enum:"true"` // contains filtered or unexported fields }
func (DescribeAcceleratorOfferingsInput) MarshalFields ¶ added in v0.22.0
func (s DescribeAcceleratorOfferingsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeAcceleratorOfferingsInput) String ¶ added in v0.22.0
func (s DescribeAcceleratorOfferingsInput) String() string
String returns the string representation
func (*DescribeAcceleratorOfferingsInput) Validate ¶ added in v0.22.0
func (s *DescribeAcceleratorOfferingsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeAcceleratorOfferingsOutput ¶ added in v0.22.0
type DescribeAcceleratorOfferingsOutput struct { // The list of accelerator type offerings for a specific location. AcceleratorTypeOfferings []AcceleratorTypeOffering `locationName:"acceleratorTypeOfferings" type:"list"` // contains filtered or unexported fields }
func (DescribeAcceleratorOfferingsOutput) MarshalFields ¶ added in v0.22.0
func (s DescribeAcceleratorOfferingsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeAcceleratorOfferingsOutput) String ¶ added in v0.22.0
func (s DescribeAcceleratorOfferingsOutput) String() string
String returns the string representation
type DescribeAcceleratorOfferingsRequest ¶ added in v0.22.0
type DescribeAcceleratorOfferingsRequest struct { *aws.Request Input *DescribeAcceleratorOfferingsInput Copy func(*DescribeAcceleratorOfferingsInput) DescribeAcceleratorOfferingsRequest }
DescribeAcceleratorOfferingsRequest is the request type for the DescribeAcceleratorOfferings API operation.
func (DescribeAcceleratorOfferingsRequest) Send ¶ added in v0.22.0
func (r DescribeAcceleratorOfferingsRequest) Send(ctx context.Context) (*DescribeAcceleratorOfferingsResponse, error)
Send marshals and sends the DescribeAcceleratorOfferings API request.
type DescribeAcceleratorOfferingsResponse ¶ added in v0.22.0
type DescribeAcceleratorOfferingsResponse struct { *DescribeAcceleratorOfferingsOutput // contains filtered or unexported fields }
DescribeAcceleratorOfferingsResponse is the response type for the DescribeAcceleratorOfferings API operation.
func (*DescribeAcceleratorOfferingsResponse) SDKResponseMetdata ¶ added in v0.22.0
func (r *DescribeAcceleratorOfferingsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeAcceleratorOfferings request.
type DescribeAcceleratorTypesInput ¶ added in v0.22.0
type DescribeAcceleratorTypesInput struct {
// contains filtered or unexported fields
}
func (DescribeAcceleratorTypesInput) MarshalFields ¶ added in v0.22.0
func (s DescribeAcceleratorTypesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeAcceleratorTypesInput) String ¶ added in v0.22.0
func (s DescribeAcceleratorTypesInput) String() string
String returns the string representation
type DescribeAcceleratorTypesOutput ¶ added in v0.22.0
type DescribeAcceleratorTypesOutput struct { // The available accelerator types. AcceleratorTypes []AcceleratorType `locationName:"acceleratorTypes" type:"list"` // contains filtered or unexported fields }
func (DescribeAcceleratorTypesOutput) MarshalFields ¶ added in v0.22.0
func (s DescribeAcceleratorTypesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeAcceleratorTypesOutput) String ¶ added in v0.22.0
func (s DescribeAcceleratorTypesOutput) String() string
String returns the string representation
type DescribeAcceleratorTypesRequest ¶ added in v0.22.0
type DescribeAcceleratorTypesRequest struct { *aws.Request Input *DescribeAcceleratorTypesInput Copy func(*DescribeAcceleratorTypesInput) DescribeAcceleratorTypesRequest }
DescribeAcceleratorTypesRequest is the request type for the DescribeAcceleratorTypes API operation.
func (DescribeAcceleratorTypesRequest) Send ¶ added in v0.22.0
func (r DescribeAcceleratorTypesRequest) Send(ctx context.Context) (*DescribeAcceleratorTypesResponse, error)
Send marshals and sends the DescribeAcceleratorTypes API request.
type DescribeAcceleratorTypesResponse ¶ added in v0.22.0
type DescribeAcceleratorTypesResponse struct { *DescribeAcceleratorTypesOutput // contains filtered or unexported fields }
DescribeAcceleratorTypesResponse is the response type for the DescribeAcceleratorTypes API operation.
func (*DescribeAcceleratorTypesResponse) SDKResponseMetdata ¶ added in v0.22.0
func (r *DescribeAcceleratorTypesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeAcceleratorTypes request.
type DescribeAcceleratorsInput ¶ added in v0.22.0
type DescribeAcceleratorsInput struct { // The IDs of the accelerators to describe. AcceleratorIds []string `locationName:"acceleratorIds" type:"list"` // One or more filters. Filter names and values are case-sensitive. Valid filter // names are: accelerator-types: can provide a list of accelerator type names // to filter for. instance-id: can provide a list of EC2 instance ids to filter // for. Filters []Filter `locationName:"filters" type:"list"` // The total number of items to return in the command's output. If the total // number of items available is more than the value specified, a NextToken is // provided in the command's output. To resume pagination, provide the NextToken // value in the starting-token argument of a subsequent command. Do not use // the NextToken response element directly outside of the AWS CLI. MaxResults *int64 `locationName:"maxResults" type:"integer"` // A token to specify where to start paginating. This is the NextToken from // a previously truncated response. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // contains filtered or unexported fields }
func (DescribeAcceleratorsInput) MarshalFields ¶ added in v0.22.0
func (s DescribeAcceleratorsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeAcceleratorsInput) String ¶ added in v0.22.0
func (s DescribeAcceleratorsInput) String() string
String returns the string representation
func (*DescribeAcceleratorsInput) Validate ¶ added in v0.22.0
func (s *DescribeAcceleratorsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeAcceleratorsOutput ¶ added in v0.22.0
type DescribeAcceleratorsOutput struct { // The details of the Elastic Inference Accelerators. AcceleratorSet []ElasticInferenceAccelerator `locationName:"acceleratorSet" type:"list"` // A token to specify where to start paginating. This is the NextToken from // a previously truncated response. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // contains filtered or unexported fields }
func (DescribeAcceleratorsOutput) MarshalFields ¶ added in v0.22.0
func (s DescribeAcceleratorsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeAcceleratorsOutput) String ¶ added in v0.22.0
func (s DescribeAcceleratorsOutput) String() string
String returns the string representation
type DescribeAcceleratorsPaginator ¶ added in v0.22.0
DescribeAcceleratorsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewDescribeAcceleratorsPaginator ¶ added in v0.22.0
func NewDescribeAcceleratorsPaginator(req DescribeAcceleratorsRequest) DescribeAcceleratorsPaginator
NewDescribeAcceleratorsRequestPaginator returns a paginator for DescribeAccelerators. 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.DescribeAcceleratorsRequest(input) p := elasticinference.NewDescribeAcceleratorsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*DescribeAcceleratorsPaginator) CurrentPage ¶ added in v0.22.0
func (p *DescribeAcceleratorsPaginator) CurrentPage() *DescribeAcceleratorsOutput
type DescribeAcceleratorsRequest ¶ added in v0.22.0
type DescribeAcceleratorsRequest struct { *aws.Request Input *DescribeAcceleratorsInput Copy func(*DescribeAcceleratorsInput) DescribeAcceleratorsRequest }
DescribeAcceleratorsRequest is the request type for the DescribeAccelerators API operation.
func (DescribeAcceleratorsRequest) Send ¶ added in v0.22.0
func (r DescribeAcceleratorsRequest) Send(ctx context.Context) (*DescribeAcceleratorsResponse, error)
Send marshals and sends the DescribeAccelerators API request.
type DescribeAcceleratorsResponse ¶ added in v0.22.0
type DescribeAcceleratorsResponse struct { *DescribeAcceleratorsOutput // contains filtered or unexported fields }
DescribeAcceleratorsResponse is the response type for the DescribeAccelerators API operation.
func (*DescribeAcceleratorsResponse) SDKResponseMetdata ¶ added in v0.22.0
func (r *DescribeAcceleratorsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeAccelerators request.
type ElasticInferenceAccelerator ¶ added in v0.22.0
type ElasticInferenceAccelerator struct { // The health of the Elastic Inference Accelerator. AcceleratorHealth *ElasticInferenceAcceleratorHealth `locationName:"acceleratorHealth" type:"structure"` // The ID of the Elastic Inference Accelerator. AcceleratorId *string `locationName:"acceleratorId" min:"1" type:"string"` // The type of the Elastic Inference Accelerator. AcceleratorType *string `locationName:"acceleratorType" min:"1" type:"string"` // The ARN of the resource that the Elastic Inference Accelerator is attached // to. AttachedResource *string `locationName:"attachedResource" min:"1" type:"string"` // The availability zone where the Elastic Inference Accelerator is present. AvailabilityZone *string `locationName:"availabilityZone" min:"1" type:"string"` // contains filtered or unexported fields }
The details of an Elastic Inference Accelerator.
func (ElasticInferenceAccelerator) MarshalFields ¶ added in v0.22.0
func (s ElasticInferenceAccelerator) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ElasticInferenceAccelerator) String ¶ added in v0.22.0
func (s ElasticInferenceAccelerator) String() string
String returns the string representation
type ElasticInferenceAcceleratorHealth ¶ added in v0.22.0
type ElasticInferenceAcceleratorHealth struct { // The health status of the Elastic Inference Accelerator. Status *string `locationName:"status" min:"1" type:"string"` // contains filtered or unexported fields }
The health details of an Elastic Inference Accelerator.
func (ElasticInferenceAcceleratorHealth) MarshalFields ¶ added in v0.22.0
func (s ElasticInferenceAcceleratorHealth) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ElasticInferenceAcceleratorHealth) String ¶ added in v0.22.0
func (s ElasticInferenceAcceleratorHealth) String() string
String returns the string representation
type Filter ¶ added in v0.22.0
type Filter struct { // The filter name for the Elastic Inference Accelerator list. It can assume // the following values: accelerator-type: the type of Elastic Inference Accelerator // to filter for. instance-id: an EC2 instance id to filter for. Name *string `locationName:"name" min:"1" type:"string"` // The values for the filter of the Elastic Inference Accelerator list. Values []string `locationName:"values" type:"list"` // contains filtered or unexported fields }
A filter expression for the Elastic Inference Accelerator list.
func (Filter) MarshalFields ¶ added in v0.22.0
func (s Filter) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
type KeyValuePair ¶ added in v0.22.0
type KeyValuePair struct { // The throughput value of the Elastic Inference Accelerator type. It can assume // the following values: TFLOPS16bit: the throughput expressed in 16bit TeraFLOPS. // TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS. Key *string `locationName:"key" min:"1" type:"string"` // The throughput value of the Elastic Inference Accelerator type. Value *int64 `locationName:"value" type:"integer"` // contains filtered or unexported fields }
A throughput entry for an Elastic Inference Accelerator type.
func (KeyValuePair) MarshalFields ¶ added in v0.22.0
func (s KeyValuePair) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (KeyValuePair) String ¶ added in v0.22.0
func (s KeyValuePair) String() string
String returns the string representation
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The ARN of the Elastic Inference Accelerator to list the tags for. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (ListTagsForResourceInput) MarshalFields ¶
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListTagsForResourceInput) String ¶
func (s ListTagsForResourceInput) String() string
String returns the string representation
func (*ListTagsForResourceInput) Validate ¶
func (s *ListTagsForResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // The tags of the Elastic Inference Accelerator. Tags map[string]string `locationName:"tags" min:"1" type:"map"` // contains filtered or unexported fields }
func (ListTagsForResourceOutput) MarshalFields ¶
func (s ListTagsForResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListTagsForResourceOutput) String ¶
func (s ListTagsForResourceOutput) String() string
String returns the string representation
type ListTagsForResourceRequest ¶
type ListTagsForResourceRequest struct { *aws.Request Input *ListTagsForResourceInput Copy func(*ListTagsForResourceInput) ListTagsForResourceRequest }
ListTagsForResourceRequest is the request type for the ListTagsForResource API operation.
func (ListTagsForResourceRequest) Send ¶
func (r ListTagsForResourceRequest) Send(ctx context.Context) (*ListTagsForResourceResponse, error)
Send marshals and sends the ListTagsForResource API request.
type ListTagsForResourceResponse ¶
type ListTagsForResourceResponse struct { *ListTagsForResourceOutput // contains filtered or unexported fields }
ListTagsForResourceResponse is the response type for the ListTagsForResource API operation.
func (*ListTagsForResourceResponse) SDKResponseMetdata ¶
func (r *ListTagsForResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListTagsForResource request.
type LocationType ¶ added in v0.22.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.22.0
func (enum LocationType) MarshalValue() (string, error)
func (LocationType) MarshalValueBuf ¶ added in v0.22.0
func (enum LocationType) MarshalValueBuf(b []byte) ([]byte, error)
type MemoryInfo ¶ added in v0.22.0
type MemoryInfo struct { // The size in mebibytes of the Elastic Inference Accelerator type. SizeInMiB *int64 `locationName:"sizeInMiB" type:"integer"` // contains filtered or unexported fields }
The memory information of an Elastic Inference Accelerator type.
func (MemoryInfo) MarshalFields ¶ added in v0.22.0
func (s MemoryInfo) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (MemoryInfo) String ¶ added in v0.22.0
func (s MemoryInfo) String() string
String returns the string representation
type TagResourceInput ¶
type TagResourceInput struct { // The ARN of the Elastic Inference Accelerator to tag. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` // The tags to add to the Elastic Inference Accelerator. // // Tags is a required field Tags map[string]string `locationName:"tags" min:"1" type:"map" required:"true"` // contains filtered or unexported fields }
func (TagResourceInput) MarshalFields ¶
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceInput) String ¶
func (s TagResourceInput) String() string
String returns the string representation
func (*TagResourceInput) Validate ¶
func (s *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceOutput ¶
type TagResourceOutput struct {
// contains filtered or unexported fields
}
func (TagResourceOutput) MarshalFields ¶
func (s TagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceOutput) String ¶
func (s TagResourceOutput) String() string
String returns the string representation
type TagResourceRequest ¶
type TagResourceRequest struct { *aws.Request Input *TagResourceInput Copy func(*TagResourceInput) TagResourceRequest }
TagResourceRequest is the request type for the TagResource API operation.
func (TagResourceRequest) Send ¶
func (r TagResourceRequest) Send(ctx context.Context) (*TagResourceResponse, error)
Send marshals and sends the TagResource API request.
type TagResourceResponse ¶
type TagResourceResponse struct { *TagResourceOutput // contains filtered or unexported fields }
TagResourceResponse is the response type for the TagResource API operation.
func (*TagResourceResponse) SDKResponseMetdata ¶
func (r *TagResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the TagResource request.
type UntagResourceInput ¶
type UntagResourceInput struct { // The ARN of the Elastic Inference Accelerator to untag. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` // The list of tags to remove from the Elastic Inference Accelerator. // // TagKeys is a required field TagKeys []string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
func (UntagResourceInput) MarshalFields ¶
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceInput) String ¶
func (s UntagResourceInput) String() string
String returns the string representation
func (*UntagResourceInput) Validate ¶
func (s *UntagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceOutput ¶
type UntagResourceOutput struct {
// contains filtered or unexported fields
}
func (UntagResourceOutput) MarshalFields ¶
func (s UntagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceOutput) String ¶
func (s UntagResourceOutput) String() string
String returns the string representation
type UntagResourceRequest ¶
type UntagResourceRequest struct { *aws.Request Input *UntagResourceInput Copy func(*UntagResourceInput) UntagResourceRequest }
UntagResourceRequest is the request type for the UntagResource API operation.
func (UntagResourceRequest) Send ¶
func (r UntagResourceRequest) Send(ctx context.Context) (*UntagResourceResponse, error)
Send marshals and sends the UntagResource API request.
type UntagResourceResponse ¶
type UntagResourceResponse struct { *UntagResourceOutput // contains filtered or unexported fields }
UntagResourceResponse is the response type for the UntagResource API operation.
func (*UntagResourceResponse) SDKResponseMetdata ¶
func (r *UntagResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the UntagResource request.
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package elasticinferenceiface provides an interface to enable mocking the Amazon Elastic Inference service client for testing your code.
|
Package elasticinferenceiface provides an interface to enable mocking the Amazon Elastic Inference service client for testing your code. |