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 |
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' {
- arn :: Maybe Text
- creationTimestamp :: Maybe Text
- id :: Maybe Text
- lastUpdatedTimestamp :: Maybe Text
- latestVersion :: Maybe Text
- latestVersionArn :: Maybe Text
- name :: Maybe Text
- httpStatus :: Int
- newCreateCoreDefinitionResponse :: Int -> CreateCoreDefinitionResponse
- createCoreDefinitionResponse_arn :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_creationTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_id :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_latestVersion :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_latestVersionArn :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- createCoreDefinitionResponse_name :: 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.
CreateCoreDefinition
, createCoreDefinition_name
- The name of the core definition.
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:
CreateCoreDefinitionResponse
, createCoreDefinitionResponse_arn
- The ARN of the definition.
CreateCoreDefinitionResponse
, createCoreDefinitionResponse_creationTimestamp
- The time, in milliseconds since the epoch, when the definition was
created.
CreateCoreDefinitionResponse
, createCoreDefinitionResponse_id
- The ID of the definition.
CreateCoreDefinitionResponse
, createCoreDefinitionResponse_lastUpdatedTimestamp
- The time, in milliseconds since the epoch, when the definition was last
updated.
CreateCoreDefinitionResponse
, createCoreDefinitionResponse_latestVersion
- The ID of the latest version associated with the definition.
CreateCoreDefinitionResponse
, createCoreDefinitionResponse_latestVersionArn
- The ARN of the latest version associated with the definition.
CreateCoreDefinition
, createCoreDefinitionResponse_name
- The name of the definition.
$sel:httpStatus:CreateCoreDefinitionResponse'
, createCoreDefinitionResponse_httpStatus
- The response's http status code.
Response Lenses
createCoreDefinitionResponse_arn :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The ARN 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_lastUpdatedTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
createCoreDefinitionResponse_latestVersion :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The ID of the latest version associated with the definition.
createCoreDefinitionResponse_latestVersionArn :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The ARN of the latest version associated with the definition.
createCoreDefinitionResponse_name :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The name of the definition.
createCoreDefinitionResponse_httpStatus :: Lens' CreateCoreDefinitionResponse Int Source #
The response's http status code.