Skip to content

/AWS1/CL_DZN=>CREATERULE()

About CreateRule

Creates a rule in Amazon DataZone. A rule is a formal agreement that enforces specific requirements across user workflows (e.g., publishing assets to the catalog, requesting subscriptions, creating projects) within the Amazon DataZone data portal. These rules help maintain consistency, ensure compliance, and uphold governance standards in data management processes. For instance, a metadata enforcement rule can specify the required information for creating a subscription request or publishing a data asset to the catalog, ensuring alignment with organizational standards.

Method Signature

IMPORTING

Required arguments:

IV_DOMAINIDENTIFIER TYPE /AWS1/DZNDOMAINID /AWS1/DZNDOMAINID

The ID of the domain where the rule is created.

IV_NAME TYPE /AWS1/DZNRULENAME /AWS1/DZNRULENAME

The name of the rule.

IO_TARGET TYPE REF TO /AWS1/CL_DZNRULETARGET /AWS1/CL_DZNRULETARGET

The target of the rule.

IV_ACTION TYPE /AWS1/DZNRULEACTION /AWS1/DZNRULEACTION

The action of the rule.

IO_SCOPE TYPE REF TO /AWS1/CL_DZNRULESCOPE /AWS1/CL_DZNRULESCOPE

The scope of the rule.

IO_DETAIL TYPE REF TO /AWS1/CL_DZNRULEDETAIL /AWS1/CL_DZNRULEDETAIL

The detail of the rule.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/DZNDESCRIPTION /AWS1/DZNDESCRIPTION

The description of the rule.

IV_CLIENTTOKEN TYPE /AWS1/DZNCLIENTTOKEN /AWS1/DZNCLIENTTOKEN

A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_DZNCREATERULEOUTPUT /AWS1/CL_DZNCREATERULEOUTPUT