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 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_requestId :: Lens' PutContainerRecipePolicyResponse (Maybe Text)
- putContainerRecipePolicyResponse_containerRecipeArn :: Lens' PutContainerRecipePolicyResponse (Maybe Text)
- putContainerRecipePolicyResponse_httpStatus :: Lens' PutContainerRecipePolicyResponse Int
Creating a Request
data PutContainerRecipePolicy Source #
See: newPutContainerRecipePolicy
smart constructor.
PutContainerRecipePolicy' | |
|
Instances
newPutContainerRecipePolicy Source #
:: 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:
$sel:containerRecipeArn: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.
PutContainerRecipePolicyResponse' | |
|
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:
$sel:requestId:PutContainerRecipePolicyResponse'
, putContainerRecipePolicyResponse_requestId
- The request ID that uniquely identifies this request.
$sel:containerRecipeArn:PutContainerRecipePolicy'
, putContainerRecipePolicyResponse_containerRecipeArn
- The Amazon Resource Name (ARN) of the container recipe that this policy
was applied to.
$sel:httpStatus:PutContainerRecipePolicyResponse'
, putContainerRecipePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putContainerRecipePolicyResponse_requestId :: Lens' PutContainerRecipePolicyResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
putContainerRecipePolicyResponse_containerRecipeArn :: Lens' PutContainerRecipePolicyResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the container recipe that this policy was applied to.
putContainerRecipePolicyResponse_httpStatus :: Lens' PutContainerRecipePolicyResponse Int Source #
The response's http status code.