List Rules
datazone_list_rules | R Documentation |
Lists existing rules¶
Description¶
Lists existing rules. 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.
Usage¶
datazone_list_rules(action, assetTypes, dataProduct, domainIdentifier,
includeCascaded, maxResults, nextToken, projectIds, ruleType,
targetIdentifier, targetType)
Arguments¶
action
The action of the rule.
assetTypes
The asset types of the rule.
dataProduct
The data product of the rule.
domainIdentifier
[required] The ID of the domain in which the rules are to be listed.
includeCascaded
Specifies whether to include cascading rules in the results.
maxResults
The maximum number of rules to return in a single call to
list_rules
. When the number of rules to be listed is greater than the value ofMaxResults
, the response contains aNextToken
value that you can use in a subsequent call tolist_rules
to list the next set of rules.nextToken
When the number of rules is greater than the default value for the
MaxResults
parameter, or if you explicitly specify a value forMaxResults
that is less than the number of rules, the response includes a pagination token namedNextToken
. You can specify thisNextToken
value in a subsequent call tolist_rules
to list the next set of rules.projectIds
The IDs of projects in which rules are to be listed.
ruleType
The type of the rule.
targetIdentifier
[required] The target ID of the rule.
targetType
[required] The target type of the rule.
Value¶
A list with the following syntax:
list(
items = list(
list(
action = "CREATE_SUBSCRIPTION_REQUEST",
identifier = "string",
lastUpdatedBy = "string",
name = "string",
revision = "string",
ruleType = "METADATA_FORM_ENFORCEMENT",
scope = list(
assetType = list(
selectionMode = "ALL"|"SPECIFIC",
specificAssetTypes = list(
"string"
)
),
dataProduct = TRUE|FALSE,
project = list(
selectionMode = "ALL"|"SPECIFIC",
specificProjects = list(
"string"
)
)
),
target = list(
domainUnitTarget = list(
domainUnitId = "string",
includeChildDomainUnits = TRUE|FALSE
)
),
targetType = "DOMAIN_UNIT",
updatedAt = as.POSIXct(
"2015-01-01"
)
)
),
nextToken = "string"
)
Request syntax¶
svc$list_rules(
action = "CREATE_SUBSCRIPTION_REQUEST",
assetTypes = list(
"string"
),
dataProduct = TRUE|FALSE,
domainIdentifier = "string",
includeCascaded = TRUE|FALSE,
maxResults = 123,
nextToken = "string",
projectIds = list(
"string"
),
ruleType = "METADATA_FORM_ENFORCEMENT",
targetIdentifier = "string",
targetType = "DOMAIN_UNIT"
)