AWS::EC2::VPCGatewayAttachment¶
Resource Type definition for AWS::EC2::VPCGatewayAttachment
Generated by cfn-typegen --out cfn_types AWS::EC2::VPCGatewayAttachment into cfn_types/ec2.py:
# Generated by cfn-typegen from the CloudFormation registry schemas. Do not edit.
# fmt: off
# ruff: noqa
"""AWS::EC2 resources."""
from typing import Any, Literal, NotRequired, Unpack
from typing_extensions import TypedDict
from cfn_typed.base import DeletionPolicy, DependsOn, ResourceAttrs, UpdateReplacePolicy, build
from cfn_typed.intrinsics import Expr
CONSTRAINTS:dict[str,Any]={
}
ATTRIBUTES:dict[str,Any]={"AWS::EC2::VPCGatewayAttachment":["AttachmentType","VpcId"]}
RULES:dict[str,Any]={}
Nested types (3)
These are defined above the properties in the generated module.
class VPCGatewayAttachmentProps(TypedDict, closed=True):
'Resource Type definition for AWS::EC2::VPCGatewayAttachment'
InternetGatewayId: NotRequired[Expr[str]]
'The ID of the internet gateway.'
VpcId: Expr[str]
'The ID of the VPC.'
VpnGatewayId: NotRequired[Expr[str]]
'The ID of the virtual private gateway.'
class VPCGatewayAttachment(ResourceAttrs):
'Resource Type definition for AWS::EC2::VPCGatewayAttachment'
Type: Literal['AWS::EC2::VPCGatewayAttachment']
Properties: VPCGatewayAttachmentProps
def vpc_gateway_attachment(
*,
depends_on: DependsOn | None = None,
deletion_policy: DeletionPolicy | None = None,
update_replace_policy: UpdateReplacePolicy | None = None,
condition: str | None = None,
metadata: dict[str, Any] | None = None,
**props: Unpack[VPCGatewayAttachmentProps],
) -> VPCGatewayAttachment:
return build('AWS::EC2::VPCGatewayAttachment', props, depends_on, deletion_policy, update_replace_policy, condition, metadata)
Attributes¶
Read-only values for get_att(logical_id, attribute). They are not accepted as inputs.
AttachmentType