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 |
Applies a policy to an image. We recommend that you call the RAM API
CreateResourceShare
to share resources. If you call the Image Builder API PutImagePolicy
,
you must also call the RAM API
PromoteResourceShareCreatedFromPolicy
in order for the resource to be visible to all principals with whom the
resource is shared.
Synopsis
- data PutImagePolicy = PutImagePolicy' {}
- newPutImagePolicy :: Text -> Text -> PutImagePolicy
- putImagePolicy_imageArn :: Lens' PutImagePolicy Text
- putImagePolicy_policy :: Lens' PutImagePolicy Text
- data PutImagePolicyResponse = PutImagePolicyResponse' {}
- newPutImagePolicyResponse :: Int -> PutImagePolicyResponse
- putImagePolicyResponse_imageArn :: Lens' PutImagePolicyResponse (Maybe Text)
- putImagePolicyResponse_requestId :: Lens' PutImagePolicyResponse (Maybe Text)
- putImagePolicyResponse_httpStatus :: Lens' PutImagePolicyResponse Int
Creating a Request
data PutImagePolicy Source #
See: newPutImagePolicy
smart constructor.
Instances
Create a value of PutImagePolicy
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:
PutImagePolicy
, putImagePolicy_imageArn
- The Amazon Resource Name (ARN) of the image that this policy should be
applied to.
$sel:policy:PutImagePolicy'
, putImagePolicy_policy
- The policy to apply.
Request Lenses
putImagePolicy_imageArn :: Lens' PutImagePolicy Text Source #
The Amazon Resource Name (ARN) of the image that this policy should be applied to.
putImagePolicy_policy :: Lens' PutImagePolicy Text Source #
The policy to apply.
Destructuring the Response
data PutImagePolicyResponse Source #
See: newPutImagePolicyResponse
smart constructor.
Instances
newPutImagePolicyResponse Source #
Create a value of PutImagePolicyResponse
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:
PutImagePolicy
, putImagePolicyResponse_imageArn
- The Amazon Resource Name (ARN) of the image that this policy was applied
to.
$sel:requestId:PutImagePolicyResponse'
, putImagePolicyResponse_requestId
- The request ID that uniquely identifies this request.
$sel:httpStatus:PutImagePolicyResponse'
, putImagePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putImagePolicyResponse_imageArn :: Lens' PutImagePolicyResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the image that this policy was applied to.
putImagePolicyResponse_requestId :: Lens' PutImagePolicyResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
putImagePolicyResponse_httpStatus :: Lens' PutImagePolicyResponse Int Source #
The response's http status code.