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 |
Retrieves a specified resource policy.
Synopsis
- data GetResourcePolicy = GetResourcePolicy' {
- resourceArn :: Maybe Text
- newGetResourcePolicy :: GetResourcePolicy
- getResourcePolicy_resourceArn :: Lens' GetResourcePolicy (Maybe Text)
- data GetResourcePolicyResponse = GetResourcePolicyResponse' {
- policyInJson :: Maybe Text
- updateTime :: Maybe POSIX
- policyHash :: Maybe Text
- createTime :: Maybe POSIX
- httpStatus :: Int
- newGetResourcePolicyResponse :: Int -> GetResourcePolicyResponse
- getResourcePolicyResponse_policyInJson :: Lens' GetResourcePolicyResponse (Maybe Text)
- getResourcePolicyResponse_updateTime :: Lens' GetResourcePolicyResponse (Maybe UTCTime)
- getResourcePolicyResponse_policyHash :: Lens' GetResourcePolicyResponse (Maybe Text)
- getResourcePolicyResponse_createTime :: Lens' GetResourcePolicyResponse (Maybe UTCTime)
- getResourcePolicyResponse_httpStatus :: Lens' GetResourcePolicyResponse Int
Creating a Request
data GetResourcePolicy Source #
See: newGetResourcePolicy
smart constructor.
GetResourcePolicy' | |
|
Instances
newGetResourcePolicy :: GetResourcePolicy Source #
Create a value of GetResourcePolicy
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:resourceArn:GetResourcePolicy'
, getResourcePolicy_resourceArn
- The ARN of the Glue resource for which to retrieve the resource policy.
If not supplied, the Data Catalog resource policy is returned. Use
GetResourcePolicies
to view all existing resource policies. For more
information see
Specifying Glue Resource ARNs.
Request Lenses
getResourcePolicy_resourceArn :: Lens' GetResourcePolicy (Maybe Text) Source #
The ARN of the Glue resource for which to retrieve the resource policy.
If not supplied, the Data Catalog resource policy is returned. Use
GetResourcePolicies
to view all existing resource policies. For more
information see
Specifying Glue Resource ARNs.
Destructuring the Response
data GetResourcePolicyResponse Source #
See: newGetResourcePolicyResponse
smart constructor.
GetResourcePolicyResponse' | |
|
Instances
newGetResourcePolicyResponse Source #
Create a value of GetResourcePolicyResponse
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:policyInJson:GetResourcePolicyResponse'
, getResourcePolicyResponse_policyInJson
- Contains the requested policy document, in JSON format.
$sel:updateTime:GetResourcePolicyResponse'
, getResourcePolicyResponse_updateTime
- The date and time at which the policy was last updated.
$sel:policyHash:GetResourcePolicyResponse'
, getResourcePolicyResponse_policyHash
- Contains the hash value associated with this policy.
$sel:createTime:GetResourcePolicyResponse'
, getResourcePolicyResponse_createTime
- The date and time at which the policy was created.
$sel:httpStatus:GetResourcePolicyResponse'
, getResourcePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getResourcePolicyResponse_policyInJson :: Lens' GetResourcePolicyResponse (Maybe Text) Source #
Contains the requested policy document, in JSON format.
getResourcePolicyResponse_updateTime :: Lens' GetResourcePolicyResponse (Maybe UTCTime) Source #
The date and time at which the policy was last updated.
getResourcePolicyResponse_policyHash :: Lens' GetResourcePolicyResponse (Maybe Text) Source #
Contains the hash value associated with this policy.
getResourcePolicyResponse_createTime :: Lens' GetResourcePolicyResponse (Maybe UTCTime) Source #
The date and time at which the policy was created.
getResourcePolicyResponse_httpStatus :: Lens' GetResourcePolicyResponse Int Source #
The response's http status code.