Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a core definition. You may provide the initial version of the core definition now or use 'CreateCoreDefinitionVersion'
at a later time. AWS Greengrass groups must each contain exactly one AWS Greengrass core.
Synopsis
- createCoreDefinition :: CreateCoreDefinition
- data CreateCoreDefinition
- ccdAmznClientToken :: Lens' CreateCoreDefinition (Maybe Text)
- ccdInitialVersion :: Lens' CreateCoreDefinition (Maybe CoreDefinitionVersion)
- ccdName :: Lens' CreateCoreDefinition (Maybe Text)
- createCoreDefinitionResponse :: Int -> CreateCoreDefinitionResponse
- data CreateCoreDefinitionResponse
- ccdrsLatestVersionARN :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- ccdrsARN :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- ccdrsName :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- ccdrsCreationTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- ccdrsId :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- ccdrsLatestVersion :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- ccdrsLastUpdatedTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text)
- ccdrsResponseStatus :: Lens' CreateCoreDefinitionResponse Int
Creating a Request
createCoreDefinition :: CreateCoreDefinition Source #
Creates a value of CreateCoreDefinition
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccdAmznClientToken
- A client token used to correlate requests and responses.ccdInitialVersion
- Information about the initial version of the core definition.ccdName
- The name of the core definition.
data CreateCoreDefinition Source #
Information needed to create a core definition.
See: createCoreDefinition
smart constructor.
Instances
Request Lenses
ccdAmznClientToken :: Lens' CreateCoreDefinition (Maybe Text) Source #
A client token used to correlate requests and responses.
ccdInitialVersion :: Lens' CreateCoreDefinition (Maybe CoreDefinitionVersion) Source #
Information about the initial version of the core definition.
Destructuring the Response
createCoreDefinitionResponse Source #
Creates a value of CreateCoreDefinitionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccdrsLatestVersionARN
- The ARN of the latest version of the definition.ccdrsARN
- The ARN of the definition.ccdrsName
- The name of the definition.ccdrsCreationTimestamp
- The time, in milliseconds since the epoch, when the definition was created.ccdrsId
- The ID of the definition.ccdrsLatestVersion
- The latest version of the definition.ccdrsLastUpdatedTimestamp
- The time, in milliseconds since the epoch, when the definition was last updated.ccdrsResponseStatus
- -- | The response status code.
data CreateCoreDefinitionResponse Source #
See: createCoreDefinitionResponse
smart constructor.
Instances
Response Lenses
ccdrsLatestVersionARN :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The ARN of the latest version of the definition.
ccdrsCreationTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was created.
ccdrsLatestVersion :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The latest version of the definition.
ccdrsLastUpdatedTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
ccdrsResponseStatus :: Lens' CreateCoreDefinitionResponse Int Source #
- - | The response status code.