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 |
Adds a resource to the specified contact or escalation plan.
Synopsis
- data PutContactPolicy = PutContactPolicy' {
- contactArn :: Text
- policy :: Text
- newPutContactPolicy :: Text -> Text -> PutContactPolicy
- putContactPolicy_contactArn :: Lens' PutContactPolicy Text
- putContactPolicy_policy :: Lens' PutContactPolicy Text
- data PutContactPolicyResponse = PutContactPolicyResponse' {
- httpStatus :: Int
- newPutContactPolicyResponse :: Int -> PutContactPolicyResponse
- putContactPolicyResponse_httpStatus :: Lens' PutContactPolicyResponse Int
Creating a Request
data PutContactPolicy Source #
See: newPutContactPolicy
smart constructor.
PutContactPolicy' | |
|
Instances
Create a value of PutContactPolicy
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:contactArn:PutContactPolicy'
, putContactPolicy_contactArn
- The Amazon Resource Name (ARN) of the contact or escalation plan.
$sel:policy:PutContactPolicy'
, putContactPolicy_policy
- Details of the resource policy.
Request Lenses
putContactPolicy_contactArn :: Lens' PutContactPolicy Text Source #
The Amazon Resource Name (ARN) of the contact or escalation plan.
putContactPolicy_policy :: Lens' PutContactPolicy Text Source #
Details of the resource policy.
Destructuring the Response
data PutContactPolicyResponse Source #
See: newPutContactPolicyResponse
smart constructor.
PutContactPolicyResponse' | |
|
Instances
newPutContactPolicyResponse Source #
Create a value of PutContactPolicyResponse
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:httpStatus:PutContactPolicyResponse'
, putContactPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putContactPolicyResponse_httpStatus :: Lens' PutContactPolicyResponse Int Source #
The response's http status code.