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 repository policy to the specified public repository to control access permissions. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.
Synopsis
- data SetRepositoryPolicy = SetRepositoryPolicy' {
- force :: Maybe Bool
- registryId :: Maybe Text
- repositoryName :: Text
- policyText :: Text
- newSetRepositoryPolicy :: Text -> Text -> SetRepositoryPolicy
- setRepositoryPolicy_force :: Lens' SetRepositoryPolicy (Maybe Bool)
- setRepositoryPolicy_registryId :: Lens' SetRepositoryPolicy (Maybe Text)
- setRepositoryPolicy_repositoryName :: Lens' SetRepositoryPolicy Text
- setRepositoryPolicy_policyText :: Lens' SetRepositoryPolicy Text
- data SetRepositoryPolicyResponse = SetRepositoryPolicyResponse' {
- registryId :: Maybe Text
- repositoryName :: Maybe Text
- policyText :: Maybe Text
- httpStatus :: Int
- newSetRepositoryPolicyResponse :: Int -> SetRepositoryPolicyResponse
- setRepositoryPolicyResponse_registryId :: Lens' SetRepositoryPolicyResponse (Maybe Text)
- setRepositoryPolicyResponse_repositoryName :: Lens' SetRepositoryPolicyResponse (Maybe Text)
- setRepositoryPolicyResponse_policyText :: Lens' SetRepositoryPolicyResponse (Maybe Text)
- setRepositoryPolicyResponse_httpStatus :: Lens' SetRepositoryPolicyResponse Int
Creating a Request
data SetRepositoryPolicy Source #
See: newSetRepositoryPolicy
smart constructor.
SetRepositoryPolicy' | |
|
Instances
newSetRepositoryPolicy Source #
:: Text | |
-> Text | |
-> SetRepositoryPolicy |
Create a value of SetRepositoryPolicy
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:force:SetRepositoryPolicy'
, setRepositoryPolicy_force
- If the policy you are attempting to set on a repository policy would
prevent you from setting another policy in the future, you must force
the SetRepositoryPolicy operation. This is intended to prevent
accidental repository lock outs.
$sel:registryId:SetRepositoryPolicy'
, setRepositoryPolicy_registryId
- The AWS account ID associated with the registry that contains the
repository. If you do not specify a registry, the default public
registry is assumed.
$sel:repositoryName:SetRepositoryPolicy'
, setRepositoryPolicy_repositoryName
- The name of the repository to receive the policy.
$sel:policyText:SetRepositoryPolicy'
, setRepositoryPolicy_policyText
- The JSON repository policy text to apply to the repository. For more
information, see
Amazon ECR Repository Policies
in the Amazon Elastic Container Registry User Guide.
Request Lenses
setRepositoryPolicy_force :: Lens' SetRepositoryPolicy (Maybe Bool) Source #
If the policy you are attempting to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental repository lock outs.
setRepositoryPolicy_registryId :: Lens' SetRepositoryPolicy (Maybe Text) Source #
The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default public registry is assumed.
setRepositoryPolicy_repositoryName :: Lens' SetRepositoryPolicy Text Source #
The name of the repository to receive the policy.
setRepositoryPolicy_policyText :: Lens' SetRepositoryPolicy Text Source #
The JSON repository policy text to apply to the repository. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.
Destructuring the Response
data SetRepositoryPolicyResponse Source #
See: newSetRepositoryPolicyResponse
smart constructor.
SetRepositoryPolicyResponse' | |
|
Instances
newSetRepositoryPolicyResponse Source #
Create a value of SetRepositoryPolicyResponse
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:SetRepositoryPolicy'
, setRepositoryPolicyResponse_registryId
- The registry ID associated with the request.
$sel:repositoryName:SetRepositoryPolicy'
, setRepositoryPolicyResponse_repositoryName
- The repository name associated with the request.
$sel:policyText:SetRepositoryPolicy'
, setRepositoryPolicyResponse_policyText
- The JSON repository policy text applied to the repository.
$sel:httpStatus:SetRepositoryPolicyResponse'
, setRepositoryPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
setRepositoryPolicyResponse_registryId :: Lens' SetRepositoryPolicyResponse (Maybe Text) Source #
The registry ID associated with the request.
setRepositoryPolicyResponse_repositoryName :: Lens' SetRepositoryPolicyResponse (Maybe Text) Source #
The repository name associated with the request.
setRepositoryPolicyResponse_policyText :: Lens' SetRepositoryPolicyResponse (Maybe Text) Source #
The JSON repository policy text applied to the repository.
setRepositoryPolicyResponse_httpStatus :: Lens' SetRepositoryPolicyResponse Int Source #
The response's http status code.