| 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.PutImageRecipePolicy
Description
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' {
- imageRecipeArn :: Maybe Text
- requestId :: Maybe Text
- httpStatus :: Int
- newPutImageRecipePolicyResponse :: Int -> PutImageRecipePolicyResponse
- putImageRecipePolicyResponse_imageRecipeArn :: Lens' PutImageRecipePolicyResponse (Maybe Text)
- putImageRecipePolicyResponse_requestId :: Lens' PutImageRecipePolicyResponse (Maybe Text)
- putImageRecipePolicyResponse_httpStatus :: Lens' PutImageRecipePolicyResponse Int
Creating a Request
data PutImageRecipePolicy Source #
See: newPutImageRecipePolicy smart constructor.
Constructors
| PutImageRecipePolicy' | |
Fields
| |
Instances
newPutImageRecipePolicy Source #
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:
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.
Constructors
| PutImageRecipePolicyResponse' | |
Fields
| |
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:
PutImageRecipePolicy, putImageRecipePolicyResponse_imageRecipeArn - The Amazon Resource Name (ARN) of the image recipe that this policy was
applied to.
$sel:requestId:PutImageRecipePolicyResponse', putImageRecipePolicyResponse_requestId - The request ID that uniquely identifies this request.
$sel:httpStatus:PutImageRecipePolicyResponse', putImageRecipePolicyResponse_httpStatus - The response's http status code.
Response Lenses
putImageRecipePolicyResponse_imageRecipeArn :: Lens' PutImageRecipePolicyResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the image recipe that this policy was applied to.
putImageRecipePolicyResponse_requestId :: Lens' PutImageRecipePolicyResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
putImageRecipePolicyResponse_httpStatus :: Lens' PutImageRecipePolicyResponse Int Source #
The response's http status code.