Sharing policy - Amazon API Gateway

Sharing policy

Represents the sharing policy for a portal product.

URI

/v2/portalproducts/portalProductId/sharingpolicy

HTTP methods

GET

Operation ID: GetPortalProductSharingPolicy

Gets the sharing policy for a portal product.

Path parameters
NameTypeRequiredDescription
portalProductIdStringTrue

The portal product identifier.

Responses
Status codeResponse modelDescription
200GetPortalProductSharingPolicyResponseContent

Success

400BadRequestExceptionResponseContent

One of the parameters in the request is invalid.

403AccessDeniedExceptionResponseContent

403 response

404NotFoundExceptionResponseContent

The resource specified in the request was not found.

429LimitExceededExceptionResponseContent

The client is sending more than the allowed number of requests per unit of time.

PUT

Operation ID: PutPortalProductSharingPolicy

Updates the sharing policy for a portal product.

Path parameters
NameTypeRequiredDescription
portalProductIdStringTrue

The portal product identifier.

Responses
Status codeResponse modelDescription
200None

200 response

400BadRequestExceptionResponseContent

One of the parameters in the request is invalid.

403AccessDeniedExceptionResponseContent

403 response

404NotFoundExceptionResponseContent

The resource specified in the request was not found.

429LimitExceededExceptionResponseContent

The client is sending more than the allowed number of requests per unit of time.

DELETE

Operation ID: DeletePortalProductSharingPolicy

Deletes the sharing policy for a portal product.

Path parameters
NameTypeRequiredDescription
portalProductIdStringTrue

The portal product identifier.

Responses
Status codeResponse modelDescription
204None

The request has succeeded, and there is no additional content to send in the response payload body.

400BadRequestExceptionResponseContent

One of the parameters in the request is invalid.

403AccessDeniedExceptionResponseContent

403 response

404NotFoundExceptionResponseContent

The resource specified in the request was not found.

429LimitExceededExceptionResponseContent

The client is sending more than the allowed number of requests per unit of time.

Schemas

Request bodies

{ "policyDocument": "string" }

Response bodies

{ "policyDocument": "string", "portalProductId": "string" }
{ "message": "string" }
{ "message": "string" }
{ "message": "string", "resourceType": "string" }
{ "message": "string", "limitType": "string" }

Properties

AccessDeniedExceptionResponseContent

The error message.

PropertyTypeRequiredDescription
message

string

False

The message.

BadRequestExceptionResponseContent

The response content for bad request exception.

PropertyTypeRequiredDescription
message

string

False

The message of the bad request exception response content.

GetPortalProductSharingPolicyResponseContent

Gets a product sharing policy.

PropertyTypeRequiredDescription
policyDocument

string

MinLength: 1

MaxLength: 307200

True

The product sharing policy.

portalProductId

string

Pattern: ^[a-z0-9]+$

MinLength: 10

MaxLength: 30

True

The portal product identifier.

LimitExceededExceptionResponseContent

The response content for limit exceeded exception.

PropertyTypeRequiredDescription
limitType

string

False

The limit type of the limit exceeded exception response content.

message

string

False

The message of the limit exceeded exception response content.

NotFoundExceptionResponseContent

The response content for not found exception.

PropertyTypeRequiredDescription
message

string

False

The message of the not found exception response content.

resourceType

string

False

The resource type of the not found exception response content.

PutPortalProductSharingPolicyRequestContent

The request content.

PropertyTypeRequiredDescription
policyDocument

string

MinLength: 1

MaxLength: 307200

True

The product sharing policy.

See also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

GetPortalProductSharingPolicy

PutPortalProductSharingPolicy

DeletePortalProductSharingPolicy