libZSservicesZSamazonka-ssm-incidentsZSamazonka-ssm-incidents
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SSMIncidents.PutResourcePolicy

Description

Adds a resource policy to the specified response plan.

Synopsis

Creating a Request

data PutResourcePolicy Source #

See: newPutResourcePolicy smart constructor.

Constructors

PutResourcePolicy' 

Fields

  • policy :: Text

    Details of the resource policy.

  • resourceArn :: Text

    The Amazon Resource Name (ARN) of the response plan you're adding the resource policy to.

Instances

Instances details
Eq PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

Read PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

Show PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

Generic PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

Associated Types

type Rep PutResourcePolicy :: Type -> Type #

NFData PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

Methods

rnf :: PutResourcePolicy -> () #

Hashable PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

ToJSON PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

AWSRequest PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

Associated Types

type AWSResponse PutResourcePolicy #

ToHeaders PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

ToPath PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

ToQuery PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

type Rep PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

type Rep PutResourcePolicy = D1 ('MetaData "PutResourcePolicy" "Amazonka.SSMIncidents.PutResourcePolicy" "libZSservicesZSamazonka-ssm-incidentsZSamazonka-ssm-incidents" 'False) (C1 ('MetaCons "PutResourcePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse PutResourcePolicy Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

newPutResourcePolicy Source #

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

Instances details
Eq PutResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

Read PutResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

Show PutResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

Generic PutResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

Associated Types

type Rep PutResourcePolicyResponse :: Type -> Type #

NFData PutResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

type Rep PutResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.PutResourcePolicy

type Rep PutResourcePolicyResponse = D1 ('MetaData "PutResourcePolicyResponse" "Amazonka.SSMIncidents.PutResourcePolicy" "libZSservicesZSamazonka-ssm-incidentsZSamazonka-ssm-incidents" 'False) (C1 ('MetaCons "PutResourcePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "policyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newPutResourcePolicyResponse Source #

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