| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.SNS.CreatePlatformApplication
Description
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.
Synopsis
- data CreatePlatformApplication = CreatePlatformApplication' {}
- newCreatePlatformApplication :: Text -> Text -> CreatePlatformApplication
- createPlatformApplication_name :: Lens' CreatePlatformApplication Text
- createPlatformApplication_platform :: Lens' CreatePlatformApplication Text
- createPlatformApplication_attributes :: Lens' CreatePlatformApplication (HashMap Text Text)
- data CreatePlatformApplicationResponse = CreatePlatformApplicationResponse' {}
- newCreatePlatformApplicationResponse :: Int -> CreatePlatformApplicationResponse
- createPlatformApplicationResponse_platformApplicationArn :: Lens' CreatePlatformApplicationResponse (Maybe Text)
- createPlatformApplicationResponse_httpStatus :: Lens' CreatePlatformApplicationResponse Int
Creating a Request
data CreatePlatformApplication Source #
Input for CreatePlatformApplication action.
See: newCreatePlatformApplication smart constructor.
Constructors
| CreatePlatformApplication' | |
Fields
| |
Instances
newCreatePlatformApplication Source #
Arguments
| :: Text | |
| -> Text | |
| -> CreatePlatformApplication |
Create a value of CreatePlatformApplication with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:CreatePlatformApplication', createPlatformApplication_name - 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.
$sel:platform:CreatePlatformApplication', createPlatformApplication_platform - The following platforms are supported: ADM (Amazon Device Messaging),
APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase
Cloud Messaging).
CreatePlatformApplication, createPlatformApplication_attributes - For a list of attributes, see
SetPlatformApplicationAttributes.
Request Lenses
createPlatformApplication_name :: Lens' CreatePlatformApplication Text Source #
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.
createPlatformApplication_platform :: Lens' CreatePlatformApplication Text Source #
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).
createPlatformApplication_attributes :: Lens' CreatePlatformApplication (HashMap Text Text) Source #
For a list of attributes, see SetPlatformApplicationAttributes.
Destructuring the Response
data CreatePlatformApplicationResponse Source #
Response from CreatePlatformApplication action.
See: newCreatePlatformApplicationResponse smart constructor.
Constructors
| CreatePlatformApplicationResponse' | |
Fields
| |
Instances
newCreatePlatformApplicationResponse Source #
Arguments
| :: Int | |
| -> CreatePlatformApplicationResponse |
Create a value of CreatePlatformApplicationResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreatePlatformApplicationResponse, createPlatformApplicationResponse_platformApplicationArn - PlatformApplicationArn is returned.
$sel:httpStatus:CreatePlatformApplicationResponse', createPlatformApplicationResponse_httpStatus - The response's http status code.
Response Lenses
createPlatformApplicationResponse_platformApplicationArn :: Lens' CreatePlatformApplicationResponse (Maybe Text) Source #
PlatformApplicationArn is returned.
createPlatformApplicationResponse_httpStatus :: Lens' CreatePlatformApplicationResponse Int Source #
The response's http status code.