libZSservicesZSamazonka-route53resolverZSamazonka-route53resolver
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.Route53Resolver.PutResolverRulePolicy

Description

Specifies an Amazon Web Services rule that you want to share with another account, the account that you want to share the rule with, and the operations that you want the account to be able to perform on the rule.

Synopsis

Creating a Request

data PutResolverRulePolicy Source #

See: newPutResolverRulePolicy smart constructor.

Constructors

PutResolverRulePolicy' 

Fields

  • arn :: Text

    The Amazon Resource Name (ARN) of the rule that you want to share with another account.

  • resolverRulePolicy :: Text

    An Identity and Access Management policy statement that lists the rules that you want to share with another Amazon Web Services account and the operations that you want the account to be able to perform. You can specify the following operations in the Action section of the statement:

    • route53resolver:GetResolverRule
    • route53resolver:AssociateResolverRule
    • route53resolver:DisassociateResolverRule
    • route53resolver:ListResolverRules
    • route53resolver:ListResolverRuleAssociations

    In the Resource section of the statement, specify the ARN for the rule that you want to share with another account. Specify the same ARN that you specified in Arn.

Instances

Instances details
Eq PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

Read PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

Show PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

Generic PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

Associated Types

type Rep PutResolverRulePolicy :: Type -> Type #

NFData PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

Methods

rnf :: PutResolverRulePolicy -> () #

Hashable PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

ToJSON PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

AWSRequest PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

Associated Types

type AWSResponse PutResolverRulePolicy #

ToHeaders PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

ToPath PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

ToQuery PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

type Rep PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

type Rep PutResolverRulePolicy = D1 ('MetaData "PutResolverRulePolicy" "Amazonka.Route53Resolver.PutResolverRulePolicy" "libZSservicesZSamazonka-route53resolverZSamazonka-route53resolver" 'False) (C1 ('MetaCons "PutResolverRulePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "resolverRulePolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse PutResolverRulePolicy Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

newPutResolverRulePolicy Source #

Create a value of PutResolverRulePolicy 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:arn:PutResolverRulePolicy', putResolverRulePolicy_arn - The Amazon Resource Name (ARN) of the rule that you want to share with another account.

$sel:resolverRulePolicy:PutResolverRulePolicy', putResolverRulePolicy_resolverRulePolicy - An Identity and Access Management policy statement that lists the rules that you want to share with another Amazon Web Services account and the operations that you want the account to be able to perform. You can specify the following operations in the Action section of the statement:

  • route53resolver:GetResolverRule
  • route53resolver:AssociateResolverRule
  • route53resolver:DisassociateResolverRule
  • route53resolver:ListResolverRules
  • route53resolver:ListResolverRuleAssociations

In the Resource section of the statement, specify the ARN for the rule that you want to share with another account. Specify the same ARN that you specified in Arn.

Request Lenses

putResolverRulePolicy_arn :: Lens' PutResolverRulePolicy Text Source #

The Amazon Resource Name (ARN) of the rule that you want to share with another account.

putResolverRulePolicy_resolverRulePolicy :: Lens' PutResolverRulePolicy Text Source #

An Identity and Access Management policy statement that lists the rules that you want to share with another Amazon Web Services account and the operations that you want the account to be able to perform. You can specify the following operations in the Action section of the statement:

  • route53resolver:GetResolverRule
  • route53resolver:AssociateResolverRule
  • route53resolver:DisassociateResolverRule
  • route53resolver:ListResolverRules
  • route53resolver:ListResolverRuleAssociations

In the Resource section of the statement, specify the ARN for the rule that you want to share with another account. Specify the same ARN that you specified in Arn.

Destructuring the Response

data PutResolverRulePolicyResponse Source #

The response to a PutResolverRulePolicy request.

See: newPutResolverRulePolicyResponse smart constructor.

Constructors

PutResolverRulePolicyResponse' 

Fields

Instances

Instances details
Eq PutResolverRulePolicyResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

Read PutResolverRulePolicyResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

Show PutResolverRulePolicyResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

Generic PutResolverRulePolicyResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

Associated Types

type Rep PutResolverRulePolicyResponse :: Type -> Type #

NFData PutResolverRulePolicyResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

type Rep PutResolverRulePolicyResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.PutResolverRulePolicy

type Rep PutResolverRulePolicyResponse = D1 ('MetaData "PutResolverRulePolicyResponse" "Amazonka.Route53Resolver.PutResolverRulePolicy" "libZSservicesZSamazonka-route53resolverZSamazonka-route53resolver" 'False) (C1 ('MetaCons "PutResolverRulePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "returnValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutResolverRulePolicyResponse Source #

Create a value of PutResolverRulePolicyResponse 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:returnValue:PutResolverRulePolicyResponse', putResolverRulePolicyResponse_returnValue - Whether the PutResolverRulePolicy request was successful.

$sel:httpStatus:PutResolverRulePolicyResponse', putResolverRulePolicyResponse_httpStatus - The response's http status code.

Response Lenses

putResolverRulePolicyResponse_returnValue :: Lens' PutResolverRulePolicyResponse (Maybe Bool) Source #

Whether the PutResolverRulePolicy request was successful.