Documentation ¶
Index ¶
- Constants
- type CreateRestrictedDataTokenRequest
- func (m *CreateRestrictedDataTokenRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateRestrictedDataTokenRequest) MarshalBinary() ([]byte, error)
- func (m *CreateRestrictedDataTokenRequest) UnmarshalBinary(b []byte) error
- func (m *CreateRestrictedDataTokenRequest) Validate(formats strfmt.Registry) error
- type CreateRestrictedDataTokenResponse
- func (m *CreateRestrictedDataTokenResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateRestrictedDataTokenResponse) MarshalBinary() ([]byte, error)
- func (m *CreateRestrictedDataTokenResponse) UnmarshalBinary(b []byte) error
- func (m *CreateRestrictedDataTokenResponse) Validate(formats strfmt.Registry) error
- type Error
- type ErrorList
- type RestrictedResource
Constants ¶
const ( // RestrictedResourceMethodGET captures enum value "GET" RestrictedResourceMethodGET string = "GET" // RestrictedResourceMethodPUT captures enum value "PUT" RestrictedResourceMethodPUT string = "PUT" // RestrictedResourceMethodPOST captures enum value "POST" RestrictedResourceMethodPOST string = "POST" // RestrictedResourceMethodDELETE captures enum value "DELETE" RestrictedResourceMethodDELETE string = "DELETE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRestrictedDataTokenRequest ¶
type CreateRestrictedDataTokenRequest struct { // A list of restricted resources. // Maximum: 50 // Required: true RestrictedResources []*RestrictedResource `json:"restrictedResources"` // The application ID for the target application to which access is being delegated. TargetApplication string `json:"targetApplication,omitempty"` }
CreateRestrictedDataTokenRequest The request schema for the createRestrictedDataToken operation.
swagger:model CreateRestrictedDataTokenRequest
func (*CreateRestrictedDataTokenRequest) ContextValidate ¶
func (m *CreateRestrictedDataTokenRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this create restricted data token request based on the context it is used
func (*CreateRestrictedDataTokenRequest) MarshalBinary ¶
func (m *CreateRestrictedDataTokenRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateRestrictedDataTokenRequest) UnmarshalBinary ¶
func (m *CreateRestrictedDataTokenRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateRestrictedDataTokenResponse ¶
type CreateRestrictedDataTokenResponse struct { // The lifetime of the Restricted Data Token, in seconds. ExpiresIn int64 `json:"expiresIn,omitempty"` // A Restricted Data Token (RDT). This is a short-lived access token that authorizes calls to restricted operations. Pass this value with the x-amz-access-token header when making subsequent calls to these restricted resources. RestrictedDataToken string `json:"restrictedDataToken,omitempty"` }
CreateRestrictedDataTokenResponse The response schema for the createRestrictedDataToken operation.
swagger:model CreateRestrictedDataTokenResponse
func (*CreateRestrictedDataTokenResponse) ContextValidate ¶
func (m *CreateRestrictedDataTokenResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create restricted data token response based on context it is used
func (*CreateRestrictedDataTokenResponse) MarshalBinary ¶
func (m *CreateRestrictedDataTokenResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateRestrictedDataTokenResponse) UnmarshalBinary ¶
func (m *CreateRestrictedDataTokenResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error struct { // An error code that identifies the type of error that occurred. // Required: true Code *string `json:"code"` // Additional details that can help the caller understand or fix the issue. Details string `json:"details,omitempty"` // A message that describes the error condition. // Required: true Message *string `json:"message"` }
Error An error response returned when the request is unsuccessful.
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ErrorList ¶
type ErrorList struct { // errors Errors []*Error `json:"errors"` }
ErrorList A list of error responses returned when a request is unsuccessful.
swagger:model ErrorList
func (*ErrorList) ContextValidate ¶
ContextValidate validate this error list based on the context it is used
func (*ErrorList) MarshalBinary ¶
MarshalBinary interface implementation
func (*ErrorList) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RestrictedResource ¶
type RestrictedResource struct { // Indicates the type of Personally Identifiable Information requested. This parameter is required only when getting an RDT for use with the getOrder, getOrders, or getOrderItems operation of the Orders API. For more information, see the [Tokens API Use Case Guide](doc:tokens-api-use-case-guide). Possible values include: // - **buyerInfo**. On the order level this includes general identifying information about the buyer and tax-related information. On the order item level this includes gift wrap information and custom order information, if available. // - **shippingAddress**. This includes information for fulfilling orders. // - **buyerTaxInformation**. This includes information for issuing tax invoices. DataElements []string `json:"dataElements"` // The HTTP method in the restricted resource. // Required: true // Enum: [GET PUT POST DELETE] Method *string `json:"method"` // The path in the restricted resource. Here are some path examples: // - “`/orders/v0/orders“`. For getting an RDT for the getOrders operation of the Orders API. For bulk orders. // - “`/orders/v0/orders/123-1234567-1234567“`. For getting an RDT for the getOrder operation of the Orders API. For a specific order. // - “`/orders/v0/orders/123-1234567-1234567/orderItems“`. For getting an RDT for the getOrderItems operation of the Orders API. For the order items in a specific order. // - “`/mfn/v0/shipments/FBA1234ABC5D“`. For getting an RDT for the getShipment operation of the Shipping API. For a specific shipment. // - “`/mfn/v0/shipments/{shipmentId}“`. For getting an RDT for the getShipment operation of the Shipping API. For any of a selling partner's shipments that you specify when you call the getShipment operation. // Required: true Path *string `json:"path"` }
RestrictedResource Model of a restricted resource.
swagger:model RestrictedResource
func (*RestrictedResource) ContextValidate ¶
ContextValidate validates this restricted resource based on context it is used
func (*RestrictedResource) MarshalBinary ¶
func (m *RestrictedResource) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestrictedResource) UnmarshalBinary ¶
func (m *RestrictedResource) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation