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 |
Gets an image policy.
Synopsis
- data GetImagePolicy = GetImagePolicy' {}
- newGetImagePolicy :: Text -> GetImagePolicy
- getImagePolicy_imageArn :: Lens' GetImagePolicy Text
- data GetImagePolicyResponse = GetImagePolicyResponse' {}
- newGetImagePolicyResponse :: Int -> GetImagePolicyResponse
- getImagePolicyResponse_requestId :: Lens' GetImagePolicyResponse (Maybe Text)
- getImagePolicyResponse_policy :: Lens' GetImagePolicyResponse (Maybe Text)
- getImagePolicyResponse_httpStatus :: Lens' GetImagePolicyResponse Int
Creating a Request
data GetImagePolicy Source #
See: newGetImagePolicy
smart constructor.
Instances
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.
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:requestId:GetImagePolicyResponse'
, getImagePolicyResponse_requestId
- The request ID that uniquely identifies this request.
$sel:policy:GetImagePolicyResponse'
, getImagePolicyResponse_policy
- The image policy object.
$sel:httpStatus:GetImagePolicyResponse'
, getImagePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getImagePolicyResponse_requestId :: Lens' GetImagePolicyResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
getImagePolicyResponse_policy :: Lens' GetImagePolicyResponse (Maybe Text) Source #
The image policy object.
getImagePolicyResponse_httpStatus :: Lens' GetImagePolicyResponse Int Source #
The response's http status code.