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 resource definition which contains a list of resources to be used in a group. You can create an initial version of the definition by providing a list of resources now, or use ''CreateResourceDefinitionVersion'' later.
Synopsis
- data CreateResourceDefinition = CreateResourceDefinition' {}
- newCreateResourceDefinition :: CreateResourceDefinition
- createResourceDefinition_amznClientToken :: Lens' CreateResourceDefinition (Maybe Text)
- createResourceDefinition_initialVersion :: Lens' CreateResourceDefinition (Maybe ResourceDefinitionVersion)
- createResourceDefinition_name :: Lens' CreateResourceDefinition (Maybe Text)
- createResourceDefinition_tags :: Lens' CreateResourceDefinition (Maybe (HashMap Text Text))
- data CreateResourceDefinitionResponse = CreateResourceDefinitionResponse' {
- latestVersionArn :: Maybe Text
- arn :: Maybe Text
- name :: Maybe Text
- creationTimestamp :: Maybe Text
- id :: Maybe Text
- latestVersion :: Maybe Text
- lastUpdatedTimestamp :: Maybe Text
- httpStatus :: Int
- newCreateResourceDefinitionResponse :: Int -> CreateResourceDefinitionResponse
- createResourceDefinitionResponse_latestVersionArn :: Lens' CreateResourceDefinitionResponse (Maybe Text)
- createResourceDefinitionResponse_arn :: Lens' CreateResourceDefinitionResponse (Maybe Text)
- createResourceDefinitionResponse_name :: Lens' CreateResourceDefinitionResponse (Maybe Text)
- createResourceDefinitionResponse_creationTimestamp :: Lens' CreateResourceDefinitionResponse (Maybe Text)
- createResourceDefinitionResponse_id :: Lens' CreateResourceDefinitionResponse (Maybe Text)
- createResourceDefinitionResponse_latestVersion :: Lens' CreateResourceDefinitionResponse (Maybe Text)
- createResourceDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateResourceDefinitionResponse (Maybe Text)
- createResourceDefinitionResponse_httpStatus :: Lens' CreateResourceDefinitionResponse Int
Creating a Request
data CreateResourceDefinition Source #
See: newCreateResourceDefinition
smart constructor.
CreateResourceDefinition' | |
|
Instances
newCreateResourceDefinition :: CreateResourceDefinition Source #
Create a value of CreateResourceDefinition
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:CreateResourceDefinition'
, createResourceDefinition_amznClientToken
- A client token used to correlate requests and responses.
$sel:initialVersion:CreateResourceDefinition'
, createResourceDefinition_initialVersion
- Information about the initial version of the resource definition.
$sel:name:CreateResourceDefinition'
, createResourceDefinition_name
- The name of the resource definition.
$sel:tags:CreateResourceDefinition'
, createResourceDefinition_tags
- Tag(s) to add to the new resource.
Request Lenses
createResourceDefinition_amznClientToken :: Lens' CreateResourceDefinition (Maybe Text) Source #
A client token used to correlate requests and responses.
createResourceDefinition_initialVersion :: Lens' CreateResourceDefinition (Maybe ResourceDefinitionVersion) Source #
Information about the initial version of the resource definition.
createResourceDefinition_name :: Lens' CreateResourceDefinition (Maybe Text) Source #
The name of the resource definition.
createResourceDefinition_tags :: Lens' CreateResourceDefinition (Maybe (HashMap Text Text)) Source #
Tag(s) to add to the new resource.
Destructuring the Response
data CreateResourceDefinitionResponse Source #
See: newCreateResourceDefinitionResponse
smart constructor.
CreateResourceDefinitionResponse' | |
|
Instances
newCreateResourceDefinitionResponse Source #
Create a value of CreateResourceDefinitionResponse
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:CreateResourceDefinitionResponse'
, createResourceDefinitionResponse_latestVersionArn
- The ARN of the latest version associated with the definition.
$sel:arn:CreateResourceDefinitionResponse'
, createResourceDefinitionResponse_arn
- The ARN of the definition.
$sel:name:CreateResourceDefinition'
, createResourceDefinitionResponse_name
- The name of the definition.
$sel:creationTimestamp:CreateResourceDefinitionResponse'
, createResourceDefinitionResponse_creationTimestamp
- The time, in milliseconds since the epoch, when the definition was
created.
$sel:id:CreateResourceDefinitionResponse'
, createResourceDefinitionResponse_id
- The ID of the definition.
$sel:latestVersion:CreateResourceDefinitionResponse'
, createResourceDefinitionResponse_latestVersion
- The ID of the latest version associated with the definition.
$sel:lastUpdatedTimestamp:CreateResourceDefinitionResponse'
, createResourceDefinitionResponse_lastUpdatedTimestamp
- The time, in milliseconds since the epoch, when the definition was last
updated.
$sel:httpStatus:CreateResourceDefinitionResponse'
, createResourceDefinitionResponse_httpStatus
- The response's http status code.
Response Lenses
createResourceDefinitionResponse_latestVersionArn :: Lens' CreateResourceDefinitionResponse (Maybe Text) Source #
The ARN of the latest version associated with the definition.
createResourceDefinitionResponse_arn :: Lens' CreateResourceDefinitionResponse (Maybe Text) Source #
The ARN of the definition.
createResourceDefinitionResponse_name :: Lens' CreateResourceDefinitionResponse (Maybe Text) Source #
The name of the definition.
createResourceDefinitionResponse_creationTimestamp :: Lens' CreateResourceDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was created.
createResourceDefinitionResponse_id :: Lens' CreateResourceDefinitionResponse (Maybe Text) Source #
The ID of the definition.
createResourceDefinitionResponse_latestVersion :: Lens' CreateResourceDefinitionResponse (Maybe Text) Source #
The ID of the latest version associated with the definition.
createResourceDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateResourceDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
createResourceDefinitionResponse_httpStatus :: Lens' CreateResourceDefinitionResponse Int Source #
The response's http status code.