Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Applies a repository policy on a specified repository to control access permissions.
- setRepositoryPolicy :: Text -> Text -> SetRepositoryPolicy
- data SetRepositoryPolicy
- srpForce :: Lens' SetRepositoryPolicy (Maybe Bool)
- srpRegistryId :: Lens' SetRepositoryPolicy (Maybe Text)
- srpRepositoryName :: Lens' SetRepositoryPolicy Text
- srpPolicyText :: Lens' SetRepositoryPolicy Text
- setRepositoryPolicyResponse :: Int -> SetRepositoryPolicyResponse
- data SetRepositoryPolicyResponse
- srprsRegistryId :: Lens' SetRepositoryPolicyResponse (Maybe Text)
- srprsRepositoryName :: Lens' SetRepositoryPolicyResponse (Maybe Text)
- srprsPolicyText :: Lens' SetRepositoryPolicyResponse (Maybe Text)
- srprsResponseStatus :: Lens' SetRepositoryPolicyResponse Int
Creating a Request
Creates a value of SetRepositoryPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
srpForce
- 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 theSetRepositoryPolicy
operation. This is intended to prevent accidental repository lock outs.srpRegistryId
- The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.srpRepositoryName
- The name of the repository to receive the policy.srpPolicyText
- The JSON repository policy text to apply to the repository.
data SetRepositoryPolicy Source #
See: setRepositoryPolicy
smart constructor.
Request Lenses
srpForce :: 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.
srpRegistryId :: 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 registry is assumed.
srpRepositoryName :: Lens' SetRepositoryPolicy Text Source #
The name of the repository to receive the policy.
srpPolicyText :: Lens' SetRepositoryPolicy Text Source #
The JSON repository policy text to apply to the repository.
Destructuring the Response
setRepositoryPolicyResponse Source #
Creates a value of SetRepositoryPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
srprsRegistryId
- The registry ID associated with the request.srprsRepositoryName
- The repository name associated with the request.srprsPolicyText
- The JSON repository policy text applied to the repository.srprsResponseStatus
- -- | The response status code.
data SetRepositoryPolicyResponse Source #
See: setRepositoryPolicyResponse
smart constructor.
Response Lenses
srprsRegistryId :: Lens' SetRepositoryPolicyResponse (Maybe Text) Source #
The registry ID associated with the request.
srprsRepositoryName :: Lens' SetRepositoryPolicyResponse (Maybe Text) Source #
The repository name associated with the request.
srprsPolicyText :: Lens' SetRepositoryPolicyResponse (Maybe Text) Source #
The JSON repository policy text applied to the repository.
srprsResponseStatus :: Lens' SetRepositoryPolicyResponse Int Source #
- - | The response status code.