CfnVPCLogsMixin

class aws_cdk.mixins_preview.aws_ec2.mixins.CfnVPCLogsMixin(log_type, log_delivery)

Bases: Mixin

Specifies a virtual private cloud (VPC).

A VPC must have an associated IPv4 CIDR block. You can specify an IPv4 CIDR block or an IPAM-allocated IPv4 CIDR block. To associate an IPv6 CIDR block with the VPC, see AWS::EC2::VPCCidrBlock .

For more information, see Virtual private clouds (VPC) in the Amazon VPC User Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html

CloudformationResource:

AWS::EC2::VPC

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 aws_logs as logs
from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins

# logs_delivery: logs.ILogsDelivery

cfn_vPCLogs_mixin = ec2_mixins.CfnVPCLogsMixin("logType", logs_delivery)

Create a mixin to enable vended logs for AWS::EC2::VPC.

Parameters:
  • log_type (str) – Type of logs that are getting vended.

  • log_delivery (ILogsDelivery) – Object in charge of setting up the delivery destination and delivery connection.

Methods

apply_to(resource)

Apply vended logs configuration to the construct.

Parameters:

resource (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct (has vendedLogs property).

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

ROUTE53_RESOLVER_QUERY_LOGS = <aws_cdk.mixins_preview.aws_ec2.mixins.CfnVPCRoute53ResolverQueryLogs object>

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental