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 |
Applies a policy to an image recipe. We recommend that you call the RAM
API
CreateResourceShare
to share resources. If you call the Image Builder API
PutImageRecipePolicy
, 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 PutImageRecipePolicy = PutImageRecipePolicy' {
- imageRecipeArn :: Text
- policy :: Text
- newPutImageRecipePolicy :: Text -> Text -> PutImageRecipePolicy
- putImageRecipePolicy_imageRecipeArn :: Lens' PutImageRecipePolicy Text
- putImageRecipePolicy_policy :: Lens' PutImageRecipePolicy Text
- data PutImageRecipePolicyResponse = PutImageRecipePolicyResponse' {
- requestId :: Maybe Text
- imageRecipeArn :: Maybe Text
- httpStatus :: Int
- newPutImageRecipePolicyResponse :: Int -> PutImageRecipePolicyResponse
- putImageRecipePolicyResponse_requestId :: Lens' PutImageRecipePolicyResponse (Maybe Text)
- putImageRecipePolicyResponse_imageRecipeArn :: Lens' PutImageRecipePolicyResponse (Maybe Text)
- putImageRecipePolicyResponse_httpStatus :: Lens' PutImageRecipePolicyResponse Int
Creating a Request
data PutImageRecipePolicy Source #
See: newPutImageRecipePolicy
smart constructor.
PutImageRecipePolicy' | |
|
Instances
newPutImageRecipePolicy Source #
:: Text | |
-> Text | |
-> PutImageRecipePolicy |
Create a value of PutImageRecipePolicy
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:imageRecipeArn:PutImageRecipePolicy'
, putImageRecipePolicy_imageRecipeArn
- The Amazon Resource Name (ARN) of the image recipe that this policy
should be applied to.
$sel:policy:PutImageRecipePolicy'
, putImageRecipePolicy_policy
- The policy to apply.
Request Lenses
putImageRecipePolicy_imageRecipeArn :: Lens' PutImageRecipePolicy Text Source #
The Amazon Resource Name (ARN) of the image recipe that this policy should be applied to.
putImageRecipePolicy_policy :: Lens' PutImageRecipePolicy Text Source #
The policy to apply.
Destructuring the Response
data PutImageRecipePolicyResponse Source #
See: newPutImageRecipePolicyResponse
smart constructor.
PutImageRecipePolicyResponse' | |
|
Instances
newPutImageRecipePolicyResponse Source #
Create a value of PutImageRecipePolicyResponse
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:PutImageRecipePolicyResponse'
, putImageRecipePolicyResponse_requestId
- The request ID that uniquely identifies this request.
$sel:imageRecipeArn:PutImageRecipePolicy'
, putImageRecipePolicyResponse_imageRecipeArn
- The Amazon Resource Name (ARN) of the image recipe that this policy was
applied to.
$sel:httpStatus:PutImageRecipePolicyResponse'
, putImageRecipePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putImageRecipePolicyResponse_requestId :: Lens' PutImageRecipePolicyResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
putImageRecipePolicyResponse_imageRecipeArn :: Lens' PutImageRecipePolicyResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the image recipe that this policy was applied to.
putImageRecipePolicyResponse_httpStatus :: Lens' PutImageRecipePolicyResponse Int Source #
The response's http status code.