| 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.PutContainerRecipePolicy
Description
Applies a policy to a container image. We recommend that you call the
RAM API CreateResourceShare
(https://docs.aws.amazon.com//ram/latest/APIReference/API_CreateResourceShare.html)
to share resources. If you call the Image Builder API
PutContainerImagePolicy, you must also call the RAM API
PromoteResourceShareCreatedFromPolicy
(https://docs.aws.amazon.com//ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html)
in order for the resource to be visible to all principals with whom the
resource is shared.
Synopsis
- data PutContainerRecipePolicy = PutContainerRecipePolicy' {
- containerRecipeArn :: Text
- policy :: Text
- newPutContainerRecipePolicy :: Text -> Text -> PutContainerRecipePolicy
- putContainerRecipePolicy_containerRecipeArn :: Lens' PutContainerRecipePolicy Text
- putContainerRecipePolicy_policy :: Lens' PutContainerRecipePolicy Text
- data PutContainerRecipePolicyResponse = PutContainerRecipePolicyResponse' {}
- newPutContainerRecipePolicyResponse :: Int -> PutContainerRecipePolicyResponse
- putContainerRecipePolicyResponse_containerRecipeArn :: Lens' PutContainerRecipePolicyResponse (Maybe Text)
- putContainerRecipePolicyResponse_requestId :: Lens' PutContainerRecipePolicyResponse (Maybe Text)
- putContainerRecipePolicyResponse_httpStatus :: Lens' PutContainerRecipePolicyResponse Int
Creating a Request
data PutContainerRecipePolicy Source #
See: newPutContainerRecipePolicy smart constructor.
Constructors
| PutContainerRecipePolicy' | |
Fields
| |
Instances
newPutContainerRecipePolicy Source #
Arguments
| :: Text | |
| -> Text | |
| -> PutContainerRecipePolicy |
Create a value of PutContainerRecipePolicy 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:
PutContainerRecipePolicy, putContainerRecipePolicy_containerRecipeArn - The Amazon Resource Name (ARN) of the container recipe that this policy
should be applied to.
$sel:policy:PutContainerRecipePolicy', putContainerRecipePolicy_policy - The policy to apply to the container recipe.
Request Lenses
putContainerRecipePolicy_containerRecipeArn :: Lens' PutContainerRecipePolicy Text Source #
The Amazon Resource Name (ARN) of the container recipe that this policy should be applied to.
putContainerRecipePolicy_policy :: Lens' PutContainerRecipePolicy Text Source #
The policy to apply to the container recipe.
Destructuring the Response
data PutContainerRecipePolicyResponse Source #
See: newPutContainerRecipePolicyResponse smart constructor.
Constructors
| PutContainerRecipePolicyResponse' | |
Fields
| |
Instances
newPutContainerRecipePolicyResponse Source #
Create a value of PutContainerRecipePolicyResponse 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:
PutContainerRecipePolicy, putContainerRecipePolicyResponse_containerRecipeArn - The Amazon Resource Name (ARN) of the container recipe that this policy
was applied to.
$sel:requestId:PutContainerRecipePolicyResponse', putContainerRecipePolicyResponse_requestId - The request ID that uniquely identifies this request.
$sel:httpStatus:PutContainerRecipePolicyResponse', putContainerRecipePolicyResponse_httpStatus - The response's http status code.
Response Lenses
putContainerRecipePolicyResponse_containerRecipeArn :: Lens' PutContainerRecipePolicyResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the container recipe that this policy was applied to.
putContainerRecipePolicyResponse_requestId :: Lens' PutContainerRecipePolicyResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
putContainerRecipePolicyResponse_httpStatus :: Lens' PutContainerRecipePolicyResponse Int Source #
The response's http status code.