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 |
Creates or updates the permissions policy for your registry.
A registry policy is used to specify permissions for another Amazon Web Services account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide.
Synopsis
- data PutRegistryPolicy = PutRegistryPolicy' {
- policyText :: Text
- newPutRegistryPolicy :: Text -> PutRegistryPolicy
- putRegistryPolicy_policyText :: Lens' PutRegistryPolicy Text
- data PutRegistryPolicyResponse = PutRegistryPolicyResponse' {
- registryId :: Maybe Text
- policyText :: Maybe Text
- httpStatus :: Int
- newPutRegistryPolicyResponse :: Int -> PutRegistryPolicyResponse
- putRegistryPolicyResponse_registryId :: Lens' PutRegistryPolicyResponse (Maybe Text)
- putRegistryPolicyResponse_policyText :: Lens' PutRegistryPolicyResponse (Maybe Text)
- putRegistryPolicyResponse_httpStatus :: Lens' PutRegistryPolicyResponse Int
Creating a Request
data PutRegistryPolicy Source #
See: newPutRegistryPolicy
smart constructor.
PutRegistryPolicy' | |
|
Instances
Create a value of PutRegistryPolicy
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:policyText:PutRegistryPolicy'
, putRegistryPolicy_policyText
- The JSON policy text to apply to your registry. The policy text follows
the same format as IAM policy text. For more information, see
Registry permissions
in the Amazon Elastic Container Registry User Guide.
Request Lenses
putRegistryPolicy_policyText :: Lens' PutRegistryPolicy Text Source #
The JSON policy text to apply to your registry. The policy text follows the same format as IAM policy text. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide.
Destructuring the Response
data PutRegistryPolicyResponse Source #
See: newPutRegistryPolicyResponse
smart constructor.
PutRegistryPolicyResponse' | |
|
Instances
newPutRegistryPolicyResponse Source #
Create a value of PutRegistryPolicyResponse
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:registryId:PutRegistryPolicyResponse'
, putRegistryPolicyResponse_registryId
- The registry ID.
$sel:policyText:PutRegistryPolicy'
, putRegistryPolicyResponse_policyText
- The JSON policy text for your registry.
$sel:httpStatus:PutRegistryPolicyResponse'
, putRegistryPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putRegistryPolicyResponse_registryId :: Lens' PutRegistryPolicyResponse (Maybe Text) Source #
The registry ID.
putRegistryPolicyResponse_policyText :: Lens' PutRegistryPolicyResponse (Maybe Text) Source #
The JSON policy text for your registry.
putRegistryPolicyResponse_httpStatus :: Lens' PutRegistryPolicyResponse Int Source #
The response's http status code.