import * as core from "@terrascript/core"; export interface ApiMappingArgs extends core.ResourceArgs { /** * (Required) The API identifier. */ apiId: string | core.StringOut; /** * (Optional) The [API mapping key](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigat * eway-websocket-api-mapping-template-reference.html). */ apiMappingKey?: string | core.StringOut; /** * (Required) The domain name. Use the [`aws_apigatewayv2_domain_name`](/docs/providers/aws/r/apigatewa * yv2_domain_name.html) resource to configure a domain name. */ domainName: string | core.StringOut; /** * (Required) The API stage. Use the [`aws_apigatewayv2_stage`](/docs/providers/aws/r/apigatewayv2_stag * e.html) resource to configure an API stage. */ stage: string | core.StringOut; } export class ApiMapping extends core.Resource { /** * (Required) The API identifier. */ @core.attr(String) public apiId!: string | core.StringOut; /** * (Optional) The [API mapping key](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigat * eway-websocket-api-mapping-template-reference.html). */ @core.attr(String) public apiMappingKey?: string | core.StringOut; /** * (Required) The domain name. Use the [`aws_apigatewayv2_domain_name`](/docs/providers/aws/r/apigatewa * yv2_domain_name.html) resource to configure a domain name. */ @core.attr(String) public domainName!: string | core.StringOut; /** * The API mapping identifier. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The API stage. Use the [`aws_apigatewayv2_stage`](/docs/providers/aws/r/apigatewayv2_stag * e.html) resource to configure an API stage. */ @core.attr(String) public stage!: string | core.StringOut; constructor(name: string, args?: ApiMappingArgs) { super(name, "aws_apigatewayv2_api_mapping", args); } public override getNamespace(): string { return "aws_apigatewayv2"; } }