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 version of a core definition that has already been defined. Greengrass groups must each contain exactly one Greengrass core.
Synopsis
- data CreateCoreDefinitionVersion = CreateCoreDefinitionVersion' {
- amznClientToken :: Maybe Text
- cores :: Maybe [Core]
- coreDefinitionId :: Text
- newCreateCoreDefinitionVersion :: Text -> CreateCoreDefinitionVersion
- createCoreDefinitionVersion_amznClientToken :: Lens' CreateCoreDefinitionVersion (Maybe Text)
- createCoreDefinitionVersion_cores :: Lens' CreateCoreDefinitionVersion (Maybe [Core])
- createCoreDefinitionVersion_coreDefinitionId :: Lens' CreateCoreDefinitionVersion Text
- data CreateCoreDefinitionVersionResponse = CreateCoreDefinitionVersionResponse' {}
- newCreateCoreDefinitionVersionResponse :: Int -> CreateCoreDefinitionVersionResponse
- createCoreDefinitionVersionResponse_arn :: Lens' CreateCoreDefinitionVersionResponse (Maybe Text)
- createCoreDefinitionVersionResponse_creationTimestamp :: Lens' CreateCoreDefinitionVersionResponse (Maybe Text)
- createCoreDefinitionVersionResponse_version :: Lens' CreateCoreDefinitionVersionResponse (Maybe Text)
- createCoreDefinitionVersionResponse_id :: Lens' CreateCoreDefinitionVersionResponse (Maybe Text)
- createCoreDefinitionVersionResponse_httpStatus :: Lens' CreateCoreDefinitionVersionResponse Int
Creating a Request
data CreateCoreDefinitionVersion Source #
See: newCreateCoreDefinitionVersion
smart constructor.
CreateCoreDefinitionVersion' | |
|
Instances
newCreateCoreDefinitionVersion Source #
Create a value of CreateCoreDefinitionVersion
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:CreateCoreDefinitionVersion'
, createCoreDefinitionVersion_amznClientToken
- A client token used to correlate requests and responses.
$sel:cores:CreateCoreDefinitionVersion'
, createCoreDefinitionVersion_cores
- A list of cores in the core definition version.
$sel:coreDefinitionId:CreateCoreDefinitionVersion'
, createCoreDefinitionVersion_coreDefinitionId
- The ID of the core definition.
Request Lenses
createCoreDefinitionVersion_amznClientToken :: Lens' CreateCoreDefinitionVersion (Maybe Text) Source #
A client token used to correlate requests and responses.
createCoreDefinitionVersion_cores :: Lens' CreateCoreDefinitionVersion (Maybe [Core]) Source #
A list of cores in the core definition version.
createCoreDefinitionVersion_coreDefinitionId :: Lens' CreateCoreDefinitionVersion Text Source #
The ID of the core definition.
Destructuring the Response
data CreateCoreDefinitionVersionResponse Source #
See: newCreateCoreDefinitionVersionResponse
smart constructor.
CreateCoreDefinitionVersionResponse' | |
|
Instances
newCreateCoreDefinitionVersionResponse Source #
Create a value of CreateCoreDefinitionVersionResponse
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:arn:CreateCoreDefinitionVersionResponse'
, createCoreDefinitionVersionResponse_arn
- The ARN of the version.
$sel:creationTimestamp:CreateCoreDefinitionVersionResponse'
, createCoreDefinitionVersionResponse_creationTimestamp
- The time, in milliseconds since the epoch, when the version was created.
$sel:version:CreateCoreDefinitionVersionResponse'
, createCoreDefinitionVersionResponse_version
- The ID of the version.
$sel:id:CreateCoreDefinitionVersionResponse'
, createCoreDefinitionVersionResponse_id
- The ID of the parent definition that the version is associated with.
$sel:httpStatus:CreateCoreDefinitionVersionResponse'
, createCoreDefinitionVersionResponse_httpStatus
- The response's http status code.
Response Lenses
createCoreDefinitionVersionResponse_arn :: Lens' CreateCoreDefinitionVersionResponse (Maybe Text) Source #
The ARN of the version.
createCoreDefinitionVersionResponse_creationTimestamp :: Lens' CreateCoreDefinitionVersionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the version was created.
createCoreDefinitionVersionResponse_version :: Lens' CreateCoreDefinitionVersionResponse (Maybe Text) Source #
The ID of the version.
createCoreDefinitionVersionResponse_id :: Lens' CreateCoreDefinitionVersionResponse (Maybe Text) Source #
The ID of the parent definition that the version is associated with.
createCoreDefinitionVersionResponse_httpStatus :: Lens' CreateCoreDefinitionVersionResponse Int Source #
The response's http status code.