CfnVpcIngressConnectionPropsMixin
- class aws_cdk.mixins_preview.aws_apprunner.mixins.CfnVpcIngressConnectionPropsMixin(props, *, strategy=None)
Bases:
MixinSpecify an AWS App Runner VPC Ingress Connection by using the
AWS::AppRunner::VpcIngressConnectionresource in an AWS CloudFormation template.The
AWS::AppRunner::VpcIngressConnectionresource is an AWS App Runner resource type that specifies an App Runner VPC Ingress Connection.App Runner requires this resource when you want to associate your App Runner service to an Amazon VPC endpoint.
- See:
- CloudformationResource:
AWS::AppRunner::VpcIngressConnection
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_apprunner import mixins as apprunner_mixins cfn_vpc_ingress_connection_props_mixin = apprunner_mixins.CfnVpcIngressConnectionPropsMixin(apprunner_mixins.CfnVpcIngressConnectionMixinProps( ingress_vpc_configuration=apprunner_mixins.CfnVpcIngressConnectionPropsMixin.IngressVpcConfigurationProperty( vpc_endpoint_id="vpcEndpointId", vpc_id="vpcId" ), service_arn="serviceArn", tags=[CfnTag( key="key", value="value" )], vpc_ingress_connection_name="vpcIngressConnectionName" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::AppRunner::VpcIngressConnection.- Parameters:
props (
Union[CfnVpcIngressConnectionMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['ingressVpcConfiguration', 'serviceArn', 'tags', 'vpcIngressConnectionName']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
IngressVpcConfigurationProperty
- class CfnVpcIngressConnectionPropsMixin.IngressVpcConfigurationProperty(*, vpc_endpoint_id=None, vpc_id=None)
Bases:
objectSpecifications for the customer’s VPC and related PrivateLink VPC endpoint that are used to associate with the VPC Ingress Connection resource.
- Parameters:
vpc_endpoint_id (
Optional[str]) – The ID of the VPC endpoint that your App Runner service connects to.vpc_id (
Optional[str]) – The ID of the VPC that is used for the VPC endpoint.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_apprunner import mixins as apprunner_mixins ingress_vpc_configuration_property = apprunner_mixins.CfnVpcIngressConnectionPropsMixin.IngressVpcConfigurationProperty( vpc_endpoint_id="vpcEndpointId", vpc_id="vpcId" )
Attributes
- vpc_endpoint_id
The ID of the VPC endpoint that your App Runner service connects to.
- vpc_id
The ID of the VPC that is used for the VPC endpoint.