@aws-cdk/aws-apigateway
Version:
The CDK Construct Library for AWS::ApiGateway
1,059 lines • 333 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CfnStageV2 = exports.CfnRouteResponseV2 = exports.CfnRouteV2 = exports.CfnModelV2 = exports.CfnIntegrationResponseV2 = exports.CfnIntegrationV2 = exports.CfnDomainNameV2 = exports.CfnDeploymentV2 = exports.CfnAuthorizerV2 = exports.CfnApiMappingV2 = exports.CfnApiV2 = void 0;
const jsiiDeprecationWarnings = require("../.warnings.jsii.js");
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
// Copyright 2012-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Originally generated from the AWS CloudFormation Resource Specification. Now, hand managed.
/* eslint-disable max-len */
const cdk = require("@aws-cdk/core");
/**
* Determine whether the given properties match those of a `CfnApiV2Props`
*
* @param properties - the TypeScript properties of a `CfnApiV2Props`
*
* @returns the result of the validation.
*/
function CfnApiV2PropsValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('apiKeySelectionExpression', cdk.validateString)(properties.apiKeySelectionExpression));
errors.collect(cdk.propertyValidator('basePath', cdk.validateString)(properties.basePath));
errors.collect(cdk.propertyValidator('body', cdk.validateObject)(properties.body));
errors.collect(cdk.propertyValidator('bodyS3Location', CfnApiV2_BodyS3LocationPropertyValidator)(properties.bodyS3Location));
errors.collect(cdk.propertyValidator('corsConfiguration', CfnApiV2_CorsPropertyValidator)(properties.corsConfiguration));
errors.collect(cdk.propertyValidator('credentialsArn', cdk.validateString)(properties.credentialsArn));
errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));
errors.collect(cdk.propertyValidator('disableSchemaValidation', cdk.validateBoolean)(properties.disableSchemaValidation));
errors.collect(cdk.propertyValidator('failOnWarnings', cdk.validateBoolean)(properties.failOnWarnings));
errors.collect(cdk.propertyValidator('name', cdk.validateString)(properties.name));
errors.collect(cdk.propertyValidator('protocolType', cdk.validateString)(properties.protocolType));
errors.collect(cdk.propertyValidator('routeKey', cdk.validateString)(properties.routeKey));
errors.collect(cdk.propertyValidator('routeSelectionExpression', cdk.validateString)(properties.routeSelectionExpression));
errors.collect(cdk.propertyValidator('tags', cdk.validateObject)(properties.tags));
errors.collect(cdk.propertyValidator('target', cdk.validateString)(properties.target));
errors.collect(cdk.propertyValidator('version', cdk.validateString)(properties.version));
return errors.wrap('supplied properties not correct for "CfnApiV2Props"');
}
/**
* Renders the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Api` resource
*
* @param properties - the TypeScript properties of a `CfnApiV2Props`
*
* @returns the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Api` resource.
*/
// @ts-ignore TS6133
function cfnApiV2PropsToCloudFormation(properties) {
if (!cdk.canInspect(properties)) {
return properties;
}
CfnApiV2PropsValidator(properties).assertSuccess();
return {
ApiKeySelectionExpression: cdk.stringToCloudFormation(properties.apiKeySelectionExpression),
BasePath: cdk.stringToCloudFormation(properties.basePath),
Body: cdk.objectToCloudFormation(properties.body),
BodyS3Location: cfnApiV2BodyS3LocationPropertyToCloudFormation(properties.bodyS3Location),
CorsConfiguration: cfnApiV2CorsPropertyToCloudFormation(properties.corsConfiguration),
CredentialsArn: cdk.stringToCloudFormation(properties.credentialsArn),
Description: cdk.stringToCloudFormation(properties.description),
DisableSchemaValidation: cdk.booleanToCloudFormation(properties.disableSchemaValidation),
FailOnWarnings: cdk.booleanToCloudFormation(properties.failOnWarnings),
Name: cdk.stringToCloudFormation(properties.name),
ProtocolType: cdk.stringToCloudFormation(properties.protocolType),
RouteKey: cdk.stringToCloudFormation(properties.routeKey),
RouteSelectionExpression: cdk.stringToCloudFormation(properties.routeSelectionExpression),
Tags: cdk.objectToCloudFormation(properties.tags),
Target: cdk.stringToCloudFormation(properties.target),
Version: cdk.stringToCloudFormation(properties.version),
};
}
/**
* A CloudFormation `AWS::ApiGatewayV2::Api`
*
* @cloudformationResource AWS::ApiGatewayV2::Api
* @stability deprecated
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html
* @deprecated moved to package aws-apigatewayv2
*/
class CfnApiV2 extends cdk.CfnResource {
/**
* Create a new `AWS::ApiGatewayV2::Api`.
*
* @param scope - scope in which this resource is defined
* @param id - scoped id of the resource
* @param props - resource properties
*/
constructor(scope, id, props = {}) {
super(scope, id, { type: CfnApiV2.CFN_RESOURCE_TYPE_NAME, properties: props });
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnApiV2", "moved to package aws-apigatewayv2");
jsiiDeprecationWarnings._aws_cdk_aws_apigateway_CfnApiV2Props(props);
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, CfnApiV2);
}
throw error;
}
this.apiKeySelectionExpression = props.apiKeySelectionExpression;
this.basePath = props.basePath;
this.body = props.body;
this.bodyS3Location = props.bodyS3Location;
this.corsConfiguration = props.corsConfiguration;
this.credentialsArn = props.credentialsArn;
this.description = props.description;
this.disableSchemaValidation = props.disableSchemaValidation;
this.failOnWarnings = props.failOnWarnings;
this.name = props.name;
this.protocolType = props.protocolType;
this.routeKey = props.routeKey;
this.routeSelectionExpression = props.routeSelectionExpression;
this.tags = new cdk.TagManager(cdk.TagType.MAP, 'AWS::ApiGatewayV2::Api', props.tags, { tagPropertyName: 'tags' });
this.target = props.target;
this.version = props.version;
}
/**
* Examines the CloudFormation resource and discloses attributes.
*
* @param inspector - tree inspector to collect and process attributes
*
*/
inspect(inspector) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnApiV2#inspect", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.inspect);
}
throw error;
}
inspector.addAttribute('aws:cdk:cloudformation:type', CfnApiV2.CFN_RESOURCE_TYPE_NAME);
inspector.addAttribute('aws:cdk:cloudformation:props', this.cfnProperties);
}
get cfnProperties() {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnApiV2#cfnProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, jsiiDeprecationWarnings.getPropertyDescriptor(this, "cfnProperties").get);
}
throw error;
}
return {
apiKeySelectionExpression: this.apiKeySelectionExpression,
basePath: this.basePath,
body: this.body,
bodyS3Location: this.bodyS3Location,
corsConfiguration: this.corsConfiguration,
credentialsArn: this.credentialsArn,
description: this.description,
disableSchemaValidation: this.disableSchemaValidation,
failOnWarnings: this.failOnWarnings,
name: this.name,
protocolType: this.protocolType,
routeKey: this.routeKey,
routeSelectionExpression: this.routeSelectionExpression,
tags: this.tags.renderTags(),
target: this.target,
version: this.version,
};
}
renderProperties(props) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnApiV2#renderProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.renderProperties);
}
throw error;
}
return cfnApiV2PropsToCloudFormation(props);
}
}
exports.CfnApiV2 = CfnApiV2;
_a = JSII_RTTI_SYMBOL_1;
CfnApiV2[_a] = { fqn: "@aws-cdk/aws-apigateway.CfnApiV2", version: "1.204.0" };
/**
* The CloudFormation resource type name for this resource class.
*/
CfnApiV2.CFN_RESOURCE_TYPE_NAME = 'AWS::ApiGatewayV2::Api';
/**
* Determine whether the given properties match those of a `BodyS3LocationProperty`
*
* @param properties - the TypeScript properties of a `BodyS3LocationProperty`
*
* @returns the result of the validation.
*/
function CfnApiV2_BodyS3LocationPropertyValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('bucket', cdk.validateString)(properties.bucket));
errors.collect(cdk.propertyValidator('etag', cdk.validateString)(properties.etag));
errors.collect(cdk.propertyValidator('key', cdk.validateString)(properties.key));
errors.collect(cdk.propertyValidator('version', cdk.validateString)(properties.version));
return errors.wrap('supplied properties not correct for "BodyS3LocationProperty"');
}
/**
* Renders the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Api.BodyS3Location` resource
*
* @param properties - the TypeScript properties of a `BodyS3LocationProperty`
*
* @returns the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Api.BodyS3Location` resource.
*/
// @ts-ignore TS6133
function cfnApiV2BodyS3LocationPropertyToCloudFormation(properties) {
if (!cdk.canInspect(properties)) {
return properties;
}
CfnApiV2_BodyS3LocationPropertyValidator(properties).assertSuccess();
return {
Bucket: cdk.stringToCloudFormation(properties.bucket),
Etag: cdk.stringToCloudFormation(properties.etag),
Key: cdk.stringToCloudFormation(properties.key),
Version: cdk.stringToCloudFormation(properties.version),
};
}
/**
* Determine whether the given properties match those of a `CorsProperty`
*
* @param properties - the TypeScript properties of a `CorsProperty`
*
* @returns the result of the validation.
*/
function CfnApiV2_CorsPropertyValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('allowCredentials', cdk.validateBoolean)(properties.allowCredentials));
errors.collect(cdk.propertyValidator('allowHeaders', cdk.listValidator(cdk.validateString))(properties.allowHeaders));
errors.collect(cdk.propertyValidator('allowMethods', cdk.listValidator(cdk.validateString))(properties.allowMethods));
errors.collect(cdk.propertyValidator('allowOrigins', cdk.listValidator(cdk.validateString))(properties.allowOrigins));
errors.collect(cdk.propertyValidator('exposeHeaders', cdk.listValidator(cdk.validateString))(properties.exposeHeaders));
errors.collect(cdk.propertyValidator('maxAge', cdk.validateNumber)(properties.maxAge));
return errors.wrap('supplied properties not correct for "CorsProperty"');
}
/**
* Renders the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Api.Cors` resource
*
* @param properties - the TypeScript properties of a `CorsProperty`
*
* @returns the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Api.Cors` resource.
*/
// @ts-ignore TS6133
function cfnApiV2CorsPropertyToCloudFormation(properties) {
if (!cdk.canInspect(properties)) {
return properties;
}
CfnApiV2_CorsPropertyValidator(properties).assertSuccess();
return {
AllowCredentials: cdk.booleanToCloudFormation(properties.allowCredentials),
AllowHeaders: cdk.listMapper(cdk.stringToCloudFormation)(properties.allowHeaders),
AllowMethods: cdk.listMapper(cdk.stringToCloudFormation)(properties.allowMethods),
AllowOrigins: cdk.listMapper(cdk.stringToCloudFormation)(properties.allowOrigins),
ExposeHeaders: cdk.listMapper(cdk.stringToCloudFormation)(properties.exposeHeaders),
MaxAge: cdk.numberToCloudFormation(properties.maxAge),
};
}
/**
* Determine whether the given properties match those of a `CfnApiMappingV2Props`
*
* @param properties - the TypeScript properties of a `CfnApiMappingV2Props`
*
* @returns the result of the validation.
*/
function CfnApiMappingV2PropsValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('apiId', cdk.requiredValidator)(properties.apiId));
errors.collect(cdk.propertyValidator('apiId', cdk.validateString)(properties.apiId));
errors.collect(cdk.propertyValidator('apiMappingKey', cdk.validateString)(properties.apiMappingKey));
errors.collect(cdk.propertyValidator('domainName', cdk.requiredValidator)(properties.domainName));
errors.collect(cdk.propertyValidator('domainName', cdk.validateString)(properties.domainName));
errors.collect(cdk.propertyValidator('stage', cdk.requiredValidator)(properties.stage));
errors.collect(cdk.propertyValidator('stage', cdk.validateString)(properties.stage));
return errors.wrap('supplied properties not correct for "CfnApiMappingV2Props"');
}
/**
* Renders the AWS CloudFormation properties of an `AWS::ApiGatewayV2::ApiMapping` resource
*
* @param properties - the TypeScript properties of a `CfnApiMappingV2Props`
*
* @returns the AWS CloudFormation properties of an `AWS::ApiGatewayV2::ApiMapping` resource.
*/
// @ts-ignore TS6133
function cfnApiMappingV2PropsToCloudFormation(properties) {
if (!cdk.canInspect(properties)) {
return properties;
}
CfnApiMappingV2PropsValidator(properties).assertSuccess();
return {
ApiId: cdk.stringToCloudFormation(properties.apiId),
DomainName: cdk.stringToCloudFormation(properties.domainName),
Stage: cdk.stringToCloudFormation(properties.stage),
ApiMappingKey: cdk.stringToCloudFormation(properties.apiMappingKey),
};
}
/**
* A CloudFormation `AWS::ApiGatewayV2::ApiMapping`
*
* @cloudformationResource AWS::ApiGatewayV2::ApiMapping
* @stability deprecated
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-apimapping.html
* @deprecated moved to package aws-apigatewayv2
*/
class CfnApiMappingV2 extends cdk.CfnResource {
/**
* Create a new `AWS::ApiGatewayV2::ApiMapping`.
*
* @param scope - scope in which this resource is defined
* @param id - scoped id of the resource
* @param props - resource properties
*/
constructor(scope, id, props) {
super(scope, id, { type: CfnApiMappingV2.CFN_RESOURCE_TYPE_NAME, properties: props });
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnApiMappingV2", "moved to package aws-apigatewayv2");
jsiiDeprecationWarnings._aws_cdk_aws_apigateway_CfnApiMappingV2Props(props);
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, CfnApiMappingV2);
}
throw error;
}
cdk.requireProperty(props, 'apiId', this);
cdk.requireProperty(props, 'domainName', this);
cdk.requireProperty(props, 'stage', this);
this.apiId = props.apiId;
this.domainName = props.domainName;
this.stage = props.stage;
this.apiMappingKey = props.apiMappingKey;
}
/**
* Examines the CloudFormation resource and discloses attributes.
*
* @param inspector - tree inspector to collect and process attributes
*
*/
inspect(inspector) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnApiMappingV2#inspect", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.inspect);
}
throw error;
}
inspector.addAttribute('aws:cdk:cloudformation:type', CfnApiMappingV2.CFN_RESOURCE_TYPE_NAME);
inspector.addAttribute('aws:cdk:cloudformation:props', this.cfnProperties);
}
get cfnProperties() {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnApiMappingV2#cfnProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, jsiiDeprecationWarnings.getPropertyDescriptor(this, "cfnProperties").get);
}
throw error;
}
return {
apiId: this.apiId,
domainName: this.domainName,
stage: this.stage,
apiMappingKey: this.apiMappingKey,
};
}
renderProperties(props) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnApiMappingV2#renderProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.renderProperties);
}
throw error;
}
return cfnApiMappingV2PropsToCloudFormation(props);
}
}
exports.CfnApiMappingV2 = CfnApiMappingV2;
_b = JSII_RTTI_SYMBOL_1;
CfnApiMappingV2[_b] = { fqn: "@aws-cdk/aws-apigateway.CfnApiMappingV2", version: "1.204.0" };
/**
* The CloudFormation resource type name for this resource class.
*/
CfnApiMappingV2.CFN_RESOURCE_TYPE_NAME = 'AWS::ApiGatewayV2::ApiMapping';
/**
* Determine whether the given properties match those of a `CfnAuthorizerV2Props`
*
* @param properties - the TypeScript properties of a `CfnAuthorizerV2Props`
*
* @returns the result of the validation.
*/
function CfnAuthorizerV2PropsValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('apiId', cdk.requiredValidator)(properties.apiId));
errors.collect(cdk.propertyValidator('apiId', cdk.validateString)(properties.apiId));
errors.collect(cdk.propertyValidator('authorizerCredentialsArn', cdk.validateString)(properties.authorizerCredentialsArn));
errors.collect(cdk.propertyValidator('authorizerResultTtlInSeconds', cdk.validateNumber)(properties.authorizerResultTtlInSeconds));
errors.collect(cdk.propertyValidator('authorizerType', cdk.requiredValidator)(properties.authorizerType));
errors.collect(cdk.propertyValidator('authorizerType', cdk.validateString)(properties.authorizerType));
errors.collect(cdk.propertyValidator('authorizerUri', cdk.validateString)(properties.authorizerUri));
errors.collect(cdk.propertyValidator('identitySource', cdk.requiredValidator)(properties.identitySource));
errors.collect(cdk.propertyValidator('identitySource', cdk.listValidator(cdk.validateString))(properties.identitySource));
errors.collect(cdk.propertyValidator('identityValidationExpression', cdk.validateString)(properties.identityValidationExpression));
errors.collect(cdk.propertyValidator('jwtConfiguration', CfnAuthorizerV2_JWTConfigurationPropertyValidator)(properties.jwtConfiguration));
errors.collect(cdk.propertyValidator('name', cdk.requiredValidator)(properties.name));
errors.collect(cdk.propertyValidator('name', cdk.validateString)(properties.name));
return errors.wrap('supplied properties not correct for "CfnAuthorizerV2Props"');
}
/**
* Renders the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Authorizer` resource
*
* @param properties - the TypeScript properties of a `CfnAuthorizerV2Props`
*
* @returns the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Authorizer` resource.
*/
// @ts-ignore TS6133
function cfnAuthorizerV2PropsToCloudFormation(properties) {
if (!cdk.canInspect(properties)) {
return properties;
}
CfnAuthorizerV2PropsValidator(properties).assertSuccess();
return {
ApiId: cdk.stringToCloudFormation(properties.apiId),
AuthorizerType: cdk.stringToCloudFormation(properties.authorizerType),
IdentitySource: cdk.listMapper(cdk.stringToCloudFormation)(properties.identitySource),
Name: cdk.stringToCloudFormation(properties.name),
AuthorizerCredentialsArn: cdk.stringToCloudFormation(properties.authorizerCredentialsArn),
AuthorizerResultTtlInSeconds: cdk.numberToCloudFormation(properties.authorizerResultTtlInSeconds),
AuthorizerUri: cdk.stringToCloudFormation(properties.authorizerUri),
IdentityValidationExpression: cdk.stringToCloudFormation(properties.identityValidationExpression),
JwtConfiguration: cfnAuthorizerV2JWTConfigurationPropertyToCloudFormation(properties.jwtConfiguration),
};
}
/**
* A CloudFormation `AWS::ApiGatewayV2::Authorizer`
*
* @cloudformationResource AWS::ApiGatewayV2::Authorizer
* @stability deprecated
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html
* @deprecated moved to package aws-apigatewayv2
*/
class CfnAuthorizerV2 extends cdk.CfnResource {
/**
* Create a new `AWS::ApiGatewayV2::Authorizer`.
*
* @param scope - scope in which this resource is defined
* @param id - scoped id of the resource
* @param props - resource properties
*/
constructor(scope, id, props) {
super(scope, id, { type: CfnAuthorizerV2.CFN_RESOURCE_TYPE_NAME, properties: props });
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnAuthorizerV2", "moved to package aws-apigatewayv2");
jsiiDeprecationWarnings._aws_cdk_aws_apigateway_CfnAuthorizerV2Props(props);
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, CfnAuthorizerV2);
}
throw error;
}
cdk.requireProperty(props, 'apiId', this);
cdk.requireProperty(props, 'authorizerType', this);
cdk.requireProperty(props, 'identitySource', this);
cdk.requireProperty(props, 'name', this);
this.apiId = props.apiId;
this.authorizerType = props.authorizerType;
this.identitySource = props.identitySource;
this.name = props.name;
this.authorizerCredentialsArn = props.authorizerCredentialsArn;
this.authorizerResultTtlInSeconds = props.authorizerResultTtlInSeconds;
this.authorizerUri = props.authorizerUri;
this.identityValidationExpression = props.identityValidationExpression;
this.jwtConfiguration = props.jwtConfiguration;
}
/**
* Examines the CloudFormation resource and discloses attributes.
*
* @param inspector - tree inspector to collect and process attributes
*
*/
inspect(inspector) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnAuthorizerV2#inspect", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.inspect);
}
throw error;
}
inspector.addAttribute('aws:cdk:cloudformation:type', CfnAuthorizerV2.CFN_RESOURCE_TYPE_NAME);
inspector.addAttribute('aws:cdk:cloudformation:props', this.cfnProperties);
}
get cfnProperties() {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnAuthorizerV2#cfnProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, jsiiDeprecationWarnings.getPropertyDescriptor(this, "cfnProperties").get);
}
throw error;
}
return {
apiId: this.apiId,
authorizerType: this.authorizerType,
identitySource: this.identitySource,
name: this.name,
authorizerCredentialsArn: this.authorizerCredentialsArn,
authorizerResultTtlInSeconds: this.authorizerResultTtlInSeconds,
authorizerUri: this.authorizerUri,
identityValidationExpression: this.identityValidationExpression,
jwtConfiguration: this.jwtConfiguration,
};
}
renderProperties(props) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnAuthorizerV2#renderProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.renderProperties);
}
throw error;
}
return cfnAuthorizerV2PropsToCloudFormation(props);
}
}
exports.CfnAuthorizerV2 = CfnAuthorizerV2;
_c = JSII_RTTI_SYMBOL_1;
CfnAuthorizerV2[_c] = { fqn: "@aws-cdk/aws-apigateway.CfnAuthorizerV2", version: "1.204.0" };
/**
* The CloudFormation resource type name for this resource class.
*/
CfnAuthorizerV2.CFN_RESOURCE_TYPE_NAME = 'AWS::ApiGatewayV2::Authorizer';
/**
* Determine whether the given properties match those of a `JWTConfigurationProperty`
*
* @param properties - the TypeScript properties of a `JWTConfigurationProperty`
*
* @returns the result of the validation.
*/
function CfnAuthorizerV2_JWTConfigurationPropertyValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('audience', cdk.listValidator(cdk.validateString))(properties.audience));
errors.collect(cdk.propertyValidator('issuer', cdk.validateString)(properties.issuer));
return errors.wrap('supplied properties not correct for "JWTConfigurationProperty"');
}
/**
* Renders the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Authorizer.JWTConfiguration` resource
*
* @param properties - the TypeScript properties of a `JWTConfigurationProperty`
*
* @returns the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Authorizer.JWTConfiguration` resource.
*/
// @ts-ignore TS6133
function cfnAuthorizerV2JWTConfigurationPropertyToCloudFormation(properties) {
if (!cdk.canInspect(properties)) {
return properties;
}
CfnAuthorizerV2_JWTConfigurationPropertyValidator(properties).assertSuccess();
return {
Audience: cdk.listMapper(cdk.stringToCloudFormation)(properties.audience),
Issuer: cdk.stringToCloudFormation(properties.issuer),
};
}
/**
* Determine whether the given properties match those of a `CfnDeploymentV2Props`
*
* @param properties - the TypeScript properties of a `CfnDeploymentV2Props`
*
* @returns the result of the validation.
*/
function CfnDeploymentV2PropsValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('apiId', cdk.requiredValidator)(properties.apiId));
errors.collect(cdk.propertyValidator('apiId', cdk.validateString)(properties.apiId));
errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));
errors.collect(cdk.propertyValidator('stageName', cdk.validateString)(properties.stageName));
return errors.wrap('supplied properties not correct for "CfnDeploymentV2Props"');
}
/**
* Renders the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Deployment` resource
*
* @param properties - the TypeScript properties of a `CfnDeploymentV2Props`
*
* @returns the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Deployment` resource.
*/
// @ts-ignore TS6133
function cfnDeploymentV2PropsToCloudFormation(properties) {
if (!cdk.canInspect(properties)) {
return properties;
}
CfnDeploymentV2PropsValidator(properties).assertSuccess();
return {
ApiId: cdk.stringToCloudFormation(properties.apiId),
Description: cdk.stringToCloudFormation(properties.description),
StageName: cdk.stringToCloudFormation(properties.stageName),
};
}
/**
* A CloudFormation `AWS::ApiGatewayV2::Deployment`
*
* @cloudformationResource AWS::ApiGatewayV2::Deployment
* @stability deprecated
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-deployment.html
* @deprecated moved to package aws-apigatewayv2
*/
class CfnDeploymentV2 extends cdk.CfnResource {
/**
* Create a new `AWS::ApiGatewayV2::Deployment`.
*
* @param scope - scope in which this resource is defined
* @param id - scoped id of the resource
* @param props - resource properties
*/
constructor(scope, id, props) {
super(scope, id, { type: CfnDeploymentV2.CFN_RESOURCE_TYPE_NAME, properties: props });
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnDeploymentV2", "moved to package aws-apigatewayv2");
jsiiDeprecationWarnings._aws_cdk_aws_apigateway_CfnDeploymentV2Props(props);
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, CfnDeploymentV2);
}
throw error;
}
cdk.requireProperty(props, 'apiId', this);
this.apiId = props.apiId;
this.description = props.description;
this.stageName = props.stageName;
}
/**
* Examines the CloudFormation resource and discloses attributes.
*
* @param inspector - tree inspector to collect and process attributes
*
*/
inspect(inspector) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnDeploymentV2#inspect", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.inspect);
}
throw error;
}
inspector.addAttribute('aws:cdk:cloudformation:type', CfnDeploymentV2.CFN_RESOURCE_TYPE_NAME);
inspector.addAttribute('aws:cdk:cloudformation:props', this.cfnProperties);
}
get cfnProperties() {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnDeploymentV2#cfnProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, jsiiDeprecationWarnings.getPropertyDescriptor(this, "cfnProperties").get);
}
throw error;
}
return {
apiId: this.apiId,
description: this.description,
stageName: this.stageName,
};
}
renderProperties(props) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnDeploymentV2#renderProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.renderProperties);
}
throw error;
}
return cfnDeploymentV2PropsToCloudFormation(props);
}
}
exports.CfnDeploymentV2 = CfnDeploymentV2;
_d = JSII_RTTI_SYMBOL_1;
CfnDeploymentV2[_d] = { fqn: "@aws-cdk/aws-apigateway.CfnDeploymentV2", version: "1.204.0" };
/**
* The CloudFormation resource type name for this resource class.
*/
CfnDeploymentV2.CFN_RESOURCE_TYPE_NAME = 'AWS::ApiGatewayV2::Deployment';
/**
* Determine whether the given properties match those of a `CfnDomainNameV2Props`
*
* @param properties - the TypeScript properties of a `CfnDomainNameV2Props`
*
* @returns the result of the validation.
*/
function CfnDomainNameV2PropsValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('domainName', cdk.requiredValidator)(properties.domainName));
errors.collect(cdk.propertyValidator('domainName', cdk.validateString)(properties.domainName));
errors.collect(cdk.propertyValidator('domainNameConfigurations', cdk.listValidator(CfnDomainNameV2_DomainNameConfigurationPropertyValidator))(properties.domainNameConfigurations));
errors.collect(cdk.propertyValidator('tags', cdk.validateObject)(properties.tags));
return errors.wrap('supplied properties not correct for "CfnDomainNameV2Props"');
}
/**
* Renders the AWS CloudFormation properties of an `AWS::ApiGatewayV2::DomainName` resource
*
* @param properties - the TypeScript properties of a `CfnDomainNameV2Props`
*
* @returns the AWS CloudFormation properties of an `AWS::ApiGatewayV2::DomainName` resource.
*/
// @ts-ignore TS6133
function cfnDomainNameV2PropsToCloudFormation(properties) {
if (!cdk.canInspect(properties)) {
return properties;
}
CfnDomainNameV2PropsValidator(properties).assertSuccess();
return {
DomainName: cdk.stringToCloudFormation(properties.domainName),
DomainNameConfigurations: cdk.listMapper(cfnDomainNameV2DomainNameConfigurationPropertyToCloudFormation)(properties.domainNameConfigurations),
Tags: cdk.objectToCloudFormation(properties.tags),
};
}
/**
* A CloudFormation `AWS::ApiGatewayV2::DomainName`
*
* @cloudformationResource AWS::ApiGatewayV2::DomainName
* @stability deprecated
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-domainname.html
* @deprecated moved to package aws-apigatewayv2
*/
class CfnDomainNameV2 extends cdk.CfnResource {
/**
* Create a new `AWS::ApiGatewayV2::DomainName`.
*
* @param scope - scope in which this resource is defined
* @param id - scoped id of the resource
* @param props - resource properties
*/
constructor(scope, id, props) {
super(scope, id, { type: CfnDomainNameV2.CFN_RESOURCE_TYPE_NAME, properties: props });
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnDomainNameV2", "moved to package aws-apigatewayv2");
jsiiDeprecationWarnings._aws_cdk_aws_apigateway_CfnDomainNameV2Props(props);
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, CfnDomainNameV2);
}
throw error;
}
cdk.requireProperty(props, 'domainName', this);
this.attrRegionalDomainName = cdk.Token.asString(this.getAtt('RegionalDomainName'));
this.attrRegionalHostedZoneId = cdk.Token.asString(this.getAtt('RegionalHostedZoneId'));
this.domainName = props.domainName;
this.domainNameConfigurations = props.domainNameConfigurations;
this.tags = new cdk.TagManager(cdk.TagType.MAP, 'AWS::ApiGatewayV2::DomainName', props.tags, { tagPropertyName: 'tags' });
}
/**
* Examines the CloudFormation resource and discloses attributes.
*
* @param inspector - tree inspector to collect and process attributes
*
*/
inspect(inspector) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnDomainNameV2#inspect", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.inspect);
}
throw error;
}
inspector.addAttribute('aws:cdk:cloudformation:type', CfnDomainNameV2.CFN_RESOURCE_TYPE_NAME);
inspector.addAttribute('aws:cdk:cloudformation:props', this.cfnProperties);
}
get cfnProperties() {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnDomainNameV2#cfnProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, jsiiDeprecationWarnings.getPropertyDescriptor(this, "cfnProperties").get);
}
throw error;
}
return {
domainName: this.domainName,
domainNameConfigurations: this.domainNameConfigurations,
tags: this.tags.renderTags(),
};
}
renderProperties(props) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnDomainNameV2#renderProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.renderProperties);
}
throw error;
}
return cfnDomainNameV2PropsToCloudFormation(props);
}
}
exports.CfnDomainNameV2 = CfnDomainNameV2;
_e = JSII_RTTI_SYMBOL_1;
CfnDomainNameV2[_e] = { fqn: "@aws-cdk/aws-apigateway.CfnDomainNameV2", version: "1.204.0" };
/**
* The CloudFormation resource type name for this resource class.
*/
CfnDomainNameV2.CFN_RESOURCE_TYPE_NAME = 'AWS::ApiGatewayV2::DomainName';
/**
* Determine whether the given properties match those of a `DomainNameConfigurationProperty`
*
* @param properties - the TypeScript properties of a `DomainNameConfigurationProperty`
*
* @returns the result of the validation.
*/
function CfnDomainNameV2_DomainNameConfigurationPropertyValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('certificateArn', cdk.validateString)(properties.certificateArn));
errors.collect(cdk.propertyValidator('certificateName', cdk.validateString)(properties.certificateName));
errors.collect(cdk.propertyValidator('endpointType', cdk.validateString)(properties.endpointType));
return errors.wrap('supplied properties not correct for "DomainNameConfigurationProperty"');
}
/**
* Renders the AWS CloudFormation properties of an `AWS::ApiGatewayV2::DomainName.DomainNameConfiguration` resource
*
* @param properties - the TypeScript properties of a `DomainNameConfigurationProperty`
*
* @returns the AWS CloudFormation properties of an `AWS::ApiGatewayV2::DomainName.DomainNameConfiguration` resource.
*/
// @ts-ignore TS6133
function cfnDomainNameV2DomainNameConfigurationPropertyToCloudFormation(properties) {
if (!cdk.canInspect(properties)) {
return properties;
}
CfnDomainNameV2_DomainNameConfigurationPropertyValidator(properties).assertSuccess();
return {
CertificateArn: cdk.stringToCloudFormation(properties.certificateArn),
CertificateName: cdk.stringToCloudFormation(properties.certificateName),
EndpointType: cdk.stringToCloudFormation(properties.endpointType),
};
}
/**
* Determine whether the given properties match those of a `CfnIntegrationV2Props`
*
* @param properties - the TypeScript properties of a `CfnIntegrationV2Props`
*
* @returns the result of the validation.
*/
function CfnIntegrationV2PropsValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('apiId', cdk.requiredValidator)(properties.apiId));
errors.collect(cdk.propertyValidator('apiId', cdk.validateString)(properties.apiId));
errors.collect(cdk.propertyValidator('connectionType', cdk.validateString)(properties.connectionType));
errors.collect(cdk.propertyValidator('contentHandlingStrategy', cdk.validateString)(properties.contentHandlingStrategy));
errors.collect(cdk.propertyValidator('credentialsArn', cdk.validateString)(properties.credentialsArn));
errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));
errors.collect(cdk.propertyValidator('integrationMethod', cdk.validateString)(properties.integrationMethod));
errors.collect(cdk.propertyValidator('integrationType', cdk.requiredValidator)(properties.integrationType));
errors.collect(cdk.propertyValidator('integrationType', cdk.validateString)(properties.integrationType));
errors.collect(cdk.propertyValidator('integrationUri', cdk.validateString)(properties.integrationUri));
errors.collect(cdk.propertyValidator('passthroughBehavior', cdk.validateString)(properties.passthroughBehavior));
errors.collect(cdk.propertyValidator('payloadFormatVersion', cdk.validateString)(properties.payloadFormatVersion));
errors.collect(cdk.propertyValidator('requestParameters', cdk.validateObject)(properties.requestParameters));
errors.collect(cdk.propertyValidator('requestTemplates', cdk.validateObject)(properties.requestTemplates));
errors.collect(cdk.propertyValidator('templateSelectionExpression', cdk.validateString)(properties.templateSelectionExpression));
errors.collect(cdk.propertyValidator('timeoutInMillis', cdk.validateNumber)(properties.timeoutInMillis));
return errors.wrap('supplied properties not correct for "CfnIntegrationV2Props"');
}
/**
* Renders the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Integration` resource
*
* @param properties - the TypeScript properties of a `CfnIntegrationV2Props`
*
* @returns the AWS CloudFormation properties of an `AWS::ApiGatewayV2::Integration` resource.
*/
// @ts-ignore TS6133
function cfnIntegrationV2PropsToCloudFormation(properties) {
if (!cdk.canInspect(properties)) {
return properties;
}
CfnIntegrationV2PropsValidator(properties).assertSuccess();
return {
ApiId: cdk.stringToCloudFormation(properties.apiId),
IntegrationType: cdk.stringToCloudFormation(properties.integrationType),
ConnectionType: cdk.stringToCloudFormation(properties.connectionType),
ContentHandlingStrategy: cdk.stringToCloudFormation(properties.contentHandlingStrategy),
CredentialsArn: cdk.stringToCloudFormation(properties.credentialsArn),
Description: cdk.stringToCloudFormation(properties.description),
IntegrationMethod: cdk.stringToCloudFormation(properties.integrationMethod),
IntegrationUri: cdk.stringToCloudFormation(properties.integrationUri),
PassthroughBehavior: cdk.stringToCloudFormation(properties.passthroughBehavior),
PayloadFormatVersion: cdk.stringToCloudFormation(properties.payloadFormatVersion),
RequestParameters: cdk.objectToCloudFormation(properties.requestParameters),
RequestTemplates: cdk.objectToCloudFormation(properties.requestTemplates),
TemplateSelectionExpression: cdk.stringToCloudFormation(properties.templateSelectionExpression),
TimeoutInMillis: cdk.numberToCloudFormation(properties.timeoutInMillis),
};
}
/**
* A CloudFormation `AWS::ApiGatewayV2::Integration`
*
* @cloudformationResource AWS::ApiGatewayV2::Integration
* @stability deprecated
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integration.html
* @deprecated moved to package aws-apigatewayv2
*/
class CfnIntegrationV2 extends cdk.CfnResource {
/**
* Create a new `AWS::ApiGatewayV2::Integration`.
*
* @param scope - scope in which this resource is defined
* @param id - scoped id of the resource
* @param props - resource properties
*/
constructor(scope, id, props) {
super(scope, id, { type: CfnIntegrationV2.CFN_RESOURCE_TYPE_NAME, properties: props });
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnIntegrationV2", "moved to package aws-apigatewayv2");
jsiiDeprecationWarnings._aws_cdk_aws_apigateway_CfnIntegrationV2Props(props);
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, CfnIntegrationV2);
}
throw error;
}
cdk.requireProperty(props, 'apiId', this);
cdk.requireProperty(props, 'integrationType', this);
this.apiId = props.apiId;
this.integrationType = props.integrationType;
this.connectionType = props.connectionType;
this.contentHandlingStrategy = props.contentHandlingStrategy;
this.credentialsArn = props.credentialsArn;
this.description = props.description;
this.integrationMethod = props.integrationMethod;
this.integrationUri = props.integrationUri;
this.passthroughBehavior = props.passthroughBehavior;
this.payloadFormatVersion = props.payloadFormatVersion;
this.requestParameters = props.requestParameters;
this.requestTemplates = props.requestTemplates;
this.templateSelectionExpression = props.templateSelectionExpression;
this.timeoutInMillis = props.timeoutInMillis;
}
/**
* Examines the CloudFormation resource and discloses attributes.
*
* @param inspector - tree inspector to collect and process attributes
*
*/
inspect(inspector) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnIntegrationV2#inspect", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.inspect);
}
throw error;
}
inspector.addAttribute('aws:cdk:cloudformation:type', CfnIntegrationV2.CFN_RESOURCE_TYPE_NAME);
inspector.addAttribute('aws:cdk:cloudformation:props', this.cfnProperties);
}
get cfnProperties() {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnIntegrationV2#cfnProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, jsiiDeprecationWarnings.getPropertyDescriptor(this, "cfnProperties").get);
}
throw error;
}
return {
apiId: this.apiId,
integrationType: this.integrationType,
connectionType: this.connectionType,
contentHandlingStrategy: this.contentHandlingStrategy,
credentialsArn: this.credentialsArn,
description: this.description,
integrationMethod: this.integrationMethod,
integrationUri: this.integrationUri,
passthroughBehavior: this.passthroughBehavior,
payloadFormatVersion: this.payloadFormatVersion,
requestParameters: this.requestParameters,
requestTemplates: this.requestTemplates,
templateSelectionExpression: this.templateSelectionExpression,
timeoutInMillis: this.timeoutInMillis,
};
}
renderProperties(props) {
try {
jsiiDeprecationWarnings.print("@aws-cdk/aws-apigateway.CfnIntegrationV2#renderProperties", "moved to package aws-apigatewayv2");
}
catch (error) {
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
Error.captureStackTrace(error, this.renderProperties);
}
throw error;
}
return cfnIntegrationV2PropsToCloudFormation(props);
}
}
exports.CfnIntegrationV2 = CfnIntegrationV2;
_f = JSII_RTTI_SYMBOL_1;
CfnIntegrationV2[_f] = { fqn: "@aws-cdk/aws-apigateway.CfnIntegrationV2", version: "1.204.0" };
/**
* The CloudFormation resource type name for this resource class.
*/
CfnIntegrationV2.CFN_RESOURCE_TYPE_NAME = 'AWS::ApiGatewayV2::Integration';
/**
* Determine whether the given properties match those of a `CfnIntegrationResponseV2Props`
*
* @param properties - the TypeScript properties of a `CfnIntegrationResponseV2Props`
*
* @returns the result of the validation.
*/
function CfnIntegrationResponseV2PropsValidator(properties) {
if (!cdk.canInspect(properties)) {
return cdk.VALIDATION_SUCCESS;
}
const errors = new cdk.ValidationResults();
errors.collect(cdk.propertyValidator('apiId', cdk.requiredValida