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 |
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
- data PutResolverRulePolicy = PutResolverRulePolicy' {
- arn :: Text
- resolverRulePolicy :: Text
- newPutResolverRulePolicy :: Text -> Text -> PutResolverRulePolicy
- putResolverRulePolicy_arn :: Lens' PutResolverRulePolicy Text
- putResolverRulePolicy_resolverRulePolicy :: Lens' PutResolverRulePolicy Text
- data PutResolverRulePolicyResponse = PutResolverRulePolicyResponse' {
- returnValue :: Maybe Bool
- httpStatus :: Int
- newPutResolverRulePolicyResponse :: Int -> PutResolverRulePolicyResponse
- putResolverRulePolicyResponse_returnValue :: Lens' PutResolverRulePolicyResponse (Maybe Bool)
- putResolverRulePolicyResponse_httpStatus :: Lens' PutResolverRulePolicyResponse Int
Creating a Request
data PutResolverRulePolicy Source #
See: newPutResolverRulePolicy
smart constructor.
PutResolverRulePolicy' | |
|
Instances
newPutResolverRulePolicy Source #
:: Text | |
-> Text | |
-> PutResolverRulePolicy |
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.
PutResolverRulePolicyResponse' | |
|
Instances
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.
putResolverRulePolicyResponse_httpStatus :: Lens' PutResolverRulePolicyResponse Int Source #
The response's http status code.