| 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.ImageBuilder.GetComponentPolicy
Description
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_policy :: Lens' GetComponentPolicyResponse (Maybe Text)
- getComponentPolicyResponse_requestId :: Lens' GetComponentPolicyResponse (Maybe Text)
- getComponentPolicyResponse_httpStatus :: Lens' GetComponentPolicyResponse Int
Creating a Request
data GetComponentPolicy Source #
See: newGetComponentPolicy smart constructor.
Constructors
| GetComponentPolicy' | |
Fields
| |
Instances
newGetComponentPolicy Source #
Arguments
| :: Text | |
| -> GetComponentPolicy |
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:
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.
Constructors
| GetComponentPolicyResponse' | |
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:policy:GetComponentPolicyResponse', getComponentPolicyResponse_policy - The component policy.
$sel:requestId:GetComponentPolicyResponse', getComponentPolicyResponse_requestId - The request ID that uniquely identifies this request.
$sel:httpStatus:GetComponentPolicyResponse', getComponentPolicyResponse_httpStatus - The response's http status code.
Response Lenses
getComponentPolicyResponse_policy :: Lens' GetComponentPolicyResponse (Maybe Text) Source #
The component policy.
getComponentPolicyResponse_requestId :: Lens' GetComponentPolicyResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
getComponentPolicyResponse_httpStatus :: Lens' GetComponentPolicyResponse Int Source #
The response's http status code.