/AWS1/IF_R5R=>PUTRESOLVERRULEPOLICY()¶
About PutResolverRulePolicy¶
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.
Method Signature¶
METHODS /AWS1/IF_R5R~PUTRESOLVERRULEPOLICY
IMPORTING
!IV_ARN TYPE /AWS1/R5RARN OPTIONAL
!IV_RESOLVERRULEPOLICY TYPE /AWS1/R5RRESOLVERRULEPOLICY OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5rputresolverrlply01
RAISING
/AWS1/CX_R5RACCESSDENIEDEX
/AWS1/CX_R5RINTERNALSVCERROREX
/AWS1/CX_R5RINVALIDPARAMETEREX
/AWS1/CX_R5RINVALIDPOLICYDOC
/AWS1/CX_R5RUNKNOWNRESOURCEEX
/AWS1/CX_R5RCLIENTEXC
/AWS1/CX_R5RSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_arn TYPE /AWS1/R5RARN /AWS1/R5RARN¶
The Amazon Resource Name (ARN) of the rule that you want to share with another account.
iv_resolverrulepolicy TYPE /AWS1/R5RRESOLVERRULEPOLICY /AWS1/R5RRESOLVERRULEPOLICY¶
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:GetResolverRule
route53resolver:AssociateResolverRule
route53resolver:DisassociateResolverRule
route53resolver:ListResolverRules
route53resolver:ListResolverRuleAssociationsIn 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.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r5rputresolverrlply01 /AWS1/CL_R5RPUTRESOLVERRLPLY01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->putresolverrulepolicy(
iv_arn = |string|
iv_resolverrulepolicy = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_boolean = lo_result->get_returnvalue( ).
ENDIF.