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 |
Gets a component policy.
Synopsis
- data GetComponentPolicy = GetComponentPolicy' {
- componentArn :: Text
- newGetComponentPolicy :: Text -> GetComponentPolicy
- getComponentPolicy_componentArn :: Lens' GetComponentPolicy Text
- data GetComponentPolicyResponse = GetComponentPolicyResponse' {}
- newGetComponentPolicyResponse :: Int -> GetComponentPolicyResponse
- getComponentPolicyResponse_requestId :: Lens' GetComponentPolicyResponse (Maybe Text)
- getComponentPolicyResponse_policy :: Lens' GetComponentPolicyResponse (Maybe Text)
- getComponentPolicyResponse_httpStatus :: Lens' GetComponentPolicyResponse Int
Creating a Request
data GetComponentPolicy Source #
See: newGetComponentPolicy
smart constructor.
GetComponentPolicy' | |
|
Instances
newGetComponentPolicy Source #
Create a value of GetComponentPolicy
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:componentArn:GetComponentPolicy'
, getComponentPolicy_componentArn
- The Amazon Resource Name (ARN) of the component whose policy you want to
retrieve.
Request Lenses
getComponentPolicy_componentArn :: Lens' GetComponentPolicy Text Source #
The Amazon Resource Name (ARN) of the component whose policy you want to retrieve.
Destructuring the Response
data GetComponentPolicyResponse Source #
See: newGetComponentPolicyResponse
smart constructor.
Instances
newGetComponentPolicyResponse Source #
Create a value of GetComponentPolicyResponse
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:requestId:GetComponentPolicyResponse'
, getComponentPolicyResponse_requestId
- The request ID that uniquely identifies this request.
$sel:policy:GetComponentPolicyResponse'
, getComponentPolicyResponse_policy
- The component policy.
$sel:httpStatus:GetComponentPolicyResponse'
, getComponentPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getComponentPolicyResponse_requestId :: Lens' GetComponentPolicyResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
getComponentPolicyResponse_policy :: Lens' GetComponentPolicyResponse (Maybe Text) Source #
The component policy.
getComponentPolicyResponse_httpStatus :: Lens' GetComponentPolicyResponse Int Source #
The response's http status code.