CfnVpcConnectorProps

class aws_cdk.aws_apprunner.CfnVpcConnectorProps(*, subnets, security_groups=None, tags=None, vpc_connector_name=None)

Bases: object

Properties for defining a CfnVpcConnector.

Parameters:
  • subnets (Sequence[str]) – A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify. .. epigraph:: App Runner currently only provides support for IPv4.

  • security_groups (Optional[Sequence[str]]) – A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair.

  • vpc_connector_name (Optional[str]) – A name for the VPC connector. If you don’t specify a name, AWS CloudFormation generates a name for your VPC connector.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-vpcconnector.html

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 import aws_apprunner as apprunner

cfn_vpc_connector_props = apprunner.CfnVpcConnectorProps(
    subnets=["subnets"],

    # the properties below are optional
    security_groups=["securityGroups"],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vpc_connector_name="vpcConnectorName"
)

Attributes

security_groups

A list of IDs of security groups that App Runner should use for access to AWS resources under the specified subnets.

If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-vpcconnector.html#cfn-apprunner-vpcconnector-securitygroups

subnets

A list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC.

Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify. .. epigraph:

App Runner currently only provides support for IPv4.
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-vpcconnector.html#cfn-apprunner-vpcconnector-subnets

tags

A list of metadata items that you can associate with your VPC connector resource.

A tag is a key-value pair.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-vpcconnector.html#cfn-apprunner-vpcconnector-tags

vpc_connector_name

A name for the VPC connector.

If you don’t specify a name, AWS CloudFormation generates a name for your VPC connector.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-vpcconnector.html#cfn-apprunner-vpcconnector-vpcconnectorname