aws.lakeformation.DataCellsFilter
Explore with Pulumi AI
Resource for managing an AWS Lake Formation Data Cells Filter.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lakeformation.DataCellsFilter("example", {tableData: {
databaseName: test.name,
name: "example",
tableCatalogId: current.accountId,
tableName: testAwsGlueCatalogTable.name,
columnNames: ["my_column"],
rowFilter: {
filterExpression: "my_column='example'",
},
}});
import pulumi
import pulumi_aws as aws
example = aws.lakeformation.DataCellsFilter("example", table_data={
"database_name": test["name"],
"name": "example",
"table_catalog_id": current["accountId"],
"table_name": test_aws_glue_catalog_table["name"],
"column_names": ["my_column"],
"row_filter": {
"filter_expression": "my_column='example'",
},
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lakeformation"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lakeformation.NewDataCellsFilter(ctx, "example", &lakeformation.DataCellsFilterArgs{
TableData: &lakeformation.DataCellsFilterTableDataArgs{
DatabaseName: pulumi.Any(test.Name),
Name: pulumi.String("example"),
TableCatalogId: pulumi.Any(current.AccountId),
TableName: pulumi.Any(testAwsGlueCatalogTable.Name),
ColumnNames: pulumi.StringArray{
pulumi.String("my_column"),
},
RowFilter: &lakeformation.DataCellsFilterTableDataRowFilterArgs{
FilterExpression: pulumi.String("my_column='example'"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.LakeFormation.DataCellsFilter("example", new()
{
TableData = new Aws.LakeFormation.Inputs.DataCellsFilterTableDataArgs
{
DatabaseName = test.Name,
Name = "example",
TableCatalogId = current.AccountId,
TableName = testAwsGlueCatalogTable.Name,
ColumnNames = new[]
{
"my_column",
},
RowFilter = new Aws.LakeFormation.Inputs.DataCellsFilterTableDataRowFilterArgs
{
FilterExpression = "my_column='example'",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lakeformation.DataCellsFilter;
import com.pulumi.aws.lakeformation.DataCellsFilterArgs;
import com.pulumi.aws.lakeformation.inputs.DataCellsFilterTableDataArgs;
import com.pulumi.aws.lakeformation.inputs.DataCellsFilterTableDataRowFilterArgs;
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 DataCellsFilter("example", DataCellsFilterArgs.builder()
.tableData(DataCellsFilterTableDataArgs.builder()
.databaseName(test.name())
.name("example")
.tableCatalogId(current.accountId())
.tableName(testAwsGlueCatalogTable.name())
.columnNames("my_column")
.rowFilter(DataCellsFilterTableDataRowFilterArgs.builder()
.filterExpression("my_column='example'")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:lakeformation:DataCellsFilter
properties:
tableData:
databaseName: ${test.name}
name: example
tableCatalogId: ${current.accountId}
tableName: ${testAwsGlueCatalogTable.name}
columnNames:
- my_column
rowFilter:
filterExpression: my_column='example'
Create DataCellsFilter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataCellsFilter(name: string, args?: DataCellsFilterArgs, opts?: CustomResourceOptions);
@overload
def DataCellsFilter(resource_name: str,
args: Optional[DataCellsFilterArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DataCellsFilter(resource_name: str,
opts: Optional[ResourceOptions] = None,
table_data: Optional[DataCellsFilterTableDataArgs] = None,
timeouts: Optional[DataCellsFilterTimeoutsArgs] = None)
func NewDataCellsFilter(ctx *Context, name string, args *DataCellsFilterArgs, opts ...ResourceOption) (*DataCellsFilter, error)
public DataCellsFilter(string name, DataCellsFilterArgs? args = null, CustomResourceOptions? opts = null)
public DataCellsFilter(String name, DataCellsFilterArgs args)
public DataCellsFilter(String name, DataCellsFilterArgs args, CustomResourceOptions options)
type: aws:lakeformation:DataCellsFilter
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DataCellsFilterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DataCellsFilterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DataCellsFilterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataCellsFilterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataCellsFilterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dataCellsFilterResource = new Aws.LakeFormation.DataCellsFilter("dataCellsFilterResource", new()
{
TableData = new Aws.LakeFormation.Inputs.DataCellsFilterTableDataArgs
{
DatabaseName = "string",
Name = "string",
TableCatalogId = "string",
TableName = "string",
ColumnNames = new[]
{
"string",
},
ColumnWildcard = new Aws.LakeFormation.Inputs.DataCellsFilterTableDataColumnWildcardArgs
{
ExcludedColumnNames = new[]
{
"string",
},
},
RowFilter = new Aws.LakeFormation.Inputs.DataCellsFilterTableDataRowFilterArgs
{
AllRowsWildcard = null,
FilterExpression = "string",
},
VersionId = "string",
},
Timeouts = new Aws.LakeFormation.Inputs.DataCellsFilterTimeoutsArgs
{
Create = "string",
},
});
example, err := lakeformation.NewDataCellsFilter(ctx, "dataCellsFilterResource", &lakeformation.DataCellsFilterArgs{
TableData: &lakeformation.DataCellsFilterTableDataArgs{
DatabaseName: pulumi.String("string"),
Name: pulumi.String("string"),
TableCatalogId: pulumi.String("string"),
TableName: pulumi.String("string"),
ColumnNames: pulumi.StringArray{
pulumi.String("string"),
},
ColumnWildcard: &lakeformation.DataCellsFilterTableDataColumnWildcardArgs{
ExcludedColumnNames: pulumi.StringArray{
pulumi.String("string"),
},
},
RowFilter: &lakeformation.DataCellsFilterTableDataRowFilterArgs{
AllRowsWildcard: &lakeformation.DataCellsFilterTableDataRowFilterAllRowsWildcardArgs{},
FilterExpression: pulumi.String("string"),
},
VersionId: pulumi.String("string"),
},
Timeouts: &lakeformation.DataCellsFilterTimeoutsArgs{
Create: pulumi.String("string"),
},
})
var dataCellsFilterResource = new DataCellsFilter("dataCellsFilterResource", DataCellsFilterArgs.builder()
.tableData(DataCellsFilterTableDataArgs.builder()
.databaseName("string")
.name("string")
.tableCatalogId("string")
.tableName("string")
.columnNames("string")
.columnWildcard(DataCellsFilterTableDataColumnWildcardArgs.builder()
.excludedColumnNames("string")
.build())
.rowFilter(DataCellsFilterTableDataRowFilterArgs.builder()
.allRowsWildcard()
.filterExpression("string")
.build())
.versionId("string")
.build())
.timeouts(DataCellsFilterTimeoutsArgs.builder()
.create("string")
.build())
.build());
data_cells_filter_resource = aws.lakeformation.DataCellsFilter("dataCellsFilterResource",
table_data={
"database_name": "string",
"name": "string",
"table_catalog_id": "string",
"table_name": "string",
"column_names": ["string"],
"column_wildcard": {
"excluded_column_names": ["string"],
},
"row_filter": {
"all_rows_wildcard": {},
"filter_expression": "string",
},
"version_id": "string",
},
timeouts={
"create": "string",
})
const dataCellsFilterResource = new aws.lakeformation.DataCellsFilter("dataCellsFilterResource", {
tableData: {
databaseName: "string",
name: "string",
tableCatalogId: "string",
tableName: "string",
columnNames: ["string"],
columnWildcard: {
excludedColumnNames: ["string"],
},
rowFilter: {
allRowsWildcard: {},
filterExpression: "string",
},
versionId: "string",
},
timeouts: {
create: "string",
},
});
type: aws:lakeformation:DataCellsFilter
properties:
tableData:
columnNames:
- string
columnWildcard:
excludedColumnNames:
- string
databaseName: string
name: string
rowFilter:
allRowsWildcard: {}
filterExpression: string
tableCatalogId: string
tableName: string
versionId: string
timeouts:
create: string
DataCellsFilter Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DataCellsFilter resource accepts the following input properties:
- Table
Data DataCells Filter Table Data - Information about the data cells filter. See Table Data below for details.
- Timeouts
Data
Cells Filter Timeouts
- Table
Data DataCells Filter Table Data Args - Information about the data cells filter. See Table Data below for details.
- Timeouts
Data
Cells Filter Timeouts Args
- table
Data DataCells Filter Table Data - Information about the data cells filter. See Table Data below for details.
- timeouts
Data
Cells Filter Timeouts
- table
Data DataCells Filter Table Data - Information about the data cells filter. See Table Data below for details.
- timeouts
Data
Cells Filter Timeouts
- table_
data DataCells Filter Table Data Args - Information about the data cells filter. See Table Data below for details.
- timeouts
Data
Cells Filter Timeouts Args
- table
Data Property Map - Information about the data cells filter. See Table Data below for details.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DataCellsFilter resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DataCellsFilter Resource
Get an existing DataCellsFilter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DataCellsFilterState, opts?: CustomResourceOptions): DataCellsFilter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
table_data: Optional[DataCellsFilterTableDataArgs] = None,
timeouts: Optional[DataCellsFilterTimeoutsArgs] = None) -> DataCellsFilter
func GetDataCellsFilter(ctx *Context, name string, id IDInput, state *DataCellsFilterState, opts ...ResourceOption) (*DataCellsFilter, error)
public static DataCellsFilter Get(string name, Input<string> id, DataCellsFilterState? state, CustomResourceOptions? opts = null)
public static DataCellsFilter get(String name, Output<String> id, DataCellsFilterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Table
Data DataCells Filter Table Data - Information about the data cells filter. See Table Data below for details.
- Timeouts
Data
Cells Filter Timeouts
- Table
Data DataCells Filter Table Data Args - Information about the data cells filter. See Table Data below for details.
- Timeouts
Data
Cells Filter Timeouts Args
- table
Data DataCells Filter Table Data - Information about the data cells filter. See Table Data below for details.
- timeouts
Data
Cells Filter Timeouts
- table
Data DataCells Filter Table Data - Information about the data cells filter. See Table Data below for details.
- timeouts
Data
Cells Filter Timeouts
- table_
data DataCells Filter Table Data Args - Information about the data cells filter. See Table Data below for details.
- timeouts
Data
Cells Filter Timeouts Args
- table
Data Property Map - Information about the data cells filter. See Table Data below for details.
- timeouts Property Map
Supporting Types
DataCellsFilterTableData, DataCellsFilterTableDataArgs
- Database
Name string - The name of the database.
- Name string
- The name of the data cells filter.
- Table
Catalog stringId - The ID of the Data Catalog.
- Table
Name string - The name of the table.
- Column
Names List<string> - A list of column names and/or nested column attributes.
- Column
Wildcard DataCells Filter Table Data Column Wildcard - A wildcard with exclusions. See Column Wildcard below for details.
- Row
Filter DataCells Filter Table Data Row Filter - A PartiQL predicate. See Row Filter below for details.
- Version
Id string - ID of the data cells filter version.
- Database
Name string - The name of the database.
- Name string
- The name of the data cells filter.
- Table
Catalog stringId - The ID of the Data Catalog.
- Table
Name string - The name of the table.
- Column
Names []string - A list of column names and/or nested column attributes.
- Column
Wildcard DataCells Filter Table Data Column Wildcard - A wildcard with exclusions. See Column Wildcard below for details.
- Row
Filter DataCells Filter Table Data Row Filter - A PartiQL predicate. See Row Filter below for details.
- Version
Id string - ID of the data cells filter version.
- database
Name String - The name of the database.
- name String
- The name of the data cells filter.
- table
Catalog StringId - The ID of the Data Catalog.
- table
Name String - The name of the table.
- column
Names List<String> - A list of column names and/or nested column attributes.
- column
Wildcard DataCells Filter Table Data Column Wildcard - A wildcard with exclusions. See Column Wildcard below for details.
- row
Filter DataCells Filter Table Data Row Filter - A PartiQL predicate. See Row Filter below for details.
- version
Id String - ID of the data cells filter version.
- database
Name string - The name of the database.
- name string
- The name of the data cells filter.
- table
Catalog stringId - The ID of the Data Catalog.
- table
Name string - The name of the table.
- column
Names string[] - A list of column names and/or nested column attributes.
- column
Wildcard DataCells Filter Table Data Column Wildcard - A wildcard with exclusions. See Column Wildcard below for details.
- row
Filter DataCells Filter Table Data Row Filter - A PartiQL predicate. See Row Filter below for details.
- version
Id string - ID of the data cells filter version.
- database_
name str - The name of the database.
- name str
- The name of the data cells filter.
- table_
catalog_ strid - The ID of the Data Catalog.
- table_
name str - The name of the table.
- column_
names Sequence[str] - A list of column names and/or nested column attributes.
- column_
wildcard DataCells Filter Table Data Column Wildcard - A wildcard with exclusions. See Column Wildcard below for details.
- row_
filter DataCells Filter Table Data Row Filter - A PartiQL predicate. See Row Filter below for details.
- version_
id str - ID of the data cells filter version.
- database
Name String - The name of the database.
- name String
- The name of the data cells filter.
- table
Catalog StringId - The ID of the Data Catalog.
- table
Name String - The name of the table.
- column
Names List<String> - A list of column names and/or nested column attributes.
- column
Wildcard Property Map - A wildcard with exclusions. See Column Wildcard below for details.
- row
Filter Property Map - A PartiQL predicate. See Row Filter below for details.
- version
Id String - ID of the data cells filter version.
DataCellsFilterTableDataColumnWildcard, DataCellsFilterTableDataColumnWildcardArgs
- Excluded
Column List<string>Names - (Optional) Excludes column names. Any column with this name will be excluded.
- Excluded
Column []stringNames - (Optional) Excludes column names. Any column with this name will be excluded.
- excluded
Column List<String>Names - (Optional) Excludes column names. Any column with this name will be excluded.
- excluded
Column string[]Names - (Optional) Excludes column names. Any column with this name will be excluded.
- excluded_
column_ Sequence[str]names - (Optional) Excludes column names. Any column with this name will be excluded.
- excluded
Column List<String>Names - (Optional) Excludes column names. Any column with this name will be excluded.
DataCellsFilterTableDataRowFilter, DataCellsFilterTableDataRowFilterArgs
- All
Rows DataWildcard Cells Filter Table Data Row Filter All Rows Wildcard - (Optional) A wildcard that matches all rows.
- Filter
Expression string - (Optional) A filter expression.
- All
Rows DataWildcard Cells Filter Table Data Row Filter All Rows Wildcard - (Optional) A wildcard that matches all rows.
- Filter
Expression string - (Optional) A filter expression.
- all
Rows DataWildcard Cells Filter Table Data Row Filter All Rows Wildcard - (Optional) A wildcard that matches all rows.
- filter
Expression String - (Optional) A filter expression.
- all
Rows DataWildcard Cells Filter Table Data Row Filter All Rows Wildcard - (Optional) A wildcard that matches all rows.
- filter
Expression string - (Optional) A filter expression.
- all_
rows_ Datawildcard Cells Filter Table Data Row Filter All Rows Wildcard - (Optional) A wildcard that matches all rows.
- filter_
expression str - (Optional) A filter expression.
- all
Rows Property MapWildcard - (Optional) A wildcard that matches all rows.
- filter
Expression String - (Optional) A filter expression.
DataCellsFilterTimeouts, DataCellsFilterTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Using pulumi import
, import Lake Formation Data Cells Filter using the id
. For example:
$ pulumi import aws:lakeformation/dataCellsFilter:DataCellsFilter example database_name,name,table_catalog_id,table_name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.