| 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.CodeArtifact.PutDomainPermissionsPolicy
Description
Sets a resource policy on a domain that specifies permissions to access it.
When you call PutDomainPermissionsPolicy, the resource policy on the
domain is ignored when evaluting permissions. This ensures that the
owner of a domain cannot lock themselves out of the domain, which would
prevent them from being able to update the resource policy.
Synopsis
- data PutDomainPermissionsPolicy = PutDomainPermissionsPolicy' {
- domainOwner :: Maybe Text
- policyRevision :: Maybe Text
- domain :: Text
- policyDocument :: Text
- newPutDomainPermissionsPolicy :: Text -> Text -> PutDomainPermissionsPolicy
- putDomainPermissionsPolicy_domainOwner :: Lens' PutDomainPermissionsPolicy (Maybe Text)
- putDomainPermissionsPolicy_policyRevision :: Lens' PutDomainPermissionsPolicy (Maybe Text)
- putDomainPermissionsPolicy_domain :: Lens' PutDomainPermissionsPolicy Text
- putDomainPermissionsPolicy_policyDocument :: Lens' PutDomainPermissionsPolicy Text
- data PutDomainPermissionsPolicyResponse = PutDomainPermissionsPolicyResponse' {}
- newPutDomainPermissionsPolicyResponse :: Int -> PutDomainPermissionsPolicyResponse
- putDomainPermissionsPolicyResponse_policy :: Lens' PutDomainPermissionsPolicyResponse (Maybe ResourcePolicy)
- putDomainPermissionsPolicyResponse_httpStatus :: Lens' PutDomainPermissionsPolicyResponse Int
Creating a Request
data PutDomainPermissionsPolicy Source #
See: newPutDomainPermissionsPolicy smart constructor.
Constructors
| PutDomainPermissionsPolicy' | |
Fields
| |
Instances
newPutDomainPermissionsPolicy Source #
Arguments
| :: Text | |
| -> Text | |
| -> PutDomainPermissionsPolicy |
Create a value of PutDomainPermissionsPolicy 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:
PutDomainPermissionsPolicy, putDomainPermissionsPolicy_domainOwner - The 12-digit account number of the Amazon Web Services account that owns
the domain. It does not include dashes or spaces.
$sel:policyRevision:PutDomainPermissionsPolicy', putDomainPermissionsPolicy_policyRevision - The current revision of the resource policy to be set. This revision is
used for optimistic locking, which prevents others from overwriting your
changes to the domain's resource policy.
$sel:domain:PutDomainPermissionsPolicy', putDomainPermissionsPolicy_domain - The name of the domain on which to set the resource policy.
$sel:policyDocument:PutDomainPermissionsPolicy', putDomainPermissionsPolicy_policyDocument - A valid displayable JSON Aspen policy string to be set as the access
control resource policy on the provided domain.
Request Lenses
putDomainPermissionsPolicy_domainOwner :: Lens' PutDomainPermissionsPolicy (Maybe Text) Source #
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
putDomainPermissionsPolicy_policyRevision :: Lens' PutDomainPermissionsPolicy (Maybe Text) Source #
The current revision of the resource policy to be set. This revision is used for optimistic locking, which prevents others from overwriting your changes to the domain's resource policy.
putDomainPermissionsPolicy_domain :: Lens' PutDomainPermissionsPolicy Text Source #
The name of the domain on which to set the resource policy.
putDomainPermissionsPolicy_policyDocument :: Lens' PutDomainPermissionsPolicy Text Source #
A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided domain.
Destructuring the Response
data PutDomainPermissionsPolicyResponse Source #
See: newPutDomainPermissionsPolicyResponse smart constructor.
Constructors
| PutDomainPermissionsPolicyResponse' | |
Fields
| |
Instances
newPutDomainPermissionsPolicyResponse Source #
Arguments
| :: Int | |
| -> PutDomainPermissionsPolicyResponse |
Create a value of PutDomainPermissionsPolicyResponse 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:PutDomainPermissionsPolicyResponse', putDomainPermissionsPolicyResponse_policy - The resource policy that was set after processing the request.
$sel:httpStatus:PutDomainPermissionsPolicyResponse', putDomainPermissionsPolicyResponse_httpStatus - The response's http status code.
Response Lenses
putDomainPermissionsPolicyResponse_policy :: Lens' PutDomainPermissionsPolicyResponse (Maybe ResourcePolicy) Source #
The resource policy that was set after processing the request.
putDomainPermissionsPolicyResponse_httpStatus :: Lens' PutDomainPermissionsPolicyResponse Int Source #
The response's http status code.