Class CfnIntegration
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.apigatewayv2.CfnIntegration
- All Implemented Interfaces:
IInspectable,IIntegrationRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:44.495Z")
@Stability(Stable)
public class CfnIntegration
extends CfnResource
implements IInspectable, IIntegrationRef
The
AWS::ApiGatewayV2::Integration resource creates an integration for an API.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;
Object requestParameters;
Object requestTemplates;
Object responseParameters;
CfnIntegration cfnIntegration = CfnIntegration.Builder.create(this, "MyCfnIntegration")
.apiId("apiId")
.integrationType("integrationType")
// the properties below are optional
.connectionId("connectionId")
.connectionType("connectionType")
.contentHandlingStrategy("contentHandlingStrategy")
.credentialsArn("credentialsArn")
.description("description")
.integrationMethod("integrationMethod")
.integrationSubtype("integrationSubtype")
.integrationUri("integrationUri")
.passthroughBehavior("passthroughBehavior")
.payloadFormatVersion("payloadFormatVersion")
.requestParameters(requestParameters)
.requestTemplates(requestTemplates)
.responseParameters(responseParameters)
.templateSelectionExpression("templateSelectionExpression")
.timeoutInMillis(123)
.tlsConfig(TlsConfigProperty.builder()
.serverNameToVerify("serverNameToVerify")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnIntegration.static interfaceExample:static interfacemap of response parameter lists.static interfaceSupported only for HTTP APIs.static interfaceTheTlsConfigproperty specifies the TLS configuration for a private integration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.apigatewayv2.IIntegrationRef
IIntegrationRef.Jsii$Default, IIntegrationRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnIntegration(software.amazon.jsii.JsiiObjectRef objRef) CfnIntegration(software.constructs.Construct scope, String id, CfnIntegrationProps props) Create a newAWS::ApiGatewayV2::Integration. -
Method Summary
Modifier and TypeMethodDescriptiongetApiId()The API identifier.The integration ID.The ID of the VPC link for a private integration.The type of the network connection to the integration endpoint.Supported only for WebSocket APIs.Specifies the credentials required for the integration, if any.The description of the integration.Specifies the integration's HTTP method type.A reference to a Integration resource.Supported only for HTTP APIAWS_PROXYintegrations.The integration type of an integration.For a Lambda integration, specify the URI of a Lambda function.Specifies the pass-through behavior for incoming requests based on theContent-Typeheader in the request, and the available mapping templates specified as therequestTemplatesproperty on theIntegrationresource.Specifies the format of the payload sent to an integration.For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend.Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client.Supported only for HTTP APIs.The template selection expression for the integration.Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs.The TLS configuration for a private integration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe API identifier.voidsetConnectionId(String value) The ID of the VPC link for a private integration.voidsetConnectionType(String value) The type of the network connection to the integration endpoint.voidsetContentHandlingStrategy(String value) Supported only for WebSocket APIs.voidsetCredentialsArn(String value) Specifies the credentials required for the integration, if any.voidsetDescription(String value) The description of the integration.voidsetIntegrationMethod(String value) Specifies the integration's HTTP method type.voidsetIntegrationSubtype(String value) Supported only for HTTP APIAWS_PROXYintegrations.voidsetIntegrationType(String value) The integration type of an integration.voidsetIntegrationUri(String value) For a Lambda integration, specify the URI of a Lambda function.voidsetPassthroughBehavior(String value) Specifies the pass-through behavior for incoming requests based on theContent-Typeheader in the request, and the available mapping templates specified as therequestTemplatesproperty on theIntegrationresource.voidsetPayloadFormatVersion(String value) Specifies the format of the payload sent to an integration.voidsetRequestParameters(Object value) For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend.voidsetRequestTemplates(Object value) Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client.voidsetResponseParameters(Object value) Supported only for HTTP APIs.voidThe template selection expression for the integration.voidsetTimeoutInMillis(Number value) Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs.voidsetTlsConfig(IResolvable value) The TLS configuration for a private integration.voidThe TLS configuration for a private integration.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnIntegration
protected CfnIntegration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnIntegration
protected CfnIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnIntegration
@Stability(Stable) public CfnIntegration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnIntegrationProps props) Create a newAWS::ApiGatewayV2::Integration.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrIntegrationId
The integration ID. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getIntegrationRef
A reference to a Integration resource.- Specified by:
getIntegrationRefin interfaceIIntegrationRef
-
getApiId
The API identifier. -
setApiId
The API identifier. -
getIntegrationType
The integration type of an integration.One of the following:.
-
setIntegrationType
The integration type of an integration.One of the following:.
-
getConnectionId
The ID of the VPC link for a private integration. -
setConnectionId
The ID of the VPC link for a private integration. -
getConnectionType
The type of the network connection to the integration endpoint. -
setConnectionType
The type of the network connection to the integration endpoint. -
getContentHandlingStrategy
Supported only for WebSocket APIs. -
setContentHandlingStrategy
Supported only for WebSocket APIs. -
getCredentialsArn
Specifies the credentials required for the integration, if any. -
setCredentialsArn
Specifies the credentials required for the integration, if any. -
getDescription
The description of the integration. -
setDescription
The description of the integration. -
getIntegrationMethod
Specifies the integration's HTTP method type. -
setIntegrationMethod
Specifies the integration's HTTP method type. -
getIntegrationSubtype
Supported only for HTTP APIAWS_PROXYintegrations. -
setIntegrationSubtype
Supported only for HTTP APIAWS_PROXYintegrations. -
getIntegrationUri
For a Lambda integration, specify the URI of a Lambda function. -
setIntegrationUri
For a Lambda integration, specify the URI of a Lambda function. -
getPassthroughBehavior
Specifies the pass-through behavior for incoming requests based on theContent-Typeheader in the request, and the available mapping templates specified as therequestTemplatesproperty on theIntegrationresource. -
setPassthroughBehavior
Specifies the pass-through behavior for incoming requests based on theContent-Typeheader in the request, and the available mapping templates specified as therequestTemplatesproperty on theIntegrationresource. -
getPayloadFormatVersion
Specifies the format of the payload sent to an integration. -
setPayloadFormatVersion
Specifies the format of the payload sent to an integration. -
getRequestParameters
For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. -
setRequestParameters
For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. -
getRequestTemplates
Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. -
setRequestTemplates
Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. -
getResponseParameters
Supported only for HTTP APIs. -
setResponseParameters
Supported only for HTTP APIs. -
getTemplateSelectionExpression
The template selection expression for the integration. -
setTemplateSelectionExpression
The template selection expression for the integration. -
getTimeoutInMillis
Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. -
setTimeoutInMillis
Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. -
getTlsConfig
The TLS configuration for a private integration.Returns union: either
IResolvableorCfnIntegration.TlsConfigProperty -
setTlsConfig
The TLS configuration for a private integration. -
setTlsConfig
The TLS configuration for a private integration.
-