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 |
Retrieves information about a resource definition, including its creation time and latest version.
Synopsis
- data GetResourceDefinition = GetResourceDefinition' {}
- newGetResourceDefinition :: Text -> GetResourceDefinition
- getResourceDefinition_resourceDefinitionId :: Lens' GetResourceDefinition Text
- data GetResourceDefinitionResponse = GetResourceDefinitionResponse' {}
- newGetResourceDefinitionResponse :: Int -> GetResourceDefinitionResponse
- getResourceDefinitionResponse_latestVersionArn :: Lens' GetResourceDefinitionResponse (Maybe Text)
- getResourceDefinitionResponse_arn :: Lens' GetResourceDefinitionResponse (Maybe Text)
- getResourceDefinitionResponse_name :: Lens' GetResourceDefinitionResponse (Maybe Text)
- getResourceDefinitionResponse_creationTimestamp :: Lens' GetResourceDefinitionResponse (Maybe Text)
- getResourceDefinitionResponse_id :: Lens' GetResourceDefinitionResponse (Maybe Text)
- getResourceDefinitionResponse_latestVersion :: Lens' GetResourceDefinitionResponse (Maybe Text)
- getResourceDefinitionResponse_lastUpdatedTimestamp :: Lens' GetResourceDefinitionResponse (Maybe Text)
- getResourceDefinitionResponse_tags :: Lens' GetResourceDefinitionResponse (Maybe (HashMap Text Text))
- getResourceDefinitionResponse_httpStatus :: Lens' GetResourceDefinitionResponse Int
Creating a Request
data GetResourceDefinition Source #
See: newGetResourceDefinition
smart constructor.
GetResourceDefinition' | |
|
Instances
newGetResourceDefinition Source #
Create a value of GetResourceDefinition
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:resourceDefinitionId:GetResourceDefinition'
, getResourceDefinition_resourceDefinitionId
- The ID of the resource definition.
Request Lenses
getResourceDefinition_resourceDefinitionId :: Lens' GetResourceDefinition Text Source #
The ID of the resource definition.
Destructuring the Response
data GetResourceDefinitionResponse Source #
See: newGetResourceDefinitionResponse
smart constructor.
GetResourceDefinitionResponse' | |
|
Instances
newGetResourceDefinitionResponse Source #
Create a value of GetResourceDefinitionResponse
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:GetResourceDefinitionResponse'
, getResourceDefinitionResponse_latestVersionArn
- The ARN of the latest version associated with the definition.
$sel:arn:GetResourceDefinitionResponse'
, getResourceDefinitionResponse_arn
- The ARN of the definition.
$sel:name:GetResourceDefinitionResponse'
, getResourceDefinitionResponse_name
- The name of the definition.
$sel:creationTimestamp:GetResourceDefinitionResponse'
, getResourceDefinitionResponse_creationTimestamp
- The time, in milliseconds since the epoch, when the definition was
created.
$sel:id:GetResourceDefinitionResponse'
, getResourceDefinitionResponse_id
- The ID of the definition.
$sel:latestVersion:GetResourceDefinitionResponse'
, getResourceDefinitionResponse_latestVersion
- The ID of the latest version associated with the definition.
$sel:lastUpdatedTimestamp:GetResourceDefinitionResponse'
, getResourceDefinitionResponse_lastUpdatedTimestamp
- The time, in milliseconds since the epoch, when the definition was last
updated.
$sel:tags:GetResourceDefinitionResponse'
, getResourceDefinitionResponse_tags
- Tag(s) attached to the resource arn.
$sel:httpStatus:GetResourceDefinitionResponse'
, getResourceDefinitionResponse_httpStatus
- The response's http status code.
Response Lenses
getResourceDefinitionResponse_latestVersionArn :: Lens' GetResourceDefinitionResponse (Maybe Text) Source #
The ARN of the latest version associated with the definition.
getResourceDefinitionResponse_arn :: Lens' GetResourceDefinitionResponse (Maybe Text) Source #
The ARN of the definition.
getResourceDefinitionResponse_name :: Lens' GetResourceDefinitionResponse (Maybe Text) Source #
The name of the definition.
getResourceDefinitionResponse_creationTimestamp :: Lens' GetResourceDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was created.
getResourceDefinitionResponse_id :: Lens' GetResourceDefinitionResponse (Maybe Text) Source #
The ID of the definition.
getResourceDefinitionResponse_latestVersion :: Lens' GetResourceDefinitionResponse (Maybe Text) Source #
The ID of the latest version associated with the definition.
getResourceDefinitionResponse_lastUpdatedTimestamp :: Lens' GetResourceDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
getResourceDefinitionResponse_tags :: Lens' GetResourceDefinitionResponse (Maybe (HashMap Text Text)) Source #
Tag(s) attached to the resource arn.
getResourceDefinitionResponse_httpStatus :: Lens' GetResourceDefinitionResponse Int Source #
The response's http status code.