Skip to main content

SubnetSchema

SubnetSchema is the schema of the Subnet resource: a subnet, a range of a VPC's addresses in one availability zone. Terraform provisions it as aws_subnet.

@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

inheritedlocalResourceId

localResourceId: string

The ID the resource was created with, unique within its scope.

inheritedparents

parents: IResourceReference[]

The resources this one is built on top of.

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

The ID of the resource, unique across the infrastructure: its localResourceId, followed by a hash of its scope when it has one.

response

response: { SubnetArn?: string; SubnetId?: string } = { SubnetArn: 'arn:aws:ec2:us-east-1:000000000000:subnet/subnet-0123456789abcdef0', SubnetId: 'subnet-0123456789abcdef0', }

Saved response.

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

Type declaration

  • optionalSubnetArn?: string
  • optionalSubnetId?: string

inheritedscope

scope: string[]

The contexts of the models the resource is placed under, derived from where the node creating it sits in the model graph. Octo sets it; a resource created outside a model action has none.

inheritedtags

tags: {}

The tags applied to the resource.


Type declaration

  • [key string]: string