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 core definition. You may provide the initial version of the core definition now or use ''CreateCoreDefinitionVersion'' at a later time. Greengrass groups must each contain exactly one Greengrass core.
Synopsis
- data CreateCoreDefinition = CreateCoreDefinition' {}
- newCreateCoreDefinition :: CreateCoreDefinition
- createCoreDefinition_amznClientToken :: Lens' CreateCoreDefinition (Maybe Text)
- createCoreDefinition_initialVersion :: Lens' CreateCoreDefinition (Maybe CoreDefinitionVersion)
- createCoreDefinition_name :: Lens' CreateCoreDefinition (Maybe Text)
- createCoreDefinition_tags :: Lens' CreateCoreDefinition (Maybe (HashMap Text Text))
- data CreateCoreDefinitionResponse = CreateCoreDefinitionResponse' {
- latestVersionArn :: Maybe Text
- arn :: Maybe Text
- name :: Maybe Text
- creationTimestamp :: Maybe Text
- id :: Maybe Text
- latestVersion :: Maybe Text
- lastUpdatedTimestamp :: Maybe Text
- httpStatus :: Int
- newCreateCoreDefinitionResponse :: Int -> CreateCoreDefinitionResponse
- createCoreDefinitionResponse_latestVersionArn :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_arn :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_name :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_creationTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_id :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_latestVersion :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_httpStatus :: Lens' CreateCoreDefinitionResponse Int
Creating a Request
data CreateCoreDefinition Source #
Information needed to create a core definition.
See: newCreateCoreDefinition
smart constructor.
CreateCoreDefinition' | |
|
Instances
newCreateCoreDefinition :: CreateCoreDefinition Source #
Create a value of CreateCoreDefinition
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:CreateCoreDefinition'
, createCoreDefinition_amznClientToken
- A client token used to correlate requests and responses.
$sel:initialVersion:CreateCoreDefinition'
, createCoreDefinition_initialVersion
- Information about the initial version of the core definition.
$sel:name:CreateCoreDefinition'
, createCoreDefinition_name
- The name of the core definition.
$sel:tags:CreateCoreDefinition'
, createCoreDefinition_tags
- Tag(s) to add to the new resource.
Request Lenses
createCoreDefinition_amznClientToken :: Lens' CreateCoreDefinition (Maybe Text) Source #
A client token used to correlate requests and responses.
createCoreDefinition_initialVersion :: Lens' CreateCoreDefinition (Maybe CoreDefinitionVersion) Source #
Information about the initial version of the core definition.
createCoreDefinition_name :: Lens' CreateCoreDefinition (Maybe Text) Source #
The name of the core definition.
createCoreDefinition_tags :: Lens' CreateCoreDefinition (Maybe (HashMap Text Text)) Source #
Tag(s) to add to the new resource.
Destructuring the Response
data CreateCoreDefinitionResponse Source #
See: newCreateCoreDefinitionResponse
smart constructor.
CreateCoreDefinitionResponse' | |
|
Instances
newCreateCoreDefinitionResponse Source #
Create a value of CreateCoreDefinitionResponse
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:CreateCoreDefinitionResponse'
, createCoreDefinitionResponse_latestVersionArn
- The ARN of the latest version associated with the definition.
$sel:arn:CreateCoreDefinitionResponse'
, createCoreDefinitionResponse_arn
- The ARN of the definition.
$sel:name:CreateCoreDefinition'
, createCoreDefinitionResponse_name
- The name of the definition.
$sel:creationTimestamp:CreateCoreDefinitionResponse'
, createCoreDefinitionResponse_creationTimestamp
- The time, in milliseconds since the epoch, when the definition was
created.
$sel:id:CreateCoreDefinitionResponse'
, createCoreDefinitionResponse_id
- The ID of the definition.
$sel:latestVersion:CreateCoreDefinitionResponse'
, createCoreDefinitionResponse_latestVersion
- The ID of the latest version associated with the definition.
$sel:lastUpdatedTimestamp:CreateCoreDefinitionResponse'
, createCoreDefinitionResponse_lastUpdatedTimestamp
- The time, in milliseconds since the epoch, when the definition was last
updated.
$sel:httpStatus:CreateCoreDefinitionResponse'
, createCoreDefinitionResponse_httpStatus
- The response's http status code.
Response Lenses
createCoreDefinitionResponse_latestVersionArn :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The ARN of the latest version associated with the definition.
createCoreDefinitionResponse_arn :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The ARN of the definition.
createCoreDefinitionResponse_name :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The name of the definition.
createCoreDefinitionResponse_creationTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was created.
createCoreDefinitionResponse_id :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The ID of the definition.
createCoreDefinitionResponse_latestVersion :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The ID of the latest version associated with the definition.
createCoreDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
createCoreDefinitionResponse_httpStatus :: Lens' CreateCoreDefinitionResponse Int Source #
The response's http status code.