Struct aws_sdk_sns::client::fluent_builders::CreatePlatformApplication   
        source ·
        [−]pub struct CreatePlatformApplication<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to CreatePlatformApplication.
Creates a platform application object for one of the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging), to which devices and mobile apps may register. You must specify PlatformPrincipal and PlatformCredential attributes when using the CreatePlatformApplication action.
 PlatformPrincipal and PlatformCredential are received from the notification service.
-  For ADM,PlatformPrincipalisclient idandPlatformCredentialisclient secret.
-  For Baidu,PlatformPrincipalisAPI keyandPlatformCredentialissecret key.
-  For APNSandAPNS_SANDBOXusing certificate credentials,PlatformPrincipalisSSL certificateandPlatformCredentialisprivate key.
-  For APNSandAPNS_SANDBOXusing token credentials,PlatformPrincipalissigning key IDandPlatformCredentialissigning key.
-  For GCM(Firebase Cloud Messaging), there is noPlatformPrincipaland thePlatformCredentialisAPI key.
-  For MPNS,PlatformPrincipalisTLS certificateandPlatformCredentialisprivate key.
-  For WNS,PlatformPrincipalisPackage Security IdentifierandPlatformCredentialissecret key.
You can use the returned PlatformApplicationArn as an attribute for the CreatePlatformEndpoint action.
Implementations
impl<C, M, R> CreatePlatformApplication<C, M, R> where
    C: SmithyConnector,
    M: SmithyMiddleware<C>,
    R: NewRequestPolicy, 
impl<C, M, R> CreatePlatformApplication<C, M, R> where
    C: SmithyConnector,
    M: SmithyMiddleware<C>,
    R: NewRequestPolicy, 
pub async fn send(
    self
) -> Result<CreatePlatformApplicationOutput, SdkError<CreatePlatformApplicationError>> where
    R::Policy: SmithyRetryPolicy<CreatePlatformApplicationInputOperationOutputAlias, CreatePlatformApplicationOutput, CreatePlatformApplicationError, CreatePlatformApplicationInputOperationRetryAlias>, 
pub async fn send(
    self
) -> Result<CreatePlatformApplicationOutput, SdkError<CreatePlatformApplicationError>> where
    R::Policy: SmithyRetryPolicy<CreatePlatformApplicationInputOperationOutputAlias, CreatePlatformApplicationOutput, CreatePlatformApplicationError, CreatePlatformApplicationInputOperationRetryAlias>, 
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.
Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.
Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).
Adds a key-value pair to Attributes.
To override the contents of this collection use set_attributes.
For a list of attributes, see SetPlatformApplicationAttributes.
For a list of attributes, see SetPlatformApplicationAttributes.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreatePlatformApplication<C, M, R>
impl<C, M, R> Send for CreatePlatformApplication<C, M, R> where
    C: Send + Sync,
    M: Send + Sync,
    R: Send + Sync, 
impl<C, M, R> Sync for CreatePlatformApplication<C, M, R> where
    C: Send + Sync,
    M: Send + Sync,
    R: Send + Sync, 
impl<C, M, R> Unpin for CreatePlatformApplication<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreatePlatformApplication<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
