Show / Hide Table of Contents

Class CfnModelProps

Properties for defining a CfnModel.

Inheritance
System.Object
CfnModelProps
Implements
ICfnModelProps
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnModelProps : Object, ICfnModelProps
Syntax (vb)
Public Class CfnModelProps
    Inherits Object
    Implements ICfnModelProps
Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;

var schema;

var cfnModelProps = new CfnModelProps {
    RestApiId = "restApiId",

    // the properties below are optional
    ContentType = "contentType",
    Description = "description",
    Name = "name",
    Schema = schema
};

Synopsis

Constructors

CfnModelProps()

Properties

ContentType

The content-type for the model.

Description

The description of the model.

Name

A name for the model.

RestApiId

The string identifier of the associated RestApi.

Schema

The schema for the model.

Constructors

CfnModelProps()

public CfnModelProps()

Properties

ContentType

The content-type for the model.

public string ContentType { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html#cfn-apigateway-model-contenttype

Description

The description of the model.

public string Description { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html#cfn-apigateway-model-description

Name

A name for the model.

public string Name { get; set; }
Property Value

System.String

Remarks

If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the model name. For more information, see Name Type .

If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html#cfn-apigateway-model-name

RestApiId

The string identifier of the associated RestApi.

public string RestApiId { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html#cfn-apigateway-model-restapiid

Schema

The schema for the model.

public object Schema { get; set; }
Property Value

System.Object

Remarks

For application/json models, this should be JSON schema draft 4 model. Do not include "* /" characters in the description of any properties because such "* /" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html#cfn-apigateway-model-schema

Implements

ICfnModelProps
Back to top Generated by DocFX