pub struct SetPlatformApplicationAttributes { /* private fields */ }Expand description
Fluent builder constructing a request to SetPlatformApplicationAttributes.
Sets the attributes of the platform application object for the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). For more information, see Using Amazon SNS Mobile Push Notifications. For information on configuring attributes for message delivery status, see Using Amazon SNS Application Attributes for Message Delivery Status.
Implementations
sourceimpl SetPlatformApplicationAttributes
impl SetPlatformApplicationAttributes
sourcepub async fn send(
self
) -> Result<SetPlatformApplicationAttributesOutput, SdkError<SetPlatformApplicationAttributesError>>
pub async fn send(
self
) -> Result<SetPlatformApplicationAttributesOutput, SdkError<SetPlatformApplicationAttributesError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn platform_application_arn(self, input: impl Into<String>) -> Self
pub fn platform_application_arn(self, input: impl Into<String>) -> Self
PlatformApplicationArn for SetPlatformApplicationAttributes action.
sourcepub fn set_platform_application_arn(self, input: Option<String>) -> Self
pub fn set_platform_application_arn(self, input: Option<String>) -> Self
PlatformApplicationArn for SetPlatformApplicationAttributes action.
sourcepub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to Attributes.
To override the contents of this collection use set_attributes.
A map of the platform application attributes. Attributes in this map include the following:
-
PlatformCredential– The credential received from the notification service.-
For ADM,
PlatformCredentialis client secret. -
For Apple Services using certificate credentials,
PlatformCredentialis private key. -
For Apple Services using token credentials,
PlatformCredentialis signing key. -
For GCM (Firebase Cloud Messaging),
PlatformCredentialis API key.
-
-
PlatformPrincipal– The principal received from the notification service.-
For ADM,
PlatformPrincipalis client id. -
For Apple Services using certificate credentials,
PlatformPrincipalis SSL certificate. -
For Apple Services using token credentials,
PlatformPrincipalis signing key ID. -
For GCM (Firebase Cloud Messaging), there is no
PlatformPrincipal.
-
-
EventEndpointCreated– Topic ARN to whichEndpointCreatedevent notifications are sent. -
EventEndpointDeleted– Topic ARN to whichEndpointDeletedevent notifications are sent. -
EventEndpointUpdated– Topic ARN to whichEndpointUpdateevent notifications are sent. -
EventDeliveryFailure– Topic ARN to whichDeliveryFailureevent notifications are sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints. -
SuccessFeedbackRoleArn– IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf. -
FailureFeedbackRoleArn– IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf. -
SuccessFeedbackSampleRate– Sample rate percentage (0-100) of successfully delivered messages.
The following attributes only apply to APNs token-based authentication:
-
ApplePlatformTeamID– The identifier that's assigned to your Apple developer account team. -
ApplePlatformBundleID– The bundle identifier that's assigned to your iOS app.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
A map of the platform application attributes. Attributes in this map include the following:
-
PlatformCredential– The credential received from the notification service.-
For ADM,
PlatformCredentialis client secret. -
For Apple Services using certificate credentials,
PlatformCredentialis private key. -
For Apple Services using token credentials,
PlatformCredentialis signing key. -
For GCM (Firebase Cloud Messaging),
PlatformCredentialis API key.
-
-
PlatformPrincipal– The principal received from the notification service.-
For ADM,
PlatformPrincipalis client id. -
For Apple Services using certificate credentials,
PlatformPrincipalis SSL certificate. -
For Apple Services using token credentials,
PlatformPrincipalis signing key ID. -
For GCM (Firebase Cloud Messaging), there is no
PlatformPrincipal.
-
-
EventEndpointCreated– Topic ARN to whichEndpointCreatedevent notifications are sent. -
EventEndpointDeleted– Topic ARN to whichEndpointDeletedevent notifications are sent. -
EventEndpointUpdated– Topic ARN to whichEndpointUpdateevent notifications are sent. -
EventDeliveryFailure– Topic ARN to whichDeliveryFailureevent notifications are sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints. -
SuccessFeedbackRoleArn– IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf. -
FailureFeedbackRoleArn– IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf. -
SuccessFeedbackSampleRate– Sample rate percentage (0-100) of successfully delivered messages.
The following attributes only apply to APNs token-based authentication:
-
ApplePlatformTeamID– The identifier that's assigned to your Apple developer account team. -
ApplePlatformBundleID– The bundle identifier that's assigned to your iOS app.
Trait Implementations
sourceimpl Clone for SetPlatformApplicationAttributes
impl Clone for SetPlatformApplicationAttributes
sourcefn clone(&self) -> SetPlatformApplicationAttributes
fn clone(&self) -> SetPlatformApplicationAttributes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SetPlatformApplicationAttributes
impl Send for SetPlatformApplicationAttributes
impl Sync for SetPlatformApplicationAttributes
impl Unpin for SetPlatformApplicationAttributes
impl !UnwindSafe for SetPlatformApplicationAttributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more