@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-02T14:17:16.190Z") @Stability(value=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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnSchema.Builder
A fluent builder for
CfnSchema. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| 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 |
|---|---|
|
CfnSchema(Construct scope,
String id,
CfnSchemaProps props)
Create a new `AWS::Personalize::Schema`.
|
protected |
CfnSchema(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSchema(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrSchemaArn()
The Amazon Resource Name (ARN) of the schema.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDomain()
The domain of a schema that you created for a dataset in a Domain dataset group.
|
String |
getName()
The name of the schema.
|
String |
getSchema()
The schema.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDomain(String value)
The domain of a schema that you created for a dataset in a Domain dataset group.
|
void |
setName(String value)
The name of the schema.
|
void |
setSchema(String value)
The schema.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnSchema(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSchema(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnSchema(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnSchemaProps 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. 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 public String getAttrSchemaArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getSchema()
@Stability(value=Stable)
public void setSchema(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDomain()
@Stability(value=Stable)
public void setDomain(@Nullable
String value)
Copyright © 2023. All rights reserved.