Copyright | (c) 2013-2017 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 optionally provide the initial version of the subscription definition or use `CreateSubscriptionDefinitionVersion
` at a later time.
- 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
- The client token used to request idempotent operations.csdInitialVersion
- Information on the initial versioncsdName
- name of the subscription definition
data CreateSubscriptionDefinition Source #
See: createSubscriptionDefinition
smart constructor.
Request Lenses
csdAmznClientToken :: Lens' CreateSubscriptionDefinition (Maybe Text) Source #
The client token used to request idempotent operations.
csdInitialVersion :: Lens' CreateSubscriptionDefinition (Maybe SubscriptionDefinitionVersion) Source #
Information on the initial version
csdName :: Lens' CreateSubscriptionDefinition (Maybe Text) Source #
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
- Latest version arn of the definition.csdrsARN
- Arn of the definition.csdrsName
- Name of the definition.csdrsCreationTimestamp
- Timestamp of when the definition was created.csdrsId
- Id of the definition.csdrsLatestVersion
- Last version of the definition.csdrsLastUpdatedTimestamp
- Last updated timestamp of the definition.csdrsResponseStatus
- -- | The response status code.
data CreateSubscriptionDefinitionResponse Source #
See: createSubscriptionDefinitionResponse
smart constructor.
Response Lenses
csdrsLatestVersionARN :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
Latest version arn of the definition.
csdrsName :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
Name of the definition.
csdrsCreationTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
Timestamp of when the definition was created.
csdrsLatestVersion :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
Last version of the definition.
csdrsLastUpdatedTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
Last updated timestamp of the definition.
csdrsResponseStatus :: Lens' CreateSubscriptionDefinitionResponse Int Source #
- - | The response status code.