Class InlineApiDefinition
- Namespace
- Amazon.CDK.AWS.APIGateway
- Assembly
- Amazon.CDK.AWS.APIGateway.dll
OpenAPI specification from an inline JSON object.
public class InlineApiDefinition : ApiDefinition
- Inheritance
-
InlineApiDefinition
- 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 definition;
var inlineApiDefinition = new InlineApiDefinition(definition);
Remarks
ExampleMetadata: fixture=_generated
Constructors
InlineApiDefinition(object)
public InlineApiDefinition(object definition)
Parameters
definition
object
Methods
Bind(Construct)
Called when the specification is initialized to allow this object to bind to the stack, add resources and have fun.
public override IApiDefinitionConfig Bind(Construct scope)
Parameters
scope
Construct