Class Classifier
Provides a Glue Classifier resource.
NOTE: It is only valid to create one type of classifier (csv, grok, JSON, or XML). Changing classifier types will recreate the classifier.
Example Usage
Csv Classifier
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Glue.Classifier("example", new Aws.Glue.ClassifierArgs
{
CsvClassifier = new Aws.Glue.Inputs.ClassifierCsvClassifierArgs
{
AllowSingleColumn = false,
ContainsHeader = "PRESENT",
Delimiter = ",",
DisableValueTrimming = false,
Header =
{
"example1",
"example2",
},
QuoteSymbol = "'",
},
});
}
}
Grok Classifier
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Glue.Classifier("example", new Aws.Glue.ClassifierArgs
{
GrokClassifier = new Aws.Glue.Inputs.ClassifierGrokClassifierArgs
{
Classification = "example",
GrokPattern = "example",
},
});
}
}
JSON Classifier
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Glue.Classifier("example", new Aws.Glue.ClassifierArgs
{
JsonClassifier = new Aws.Glue.Inputs.ClassifierJsonClassifierArgs
{
JsonPath = "example",
},
});
}
}
XML Classifier
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Glue.Classifier("example", new Aws.Glue.ClassifierArgs
{
XmlClassifier = new Aws.Glue.Inputs.ClassifierXmlClassifierArgs
{
Classification = "example",
RowTag = "example",
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Glue
Assembly: Pulumi.Aws.dll
Syntax
public class Classifier : CustomResource
Constructors
View SourceClassifier(String, ClassifierArgs, CustomResourceOptions)
Create a Classifier resource with the given unique name, arguments, and options.
Declaration
public Classifier(string name, ClassifierArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ClassifierArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCsvClassifier
A classifier for Csv content. Defined below.
Declaration
public Output<ClassifierCsvClassifier> CsvClassifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<ClassifierCsvClassifier> |
GrokClassifier
A classifier that uses grok patterns. Defined below.
Declaration
public Output<ClassifierGrokClassifier> GrokClassifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<ClassifierGrokClassifier> |
JsonClassifier
A classifier for JSON content. Defined below.
Declaration
public Output<ClassifierJsonClassifier> JsonClassifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<ClassifierJsonClassifier> |
Name
The name of the classifier.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
XmlClassifier
A classifier for XML content. Defined below.
Declaration
public Output<ClassifierXmlClassifier> XmlClassifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<ClassifierXmlClassifier> |
Methods
View SourceGet(String, Input<String>, ClassifierState, CustomResourceOptions)
Get an existing Classifier resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Classifier Get(string name, Input<string> id, ClassifierState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ClassifierState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Classifier |