@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.524Z") @Stability(value=Stable) public class CfnClassifier extends CfnResource implements IInspectable
The AWS::Glue::Classifier resource creates an AWS Glue classifier that categorizes data sources and specifies schemas. For more information, see Adding Classifiers to a Crawler and Classifier Structure in the AWS Glue Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;
CfnClassifier cfnClassifier = CfnClassifier.Builder.create(this, "MyCfnClassifier")
.csvClassifier(CsvClassifierProperty.builder()
.allowSingleColumn(false)
.containsHeader("containsHeader")
.delimiter("delimiter")
.disableValueTrimming(false)
.header(List.of("header"))
.name("name")
.quoteSymbol("quoteSymbol")
.build())
.grokClassifier(GrokClassifierProperty.builder()
.classification("classification")
.grokPattern("grokPattern")
// the properties below are optional
.customPatterns("customPatterns")
.name("name")
.build())
.jsonClassifier(JsonClassifierProperty.builder()
.jsonPath("jsonPath")
// the properties below are optional
.name("name")
.build())
.xmlClassifier(XMLClassifierProperty.builder()
.classification("classification")
.rowTag("rowTag")
// the properties below are optional
.name("name")
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnClassifier.Builder
A fluent builder for
CfnClassifier. |
static interface |
CfnClassifier.CsvClassifierProperty
A classifier for custom `CSV` content.
|
static interface |
CfnClassifier.GrokClassifierProperty
A classifier that uses `grok` patterns.
|
static interface |
CfnClassifier.JsonClassifierProperty
A classifier for `JSON` content.
|
static interface |
CfnClassifier.XMLClassifierProperty
A classifier for `XML` content.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnClassifier(software.constructs.Construct scope,
String id)
Create a new `AWS::Glue::Classifier`.
|
|
CfnClassifier(software.constructs.Construct scope,
String id,
CfnClassifierProps props)
Create a new `AWS::Glue::Classifier`.
|
protected |
CfnClassifier(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnClassifier(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
Object |
getCsvClassifier()
A classifier for comma-separated values (CSV).
|
Object |
getGrokClassifier()
A classifier that uses `grok` .
|
Object |
getJsonClassifier()
A classifier for JSON content.
|
Object |
getXmlClassifier()
A classifier for XML content.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCsvClassifier(CfnClassifier.CsvClassifierProperty value)
A classifier for comma-separated values (CSV).
|
void |
setCsvClassifier(IResolvable value)
A classifier for comma-separated values (CSV).
|
void |
setGrokClassifier(CfnClassifier.GrokClassifierProperty value)
A classifier that uses `grok` .
|
void |
setGrokClassifier(IResolvable value)
A classifier that uses `grok` .
|
void |
setJsonClassifier(CfnClassifier.JsonClassifierProperty value)
A classifier for JSON content.
|
void |
setJsonClassifier(IResolvable value)
A classifier for JSON content.
|
void |
setXmlClassifier(CfnClassifier.XMLClassifierProperty value)
A classifier for XML content.
|
void |
setXmlClassifier(IResolvable value)
A classifier for XML content.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnClassifier(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnClassifier(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnClassifier(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnClassifierProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnClassifier(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Object getCsvClassifier()
@Stability(value=Stable)
public void setCsvClassifier(@Nullable
CfnClassifier.CsvClassifierProperty value)
@Stability(value=Stable)
public void setCsvClassifier(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getGrokClassifier()
@Stability(value=Stable)
public void setGrokClassifier(@Nullable
CfnClassifier.GrokClassifierProperty value)
@Stability(value=Stable)
public void setGrokClassifier(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getJsonClassifier()
@Stability(value=Stable)
public void setJsonClassifier(@Nullable
CfnClassifier.JsonClassifierProperty value)
@Stability(value=Stable)
public void setJsonClassifier(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getXmlClassifier()
@Stability(value=Stable)
public void setXmlClassifier(@Nullable
CfnClassifier.XMLClassifierProperty value)
@Stability(value=Stable)
public void setXmlClassifier(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.