Class CfnClassifier

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:31.861Z") @Stability(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)
                 .containsCustomDatatype(List.of("containsCustomDatatype"))
                 .containsHeader("containsHeader")
                 .customDatatypeConfigured(false)
                 .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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnClassifier

      protected CfnClassifier(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnClassifier

      protected CfnClassifier(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnClassifier

      @Stability(Stable) public CfnClassifier(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnClassifierProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnClassifier

      @Stability(Stable) public CfnClassifier(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCsvClassifier

      @Stability(Stable) @Nullable public Object getCsvClassifier()
      A classifier for comma-separated values (CSV).
    • setCsvClassifier

      @Stability(Stable) public void setCsvClassifier(@Nullable IResolvable value)
      A classifier for comma-separated values (CSV).
    • setCsvClassifier

      @Stability(Stable) public void setCsvClassifier(@Nullable CfnClassifier.CsvClassifierProperty value)
      A classifier for comma-separated values (CSV).
    • getGrokClassifier

      @Stability(Stable) @Nullable public Object getGrokClassifier()
      A classifier that uses grok .
    • setGrokClassifier

      @Stability(Stable) public void setGrokClassifier(@Nullable IResolvable value)
      A classifier that uses grok .
    • setGrokClassifier

      @Stability(Stable) public void setGrokClassifier(@Nullable CfnClassifier.GrokClassifierProperty value)
      A classifier that uses grok .
    • getJsonClassifier

      @Stability(Stable) @Nullable public Object getJsonClassifier()
      A classifier for JSON content.
    • setJsonClassifier

      @Stability(Stable) public void setJsonClassifier(@Nullable IResolvable value)
      A classifier for JSON content.
    • setJsonClassifier

      @Stability(Stable) public void setJsonClassifier(@Nullable CfnClassifier.JsonClassifierProperty value)
      A classifier for JSON content.
    • getXmlClassifier

      @Stability(Stable) @Nullable public Object getXmlClassifier()
      A classifier for XML content.
    • setXmlClassifier

      @Stability(Stable) public void setXmlClassifier(@Nullable IResolvable value)
      A classifier for XML content.
    • setXmlClassifier

      @Stability(Stable) public void setXmlClassifier(@Nullable CfnClassifier.XMLClassifierProperty value)
      A classifier for XML content.