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.98.0 (build 00b106d)", date="2024-05-08T21:35:10.459Z") @Stability(Stable) public class CfnSchema extends CfnResource implements IInspectable
Creates an Amazon Personalize schema from the specified schema string.

The schema you create must be in Avro JSON format.

Amazon Personalize recognizes three schema variants. Each schema is associated with a dataset type and has a set of required field and keywords. If you are creating a schema for a dataset in a Domain dataset group, you provide the domain of the Domain dataset group. You specify a schema when you call CreateDataset .

For more information on schemas, see Datasets and schemas .

Related APIs - ListSchemas

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.personalize.*;
 CfnSchema cfnSchema = CfnSchema.Builder.create(this, "MyCfnSchema")
         .name("name")
         .schema("schema")
         // the properties below are optional
         .domain("domain")
         .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

    • CfnSchema

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

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

      @Stability(Stable) public CfnSchema(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSchemaProps 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. 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.
    • getAttrSchemaArn

      @Stability(Stable) @NotNull public String getAttrSchemaArn()
      The Amazon Resource Name (ARN) of the schema.
    • getCfnProperties

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

      @Stability(Stable) @NotNull public String getName()
      The name of the schema.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the schema.
    • getSchema

      @Stability(Stable) @NotNull public String getSchema()
      The schema.
    • setSchema

      @Stability(Stable) public void setSchema(@NotNull String value)
      The schema.
    • getDomain

      @Stability(Stable) @Nullable public String getDomain()
      The domain of a schema that you created for a dataset in a Domain dataset group.
    • setDomain

      @Stability(Stable) public void setDomain(@Nullable String value)
      The domain of a schema that you created for a dataset in a Domain dataset group.