libZSservicesZSamazonka-ssm-contactsZSamazonka-ssm-contacts
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.SSMContacts.PutContactPolicy

Description

Adds a resource to the specified contact or escalation plan.

Synopsis

Creating a Request

data PutContactPolicy Source #

See: newPutContactPolicy smart constructor.

Constructors

PutContactPolicy' 

Fields

  • contactArn :: Text

    The Amazon Resource Name (ARN) of the contact or escalation plan.

  • policy :: Text

    Details of the resource policy.

Instances

Instances details
Eq PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

Read PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

Show PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

Generic PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

Associated Types

type Rep PutContactPolicy :: Type -> Type #

NFData PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

Methods

rnf :: PutContactPolicy -> () #

Hashable PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

ToJSON PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

AWSRequest PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

Associated Types

type AWSResponse PutContactPolicy #

ToHeaders PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

ToPath PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

ToQuery PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

type Rep PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

type Rep PutContactPolicy = D1 ('MetaData "PutContactPolicy" "Amazonka.SSMContacts.PutContactPolicy" "libZSservicesZSamazonka-ssm-contactsZSamazonka-ssm-contacts" 'False) (C1 ('MetaCons "PutContactPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contactArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse PutContactPolicy Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

newPutContactPolicy Source #

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.

Constructors

PutContactPolicyResponse' 

Fields

Instances

Instances details
Eq PutContactPolicyResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

Read PutContactPolicyResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

Show PutContactPolicyResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

Generic PutContactPolicyResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

Associated Types

type Rep PutContactPolicyResponse :: Type -> Type #

NFData PutContactPolicyResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

type Rep PutContactPolicyResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.PutContactPolicy

type Rep PutContactPolicyResponse = D1 ('MetaData "PutContactPolicyResponse" "Amazonka.SSMContacts.PutContactPolicy" "libZSservicesZSamazonka-ssm-contactsZSamazonka-ssm-contacts" 'False) (C1 ('MetaCons "PutContactPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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