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 |
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' {
- policyRevision :: Maybe Text
- domainOwner :: Maybe Text
- domain :: Text
- policyDocument :: Text
- newPutDomainPermissionsPolicy :: Text -> Text -> PutDomainPermissionsPolicy
- putDomainPermissionsPolicy_policyRevision :: Lens' PutDomainPermissionsPolicy (Maybe Text)
- putDomainPermissionsPolicy_domainOwner :: 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.
PutDomainPermissionsPolicy' | |
|
Instances
newPutDomainPermissionsPolicy Source #
:: 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:
$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:domainOwner:PutDomainPermissionsPolicy'
, putDomainPermissionsPolicy_domainOwner
- The 12-digit account number of the AWS account that owns the domain. It
does not include dashes or spaces.
$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_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_domainOwner :: Lens' PutDomainPermissionsPolicy (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
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.
PutDomainPermissionsPolicyResponse' | |
|
Instances
Eq PutDomainPermissionsPolicyResponse Source # | |
Read PutDomainPermissionsPolicyResponse Source # | |
Show PutDomainPermissionsPolicyResponse Source # | |
Generic PutDomainPermissionsPolicyResponse Source # | |
NFData PutDomainPermissionsPolicyResponse Source # | |
Defined in Amazonka.CodeArtifact.PutDomainPermissionsPolicy rnf :: PutDomainPermissionsPolicyResponse -> () # | |
type Rep PutDomainPermissionsPolicyResponse Source # | |
Defined in Amazonka.CodeArtifact.PutDomainPermissionsPolicy type Rep PutDomainPermissionsPolicyResponse = D1 ('MetaData "PutDomainPermissionsPolicyResponse" "Amazonka.CodeArtifact.PutDomainPermissionsPolicy" "libZSservicesZSamazonka-codeartifactZSamazonka-codeartifact" 'False) (C1 ('MetaCons "PutDomainPermissionsPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourcePolicy)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutDomainPermissionsPolicyResponse Source #
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.