Package-level declarations

Types

Link copied to clipboard
class Account : KotlinCustomResource

The `AWS::ApiGateway::Account` resource specifies the IAM role that Amazon API Gateway uses to write API logs to Amazon CloudWatch Logs. To avoid overwriting other roles, you should only have one `AWS::ApiGateway::Account` resource per region per account.

Link copied to clipboard
data class AccountArgs(val cloudWatchRoleArn: Output<String>? = null) : ConvertibleToJava<AccountArgs>

The `AWS::ApiGateway::Account` resource specifies the IAM role that Amazon API Gateway uses to write API logs to Amazon CloudWatch Logs. To avoid overwriting other roles, you should only have one `AWS::ApiGateway::Account` resource per region per account.

Link copied to clipboard
Link copied to clipboard
object AccountMapper : ResourceMapper<Account>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class ApiKey : KotlinCustomResource

The `AWS::ApiGateway::ApiKey` resource creates a unique key that you can distribute to clients who are executing API Gateway `Method` resources that require an API key. To specify which API key clients must use, map the API key with the `RestApi` and `Stage` resources that include the methods that require a key.

Link copied to clipboard
data class ApiKeyArgs(val customerId: Output<String>? = null, val description: Output<String>? = null, val enabled: Output<Boolean>? = null, val generateDistinctId: Output<Boolean>? = null, val name: Output<String>? = null, val stageKeys: Output<List<ApiKeyStageKeyArgs>>? = null, val tags: Output<List<TagArgs>>? = null, val value: Output<String>? = null) : ConvertibleToJava<ApiKeyArgs>

The `AWS::ApiGateway::ApiKey` resource creates a unique key that you can distribute to clients who are executing API Gateway `Method` resources that require an API key. To specify which API key clients must use, map the API key with the `RestApi` and `Stage` resources that include the methods that require a key.

Link copied to clipboard

Builder for ApiKeyArgs.

Link copied to clipboard
object ApiKeyMapper : ResourceMapper<ApiKey>
Link copied to clipboard

Builder for ApiKey.

Link copied to clipboard
class Authorizer : KotlinCustomResource

The `AWS::ApiGateway::Authorizer` resource creates an authorization layer that API Gateway activates for methods that have authorization enabled. API Gateway activates the authorizer when a client calls those methods.

Link copied to clipboard
data class AuthorizerArgs(val authType: Output<String>? = null, val authorizerCredentials: Output<String>? = null, val authorizerResultTtlInSeconds: Output<Int>? = null, val authorizerUri: Output<String>? = null, val identitySource: Output<String>? = null, val identityValidationExpression: Output<String>? = null, val name: Output<String>? = null, val providerArns: Output<List<String>>? = null, val restApiId: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<AuthorizerArgs>

The `AWS::ApiGateway::Authorizer` resource creates an authorization layer that API Gateway activates for methods that have authorization enabled. API Gateway activates the authorizer when a client calls those methods.

Link copied to clipboard
Link copied to clipboard
object AuthorizerMapper : ResourceMapper<Authorizer>
Link copied to clipboard
Link copied to clipboard
class BasePathMapping : KotlinCustomResource

The `AWS::ApiGateway::BasePathMapping` resource creates a base path that clients who call your API must use in the invocation URL.

Link copied to clipboard
data class BasePathMappingArgs(val basePath: Output<String>? = null, val domainName: Output<String>? = null, val restApiId: Output<String>? = null, val stage: Output<String>? = null) : ConvertibleToJava<BasePathMappingArgs>

The `AWS::ApiGateway::BasePathMapping` resource creates a base path that clients who call your API must use in the invocation URL.

Link copied to clipboard
object BasePathMappingMapper : ResourceMapper<BasePathMapping>
Link copied to clipboard
class ClientCertificate : KotlinCustomResource

The `AWS::ApiGateway::ClientCertificate` resource creates a client certificate that API Gateway uses to configure client-side SSL authentication for sending requests to the integration endpoint.

Link copied to clipboard
data class ClientCertificateArgs(val description: Output<String>? = null, val tags: Output<List<TagArgs>>? = null) : ConvertibleToJava<ClientCertificateArgs>

The `AWS::ApiGateway::ClientCertificate` resource creates a client certificate that API Gateway uses to configure client-side SSL authentication for sending requests to the integration endpoint.

Link copied to clipboard
object ClientCertificateMapper : ResourceMapper<ClientCertificate>
Link copied to clipboard
class Deployment : KotlinCustomResource

The `AWS::ApiGateway::Deployment` resource deploys an API Gateway `RestApi` resource to a stage so that clients can call the API over the internet. The stage acts as an environment.

Link copied to clipboard
data class DeploymentArgs(val deploymentCanarySettings: Output<DeploymentCanarySettingsArgs>? = null, val description: Output<String>? = null, val restApiId: Output<String>? = null, val stageDescription: Output<DeploymentStageDescriptionArgs>? = null, val stageName: Output<String>? = null) : ConvertibleToJava<DeploymentArgs>

The `AWS::ApiGateway::Deployment` resource deploys an API Gateway `RestApi` resource to a stage so that clients can call the API over the internet. The stage acts as an environment.

Link copied to clipboard
Link copied to clipboard
object DeploymentMapper : ResourceMapper<Deployment>
Link copied to clipboard
Link copied to clipboard
class DocumentationPart : KotlinCustomResource

The `AWS::ApiGateway::DocumentationPart` resource creates a documentation part for an API. For more information, see Representation of API Documentation in API Gateway in the API Gateway Developer Guide.

Link copied to clipboard
data class DocumentationPartArgs(val location: Output<DocumentationPartLocationArgs>? = null, val properties: Output<String>? = null, val restApiId: Output<String>? = null) : ConvertibleToJava<DocumentationPartArgs>

The `AWS::ApiGateway::DocumentationPart` resource creates a documentation part for an API. For more information, see Representation of API Documentation in API Gateway in the API Gateway Developer Guide.

Link copied to clipboard
object DocumentationPartMapper : ResourceMapper<DocumentationPart>
Link copied to clipboard
class DocumentationVersion : KotlinCustomResource

The `AWS::ApiGateway::DocumentationVersion` resource creates a snapshot of the documentation for an API. For more information, see Representation of API Documentation in API Gateway in the API Gateway Developer Guide.

Link copied to clipboard
data class DocumentationVersionArgs(val description: Output<String>? = null, val documentationVersion: Output<String>? = null, val restApiId: Output<String>? = null) : ConvertibleToJava<DocumentationVersionArgs>

The `AWS::ApiGateway::DocumentationVersion` resource creates a snapshot of the documentation for an API. For more information, see Representation of API Documentation in API Gateway in the API Gateway Developer Guide.

Link copied to clipboard
Link copied to clipboard
class DomainName : KotlinCustomResource

Resource Type definition for AWS::ApiGateway::DomainName.

Link copied to clipboard
data class DomainNameArgs(val certificateArn: Output<String>? = null, val domainName: Output<String>? = null, val endpointConfiguration: Output<DomainNameEndpointConfigurationArgs>? = null, val mutualTlsAuthentication: Output<DomainNameMutualTlsAuthenticationArgs>? = null, val ownershipVerificationCertificateArn: Output<String>? = null, val regionalCertificateArn: Output<String>? = null, val securityPolicy: Output<String>? = null, val tags: Output<List<TagArgs>>? = null) : ConvertibleToJava<DomainNameArgs>

Resource Type definition for AWS::ApiGateway::DomainName.

Link copied to clipboard
Link copied to clipboard
object DomainNameMapper : ResourceMapper<DomainName>
Link copied to clipboard
Link copied to clipboard
class GatewayResponse : KotlinCustomResource

The `AWS::ApiGateway::GatewayResponse` resource creates a gateway response for your API. For more information, see API Gateway Responses in the API Gateway Developer Guide.

Link copied to clipboard
data class GatewayResponseArgs(val responseParameters: Output<Map<String, String>>? = null, val responseTemplates: Output<Map<String, String>>? = null, val responseType: Output<String>? = null, val restApiId: Output<String>? = null, val statusCode: Output<String>? = null) : ConvertibleToJava<GatewayResponseArgs>

The `AWS::ApiGateway::GatewayResponse` resource creates a gateway response for your API. For more information, see API Gateway Responses in the API Gateway Developer Guide.

Link copied to clipboard
object GatewayResponseMapper : ResourceMapper<GatewayResponse>
Link copied to clipboard
class Method : KotlinCustomResource

The `AWS::ApiGateway::Method` resource creates API Gateway methods that define the parameters and body that clients must send in their requests.

Link copied to clipboard
data class MethodArgs(val apiKeyRequired: Output<Boolean>? = null, val authorizationScopes: Output<List<String>>? = null, val authorizationType: Output<String>? = null, val authorizerId: Output<String>? = null, val httpMethod: Output<String>? = null, val integration: Output<MethodIntegrationArgs>? = null, val methodResponses: Output<List<MethodResponseArgs>>? = null, val operationName: Output<String>? = null, val requestModels: Output<Map<String, String>>? = null, val requestParameters: Output<Map<String, Either<Boolean, String>>>? = null, val requestValidatorId: Output<String>? = null, val resourceId: Output<String>? = null, val restApiId: Output<String>? = null) : ConvertibleToJava<MethodArgs>

The `AWS::ApiGateway::Method` resource creates API Gateway methods that define the parameters and body that clients must send in their requests.

Link copied to clipboard

Builder for MethodArgs.

Link copied to clipboard
object MethodMapper : ResourceMapper<Method>
Link copied to clipboard

Builder for Method.

Link copied to clipboard
class Model : KotlinCustomResource

The `AWS::ApiGateway::Model` resource defines the structure of a request or response payload for an API method.

Link copied to clipboard
data class ModelArgs(val contentType: Output<String>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val restApiId: Output<String>? = null, val schema: Output<Any>? = null) : ConvertibleToJava<ModelArgs>

/* /* The `AWS::ApiGateway::Model` resource defines the structure of a request or response payload for an API method.

Link copied to clipboard

Builder for ModelArgs.

Link copied to clipboard
object ModelMapper : ResourceMapper<Model>
Link copied to clipboard

Builder for Model.

Link copied to clipboard
class RequestValidator : KotlinCustomResource

The `AWS::ApiGateway::RequestValidator` resource sets up basic validation rules for incoming requests to your API. For more information, see Enable Basic Request Validation for an API in API Gateway in the API Gateway Developer Guide.

Link copied to clipboard
data class RequestValidatorArgs(val name: Output<String>? = null, val restApiId: Output<String>? = null, val validateRequestBody: Output<Boolean>? = null, val validateRequestParameters: Output<Boolean>? = null) : ConvertibleToJava<RequestValidatorArgs>

The `AWS::ApiGateway::RequestValidator` resource sets up basic validation rules for incoming requests to your API. For more information, see Enable Basic Request Validation for an API in API Gateway in the API Gateway Developer Guide.

Link copied to clipboard
object RequestValidatorMapper : ResourceMapper<RequestValidator>
Link copied to clipboard
class Resource : KotlinCustomResource

The `AWS::ApiGateway::Resource` resource creates a resource in an API.

Link copied to clipboard
data class ResourceArgs(val parentId: Output<String>? = null, val pathPart: Output<String>? = null, val restApiId: Output<String>? = null) : ConvertibleToJava<ResourceArgs>

The `AWS::ApiGateway::Resource` resource creates a resource in an API.

Link copied to clipboard
Link copied to clipboard
object ResourceMapper : ResourceMapper<Resource>
Link copied to clipboard
Link copied to clipboard
class RestApi : KotlinCustomResource

The `AWS::ApiGateway::RestApi` resource creates a REST API. For more information, see restapi:create in the Amazon API Gateway REST API Reference. On January 1, 2016, the Swagger Specification was donated to the OpenAPI initiative, becoming the foundation of the OpenAPI Specification.

Link copied to clipboard
data class RestApiArgs(val apiKeySourceType: Output<String>? = null, val binaryMediaTypes: Output<List<String>>? = null, val body: Output<Any>? = null, val bodyS3Location: Output<RestApiS3LocationArgs>? = null, val cloneFrom: Output<String>? = null, val description: Output<String>? = null, val disableExecuteApiEndpoint: Output<Boolean>? = null, val endpointConfiguration: Output<RestApiEndpointConfigurationArgs>? = null, val failOnWarnings: Output<Boolean>? = null, val minimumCompressionSize: Output<Int>? = null, val mode: Output<String>? = null, val name: Output<String>? = null, val parameters: Output<Map<String, String>>? = null, val policy: Output<Any>? = null, val tags: Output<List<TagArgs>>? = null) : ConvertibleToJava<RestApiArgs>

The `AWS::ApiGateway::RestApi` resource creates a REST API. For more information, see restapi:create in the Amazon API Gateway REST API Reference. On January 1, 2016, the Swagger Specification was donated to the OpenAPI initiative, becoming the foundation of the OpenAPI Specification.

Link copied to clipboard
Link copied to clipboard
object RestApiMapper : ResourceMapper<RestApi>
Link copied to clipboard
Link copied to clipboard
class Stage : KotlinCustomResource

The `AWS::ApiGateway::Stage` resource creates a stage for a deployment.

Link copied to clipboard
data class StageArgs(val accessLogSetting: Output<StageAccessLogSettingArgs>? = null, val cacheClusterEnabled: Output<Boolean>? = null, val cacheClusterSize: Output<String>? = null, val canarySetting: Output<StageCanarySettingArgs>? = null, val clientCertificateId: Output<String>? = null, val deploymentId: Output<String>? = null, val description: Output<String>? = null, val documentationVersion: Output<String>? = null, val methodSettings: Output<List<StageMethodSettingArgs>>? = null, val restApiId: Output<String>? = null, val stageName: Output<String>? = null, val tags: Output<List<TagArgs>>? = null, val tracingEnabled: Output<Boolean>? = null, val variables: Output<Map<String, String>>? = null) : ConvertibleToJava<StageArgs>

/* The `AWS::ApiGateway::Stage` resource creates a stage for a deployment.

Link copied to clipboard

Builder for StageArgs.

Link copied to clipboard
object StageMapper : ResourceMapper<Stage>
Link copied to clipboard

Builder for Stage.

Link copied to clipboard
class UsagePlan : KotlinCustomResource

The `AWS::ApiGateway::UsagePlan` resource creates a usage plan for deployed APIs. A usage plan sets a target for the throttling and quota limits on individual client API keys. For more information, see Creating and Using API Usage Plans in Amazon API Gateway in the API Gateway Developer Guide. In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using to monitor costs and to manage API requests.

Link copied to clipboard
data class UsagePlanArgs(val apiStages: Output<List<UsagePlanApiStageArgs>>? = null, val description: Output<String>? = null, val quota: Output<UsagePlanQuotaSettingsArgs>? = null, val tags: Output<List<TagArgs>>? = null, val throttle: Output<UsagePlanThrottleSettingsArgs>? = null, val usagePlanName: Output<String>? = null) : ConvertibleToJava<UsagePlanArgs>

The `AWS::ApiGateway::UsagePlan` resource creates a usage plan for deployed APIs. A usage plan sets a target for the throttling and quota limits on individual client API keys. For more information, see Creating and Using API Usage Plans in Amazon API Gateway in the API Gateway Developer Guide. In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using to monitor costs and to manage API requests.

Link copied to clipboard
Link copied to clipboard
class UsagePlanKey : KotlinCustomResource

The `AWS::ApiGateway::UsagePlanKey` resource associates an API key with a usage plan. This association determines which users the usage plan is applied to.

Link copied to clipboard
data class UsagePlanKeyArgs(val keyId: Output<String>? = null, val keyType: Output<UsagePlanKeyKeyType>? = null, val usagePlanId: Output<String>? = null) : ConvertibleToJava<UsagePlanKeyArgs>

The `AWS::ApiGateway::UsagePlanKey` resource associates an API key with a usage plan. This association determines which users the usage plan is applied to.

Link copied to clipboard
Link copied to clipboard
object UsagePlanKeyMapper : ResourceMapper<UsagePlanKey>
Link copied to clipboard
Link copied to clipboard
object UsagePlanMapper : ResourceMapper<UsagePlan>
Link copied to clipboard
Link copied to clipboard
class VpcLink : KotlinCustomResource

The `AWS::ApiGateway::VpcLink` resource creates an API Gateway VPC link for a REST API to access resources in an Amazon Virtual Private Cloud (VPC). For more information, see vpclink:create in the `Amazon API Gateway REST API Reference`.

Link copied to clipboard
data class VpcLinkArgs(val description: Output<String>? = null, val name: Output<String>? = null, val tags: Output<List<TagArgs>>? = null, val targetArns: Output<List<String>>? = null) : ConvertibleToJava<VpcLinkArgs>

The `AWS::ApiGateway::VpcLink` resource creates an API Gateway VPC link for a REST API to access resources in an Amazon Virtual Private Cloud (VPC). For more information, see vpclink:create in the `Amazon API Gateway REST API Reference`.

Link copied to clipboard
Link copied to clipboard
object VpcLinkMapper : ResourceMapper<VpcLink>
Link copied to clipboard

Functions

Link copied to clipboard
fun account(name: String): Account
suspend fun account(name: String, block: suspend AccountResourceBuilder.() -> Unit): Account
Link copied to clipboard
fun apiKey(name: String): ApiKey
suspend fun apiKey(name: String, block: suspend ApiKeyResourceBuilder.() -> Unit): ApiKey
Link copied to clipboard
suspend fun authorizer(name: String, block: suspend AuthorizerResourceBuilder.() -> Unit): Authorizer
Link copied to clipboard
Link copied to clipboard
suspend fun deployment(name: String, block: suspend DeploymentResourceBuilder.() -> Unit): Deployment
Link copied to clipboard
suspend fun domainName(name: String, block: suspend DomainNameResourceBuilder.() -> Unit): DomainName
Link copied to clipboard
Link copied to clipboard
fun method(name: String): Method
suspend fun method(name: String, block: suspend MethodResourceBuilder.() -> Unit): Method
Link copied to clipboard
fun model(name: String): Model
suspend fun model(name: String, block: suspend ModelResourceBuilder.() -> Unit): Model
Link copied to clipboard
Link copied to clipboard
suspend fun resource(name: String, block: suspend ResourceResourceBuilder.() -> Unit): Resource
Link copied to clipboard
fun restApi(name: String): RestApi
suspend fun restApi(name: String, block: suspend RestApiResourceBuilder.() -> Unit): RestApi
Link copied to clipboard
fun stage(name: String): Stage
suspend fun stage(name: String, block: suspend StageResourceBuilder.() -> Unit): Stage
Link copied to clipboard
suspend fun usagePlan(name: String, block: suspend UsagePlanResourceBuilder.() -> Unit): UsagePlan
Link copied to clipboard
Link copied to clipboard
fun vpcLink(name: String): VpcLink
suspend fun vpcLink(name: String, block: suspend VpcLinkResourceBuilder.() -> Unit): VpcLink