Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a subscription definition. You may provide the initial version of the subscription definition now or use 'CreateSubscriptionDefinitionVersion'
at a later time.
Synopsis
- createSubscriptionDefinition :: CreateSubscriptionDefinition
- data CreateSubscriptionDefinition
- csdAmznClientToken :: Lens' CreateSubscriptionDefinition (Maybe Text)
- csdInitialVersion :: Lens' CreateSubscriptionDefinition (Maybe SubscriptionDefinitionVersion)
- csdName :: Lens' CreateSubscriptionDefinition (Maybe Text)
- createSubscriptionDefinitionResponse :: Int -> CreateSubscriptionDefinitionResponse
- data CreateSubscriptionDefinitionResponse
- csdrsLatestVersionARN :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- csdrsARN :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- csdrsName :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- csdrsCreationTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- csdrsId :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- csdrsLatestVersion :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- csdrsLastUpdatedTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- csdrsResponseStatus :: Lens' CreateSubscriptionDefinitionResponse Int
Creating a Request
createSubscriptionDefinition :: CreateSubscriptionDefinition Source #
Creates a value of CreateSubscriptionDefinition
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csdAmznClientToken
- A client token used to correlate requests and responses.csdInitialVersion
- Information about the initial version of the subscription definition.csdName
- The name of the subscription definition.
data CreateSubscriptionDefinition Source #
See: createSubscriptionDefinition
smart constructor.
Instances
Request Lenses
csdAmznClientToken :: Lens' CreateSubscriptionDefinition (Maybe Text) Source #
A client token used to correlate requests and responses.
csdInitialVersion :: Lens' CreateSubscriptionDefinition (Maybe SubscriptionDefinitionVersion) Source #
Information about the initial version of the subscription definition.
csdName :: Lens' CreateSubscriptionDefinition (Maybe Text) Source #
The name of the subscription definition.
Destructuring the Response
createSubscriptionDefinitionResponse Source #
Creates a value of CreateSubscriptionDefinitionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csdrsLatestVersionARN
- The ARN of the latest version of the definition.csdrsARN
- The ARN of the definition.csdrsName
- The name of the definition.csdrsCreationTimestamp
- The time, in milliseconds since the epoch, when the definition was created.csdrsId
- The ID of the definition.csdrsLatestVersion
- The latest version of the definition.csdrsLastUpdatedTimestamp
- The time, in milliseconds since the epoch, when the definition was last updated.csdrsResponseStatus
- -- | The response status code.
data CreateSubscriptionDefinitionResponse Source #
See: createSubscriptionDefinitionResponse
smart constructor.
Instances
Response Lenses
csdrsLatestVersionARN :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The ARN of the latest version of the definition.
csdrsARN :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The ARN of the definition.
csdrsName :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The name of the definition.
csdrsCreationTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was created.
csdrsId :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The ID of the definition.
csdrsLatestVersion :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The latest version of the definition.
csdrsLastUpdatedTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
csdrsResponseStatus :: Lens' CreateSubscriptionDefinitionResponse Int Source #
- - | The response status code.