| 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.Greengrass.CreateSubscriptionDefinition
Description
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' {
- arn :: Maybe Text
- creationTimestamp :: Maybe Text
- id :: Maybe Text
- lastUpdatedTimestamp :: Maybe Text
- latestVersion :: Maybe Text
- latestVersionArn :: Maybe Text
- name :: Maybe Text
- httpStatus :: Int
- newCreateSubscriptionDefinitionResponse :: Int -> CreateSubscriptionDefinitionResponse
- createSubscriptionDefinitionResponse_arn :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_creationTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_id :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_latestVersion :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_latestVersionArn :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_name :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text)
- createSubscriptionDefinitionResponse_httpStatus :: Lens' CreateSubscriptionDefinitionResponse Int
Creating a Request
data CreateSubscriptionDefinition Source #
See: newCreateSubscriptionDefinition smart constructor.
Constructors
| CreateSubscriptionDefinition' | |
Fields
| |
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.
CreateSubscriptionDefinition, createSubscriptionDefinition_name - The name of the subscription definition.
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.
Constructors
| CreateSubscriptionDefinitionResponse' | |
Fields
| |
Instances
newCreateSubscriptionDefinitionResponse Source #
Arguments
| :: Int | |
| -> CreateSubscriptionDefinitionResponse |
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:
CreateSubscriptionDefinitionResponse, createSubscriptionDefinitionResponse_arn - The ARN of the definition.
CreateSubscriptionDefinitionResponse, createSubscriptionDefinitionResponse_creationTimestamp - The time, in milliseconds since the epoch, when the definition was
created.
CreateSubscriptionDefinitionResponse, createSubscriptionDefinitionResponse_id - The ID of the definition.
CreateSubscriptionDefinitionResponse, createSubscriptionDefinitionResponse_lastUpdatedTimestamp - The time, in milliseconds since the epoch, when the definition was last
updated.
CreateSubscriptionDefinitionResponse, createSubscriptionDefinitionResponse_latestVersion - The ID of the latest version associated with the definition.
CreateSubscriptionDefinitionResponse, createSubscriptionDefinitionResponse_latestVersionArn - The ARN of the latest version associated with the definition.
CreateSubscriptionDefinition, createSubscriptionDefinitionResponse_name - The name of the definition.
$sel:httpStatus:CreateSubscriptionDefinitionResponse', createSubscriptionDefinitionResponse_httpStatus - The response's http status code.
Response Lenses
createSubscriptionDefinitionResponse_arn :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The ARN 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_lastUpdatedTimestamp :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
createSubscriptionDefinitionResponse_latestVersion :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The ID of the latest version associated with the definition.
createSubscriptionDefinitionResponse_latestVersionArn :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The ARN of the latest version associated with the definition.
createSubscriptionDefinitionResponse_name :: Lens' CreateSubscriptionDefinitionResponse (Maybe Text) Source #
The name of the definition.
createSubscriptionDefinitionResponse_httpStatus :: Lens' CreateSubscriptionDefinitionResponse Int Source #
The response's http status code.