| 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 |
Amazonka.ImageBuilder.GetImagePolicy
Description
Gets an image policy.
Synopsis
- data GetImagePolicy = GetImagePolicy' {}
- newGetImagePolicy :: Text -> GetImagePolicy
- getImagePolicy_imageArn :: Lens' GetImagePolicy Text
- data GetImagePolicyResponse = GetImagePolicyResponse' {}
- newGetImagePolicyResponse :: Int -> GetImagePolicyResponse
- getImagePolicyResponse_policy :: Lens' GetImagePolicyResponse (Maybe Text)
- getImagePolicyResponse_requestId :: Lens' GetImagePolicyResponse (Maybe Text)
- getImagePolicyResponse_httpStatus :: Lens' GetImagePolicyResponse Int
Creating a Request
data GetImagePolicy Source #
See: newGetImagePolicy smart constructor.
Constructors
| GetImagePolicy' | |
Instances
Arguments
| :: Text | |
| -> GetImagePolicy |
Create a value of GetImagePolicy 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:imageArn:GetImagePolicy', getImagePolicy_imageArn - The Amazon Resource Name (ARN) of the image whose policy you want to
retrieve.
Request Lenses
getImagePolicy_imageArn :: Lens' GetImagePolicy Text Source #
The Amazon Resource Name (ARN) of the image whose policy you want to retrieve.
Destructuring the Response
data GetImagePolicyResponse Source #
See: newGetImagePolicyResponse smart constructor.
Constructors
| GetImagePolicyResponse' | |
Instances
newGetImagePolicyResponse Source #
Create a value of GetImagePolicyResponse 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:policy:GetImagePolicyResponse', getImagePolicyResponse_policy - The image policy object.
$sel:requestId:GetImagePolicyResponse', getImagePolicyResponse_requestId - The request ID that uniquely identifies this request.
$sel:httpStatus:GetImagePolicyResponse', getImagePolicyResponse_httpStatus - The response's http status code.
Response Lenses
getImagePolicyResponse_policy :: Lens' GetImagePolicyResponse (Maybe Text) Source #
The image policy object.
getImagePolicyResponse_requestId :: Lens' GetImagePolicyResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
getImagePolicyResponse_httpStatus :: Lens' GetImagePolicyResponse Int Source #
The response's http status code.