Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Retrieves the repository policy for a specified repository.
- getRepositoryPolicy :: Text -> GetRepositoryPolicy
- data GetRepositoryPolicy
- grpRegistryId :: Lens' GetRepositoryPolicy (Maybe Text)
- grpRepositoryName :: Lens' GetRepositoryPolicy Text
- getRepositoryPolicyResponse :: Int -> GetRepositoryPolicyResponse
- data GetRepositoryPolicyResponse
- grprsRegistryId :: Lens' GetRepositoryPolicyResponse (Maybe Text)
- grprsRepositoryName :: Lens' GetRepositoryPolicyResponse (Maybe Text)
- grprsPolicyText :: Lens' GetRepositoryPolicyResponse (Maybe Text)
- grprsResponseStatus :: Lens' GetRepositoryPolicyResponse Int
Creating a Request
Creates a value of GetRepositoryPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
grpRegistryId
- The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.grpRepositoryName
- The name of the repository with the policy to retrieve.
data GetRepositoryPolicy Source #
See: getRepositoryPolicy
smart constructor.
Request Lenses
grpRegistryId :: Lens' GetRepositoryPolicy (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.
grpRepositoryName :: Lens' GetRepositoryPolicy Text Source #
The name of the repository with the policy to retrieve.
Destructuring the Response
getRepositoryPolicyResponse Source #
Creates a value of GetRepositoryPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
grprsRegistryId
- The registry ID associated with the request.grprsRepositoryName
- The repository name associated with the request.grprsPolicyText
- The JSON repository policy text associated with the repository.grprsResponseStatus
- -- | The response status code.
data GetRepositoryPolicyResponse Source #
See: getRepositoryPolicyResponse
smart constructor.
Response Lenses
grprsRegistryId :: Lens' GetRepositoryPolicyResponse (Maybe Text) Source #
The registry ID associated with the request.
grprsRepositoryName :: Lens' GetRepositoryPolicyResponse (Maybe Text) Source #
The repository name associated with the request.
grprsPolicyText :: Lens' GetRepositoryPolicyResponse (Maybe Text) Source #
The JSON repository policy text associated with the repository.
grprsResponseStatus :: Lens' GetRepositoryPolicyResponse Int Source #
- - | The response status code.