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 |
The name of the policy.
Synopsis
- data PutResourcePolicy = PutResourcePolicy' {
- registryName :: Maybe Text
- revisionId :: Maybe Text
- policy :: Text
- newPutResourcePolicy :: Text -> PutResourcePolicy
- putResourcePolicy_registryName :: Lens' PutResourcePolicy (Maybe Text)
- putResourcePolicy_revisionId :: Lens' PutResourcePolicy (Maybe Text)
- putResourcePolicy_policy :: Lens' PutResourcePolicy Text
- data PutResourcePolicyResponse = PutResourcePolicyResponse' {
- policy :: Maybe Text
- revisionId :: Maybe Text
- httpStatus :: Int
- newPutResourcePolicyResponse :: Int -> PutResourcePolicyResponse
- putResourcePolicyResponse_policy :: Lens' PutResourcePolicyResponse (Maybe Text)
- putResourcePolicyResponse_revisionId :: Lens' PutResourcePolicyResponse (Maybe Text)
- putResourcePolicyResponse_httpStatus :: Lens' PutResourcePolicyResponse Int
Creating a Request
data PutResourcePolicy Source #
The name of the policy.
See: newPutResourcePolicy
smart constructor.
PutResourcePolicy' | |
|
Instances
Create a value of PutResourcePolicy
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:registryName:PutResourcePolicy'
, putResourcePolicy_registryName
- The name of the registry.
$sel:revisionId:PutResourcePolicy'
, putResourcePolicy_revisionId
- The revision ID of the policy.
$sel:policy:PutResourcePolicy'
, putResourcePolicy_policy
- The resource-based policy.
Request Lenses
putResourcePolicy_registryName :: Lens' PutResourcePolicy (Maybe Text) Source #
The name of the registry.
putResourcePolicy_revisionId :: Lens' PutResourcePolicy (Maybe Text) Source #
The revision ID of the policy.
putResourcePolicy_policy :: Lens' PutResourcePolicy Text Source #
The resource-based policy.
Destructuring the Response
data PutResourcePolicyResponse Source #
See: newPutResourcePolicyResponse
smart constructor.
PutResourcePolicyResponse' | |
|
Instances
newPutResourcePolicyResponse Source #
Create a value of PutResourcePolicyResponse
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:policy:PutResourcePolicy'
, putResourcePolicyResponse_policy
- The resource-based policy.
$sel:revisionId:PutResourcePolicy'
, putResourcePolicyResponse_revisionId
- The revision ID of the policy.
$sel:httpStatus:PutResourcePolicyResponse'
, putResourcePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putResourcePolicyResponse_policy :: Lens' PutResourcePolicyResponse (Maybe Text) Source #
The resource-based policy.
putResourcePolicyResponse_revisionId :: Lens' PutResourcePolicyResponse (Maybe Text) Source #
The revision ID of the policy.
putResourcePolicyResponse_httpStatus :: Lens' PutResourcePolicyResponse Int Source #
The response's http status code.