Class CfnClassifier

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:42.326Z") @Stability(Stable) public class CfnClassifier extends CfnResource implements IInspectable
A CloudFormation AWS::Glue::Classifier.

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();
 
  • 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 Construct scope, @NotNull String id, @Nullable CfnClassifierProps props)
      Create a new AWS::Glue::Classifier.

      Parameters:
      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.
    • CfnClassifier

      @Stability(Stable) public CfnClassifier(@NotNull Construct scope, @NotNull String id)
      Create a new AWS::Glue::Classifier.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      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.
    • 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 CfnClassifier.CsvClassifierProperty value)
      A classifier for comma-separated values (CSV).
    • setCsvClassifier

      @Stability(Stable) public void setCsvClassifier(@Nullable IResolvable 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.