API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

type MarketplaceEntitlementService struct { *client.Client }

MarketplaceEntitlementService provides the API operation methods for making requests to AWS Marketplace Entitlement Service. See this package's package overview docs for details on the service.

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


Type: *client.Client



func (c *MarketplaceEntitlementService) GetEntitlements(input *GetEntitlementsInput) (*GetEntitlementsOutput, error)

GetEntitlements API operation for AWS Marketplace Entitlement Service.

GetEntitlements retrieves entitlement values for a given product. The results can be filtered based on customer identifier or product dimensions.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Marketplace Entitlement Service's API operation GetEntitlements for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters in your request was invalid.

  • ErrCodeThrottlingException "ThrottlingException" The calls to the GetEntitlements API are throttled.

  • ErrCodeInternalServiceErrorException "InternalServiceErrorException" An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums.

See also,


func (c *MarketplaceEntitlementService) GetEntitlementsRequest(input *GetEntitlementsInput) (req *request.Request, output *GetEntitlementsOutput)

GetEntitlementsRequest generates a "aws/request.Request" representing the client's request for the GetEntitlements operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetEntitlements for more information on using the GetEntitlements API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetEntitlementsRequest method. req, resp := client.GetEntitlementsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also,


func (c *MarketplaceEntitlementService) GetEntitlementsWithContext(ctx aws.Context, input *GetEntitlementsInput, opts ...request.Option) (*GetEntitlementsOutput, error)

GetEntitlementsWithContext is the same as GetEntitlements with the addition of the ability to pass a context and additional request options.

See GetEntitlements for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

On this page: