@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.280Z") @Stability(value=Stable) public class CfnModel extends CfnResource implements IInspectable
The AWS::ApiGatewayV2::Model resource updates data model for a WebSocket API. For more information, see Model Selection Expressions in the API Gateway 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.apigatewayv2.*;
Object schema;
CfnModel cfnModel = CfnModel.Builder.create(this, "MyCfnModel")
.apiId("apiId")
.name("name")
.schema(schema)
// the properties below are optional
.contentType("contentType")
.description("description")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnModel.Builder
A fluent builder for
CfnModel. |
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 |
|---|---|
|
CfnModel(software.constructs.Construct scope,
String id,
CfnModelProps props)
Create a new `AWS::ApiGatewayV2::Model`.
|
protected |
CfnModel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnModel(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApiId()
The API identifier.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getContentType()
The content-type for the model, for example, "application/json".
|
String |
getDescription()
The description of the model.
|
String |
getName()
The name of the model.
|
Object |
getSchema()
The schema for the model.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApiId(String value)
The API identifier.
|
void |
setContentType(String value)
The content-type for the model, for example, "application/json".
|
void |
setDescription(String value)
The description of the model.
|
void |
setName(String value)
The name of the model.
|
void |
setSchema(Object value)
The schema for the model.
|
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 CfnModel(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnModel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnModel(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnModelProps 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 protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getApiId()
@Stability(value=Stable)
public void setApiId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getSchema()
For application/json models, this should be JSON schema draft 4 model.
@Stability(value=Stable)
public void setSchema(@NotNull
Object value)
For application/json models, this should be JSON schema draft 4 model.
@Stability(value=Stable) @Nullable public String getContentType()
@Stability(value=Stable)
public void setContentType(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.