VpcIngressConnection
- class aws_cdk.aws_apprunner_alpha.VpcIngressConnection(scope, id, *, interface_vpc_endpoint, service, vpc, vpc_ingress_connection_name=None)
- Bases: - Resource- (experimental) The App Runner VPC Ingress Connection. - Stability:
- experimental 
- Resource:
- AWS::AppRunner::VpcIngressConnection 
- ExampleMetadata:
- infused 
 - Example: - import aws_cdk.aws_ec2 as ec2 # vpc: ec2.Vpc interface_vpc_endpoint = ec2.InterfaceVpcEndpoint(self, "MyVpcEndpoint", vpc=vpc, service=ec2.InterfaceVpcEndpointAwsService.APP_RUNNER_REQUESTS, private_dns_enabled=False ) service = apprunner.Service(self, "Service", source=apprunner.Source.from_ecr_public( image_configuration=apprunner.ImageConfiguration( port=8000 ), image_identifier="public.ecr.aws/aws-containers/hello-app-runner:latest" ), is_publicly_accessible=False ) apprunner.VpcIngressConnection(self, "VpcIngressConnection", vpc=vpc, interface_vpc_endpoint=interface_vpc_endpoint, service=service ) - Parameters:
- scope ( - Construct)
- id ( - str)
- interface_vpc_endpoint ( - IInterfaceVpcEndpoint) – (experimental) The VPC Interface Endpoint for the VPC Ingress Connection.
- service ( - IService) – (experimental) The service to connect.
- vpc ( - IVpc) – (experimental) The VPC for the VPC Ingress Connection.
- vpc_ingress_connection_name ( - Optional[- str]) – (experimental) The name for the VPC Ingress Connection. Default: - a name generated by CloudFormation
 
- Stability:
- experimental 
 - Methods - 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 - PROPERTY_INJECTION_ID = '@aws-cdk.aws-apprunner-alpha.VpcIngressConnection'
 - domain_name
- (experimental) The domain name associated with the VPC Ingress Connection resource. - Stability:
- experimental 
- Attribute:
- true 
 
 - 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 tree node. 
 - stack
- The stack in which this resource is defined. 
 - status
- (experimental) The current status of the VPC Ingress Connection. - Stability:
- experimental 
- Attribute:
- true 
 
 - vpc_ingress_connection_arn
- (experimental) The ARN of the VPC Ingress Connection. - Stability:
- experimental 
- Attribute:
- true 
 
 - vpc_ingress_connection_name
- (experimental) The name of the VPC Ingress Connection. - Stability:
- experimental 
- Attribute:
- true 
 
 - Static Methods - classmethod from_arn(scope, id, vpc_ingress_connection_arn)
- (experimental) Imports an App Runner VPC Ingress Connection from its ARN. - Parameters:
- scope ( - Construct)
- id ( - str)
- vpc_ingress_connection_arn ( - str)
 
- Stability:
- experimental 
- Return type:
 
 - classmethod from_vpc_ingress_connection_attributes(scope, id, *, domain_name, status, vpc_ingress_connection_arn, vpc_ingress_connection_name)
- (experimental) Import from VPC Ingress Connection from attributes. - Parameters:
- scope ( - Construct)
- id ( - str)
- domain_name ( - str) – (experimental) The domain name associated with the VPC Ingress Connection resource.
- status ( - str) – (experimental) The current status of the VPC Ingress Connection.
- vpc_ingress_connection_arn ( - str) – (experimental) The Amazon Resource Name (ARN) of the VPC Ingress Connection.
- vpc_ingress_connection_name ( - str) – (experimental) The name of the VPC Ingress Connection.
 
- Stability:
- experimental 
- Return type:
 
 - classmethod is_construct(x)
- Checks if - xis a construct.- Use this method instead of - instanceofto properly detect- Constructinstances, even when the construct library is symlinked.- Explanation: in JavaScript, multiple copies of the - constructslibrary on disk are seen as independent, completely different libraries. As a consequence, the class- Constructin each copy of the- constructslibrary is seen as a different class, and an instance of one class will not test as- instanceofthe other class.- npm installwill not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the- constructslibrary can be accidentally installed, and- instanceofwill behave unpredictably. It is safest to avoid using- instanceof, and using this type-testing method instead.- Parameters:
- x ( - Any) – Any object.
- Return type:
- bool
- Returns:
- true if - xis an object created from a class which extends- Construct.
 
 - classmethod is_owned_resource(construct)
- Returns true if the construct was created by CDK, and false otherwise. - Parameters:
- construct ( - IConstruct)
- Return type:
- bool
 
 - classmethod is_resource(construct)
- Check whether the given construct is a Resource. - Parameters:
- construct ( - IConstruct)
- Return type:
- bool