Skip to main content

SubnetSchema

The SubnetSchema class is the schema for the Subnet resource, which represents the AWS VPC Subnet resource. This resource can create a subnet in AWS using the AWS JavaScript SDK V3 API. See official sdk docs.

@group

Resources/Subnet

@overrideProperty

parents - This resource has parents.

@overrideProperty

resourceId - The resource id is of format subnet-<subnet-id>

Hierarchy

  • BaseResourceSchema
    • SubnetSchema

Index

Properties

inheritedparents

parents: IResourceReference[]

properties

properties: { AvailabilityZone: string; awsAccountId: string; awsRegionId: string; CidrBlock: string; subnetName: string } = ...

Input properties.

  • properties.AvailabilityZone - The availability zone for the subnet.
  • properties.awsAccountId - The AWS account ID.
  • properties.awsRegionId - The AWS region ID.
  • properties.CidrBlock - The CIDR block for the subnet.
  • properties.subnetName - The name of the subnet.

Type declaration

  • AvailabilityZone: string
  • awsAccountId: string
  • awsRegionId: string
  • CidrBlock: string
  • subnetName: string

inheritedresourceId

resourceId: string

response

response: { SubnetArn?: string; SubnetId?: string } = ...

Saved response.

  • response.SubnetArn - The ARN of the subnet.
  • response.SubnetId - The ID of the subnet.

Type declaration

  • optionalSubnetArn?: string
  • optionalSubnetId?: string

inheritedtags

tags: {}

Type declaration

  • [key string]: string