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 |
Adds a resource policy to the specified contact or escalation plan. The resource policy is used to share the contact or escalation plan using Resource Access Manager (RAM). For more information about cross-account sharing, see Setting up cross-account functionality.
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:
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.