DataQualityRulesetArgs

data class DataQualityRulesetArgs(val description: Output<String>? = null, val name: Output<String>? = null, val ruleset: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val targetTable: Output<DataQualityRulesetTargetTableArgs>? = null) : ConvertibleToJava<DataQualityRulesetArgs>

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&#46;4 and 0&#46;8]",
});
import pulumi
import pulumi_aws as aws
example = aws.glue.DataQualityRuleset("example",
name="example",
ruleset="Rules = [Completeness \"colA\" between 0&#46;4 and 0&#46;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&#46;4 and 0&#46;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&#46;4 and 0&#46;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&#46;4 and 0&#46;8]")
.build());
}
}
resources:
example:
type: aws:glue:DataQualityRuleset
properties:
name: example
ruleset: Rules = [Completeness "colA" between 0&#46;4 and 0&#46;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&#46;4 and 0&#46;8]",
});
import pulumi
import pulumi_aws as aws
example = aws.glue.DataQualityRuleset("example",
name="example",
description="example",
ruleset="Rules = [Completeness \"colA\" between 0&#46;4 and 0&#46;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&#46;4 and 0&#46;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&#46;4 and 0&#46;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&#46;4 and 0&#46;8]")
.build());
}
}
resources:
example:
type: aws:glue:DataQualityRuleset
properties:
name: example
description: example
ruleset: Rules = [Completeness "colA" between 0&#46;4 and 0&#46;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&#46;4 and 0&#46;8]",
tags: {
hello: "world",
},
});
import pulumi
import pulumi_aws as aws
example = aws.glue.DataQualityRuleset("example",
name="example",
ruleset="Rules = [Completeness \"colA\" between 0&#46;4 and 0&#46;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&#46;4 and 0&#46;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&#46;4 and 0&#46;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&#46;4 and 0&#46;8]")
.tags(Map.of("hello", "world"))
.build());
}
}
resources:
example:
type: aws:glue:DataQualityRuleset
properties:
name: example
ruleset: Rules = [Completeness "colA" between 0&#46;4 and 0&#46;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&#46;4 and 0&#46;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&#46;4 and 0&#46;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&#46;4 and 0&#46;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&#46;4 and 0&#46;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&#46;4 and 0&#46;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&#46;4 and 0&#46;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

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, name: Output<String>? = null, ruleset: Output<String>? = null, tags: Output<Map<String, String>>? = null, targetTable: Output<DataQualityRulesetTargetTableArgs>? = null)

Properties

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

Description of the data quality ruleset.

Link copied to clipboard
val name: Output<String>? = null

Name of the data quality ruleset.

Link copied to clipboard
val ruleset: Output<String>? = null

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>>? = null

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

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

Functions

Link copied to clipboard
open override fun toJava(): DataQualityRulesetArgs