Class S3ApiDefinition
- Namespace
- Amazon.CDK.AWS.APIGateway
- Assembly
- Amazon.CDK.AWS.APIGateway.dll
OpenAPI specification from an S3 archive.
public class S3ApiDefinition : ApiDefinition
- Inheritance
-
S3ApiDefinition
- 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;
using Amazon.CDK.AWS.S3;
Bucket bucket;
var s3ApiDefinition = new S3ApiDefinition(bucket, "key", "objectVersion");
Remarks
ExampleMetadata: fixture=_generated
Constructors
S3ApiDefinition(IBucket, string, string?)
public S3ApiDefinition(IBucket bucket, string key, string? objectVersion = null)
Parameters
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