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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:56.349Z")
@Stability(Stable)
public class CfnIntegration
extends CfnResource
implements IInspectable
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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnIntegration
.static interface
Example:static interface
map of response parameter lists.static interface
Supported only for HTTP APIs.static interface
TheTlsConfig
property specifies the TLS configuration for a private integration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnIntegration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnIntegration
(software.amazon.jsii.JsiiObjectRef objRef) CfnIntegration
(software.constructs.Construct scope, String id, CfnIntegrationProps props) -
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.Supported only for HTTP APIAWS_PROXY
integrations.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-Type
header in the request, and the available mapping templates specified as therequestTemplates
property on theIntegration
resource.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The API identifier.void
setConnectionId
(String value) The ID of the VPC link for a private integration.void
setConnectionType
(String value) The type of the network connection to the integration endpoint.void
setContentHandlingStrategy
(String value) Supported only for WebSocket APIs.void
setCredentialsArn
(String value) Specifies the credentials required for the integration, if any.void
setDescription
(String value) The description of the integration.void
setIntegrationMethod
(String value) Specifies the integration's HTTP method type.void
setIntegrationSubtype
(String value) Supported only for HTTP APIAWS_PROXY
integrations.void
setIntegrationType
(String value) The integration type of an integration.void
setIntegrationUri
(String value) For a Lambda integration, specify the URI of a Lambda function.void
setPassthroughBehavior
(String value) Specifies the pass-through behavior for incoming requests based on theContent-Type
header in the request, and the available mapping templates specified as therequestTemplates
property on theIntegration
resource.void
setPayloadFormatVersion
(String value) Specifies the format of the payload sent to an integration.void
setRequestParameters
(Object value) For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend.void
setRequestTemplates
(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.void
setResponseParameters
(Object value) Supported only for HTTP APIs.void
The template selection expression for the integration.void
setTimeoutInMillis
(Number value) Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs.void
setTlsConfig
(IResolvable value) The TLS configuration for a private integration.void
The 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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrIntegrationId
The integration ID. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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_PROXY
integrations. -
setIntegrationSubtype
Supported only for HTTP APIAWS_PROXY
integrations. -
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-Type
header in the request, and the available mapping templates specified as therequestTemplates
property on theIntegration
resource. -
setPassthroughBehavior
Specifies the pass-through behavior for incoming requests based on theContent-Type
header in the request, and the available mapping templates specified as therequestTemplates
property on theIntegration
resource. -
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. -
setTlsConfig
The TLS configuration for a private integration. -
setTlsConfig
The TLS configuration for a private integration.
-