| 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 |
Amazonka.Schemas.PutResourcePolicy
Description
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.
Constructors
| PutResourcePolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> PutResourcePolicy |
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:
PutResourcePolicy, putResourcePolicy_registryName - The name of the registry.
PutResourcePolicy, putResourcePolicy_revisionId - The revision ID of the 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.
Constructors
| PutResourcePolicyResponse' | |
Fields
| |
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:
PutResourcePolicy, putResourcePolicyResponse_policy - The resource-based policy.
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.