Copyright | (c) 2013-2021 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 |
Creates a subscription definition. You may provide the initial version of the subscription definition now or use ''CreateSubscriptionDefinitionVersion'' at a later time.
Synopsis
- data CreateSubscriptionDefinition = CreateSubscriptionDefinition' {}
- newCreateSubscriptionDefinition :: CreateSubscriptionDefinition
- createSubscriptionDefinition_amznClientToken :: Lens' CreateSubscriptionDefinition (Maybe Text)
- createSubscriptionDefinition_initialVersion :: Lens' CreateSubscriptionDefinition (Maybe SubscriptionDefinitionVersion)
- createSubscriptionDefinition_name :: Lens' CreateSubscriptionDefinition (Maybe Text)
- createSubscriptionDefinition_tags :: Lens' CreateSubscriptionDefinition (Maybe (HashMap Text Text))
- data CreateSubscriptionDefinitionResponse = CreateSubscriptionDefinitionResponse' {
- latestVersionArn :: Maybe Text
- arn :: Maybe Text
- name :: Maybe Text
- creationTimestamp :: Maybe Text
- id :: Maybe Text
- latestVersion :: Maybe Text
- lastUpdatedTimestamp :: Maybe Text
- httpStatus :: Int
- newCreateSubscriptionDefinitionResponse :: Int -> CreateSubscriptionDefinitionResponse
- createSubscriptionDefinitionResponse_latestVersionArn :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_arn :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_name :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_creationTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_id :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_latestVersion :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_httpStatus :: Lens' CreateSubscriptionDefinitionResponse Int
Creating a Request
data CreateSubscriptionDefinition Source #
See: newCreateSubscriptionDefinition
smart constructor.
CreateSubscriptionDefinition' | |
|
Instances
newCreateSubscriptionDefinition :: CreateSubscriptionDefinition Source #
Create a value of CreateSubscriptionDefinition
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:amznClientToken:CreateSubscriptionDefinition'
, createSubscriptionDefinition_amznClientToken
- A client token used to correlate requests and responses.
$sel:initialVersion:CreateSubscriptionDefinition'
, createSubscriptionDefinition_initialVersion
- Information about the initial version of the subscription definition.
$sel:name:CreateSubscriptionDefinition'
, createSubscriptionDefinition_name
- The name of the subscription definition.
$sel:tags:CreateSubscriptionDefinition'
, createSubscriptionDefinition_tags
- Tag(s) to add to the new resource.
Request Lenses
createSubscriptionDefinition_amznClientToken :: Lens' CreateSubscriptionDefinition (Maybe Text) Source #
A client token used to correlate requests and responses.
createSubscriptionDefinition_initialVersion :: Lens' CreateSubscriptionDefinition (Maybe SubscriptionDefinitionVersion) Source #
Information about the initial version of the subscription definition.
createSubscriptionDefinition_name :: Lens' CreateSubscriptionDefinition (Maybe Text) Source #
The name of the subscription definition.
createSubscriptionDefinition_tags :: Lens' CreateSubscriptionDefinition (Maybe (HashMap Text Text)) Source #
Tag(s) to add to the new resource.
Destructuring the Response
data CreateSubscriptionDefinitionResponse Source #
See: newCreateSubscriptionDefinitionResponse
smart constructor.
CreateSubscriptionDefinitionResponse' | |
|
Instances
newCreateSubscriptionDefinitionResponse Source #
Create a value of CreateSubscriptionDefinitionResponse
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:latestVersionArn:CreateSubscriptionDefinitionResponse'
, createSubscriptionDefinitionResponse_latestVersionArn
- The ARN of the latest version associated with the definition.
$sel:arn:CreateSubscriptionDefinitionResponse'
, createSubscriptionDefinitionResponse_arn
- The ARN of the definition.
$sel:name:CreateSubscriptionDefinition'
, createSubscriptionDefinitionResponse_name
- The name of the definition.
$sel:creationTimestamp:CreateSubscriptionDefinitionResponse'
, createSubscriptionDefinitionResponse_creationTimestamp
- The time, in milliseconds since the epoch, when the definition was
created.
$sel:id:CreateSubscriptionDefinitionResponse'
, createSubscriptionDefinitionResponse_id
- The ID of the definition.
$sel:latestVersion:CreateSubscriptionDefinitionResponse'
, createSubscriptionDefinitionResponse_latestVersion
- The ID of the latest version associated with the definition.
$sel:lastUpdatedTimestamp:CreateSubscriptionDefinitionResponse'
, createSubscriptionDefinitionResponse_lastUpdatedTimestamp
- The time, in milliseconds since the epoch, when the definition was last
updated.
$sel:httpStatus:CreateSubscriptionDefinitionResponse'
, createSubscriptionDefinitionResponse_httpStatus
- The response's http status code.
Response Lenses
createSubscriptionDefinitionResponse_latestVersionArn :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The ARN of the latest version associated with the definition.
createSubscriptionDefinitionResponse_arn :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The ARN of the definition.
createSubscriptionDefinitionResponse_name :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The name of the definition.
createSubscriptionDefinitionResponse_creationTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was created.
createSubscriptionDefinitionResponse_id :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The ID of the definition.
createSubscriptionDefinitionResponse_latestVersion :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The ID of the latest version associated with the definition.
createSubscriptionDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
createSubscriptionDefinitionResponse_httpStatus :: Lens' CreateSubscriptionDefinitionResponse Int Source #
The response's http status code.