Route53Resolver / Client / put_resolver_rule_policy
put_resolver_rule_policy#
- Route53Resolver.Client.put_resolver_rule_policy(**kwargs)#
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.
See also: AWS API Documentation
Request Syntax
response = client.put_resolver_rule_policy( Arn='string', ResolverRulePolicy='string' )
- Parameters:
Arn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the rule that you want to share with another account.
ResolverRulePolicy (string) –
[REQUIRED]
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
Actionsection of the statement:route53resolver:GetResolverRuleroute53resolver:AssociateResolverRuleroute53resolver:DisassociateResolverRuleroute53resolver:ListResolverRulesroute53resolver:ListResolverRuleAssociations
In the
Resourcesection of the statement, specify the ARN for the rule that you want to share with another account. Specify the same ARN that you specified inArn.
- Return type:
dict
- Returns:
Response Syntax
{ 'ReturnValue': True|False }
Response Structure
(dict) –
The response to a
PutResolverRulePolicyrequest.ReturnValue (boolean) –
Whether the
PutResolverRulePolicyrequest was successful.
Exceptions
Route53Resolver.Client.exceptions.InvalidPolicyDocumentRoute53Resolver.Client.exceptions.InvalidParameterExceptionRoute53Resolver.Client.exceptions.UnknownResourceExceptionRoute53Resolver.Client.exceptions.InternalServiceErrorExceptionRoute53Resolver.Client.exceptions.AccessDeniedException