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 |
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' {
- registryId :: Maybe Text
- repositoryName :: Maybe Text
- policyText :: Maybe Text
- httpStatus :: Int
- newGetRepositoryPolicyResponse :: Int -> GetRepositoryPolicyResponse
- getRepositoryPolicyResponse_registryId :: Lens' GetRepositoryPolicyResponse (Maybe Text)
- getRepositoryPolicyResponse_repositoryName :: Lens' GetRepositoryPolicyResponse (Maybe Text)
- getRepositoryPolicyResponse_policyText :: 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:
$sel:registryId:GetRepositoryPolicy'
, getRepositoryPolicy_registryId
- The Amazon Web Services account ID associated with the registry that
contains the repository. If you do not specify a registry, the default
registry is assumed.
$sel:repositoryName:GetRepositoryPolicy'
, getRepositoryPolicy_repositoryName
- The name of the repository with the policy to retrieve.
Request Lenses
getRepositoryPolicy_registryId :: Lens' GetRepositoryPolicy (Maybe Text) Source #
The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default 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:registryId:GetRepositoryPolicy'
, getRepositoryPolicyResponse_registryId
- The registry ID associated with the request.
$sel:repositoryName:GetRepositoryPolicy'
, getRepositoryPolicyResponse_repositoryName
- The repository name associated with the request.
$sel:policyText:GetRepositoryPolicyResponse'
, getRepositoryPolicyResponse_policyText
- The JSON repository policy text associated with the repository.
$sel:httpStatus:GetRepositoryPolicyResponse'
, getRepositoryPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
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_policyText :: Lens' GetRepositoryPolicyResponse (Maybe Text) Source #
The JSON repository policy text associated with the repository.
getRepositoryPolicyResponse_httpStatus :: Lens' GetRepositoryPolicyResponse Int Source #
The response's http status code.