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 |
Retrieves the repository policy for the specified repository.
Synopsis
- data GetRepositoryPolicy = GetRepositoryPolicy' {}
- newGetRepositoryPolicy :: Text -> GetRepositoryPolicy
- getRepositoryPolicy_registryId :: Lens' GetRepositoryPolicy (Maybe Text)
- getRepositoryPolicy_repositoryName :: Lens' GetRepositoryPolicy Text
- data GetRepositoryPolicyResponse = GetRepositoryPolicyResponse' {
- policyText :: Maybe Text
- registryId :: Maybe Text
- repositoryName :: Maybe Text
- httpStatus :: Int
- newGetRepositoryPolicyResponse :: Int -> GetRepositoryPolicyResponse
- getRepositoryPolicyResponse_policyText :: Lens' GetRepositoryPolicyResponse (Maybe Text)
- getRepositoryPolicyResponse_registryId :: Lens' GetRepositoryPolicyResponse (Maybe Text)
- getRepositoryPolicyResponse_repositoryName :: Lens' GetRepositoryPolicyResponse (Maybe Text)
- getRepositoryPolicyResponse_httpStatus :: Lens' GetRepositoryPolicyResponse Int
Creating a Request
data GetRepositoryPolicy Source #
See: newGetRepositoryPolicy
smart constructor.
GetRepositoryPolicy' | |
|
Instances
newGetRepositoryPolicy Source #
Create a value of GetRepositoryPolicy
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:
GetRepositoryPolicy
, getRepositoryPolicy_registryId
- The AWS account ID associated with the public registry that contains the
repository. If you do not specify a registry, the default public
registry is assumed.
GetRepositoryPolicy
, getRepositoryPolicy_repositoryName
- The name of the repository with the policy to retrieve.
Request Lenses
getRepositoryPolicy_registryId :: Lens' GetRepositoryPolicy (Maybe Text) Source #
The AWS account ID associated with the public registry that contains the repository. If you do not specify a registry, the default public registry is assumed.
getRepositoryPolicy_repositoryName :: Lens' GetRepositoryPolicy Text Source #
The name of the repository with the policy to retrieve.
Destructuring the Response
data GetRepositoryPolicyResponse Source #
See: newGetRepositoryPolicyResponse
smart constructor.
GetRepositoryPolicyResponse' | |
|
Instances
newGetRepositoryPolicyResponse Source #
Create a value of GetRepositoryPolicyResponse
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:GetRepositoryPolicyResponse'
, getRepositoryPolicyResponse_policyText
- The repository policy text associated with the repository. The policy
text will be in JSON format.
GetRepositoryPolicy
, getRepositoryPolicyResponse_registryId
- The registry ID associated with the request.
GetRepositoryPolicy
, getRepositoryPolicyResponse_repositoryName
- The repository name associated with the request.
$sel:httpStatus:GetRepositoryPolicyResponse'
, getRepositoryPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getRepositoryPolicyResponse_policyText :: Lens' GetRepositoryPolicyResponse (Maybe Text) Source #
The repository policy text associated with the repository. The policy text will be in JSON format.
getRepositoryPolicyResponse_registryId :: Lens' GetRepositoryPolicyResponse (Maybe Text) Source #
The registry ID associated with the request.
getRepositoryPolicyResponse_repositoryName :: Lens' GetRepositoryPolicyResponse (Maybe Text) Source #
The repository name associated with the request.
getRepositoryPolicyResponse_httpStatus :: Lens' GetRepositoryPolicyResponse Int Source #
The response's http status code.