DataQualityRuleset

class DataQualityRuleset : KotlinCustomResource

Provides a Glue Data Quality Ruleset Resource. You can refer to the Glue Developer Guide for a full explanation of the Glue Data Quality Ruleset functionality

Example Usage

Basic

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.glue.DataQualityRuleset("example", {
name: "example",
ruleset: "Rules = [Completeness \"colA\" between 0.4 and 0.8]",
});
import pulumi
import pulumi_aws as aws
example = aws.glue.DataQualityRuleset("example",
name="example",
ruleset="Rules = [Completeness \"colA\" between 0.4 and 0.8]")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Glue.DataQualityRuleset("example", new()
{
Name = "example",
Ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := glue.NewDataQualityRuleset(ctx, "example", &glue.DataQualityRulesetArgs{
Name: pulumi.String("example"),
Ruleset: pulumi.String("Rules = [Completeness \"colA\" between 0.4 and 0.8]"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.glue.DataQualityRuleset;
import com.pulumi.aws.glue.DataQualityRulesetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new DataQualityRuleset("example", DataQualityRulesetArgs.builder()
.name("example")
.ruleset("Rules = [Completeness \"colA\" between 0.4 and 0.8]")
.build());
}
}
resources:
example:
type: aws:glue:DataQualityRuleset
properties:
name: example
ruleset: Rules = [Completeness "colA" between 0.4 and 0.8]

With description

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.glue.DataQualityRuleset("example", {
name: "example",
description: "example",
ruleset: "Rules = [Completeness \"colA\" between 0.4 and 0.8]",
});
import pulumi
import pulumi_aws as aws
example = aws.glue.DataQualityRuleset("example",
name="example",
description="example",
ruleset="Rules = [Completeness \"colA\" between 0.4 and 0.8]")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Glue.DataQualityRuleset("example", new()
{
Name = "example",
Description = "example",
Ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := glue.NewDataQualityRuleset(ctx, "example", &glue.DataQualityRulesetArgs{
Name: pulumi.String("example"),
Description: pulumi.String("example"),
Ruleset: pulumi.String("Rules = [Completeness \"colA\" between 0.4 and 0.8]"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.glue.DataQualityRuleset;
import com.pulumi.aws.glue.DataQualityRulesetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new DataQualityRuleset("example", DataQualityRulesetArgs.builder()
.name("example")
.description("example")
.ruleset("Rules = [Completeness \"colA\" between 0.4 and 0.8]")
.build());
}
}
resources:
example:
type: aws:glue:DataQualityRuleset
properties:
name: example
description: example
ruleset: Rules = [Completeness "colA" between 0.4 and 0.8]

With tags

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.glue.DataQualityRuleset("example", {
name: "example",
ruleset: "Rules = [Completeness \"colA\" between 0.4 and 0.8]",
tags: {
hello: "world",
},
});
import pulumi
import pulumi_aws as aws
example = aws.glue.DataQualityRuleset("example",
name="example",
ruleset="Rules = [Completeness \"colA\" between 0.4 and 0.8]",
tags={
"hello": "world",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Glue.DataQualityRuleset("example", new()
{
Name = "example",
Ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]",
Tags =
{
{ "hello", "world" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := glue.NewDataQualityRuleset(ctx, "example", &glue.DataQualityRulesetArgs{
Name: pulumi.String("example"),
Ruleset: pulumi.String("Rules = [Completeness \"colA\" between 0.4 and 0.8]"),
Tags: pulumi.StringMap{
"hello": pulumi.String("world"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.glue.DataQualityRuleset;
import com.pulumi.aws.glue.DataQualityRulesetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new DataQualityRuleset("example", DataQualityRulesetArgs.builder()
.name("example")
.ruleset("Rules = [Completeness \"colA\" between 0.4 and 0.8]")
.tags(Map.of("hello", "world"))
.build());
}
}
resources:
example:
type: aws:glue:DataQualityRuleset
properties:
name: example
ruleset: Rules = [Completeness "colA" between 0.4 and 0.8]
tags:
hello: world

With target_table

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.glue.DataQualityRuleset("example", {
name: "example",
ruleset: "Rules = [Completeness \"colA\" between 0.4 and 0.8]",
targetTable: {
databaseName: exampleAwsGlueCatalogDatabase.name,
tableName: exampleAwsGlueCatalogTable.name,
},
});
import pulumi
import pulumi_aws as aws
example = aws.glue.DataQualityRuleset("example",
name="example",
ruleset="Rules = [Completeness \"colA\" between 0.4 and 0.8]",
target_table={
"database_name": example_aws_glue_catalog_database["name"],
"table_name": example_aws_glue_catalog_table["name"],
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Glue.DataQualityRuleset("example", new()
{
Name = "example",
Ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]",
TargetTable = new Aws.Glue.Inputs.DataQualityRulesetTargetTableArgs
{
DatabaseName = exampleAwsGlueCatalogDatabase.Name,
TableName = exampleAwsGlueCatalogTable.Name,
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := glue.NewDataQualityRuleset(ctx, "example", &glue.DataQualityRulesetArgs{
Name: pulumi.String("example"),
Ruleset: pulumi.String("Rules = [Completeness \"colA\" between 0.4 and 0.8]"),
TargetTable: &glue.DataQualityRulesetTargetTableArgs{
DatabaseName: pulumi.Any(exampleAwsGlueCatalogDatabase.Name),
TableName: pulumi.Any(exampleAwsGlueCatalogTable.Name),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.glue.DataQualityRuleset;
import com.pulumi.aws.glue.DataQualityRulesetArgs;
import com.pulumi.aws.glue.inputs.DataQualityRulesetTargetTableArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new DataQualityRuleset("example", DataQualityRulesetArgs.builder()
.name("example")
.ruleset("Rules = [Completeness \"colA\" between 0.4 and 0.8]")
.targetTable(DataQualityRulesetTargetTableArgs.builder()
.databaseName(exampleAwsGlueCatalogDatabase.name())
.tableName(exampleAwsGlueCatalogTable.name())
.build())
.build());
}
}
resources:
example:
type: aws:glue:DataQualityRuleset
properties:
name: example
ruleset: Rules = [Completeness "colA" between 0.4 and 0.8]
targetTable:
databaseName: ${exampleAwsGlueCatalogDatabase.name}
tableName: ${exampleAwsGlueCatalogTable.name}

Import

Using pulumi import, import Glue Data Quality Ruleset using the name. For example:

$ pulumi import aws:glue/dataQualityRuleset:DataQualityRuleset example exampleName

Properties

Link copied to clipboard
val arn: Output<String>

ARN of the Glue Data Quality Ruleset.

Link copied to clipboard
val createdOn: Output<String>

The time and date that this data quality ruleset was created.

Link copied to clipboard
val description: Output<String>?

Description of the data quality ruleset.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lastModifiedOn: Output<String>

The time and date that this data quality ruleset was created.

Link copied to clipboard
val name: Output<String>

Name of the data quality ruleset.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

When a ruleset was created from a recommendation run, this run ID is generated to link the two together.

Link copied to clipboard
val ruleset: Output<String>

A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard

A Configuration block specifying a target table associated with the data quality ruleset. See target_table below.

Link copied to clipboard
val urn: Output<String>