Refer to the Terraform Registory for docs: aws_apigatewayv2_api
.
Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api aws_apigatewayv2_api}.
import { apigatewayv2Api } from '@cdktf/aws-cdk'
new apigatewayv2Api.Apigatewayv2Api(scope: Construct, id: string, config: Apigatewayv2ApiConfig)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
The scope in which to define this construct. |
id |
string |
The scoped construct ID. |
config |
Apigatewayv2ApiConfig |
No description. |
- Type: constructs.Construct
The scope in which to define this construct.
- Type: string
The scoped construct ID.
Must be unique amongst siblings in the same scope
- Type: Apigatewayv2ApiConfig
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
addOverride |
No description. |
overrideLogicalId |
Overrides the auto-generated logical ID with a specific ID. |
resetOverrideLogicalId |
Resets a previously passed logical Id to use the auto-generated logical id again. |
toMetadata |
No description. |
toTerraform |
Adds this resource to the terraform JSON output. |
getAnyMapAttribute |
No description. |
getBooleanAttribute |
No description. |
getBooleanMapAttribute |
No description. |
getListAttribute |
No description. |
getNumberAttribute |
No description. |
getNumberListAttribute |
No description. |
getNumberMapAttribute |
No description. |
getStringAttribute |
No description. |
getStringMapAttribute |
No description. |
interpolationForAttribute |
No description. |
putCorsConfiguration |
No description. |
resetApiKeySelectionExpression |
No description. |
resetBody |
No description. |
resetCorsConfiguration |
No description. |
resetCredentialsArn |
No description. |
resetDescription |
No description. |
resetDisableExecuteApiEndpoint |
No description. |
resetFailOnWarnings |
No description. |
resetId |
No description. |
resetRouteKey |
No description. |
resetRouteSelectionExpression |
No description. |
resetTags |
No description. |
resetTagsAll |
No description. |
resetTarget |
No description. |
resetVersion |
No description. |
public toString(): string
Returns a string representation of this construct.
public addOverride(path: string, value: any): void
- Type: string
- Type: any
public overrideLogicalId(newLogicalId: string): void
Overrides the auto-generated logical ID with a specific ID.
- Type: string
The new logical ID to use for this stack element.
public resetOverrideLogicalId(): void
Resets a previously passed logical Id to use the auto-generated logical id again.
public toMetadata(): any
public toTerraform(): any
Adds this resource to the terraform JSON output.
public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}
- Type: string
public getBooleanAttribute(terraformAttribute: string): IResolvable
- Type: string
public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}
- Type: string
public getListAttribute(terraformAttribute: string): string[]
- Type: string
public getNumberAttribute(terraformAttribute: string): number
- Type: string
public getNumberListAttribute(terraformAttribute: string): number[]
- Type: string
public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}
- Type: string
public getStringAttribute(terraformAttribute: string): string
- Type: string
public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}
- Type: string
public interpolationForAttribute(terraformAttribute: string): IResolvable
- Type: string
public putCorsConfiguration(value: Apigatewayv2ApiCorsConfiguration): void
public resetApiKeySelectionExpression(): void
public resetBody(): void
public resetCorsConfiguration(): void
public resetCredentialsArn(): void
public resetDescription(): void
public resetDisableExecuteApiEndpoint(): void
public resetFailOnWarnings(): void
public resetId(): void
public resetRouteKey(): void
public resetRouteSelectionExpression(): void
public resetTags(): void
public resetTagsAll(): void
public resetTarget(): void
public resetVersion(): void
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isTerraformElement |
No description. |
isTerraformResource |
No description. |
import { apigatewayv2Api } from '@cdktf/aws-cdk'
apigatewayv2Api.Apigatewayv2Api.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
import { apigatewayv2Api } from '@cdktf/aws-cdk'
apigatewayv2Api.Apigatewayv2Api.isTerraformElement(x: any)
- Type: any
import { apigatewayv2Api } from '@cdktf/aws-cdk'
apigatewayv2Api.Apigatewayv2Api.isTerraformResource(x: any)
- Type: any
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
cdktfStack |
cdktf.TerraformStack |
No description. |
fqn |
string |
No description. |
friendlyUniqueId |
string |
No description. |
terraformMetaArguments |
{[ key: string ]: any} |
No description. |
terraformResourceType |
string |
No description. |
terraformGeneratorMetadata |
cdktf.TerraformProviderGeneratorMetadata |
No description. |
connection |
cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection |
No description. |
count |
number | cdktf.TerraformCount |
No description. |
dependsOn |
string[] |
No description. |
forEach |
cdktf.ITerraformIterator |
No description. |
lifecycle |
cdktf.TerraformResourceLifecycle |
No description. |
provider |
cdktf.TerraformProvider |
No description. |
provisioners |
cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[] |
No description. |
apiEndpoint |
string |
No description. |
arn |
string |
No description. |
corsConfiguration |
Apigatewayv2ApiCorsConfigurationOutputReference |
No description. |
executionArn |
string |
No description. |
apiKeySelectionExpressionInput |
string |
No description. |
bodyInput |
string |
No description. |
corsConfigurationInput |
Apigatewayv2ApiCorsConfiguration |
No description. |
credentialsArnInput |
string |
No description. |
descriptionInput |
string |
No description. |
disableExecuteApiEndpointInput |
boolean | cdktf.IResolvable |
No description. |
failOnWarningsInput |
boolean | cdktf.IResolvable |
No description. |
idInput |
string |
No description. |
nameInput |
string |
No description. |
protocolTypeInput |
string |
No description. |
routeKeyInput |
string |
No description. |
routeSelectionExpressionInput |
string |
No description. |
tagsAllInput |
{[ key: string ]: string} |
No description. |
tagsInput |
{[ key: string ]: string} |
No description. |
targetInput |
string |
No description. |
versionInput |
string |
No description. |
apiKeySelectionExpression |
string |
No description. |
body |
string |
No description. |
credentialsArn |
string |
No description. |
description |
string |
No description. |
disableExecuteApiEndpoint |
boolean | cdktf.IResolvable |
No description. |
failOnWarnings |
boolean | cdktf.IResolvable |
No description. |
id |
string |
No description. |
name |
string |
No description. |
protocolType |
string |
No description. |
routeKey |
string |
No description. |
routeSelectionExpression |
string |
No description. |
tags |
{[ key: string ]: string} |
No description. |
tagsAll |
{[ key: string ]: string} |
No description. |
target |
string |
No description. |
version |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly cdktfStack: TerraformStack;
- Type: cdktf.TerraformStack
public readonly fqn: string;
- Type: string
public readonly friendlyUniqueId: string;
- Type: string
public readonly terraformMetaArguments: {[ key: string ]: any};
- Type: {[ key: string ]: any}
public readonly terraformResourceType: string;
- Type: string
public readonly terraformGeneratorMetadata: TerraformProviderGeneratorMetadata;
- Type: cdktf.TerraformProviderGeneratorMetadata
public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection;
- Type: cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection
public readonly count: number | TerraformCount;
- Type: number | cdktf.TerraformCount
public readonly dependsOn: string[];
- Type: string[]
public readonly forEach: ITerraformIterator;
- Type: cdktf.ITerraformIterator
public readonly lifecycle: TerraformResourceLifecycle;
- Type: cdktf.TerraformResourceLifecycle
public readonly provider: TerraformProvider;
- Type: cdktf.TerraformProvider
public readonly provisioners: FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[];
- Type: cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[]
public readonly apiEndpoint: string;
- Type: string
public readonly arn: string;
- Type: string
public readonly corsConfiguration: Apigatewayv2ApiCorsConfigurationOutputReference;
public readonly executionArn: string;
- Type: string
public readonly apiKeySelectionExpressionInput: string;
- Type: string
public readonly bodyInput: string;
- Type: string
public readonly corsConfigurationInput: Apigatewayv2ApiCorsConfiguration;
public readonly credentialsArnInput: string;
- Type: string
public readonly descriptionInput: string;
- Type: string
public readonly disableExecuteApiEndpointInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly failOnWarningsInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly idInput: string;
- Type: string
public readonly nameInput: string;
- Type: string
public readonly protocolTypeInput: string;
- Type: string
public readonly routeKeyInput: string;
- Type: string
public readonly routeSelectionExpressionInput: string;
- Type: string
public readonly tagsAllInput: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly tagsInput: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly targetInput: string;
- Type: string
public readonly versionInput: string;
- Type: string
public readonly apiKeySelectionExpression: string;
- Type: string
public readonly body: string;
- Type: string
public readonly credentialsArn: string;
- Type: string
public readonly description: string;
- Type: string
public readonly disableExecuteApiEndpoint: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly failOnWarnings: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly id: string;
- Type: string
public readonly name: string;
- Type: string
public readonly protocolType: string;
- Type: string
public readonly routeKey: string;
- Type: string
public readonly routeSelectionExpression: string;
- Type: string
public readonly tags: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly tagsAll: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly target: string;
- Type: string
public readonly version: string;
- Type: string
Name | Type | Description |
---|---|---|
tfResourceType |
string |
No description. |
public readonly tfResourceType: string;
- Type: string
import { apigatewayv2Api } from '@cdktf/aws-cdk'
const apigatewayv2ApiConfig: apigatewayv2Api.Apigatewayv2ApiConfig = { ... }
public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection;
- Type: cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection
public readonly count: number | TerraformCount;
- Type: number | cdktf.TerraformCount
public readonly dependsOn: ITerraformDependable[];
- Type: cdktf.ITerraformDependable[]
public readonly forEach: ITerraformIterator;
- Type: cdktf.ITerraformIterator
public readonly lifecycle: TerraformResourceLifecycle;
- Type: cdktf.TerraformResourceLifecycle
public readonly provider: TerraformProvider;
- Type: cdktf.TerraformProvider
public readonly provisioners: FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[];
- Type: cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[]
public readonly name: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#name Apigatewayv2Api#name}.
public readonly protocolType: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#protocol_type Apigatewayv2Api#protocol_type}.
public readonly apiKeySelectionExpression: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#api_key_selection_expression Apigatewayv2Api#api_key_selection_expression}.
public readonly body: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#body Apigatewayv2Api#body}.
public readonly corsConfiguration: Apigatewayv2ApiCorsConfiguration;
cors_configuration block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#cors_configuration Apigatewayv2Api#cors_configuration}
public readonly credentialsArn: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#credentials_arn Apigatewayv2Api#credentials_arn}.
public readonly description: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#description Apigatewayv2Api#description}.
public readonly disableExecuteApiEndpoint: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#disable_execute_api_endpoint Apigatewayv2Api#disable_execute_api_endpoint}.
public readonly failOnWarnings: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#fail_on_warnings Apigatewayv2Api#fail_on_warnings}.
public readonly id: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#id Apigatewayv2Api#id}.
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
public readonly routeKey: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#route_key Apigatewayv2Api#route_key}.
public readonly routeSelectionExpression: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#route_selection_expression Apigatewayv2Api#route_selection_expression}.
public readonly tags: {[ key: string ]: string};
- Type: {[ key: string ]: string}
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#tags Apigatewayv2Api#tags}.
public readonly tagsAll: {[ key: string ]: string};
- Type: {[ key: string ]: string}
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#tags_all Apigatewayv2Api#tags_all}.
public readonly target: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#target Apigatewayv2Api#target}.
public readonly version: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#version Apigatewayv2Api#version}.
import { apigatewayv2Api } from '@cdktf/aws-cdk'
const apigatewayv2ApiCorsConfiguration: apigatewayv2Api.Apigatewayv2ApiCorsConfiguration = { ... }
public readonly allowCredentials: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#allow_credentials Apigatewayv2Api#allow_credentials}.
public readonly allowHeaders: string[];
- Type: string[]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#allow_headers Apigatewayv2Api#allow_headers}.
public readonly allowMethods: string[];
- Type: string[]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#allow_methods Apigatewayv2Api#allow_methods}.
public readonly allowOrigins: string[];
- Type: string[]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#allow_origins Apigatewayv2Api#allow_origins}.
public readonly exposeHeaders: string[];
- Type: string[]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#expose_headers Apigatewayv2Api#expose_headers}.
public readonly maxAge: number;
- Type: number
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/apigatewayv2_api#max_age Apigatewayv2Api#max_age}.
import { apigatewayv2Api } from '@cdktf/aws-cdk'
new apigatewayv2Api.Apigatewayv2ApiCorsConfigurationOutputReference(terraformResource: IInterpolatingParent, terraformAttribute: string)
Name | Type | Description |
---|---|---|
terraformResource |
cdktf.IInterpolatingParent |
The parent resource. |
terraformAttribute |
string |
The attribute on the parent resource this class is referencing. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: string
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
computeFqn |
No description. |
getAnyMapAttribute |
No description. |
getBooleanAttribute |
No description. |
getBooleanMapAttribute |
No description. |
getListAttribute |
No description. |
getNumberAttribute |
No description. |
getNumberListAttribute |
No description. |
getNumberMapAttribute |
No description. |
getStringAttribute |
No description. |
getStringMapAttribute |
No description. |
interpolationForAttribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
toString |
Return a string representation of this resolvable object. |
resetAllowCredentials |
No description. |
resetAllowHeaders |
No description. |
resetAllowMethods |
No description. |
resetAllowOrigins |
No description. |
resetExposeHeaders |
No description. |
resetMaxAge |
No description. |
public computeFqn(): string
public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}
- Type: string
public getBooleanAttribute(terraformAttribute: string): IResolvable
- Type: string
public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}
- Type: string
public getListAttribute(terraformAttribute: string): string[]
- Type: string
public getNumberAttribute(terraformAttribute: string): number
- Type: string
public getNumberListAttribute(terraformAttribute: string): number[]
- Type: string
public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}
- Type: string
public getStringAttribute(terraformAttribute: string): string
- Type: string
public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}
- Type: string
public interpolationForAttribute(property: string): IResolvable
- Type: string
public resolve(_context: IResolveContext): any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
public toString(): string
Return a string representation of this resolvable object.
Returns a reversible string representation.
public resetAllowCredentials(): void
public resetAllowHeaders(): void
public resetAllowMethods(): void
public resetAllowOrigins(): void
public resetExposeHeaders(): void
public resetMaxAge(): void
Name | Type | Description |
---|---|---|
creationStack |
string[] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
string |
No description. |
allowCredentialsInput |
boolean | cdktf.IResolvable |
No description. |
allowHeadersInput |
string[] |
No description. |
allowMethodsInput |
string[] |
No description. |
allowOriginsInput |
string[] |
No description. |
exposeHeadersInput |
string[] |
No description. |
maxAgeInput |
number |
No description. |
allowCredentials |
boolean | cdktf.IResolvable |
No description. |
allowHeaders |
string[] |
No description. |
allowMethods |
string[] |
No description. |
allowOrigins |
string[] |
No description. |
exposeHeaders |
string[] |
No description. |
maxAge |
number |
No description. |
internalValue |
Apigatewayv2ApiCorsConfiguration |
No description. |
public readonly creationStack: string[];
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
public readonly fqn: string;
- Type: string
public readonly allowCredentialsInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly allowHeadersInput: string[];
- Type: string[]
public readonly allowMethodsInput: string[];
- Type: string[]
public readonly allowOriginsInput: string[];
- Type: string[]
public readonly exposeHeadersInput: string[];
- Type: string[]
public readonly maxAgeInput: number;
- Type: number
public readonly allowCredentials: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly allowHeaders: string[];
- Type: string[]
public readonly allowMethods: string[];
- Type: string[]
public readonly allowOrigins: string[];
- Type: string[]
public readonly exposeHeaders: string[];
- Type: string[]
public readonly maxAge: number;
- Type: number
public readonly internalValue: Apigatewayv2ApiCorsConfiguration;