Documentation
¶
Index ¶
- type AuditLog
- type AuditLogsRequest
- type AuditLogsResponse
- type Client
- type ClientFilter
- type Operation
- type OperationFilter
- type RequestFilters
- type RequestPaginationContext
- type Requester
- type RequesterFilter
- type Resource
- type ResourceFilter
- type ResourceTypeEnum
- type ResponsePaginationContext
- type SortDirection
- type SortField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLog ¶
type AuditLog struct {
// UUID that identifies a specific request.
XAmznRequestId string `json:"xAmznRequestId,omitempty"`
// Date-Time when the request was made.
Timestamp time.Time `json:"timestamp,omitempty"`
Client *Client `json:"client,omitempty"`
Operation *Operation `json:"operation,omitempty"`
// Contains information about the resources affected in this request.
Resources []*Resource `json:"resources,omitempty"`
Requester *Requester `json:"requester,omitempty"`
// HTTP Status Code returned by this request.
HttpResponseCode int `json:"httpResponseCode,omitempty"`
}
type AuditLogsRequest ¶
type AuditLogsRequest struct {
// Vendor Id. See developer.amazon.com/mycid.html.
VendorId string `json:"vendorId,omitempty"`
RequestFilters *RequestFilters `json:"requestFilters,omitempty"`
SortDirection *SortDirection `json:"sortDirection,omitempty"`
SortField *SortField `json:"sortField,omitempty"`
PaginationContext *RequestPaginationContext `json:"paginationContext,omitempty"`
}
type AuditLogsResponse ¶
type AuditLogsResponse struct {
PaginationContext *ResponsePaginationContext `json:"paginationContext,omitempty"`
// List of audit logs for the vendor.
AuditLogs []*AuditLog `json:"auditLogs,omitempty"`
}
AuditLogsResponse Response to the Query Audit Logs API. It contains the collection of audit logs for the vendor, nextToken and other metadata related to the search query.
type ClientFilter ¶
type ClientFilter struct {
Id string `json:"id,omitempty"`
}
ClientFilter Identifier for the application the developer used to manage their skills and skill-related resources. For OAuth applications, this is the OAuth Client Id.
type Operation ¶
type Operation struct {
Name string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
}
Operation Object containing name and version.
type OperationFilter ¶
type OperationFilter struct {
Name string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
}
OperationFilter Name and version of the operation that the developer performed. For example, 'deleteSkill' and 'v1'. This is the same name used in the SMAPI SDK.
type RequestFilters ¶
type RequestFilters struct {
// List of Client IDs for filtering.
Clients []*ClientFilter `json:"clients,omitempty"`
// Filters for a list of operation names and versions.
Operations []*OperationFilter `json:"operations,omitempty"`
// Filters for a list of resources and/or their types. See documentation for allowed types.
Resources []*ResourceFilter `json:"resources,omitempty"`
Requesters []*RequesterFilter `json:"requesters,omitempty"`
// Sets the start time for this search. Any audit logs with timestamps after this time (inclusive) will be included in the response.
StartTime time.Time `json:"startTime,omitempty"`
// Sets the end time for this search. Any audit logs with timestamps before this time (exclusive) will be included in the result.
EndTime time.Time `json:"endTime,omitempty"`
// Filters for HTTP response codes. For example, '200' or '503'
HttpResponseCodes []string `json:"httpResponseCodes,omitempty"`
}
RequestFilters Request Filters for filtering audit logs.
type RequestPaginationContext ¶
type RequestPaginationContext struct {
// When the response to this API call is truncated, the response includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that this API understands. Token has expiry of 1 hour.
NextToken string `json:"nextToken,omitempty"`
// Sets the maximum number of results returned in the response body. If you want to retrieve more or less than the default of 50 results, you can add this parameter to your request. maxResults can exceed the upper limit of 250 but we will not return more items than that. The response might contain fewer results than maxResults for purpose of keeping SLA or because there are not enough items, but it will never contain more.
MaxResults int `json:"maxResults,omitempty"`
}
RequestPaginationContext This object includes nextToken and maxResults.
type Requester ¶
type Requester struct {
// LWA User ID. https://developer.amazon.com/docs/login-with-amazon/obtain-customer-profile.html
UserId string `json:"userId,omitempty"`
}
Requester The user that performed the operation.
type RequesterFilter ¶
type RequesterFilter struct {
// LoginWithAmazon User ID.
UserId string `json:"userId,omitempty"`
}
RequesterFilter Filter for the requester of the operation.
type Resource ¶
Resource Resource that the developer operated on. This includes both the type and ID of the resource.
type ResourceFilter ¶
type ResourceFilter struct {
Id string `json:"id,omitempty"`
Type_ *ResourceTypeEnum `json:"type,omitempty"`
}
ResourceFilter Resource that the developer operated on. Both do not need to be provided.
type ResourceTypeEnum ¶
type ResourceTypeEnum string
func ResourceTypeEnum_Export ¶
func ResourceTypeEnum_Export() ResourceTypeEnum
func ResourceTypeEnum_Import ¶
func ResourceTypeEnum_Import() ResourceTypeEnum
func ResourceTypeEnum_InSkillProduct ¶
func ResourceTypeEnum_InSkillProduct() ResourceTypeEnum
func ResourceTypeEnum_Skill ¶
func ResourceTypeEnum_Skill() ResourceTypeEnum
func ResourceTypeEnum_SkillCatalog ¶
func ResourceTypeEnum_SkillCatalog() ResourceTypeEnum
type ResponsePaginationContext ¶
type ResponsePaginationContext struct {
// This token can be used to load the next page of the result.
NextToken string `json:"nextToken,omitempty"`
}
ResponsePaginationContext This object contains the next token used to load the next page of the result.
type SortDirection ¶
type SortDirection string
SortDirection Sets the sorting direction of the result items. When set to 'ASC' these items are returned in ascending order of sortField value and when set to 'DESC' these items are returned in descending order of sortField value.
func SortDirection_ASC ¶
func SortDirection_ASC() SortDirection
func SortDirection_DESC ¶
func SortDirection_DESC() SortDirection
type SortField ¶
type SortField string
SortField Sets the field on which the sorting would be applied.
func SortField_Clientid ¶
func SortField_Clientid() SortField
func SortField_HttpResponseCode ¶
func SortField_HttpResponseCode() SortField
func SortField_Operation ¶
func SortField_Operation() SortField
func SortField_RequesteruserId ¶
func SortField_RequesteruserId() SortField
func SortField_Resourceid ¶
func SortField_Resourceid() SortField
func SortField_Resourcetype ¶
func SortField_Resourcetype() SortField
func SortField_Timestamp ¶
func SortField_Timestamp() SortField