| 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 |
Amazonka.SSMIncidents.PutResourcePolicy
Description
Adds a resource policy to the specified response plan.
Synopsis
- data PutResourcePolicy = PutResourcePolicy' {
- policy :: Text
- resourceArn :: Text
- newPutResourcePolicy :: Text -> Text -> PutResourcePolicy
- putResourcePolicy_policy :: Lens' PutResourcePolicy Text
- putResourcePolicy_resourceArn :: Lens' PutResourcePolicy Text
- data PutResourcePolicyResponse = PutResourcePolicyResponse' {
- httpStatus :: Int
- policyId :: Text
- newPutResourcePolicyResponse :: Int -> Text -> PutResourcePolicyResponse
- putResourcePolicyResponse_httpStatus :: Lens' PutResourcePolicyResponse Int
- putResourcePolicyResponse_policyId :: Lens' PutResourcePolicyResponse Text
Creating a Request
data PutResourcePolicy Source #
See: newPutResourcePolicy smart constructor.
Constructors
| PutResourcePolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> PutResourcePolicy |
Create a value of PutResourcePolicy 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:PutResourcePolicy', putResourcePolicy_policy - Details of the resource policy.
$sel:resourceArn:PutResourcePolicy', putResourcePolicy_resourceArn - The Amazon Resource Name (ARN) of the response plan you're adding the
resource policy to.
Request Lenses
putResourcePolicy_policy :: Lens' PutResourcePolicy Text Source #
Details of the resource policy.
putResourcePolicy_resourceArn :: Lens' PutResourcePolicy Text Source #
The Amazon Resource Name (ARN) of the response plan you're adding the resource policy to.
Destructuring the Response
data PutResourcePolicyResponse Source #
See: newPutResourcePolicyResponse smart constructor.
Constructors
| PutResourcePolicyResponse' | |
Fields
| |
Instances
newPutResourcePolicyResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> PutResourcePolicyResponse |
Create a value of PutResourcePolicyResponse 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:PutResourcePolicyResponse', putResourcePolicyResponse_httpStatus - The response's http status code.
$sel:policyId:PutResourcePolicyResponse', putResourcePolicyResponse_policyId - The ID of the resource policy.
Response Lenses
putResourcePolicyResponse_httpStatus :: Lens' PutResourcePolicyResponse Int Source #
The response's http status code.
putResourcePolicyResponse_policyId :: Lens' PutResourcePolicyResponse Text Source #
The ID of the resource policy.