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 |
Amazonka.CodeArtifact.GetDomainPermissionsPolicy
Description
Returns the resource policy attached to the specified domain.
The policy is a resource-based policy, not an identity-based policy. For more information, see Identity-based policies and resource-based policies in the AWS Identity and Access Management User Guide.
Synopsis
- data GetDomainPermissionsPolicy = GetDomainPermissionsPolicy' {
- domainOwner :: Maybe Text
- domain :: Text
- newGetDomainPermissionsPolicy :: Text -> GetDomainPermissionsPolicy
- getDomainPermissionsPolicy_domainOwner :: Lens' GetDomainPermissionsPolicy (Maybe Text)
- getDomainPermissionsPolicy_domain :: Lens' GetDomainPermissionsPolicy Text
- data GetDomainPermissionsPolicyResponse = GetDomainPermissionsPolicyResponse' {}
- newGetDomainPermissionsPolicyResponse :: Int -> GetDomainPermissionsPolicyResponse
- getDomainPermissionsPolicyResponse_policy :: Lens' GetDomainPermissionsPolicyResponse (Maybe ResourcePolicy)
- getDomainPermissionsPolicyResponse_httpStatus :: Lens' GetDomainPermissionsPolicyResponse Int
Creating a Request
data GetDomainPermissionsPolicy Source #
See: newGetDomainPermissionsPolicy
smart constructor.
Constructors
GetDomainPermissionsPolicy' | |
Fields
|
Instances
newGetDomainPermissionsPolicy Source #
Create a value of GetDomainPermissionsPolicy
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:domainOwner:GetDomainPermissionsPolicy'
, getDomainPermissionsPolicy_domainOwner
- The 12-digit account number of the AWS account that owns the domain. It
does not include dashes or spaces.
$sel:domain:GetDomainPermissionsPolicy'
, getDomainPermissionsPolicy_domain
- The name of the domain to which the resource policy is attached.
Request Lenses
getDomainPermissionsPolicy_domainOwner :: Lens' GetDomainPermissionsPolicy (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
getDomainPermissionsPolicy_domain :: Lens' GetDomainPermissionsPolicy Text Source #
The name of the domain to which the resource policy is attached.
Destructuring the Response
data GetDomainPermissionsPolicyResponse Source #
See: newGetDomainPermissionsPolicyResponse
smart constructor.
Constructors
GetDomainPermissionsPolicyResponse' | |
Fields
|
Instances
newGetDomainPermissionsPolicyResponse Source #
Arguments
:: Int | |
-> GetDomainPermissionsPolicyResponse |
Create a value of GetDomainPermissionsPolicyResponse
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:GetDomainPermissionsPolicyResponse'
, getDomainPermissionsPolicyResponse_policy
- The returned resource policy.
$sel:httpStatus:GetDomainPermissionsPolicyResponse'
, getDomainPermissionsPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getDomainPermissionsPolicyResponse_policy :: Lens' GetDomainPermissionsPolicyResponse (Maybe ResourcePolicy) Source #
The returned resource policy.
getDomainPermissionsPolicyResponse_httpStatus :: Lens' GetDomainPermissionsPolicyResponse Int Source #
The response's http status code.