AWS Cloud Development Kit

Contents:

  • API Reference
    • aws_cdk.alexa_ask
    • aws_cdk.app_delivery
    • aws_cdk.assertions
    • aws_cdk.assets
    • aws_cdk.aws_accessanalyzer
    • aws_cdk.aws_acmpca
    • aws_cdk.aws_amazonmq
    • aws_cdk.aws_amplify
    • aws_cdk.aws_amplifyuibuilder
    • aws_cdk.aws_apigateway
    • aws_cdk.aws_apigatewayv2
      • Package Overview
      • AddRoutesOptions
      • ApiMapping
      • ApiMappingAttributes
      • ApiMappingProps
      • AuthorizerPayloadVersion
      • BatchHttpRouteOptions
      • CfnApi
      • CfnApiGatewayManagedOverrides
      • CfnApiGatewayManagedOverridesProps
      • CfnApiMapping
      • CfnApiMappingProps
      • CfnApiProps
      • CfnAuthorizer
      • CfnAuthorizerProps
      • CfnDeployment
      • CfnDeploymentProps
      • CfnDomainName
      • CfnDomainNameProps
      • CfnIntegration
      • CfnIntegrationProps
      • CfnIntegrationResponse
      • CfnIntegrationResponseProps
      • CfnModel
      • CfnModelProps
      • CfnRoute
      • CfnRouteProps
      • CfnRouteResponse
      • CfnRouteResponseProps
      • CfnStage
      • CfnStageProps
      • CfnVpcLink
      • CfnVpcLinkProps
      • CorsHttpMethod
      • CorsPreflightOptions
      • DomainMappingOptions
      • DomainName
      • DomainNameAttributes
      • DomainNameProps
      • EndpointOptions
      • EndpointType
      • GrantInvokeOptions
      • HttpApi
      • HttpApiAttributes
      • HttpApiProps
      • HttpAuthorizer
      • HttpAuthorizerAttributes
      • HttpAuthorizerProps
      • HttpAuthorizerType
      • HttpConnectionType
      • HttpIntegration
      • HttpIntegrationProps
      • HttpIntegrationSubtype
      • HttpIntegrationType
      • HttpMethod
      • HttpNoneAuthorizer
      • HttpRoute
      • HttpRouteAuthorizerBindOptions
      • HttpRouteAuthorizerConfig
      • HttpRouteIntegration
      • HttpRouteIntegrationBindOptions
      • HttpRouteIntegrationConfig
      • HttpRouteKey
      • HttpRouteProps
      • HttpStage
      • HttpStageAttributes
      • HttpStageOptions
      • HttpStageProps
      • IApi
      • IApiMapping
      • IAuthorizer
      • IDomainName
      • IHttpApi
      • IHttpAuthorizer
      • IHttpIntegration
      • IHttpRoute
      • IHttpRouteAuthorizer
      • IHttpStage
      • IIntegration
      • IMappingValue
      • IRoute
      • IStage
      • IVpcLink
      • IWebSocketApi
      • IWebSocketAuthorizer
      • IWebSocketIntegration
      • IWebSocketRoute
      • IWebSocketRouteAuthorizer
      • IWebSocketStage
      • IntegrationCredentials
      • MTLSConfig
      • MappingValue
      • ParameterMapping
      • PayloadFormatVersion
      • SecurityPolicy
      • StageAttributes
      • StageOptions
      • ThrottleSettings
      • VpcLink
        • VpcLink
      • VpcLinkAttributes
      • VpcLinkProps
      • WebSocketApi
      • WebSocketApiAttributes
      • WebSocketApiKeySelectionExpression
      • WebSocketApiProps
      • WebSocketAuthorizer
      • WebSocketAuthorizerAttributes
      • WebSocketAuthorizerProps
      • WebSocketAuthorizerType
      • WebSocketIntegration
      • WebSocketIntegrationProps
      • WebSocketIntegrationType
      • WebSocketNoneAuthorizer
      • WebSocketRoute
      • WebSocketRouteAuthorizerBindOptions
      • WebSocketRouteAuthorizerConfig
      • WebSocketRouteIntegration
      • WebSocketRouteIntegrationBindOptions
      • WebSocketRouteIntegrationConfig
      • WebSocketRouteOptions
      • WebSocketRouteProps
      • WebSocketStage
      • WebSocketStageAttributes
      • WebSocketStageProps
    • aws_cdk.aws_apigatewayv2_authorizers
    • aws_cdk.aws_apigatewayv2_integrations
    • aws_cdk.aws_appconfig
    • aws_cdk.aws_appflow
    • aws_cdk.aws_appintegrations
    • aws_cdk.aws_applicationautoscaling
    • aws_cdk.aws_applicationinsights
    • aws_cdk.aws_appmesh
    • aws_cdk.aws_apprunner
    • aws_cdk.aws_appstream
    • aws_cdk.aws_appsync
    • aws_cdk.aws_aps
    • aws_cdk.aws_athena
    • aws_cdk.aws_auditmanager
    • aws_cdk.aws_autoscaling
    • aws_cdk.aws_autoscaling_common
    • aws_cdk.aws_autoscaling_hooktargets
    • aws_cdk.aws_autoscalingplans
    • aws_cdk.aws_backup
    • aws_cdk.aws_backupgateway
    • aws_cdk.aws_batch
    • aws_cdk.aws_billingconductor
    • aws_cdk.aws_budgets
    • aws_cdk.aws_cassandra
    • aws_cdk.aws_ce
    • aws_cdk.aws_certificatemanager
    • aws_cdk.aws_chatbot
    • aws_cdk.aws_cloud9
    • aws_cdk.aws_cloudformation
    • aws_cdk.aws_cloudfront
    • aws_cdk.aws_cloudfront.experimental
    • aws_cdk.aws_cloudfront_origins
    • aws_cdk.aws_cloudtrail
    • aws_cdk.aws_cloudwatch
    • aws_cdk.aws_cloudwatch_actions
    • aws_cdk.aws_codeartifact
    • aws_cdk.aws_codebuild
    • aws_cdk.aws_codecommit
    • aws_cdk.aws_codedeploy
    • aws_cdk.aws_codeguruprofiler
    • aws_cdk.aws_codegurureviewer
    • aws_cdk.aws_codepipeline
    • aws_cdk.aws_codepipeline_actions
    • aws_cdk.aws_codestar
    • aws_cdk.aws_codestarconnections
    • aws_cdk.aws_codestarnotifications
    • aws_cdk.aws_cognito
    • aws_cdk.aws_cognito_identitypool
    • aws_cdk.aws_comprehend
    • aws_cdk.aws_config
    • aws_cdk.aws_connect
    • aws_cdk.aws_connectcampaigns
    • aws_cdk.aws_controltower
    • aws_cdk.aws_cur
    • aws_cdk.aws_customerprofiles
    • aws_cdk.aws_databrew
    • aws_cdk.aws_datapipeline
    • aws_cdk.aws_datasync
    • aws_cdk.aws_dax
    • aws_cdk.aws_detective
    • aws_cdk.aws_devopsguru
    • aws_cdk.aws_directoryservice
    • aws_cdk.aws_dlm
    • aws_cdk.aws_dms
    • aws_cdk.aws_docdb
    • aws_cdk.aws_docdbelastic
    • aws_cdk.aws_dynamodb
    • aws_cdk.aws_dynamodb_global
    • aws_cdk.aws_ec2
    • aws_cdk.aws_ecr
    • aws_cdk.aws_ecr_assets
    • aws_cdk.aws_ecs
    • aws_cdk.aws_ecs_patterns
    • aws_cdk.aws_efs
    • aws_cdk.aws_eks
    • aws_cdk.aws_eks_legacy
    • aws_cdk.aws_elasticache
    • aws_cdk.aws_elasticbeanstalk
    • aws_cdk.aws_elasticloadbalancing
    • aws_cdk.aws_elasticloadbalancingv2
    • aws_cdk.aws_elasticloadbalancingv2_actions
    • aws_cdk.aws_elasticloadbalancingv2_targets
    • aws_cdk.aws_elasticsearch
    • aws_cdk.aws_emr
    • aws_cdk.aws_emrcontainers
    • aws_cdk.aws_emrserverless
    • aws_cdk.aws_events
    • aws_cdk.aws_events_targets
    • aws_cdk.aws_eventschemas
    • aws_cdk.aws_evidently
    • aws_cdk.aws_finspace
    • aws_cdk.aws_fis
    • aws_cdk.aws_fms
    • aws_cdk.aws_forecast
    • aws_cdk.aws_frauddetector
    • aws_cdk.aws_fsx
    • aws_cdk.aws_gamelift
    • aws_cdk.aws_globalaccelerator
    • aws_cdk.aws_globalaccelerator_endpoints
    • aws_cdk.aws_glue
    • aws_cdk.aws_grafana
    • aws_cdk.aws_greengrass
    • aws_cdk.aws_greengrassv2
    • aws_cdk.aws_groundstation
    • aws_cdk.aws_guardduty
    • aws_cdk.aws_healthlake
    • aws_cdk.aws_iam
    • aws_cdk.aws_identitystore
    • aws_cdk.aws_imagebuilder
    • aws_cdk.aws_inspector
    • aws_cdk.aws_inspectorv2
    • aws_cdk.aws_internetmonitor
    • aws_cdk.aws_iot
    • aws_cdk.aws_iot1click
    • aws_cdk.aws_iot_actions
    • aws_cdk.aws_iotanalytics
    • aws_cdk.aws_iotcoredeviceadvisor
    • aws_cdk.aws_iotevents
    • aws_cdk.aws_iotevents_actions
    • aws_cdk.aws_iotfleethub
    • aws_cdk.aws_iotfleetwise
    • aws_cdk.aws_iotsitewise
    • aws_cdk.aws_iotthingsgraph
    • aws_cdk.aws_iottwinmaker
    • aws_cdk.aws_iotwireless
    • aws_cdk.aws_ivs
    • aws_cdk.aws_ivschat
    • aws_cdk.aws_kafkaconnect
    • aws_cdk.aws_kendra
    • aws_cdk.aws_kendraranking
    • aws_cdk.aws_kinesis
    • aws_cdk.aws_kinesisanalytics
    • aws_cdk.aws_kinesisanalytics_flink
    • aws_cdk.aws_kinesisanalyticsv2
    • aws_cdk.aws_kinesisfirehose
    • aws_cdk.aws_kinesisfirehose_destinations
    • aws_cdk.aws_kinesisvideo
    • aws_cdk.aws_kms
    • aws_cdk.aws_lakeformation
    • aws_cdk.aws_lambda
    • aws_cdk.aws_lambda_destinations
    • aws_cdk.aws_lambda_event_sources
    • aws_cdk.aws_lambda_go
    • aws_cdk.aws_lambda_nodejs
    • aws_cdk.aws_lambda_python
    • aws_cdk.aws_lex
    • aws_cdk.aws_licensemanager
    • aws_cdk.aws_lightsail
    • aws_cdk.aws_location
    • aws_cdk.aws_logs
    • aws_cdk.aws_logs_destinations
    • aws_cdk.aws_lookoutequipment
    • aws_cdk.aws_lookoutmetrics
    • aws_cdk.aws_lookoutvision
    • aws_cdk.aws_m2
    • aws_cdk.aws_macie
    • aws_cdk.aws_managedblockchain
    • aws_cdk.aws_mediaconnect
    • aws_cdk.aws_mediaconvert
    • aws_cdk.aws_medialive
    • aws_cdk.aws_mediapackage
    • aws_cdk.aws_mediastore
    • aws_cdk.aws_mediatailor
    • aws_cdk.aws_memorydb
    • aws_cdk.aws_msk
    • aws_cdk.aws_mwaa
    • aws_cdk.aws_neptune
    • aws_cdk.aws_networkfirewall
    • aws_cdk.aws_networkmanager
    • aws_cdk.aws_nimblestudio
    • aws_cdk.aws_oam
    • aws_cdk.aws_omics
    • aws_cdk.aws_opensearchserverless
    • aws_cdk.aws_opensearchservice
    • aws_cdk.aws_opsworks
    • aws_cdk.aws_opsworkscm
    • aws_cdk.aws_organizations
    • aws_cdk.aws_osis
    • aws_cdk.aws_panorama
    • aws_cdk.aws_personalize
    • aws_cdk.aws_pinpoint
    • aws_cdk.aws_pinpointemail
    • aws_cdk.aws_pipes
    • aws_cdk.aws_proton
    • aws_cdk.aws_qldb
    • aws_cdk.aws_quicksight
    • aws_cdk.aws_ram
    • aws_cdk.aws_rds
    • aws_cdk.aws_redshift
    • aws_cdk.aws_redshiftserverless
    • aws_cdk.aws_refactorspaces
    • aws_cdk.aws_rekognition
    • aws_cdk.aws_resiliencehub
    • aws_cdk.aws_resourceexplorer2
    • aws_cdk.aws_resourcegroups
    • aws_cdk.aws_robomaker
    • aws_cdk.aws_rolesanywhere
    • aws_cdk.aws_route53
    • aws_cdk.aws_route53_patterns
    • aws_cdk.aws_route53_targets
    • aws_cdk.aws_route53recoverycontrol
    • aws_cdk.aws_route53recoveryreadiness
    • aws_cdk.aws_route53resolver
    • aws_cdk.aws_rum
    • aws_cdk.aws_s3
    • aws_cdk.aws_s3_assets
    • aws_cdk.aws_s3_deployment
    • aws_cdk.aws_s3_notifications
    • aws_cdk.aws_s3objectlambda
    • aws_cdk.aws_s3outposts
    • aws_cdk.aws_sagemaker
    • aws_cdk.aws_sam
    • aws_cdk.aws_scheduler
    • aws_cdk.aws_sdb
    • aws_cdk.aws_secretsmanager
    • aws_cdk.aws_securityhub
    • aws_cdk.aws_servicecatalog
    • aws_cdk.aws_servicecatalogappregistry
    • aws_cdk.aws_servicediscovery
    • aws_cdk.aws_ses
    • aws_cdk.aws_ses_actions
    • aws_cdk.aws_shield
    • aws_cdk.aws_signer
    • aws_cdk.aws_simspaceweaver
    • aws_cdk.aws_sns
    • aws_cdk.aws_sns_subscriptions
    • aws_cdk.aws_sqs
    • aws_cdk.aws_ssm
    • aws_cdk.aws_ssmcontacts
    • aws_cdk.aws_ssmincidents
    • aws_cdk.aws_sso
    • aws_cdk.aws_stepfunctions
    • aws_cdk.aws_stepfunctions_tasks
    • aws_cdk.aws_supportapp
    • aws_cdk.aws_synthetics
    • aws_cdk.aws_systemsmanagersap
    • aws_cdk.aws_timestream
    • aws_cdk.aws_transfer
    • aws_cdk.aws_voiceid
    • aws_cdk.aws_vpclattice
    • aws_cdk.aws_waf
    • aws_cdk.aws_wafregional
    • aws_cdk.aws_wafv2
    • aws_cdk.aws_wisdom
    • aws_cdk.aws_workspaces
    • aws_cdk.aws_xray
    • aws_cdk.cdk_assets_schema
    • aws_cdk.cloud_assembly_schema
    • aws_cdk.cloudformation_include
    • aws_cdk.core
    • aws_cdk.custom_resources
    • aws_cdk.cx_api
    • aws_cdk.integ_tests
    • aws_cdk.lambda_layer_awscli
    • aws_cdk.lambda_layer_kubectl
    • aws_cdk.lambda_layer_node_proxy_agent
    • aws_cdk.pipelines
    • aws_cdk.region_info
    • aws_cdk.triggers
    • aws_cdk.yaml_cfn
    • constructs
AWS Cloud Development Kit
  • API Reference
  • aws_cdk.aws_apigatewayv2
  • VpcLink

VpcLink

class aws_cdk.aws_apigatewayv2.VpcLink(scope, id, *, vpc, security_groups=None, subnets=None, vpc_link_name=None)

Bases: Resource

(experimental) Define a new VPC Link Specifies an API Gateway VPC link for a HTTP API to access resources in an Amazon Virtual Private Cloud (VPC).

Stability:

experimental

ExampleMetadata:

infused

Example:

import aws_cdk.aws_ec2 as ec2


vpc = ec2.Vpc(self, "VPC")
vpc_link = apigwv2.VpcLink(self, "VpcLink", vpc=vpc)
Parameters:
  • scope (Construct)

  • id (str)

  • vpc (IVpc) – (experimental) The VPC in which the private resources reside.

  • security_groups (Optional[Sequence[ISecurityGroup]]) – (experimental) A list of security groups for the VPC link. Default: - no security groups. Use addSecurityGroups to add security groups

  • subnets (Union[SubnetSelection, Dict[str, Any], None]) – (experimental) A list of subnets for the VPC link. Default: - private subnets of the provided VPC. Use addSubnets to add more subnets

  • vpc_link_name (Optional[str]) – (experimental) The name used to label and identify the VPC link. Default: - automatically generated name

Stability:

experimental

Methods

add_security_groups(*groups)

(experimental) Adds the provided security groups to the vpc link.

Parameters:

groups (ISecurityGroup)

Stability:

experimental

Return type:

None

add_subnets(*subnets)

(experimental) Adds the provided subnets to the vpc link.

Parameters:

subnets (ISubnet)

Stability:

experimental

Return type:

None

apply_removal_policy(policy)

Apply the given removal policy to this resource.

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you’ve removed it from the CDK application or because you’ve made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).

Parameters:

policy (RemovalPolicy)

Return type:

None

to_string()

Returns a string representation of this construct.

Return type:

str

Attributes

env

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.

node

The construct tree node associated with this construct.

stack

The stack in which this resource is defined.

vpc

(experimental) The VPC to which this VPC Link is associated with.

Stability:

experimental

vpc_link_id

(experimental) Physical ID of the VpcLink resource.

Stability:

experimental

Static Methods

classmethod from_vpc_link_attributes(scope, id, *, vpc, vpc_link_id)

(experimental) Import a VPC Link by specifying its attributes.

Parameters:
  • scope (Construct)

  • id (str)

  • vpc (IVpc) – (experimental) The VPC to which this VPC link is associated with.

  • vpc_link_id (str) – (experimental) The VPC Link id.

Stability:

experimental

Return type:

IVpcLink

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters:

x (Any)

Return type:

bool

classmethod is_resource(construct)

Check whether the given construct is a Resource.

Parameters:

construct (IConstruct)

Return type:

bool

Previous Next

© Copyright 2024, Amazon Web Services.

Built with Sphinx using a theme provided by Read the Docs.