Skip to main content

SecurityGroupSchema

SecurityGroupSchema is the schema of the SecurityGroup resource: a security group, the rules for traffic reaching and leaving what it is attached to. Terraform provisions it as aws_security_group and aws_vpc_security_group_egress_rule.

@group

Resources/SecurityGroup

@overrideProperty

parents - This resource has parents.

@overrideProperty

resourceId - The resource id is of format sec-grp-<region-id>-<security-group-name>

Hierarchy

  • BaseResourceSchema
    • SecurityGroupSchema

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: { awsAccountId: string; awsRegionId: string; rules: SecurityGroupRuleSchema[] }

Input properties.

  • properties.awsAccountId - The AWS account id.
  • properties.awsRegionId - The AWS region id.
  • properties.rules - The security group rules. See SecurityGroupRuleSchema for options.

Type declaration

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: { Arn?: string; GroupId?: string } = { Arn: 'arn:aws:ec2:us-east-1:000000000000:security-group/sg-0123456789abcdef0', GroupId: 'sg-0123456789abcdef0', }

Saved response.

  • response.Arn - The security group arn.
  • response.GroupId - The security group id.

Type declaration

  • optionalArn?: string
  • optionalGroupId?: 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