create_notification_subscription
¶
create_notification_subscription(
organization_id: IdType,
endpoint: SubscriptionEndPointType,
protocol: SubscriptionProtocolType,
subscription_type: SubscriptionType,
*,
config_overrides: Optional[WorkDocsClientConfig] = None,
) -> CreateNotificationSubscriptionResponse
Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription.
For more information, see Setting up notifications for an IAM user or role in the Amazon WorkDocs Developer Guide.
Parameters:
-
organization_id(IdType) –The ID of the organization.
-
endpoint(SubscriptionEndPointType) –The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with
https. -
protocol(SubscriptionProtocolType) –The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.
-
subscription_type(SubscriptionType) –The notification type.
Raises:
-
InvalidArgumentException–The pagination marker or limit fields are not valid.
-
ServiceUnavailableException–One or more of the dependencies is unavailable.
-
TooManySubscriptionsException–You've reached the limit on the number of subscriptions for the WorkDocs instance.
-
UnauthorizedResourceAccessException–The caller does not have access to perform the action on the resource.
-
UnknownServiceError–The service returned an error code this client does not model.