Table of Contents

Class ApiDefinitionConfig

Namespace
Amazon.CDK.AWS.APIGateway
Assembly
Amazon.CDK.AWS.APIGateway.dll

Post-Binding Configuration for a CDK construct.

public class ApiDefinitionConfig : IApiDefinitionConfig
Inheritance
ApiDefinitionConfig
Implements
Inherited Members

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 inlineDefinition;

            var apiDefinitionConfig = new ApiDefinitionConfig {
                InlineDefinition = inlineDefinition,
                S3Location = new ApiDefinitionS3Location {
                    Bucket = "bucket",
                    Key = "key",

                    // the properties below are optional
                    Version = "version"
                }
            };

Remarks

ExampleMetadata: fixture=_generated

Constructors

ApiDefinitionConfig()

public ApiDefinitionConfig()

Properties

InlineDefinition

Inline specification (mutually exclusive with s3Location).

public object? InlineDefinition { get; set; }

Property Value

object

Remarks

Default: - API definition is not defined inline

S3Location

The location of the specification in S3 (mutually exclusive with inlineDefinition).

public IApiDefinitionS3Location? S3Location { get; set; }

Property Value

IApiDefinitionS3Location

Remarks

Default: - API definition is not an S3 location