| 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.SSMContacts.GetContactPolicy
Description
Retrieves the resource policies attached to the specified contact or escalation plan.
Synopsis
- data GetContactPolicy = GetContactPolicy' {
- contactArn :: Text
- newGetContactPolicy :: Text -> GetContactPolicy
- getContactPolicy_contactArn :: Lens' GetContactPolicy Text
- data GetContactPolicyResponse = GetContactPolicyResponse' {
- contactArn :: Maybe Text
- policy :: Maybe Text
- httpStatus :: Int
- newGetContactPolicyResponse :: Int -> GetContactPolicyResponse
- getContactPolicyResponse_contactArn :: Lens' GetContactPolicyResponse (Maybe Text)
- getContactPolicyResponse_policy :: Lens' GetContactPolicyResponse (Maybe Text)
- getContactPolicyResponse_httpStatus :: Lens' GetContactPolicyResponse Int
Creating a Request
data GetContactPolicy Source #
See: newGetContactPolicy smart constructor.
Constructors
| GetContactPolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetContactPolicy |
Create a value of GetContactPolicy 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:
GetContactPolicy, getContactPolicy_contactArn - The Amazon Resource Name (ARN) of the contact or escalation plan.
Request Lenses
getContactPolicy_contactArn :: Lens' GetContactPolicy Text Source #
The Amazon Resource Name (ARN) of the contact or escalation plan.
Destructuring the Response
data GetContactPolicyResponse Source #
See: newGetContactPolicyResponse smart constructor.
Constructors
| GetContactPolicyResponse' | |
Fields
| |
Instances
newGetContactPolicyResponse Source #
Create a value of GetContactPolicyResponse 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:
GetContactPolicy, getContactPolicyResponse_contactArn - The ARN of the contact or escalation plan.
$sel:policy:GetContactPolicyResponse', getContactPolicyResponse_policy - Details about the resource policy attached to the contact or escalation
plan.
$sel:httpStatus:GetContactPolicyResponse', getContactPolicyResponse_httpStatus - The response's http status code.
Response Lenses
getContactPolicyResponse_contactArn :: Lens' GetContactPolicyResponse (Maybe Text) Source #
The ARN of the contact or escalation plan.
getContactPolicyResponse_policy :: Lens' GetContactPolicyResponse (Maybe Text) Source #
Details about the resource policy attached to the contact or escalation plan.
getContactPolicyResponse_httpStatus :: Lens' GetContactPolicyResponse Int Source #
The response's http status code.