Skip to content

Instantly share code, notes, and snippets.

@grahamc

grahamc/typed.py Secret

Last active May 14, 2020 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/d52b98e58c639c591caa16fc28e3553e to your computer and use it in GitHub Desktop.
Save grahamc/d52b98e58c639c591caa16fc28e3553e to your computer and use it in GitHub Desktop.
class VPCEgressOnlyInternetGatewayOptions(nixops.resources.ResourceOptions):
# Name of the VPC egress only internet gateway.
# source: nixops_aws/nix/vpc-egress-only-internet-gateway.nix:11
name: str
# The ID of the VPC where the internet gateway will be created
# source: nixops_aws/nix/vpc-egress-only-internet-gateway.nix:17
vpcId: Union[str, NixopsRef('vpc')]
class ElasticFileSystemMountTargetOptions(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/elastic-file-system-mount-target.nix:15
accessKeyId: str
# The Elastic File System to which this mount target refers.
# source: nixops_aws/nix/elastic-file-system-mount-target.nix:20
fileSystem: Union[str, UnknownType('resource of type ‘elastic-file-system’')]
# The IP address of the mount target in the subnet. If unspecified, EC2 will automatically assign an address.
# source: nixops_aws/nix/elastic-file-system-mount-target.nix:31
ipAddress: Optional[str]
# AWS region.
# source: nixops_aws/nix/elastic-file-system-mount-target.nix:10
region: str
# The EC2 security groups associated with the mount target's network interface.
# source: nixops_aws/nix/elastic-file-system-mount-target.nix:37
securityGroups: List[str]
# The EC2 subnet in which to create this mount target.
# source: nixops_aws/nix/elastic-file-system-mount-target.nix:26
subnet: str
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
class Route53HostedZoneOptions(nixops.resources.ResourceOptions):
# The AWS Access Key ID. If left empty, it defaults to the
# contents of the environment variables
# <envar>EC2_ACCESS_KEY</envar> or
# <envar>AWS_ACCESS_KEY_ID</envar> (in that order). The
# corresponding Secret Access Key is not specified in the
# deployment model, but looked up in the file
# <filename>~/.ec2-keys</filename>, which should specify, on
# each line, an Access Key ID followed by the corresponding
# Secret Access Key. If the lookup was unsuccessful it is continued
# in the standard AWS tools <filename>~/.aws/credentials</filename> file.
# If it does not appear in these files, the
# environment variables
# <envar>EC2_SECRET_KEY</envar> or
# <envar>AWS_SECRET_ACCESS_KEY</envar> are used.
# source: nixops_aws/nix/route53-hosted-zone.nix:15
accessKeyId: str
# VPCs
# source: nixops_aws/nix/route53-hosted-zone.nix:52
associatedVPCs: List[UnknownType('submodule')]
# Comments that you want to include about the hosted zone.
# source: nixops_aws/nix/route53-hosted-zone.nix:36
comment: str
# List of nameserves in the delegation set after creation. Set by nixops.
# source: nixops_aws/nix/route53-hosted-zone.nix:69
delegationSet: List[str]
# Name of the recordset.
# source: nixops_aws/nix/route53-hosted-zone.nix:9
name: str
# Whether this is a private hosted zone.
# source: nixops_aws/nix/route53-hosted-zone.nix:44
privateZone: bool
class VPCNetworkAclOptions(nixops.resources.ResourceOptions):
# The network ACL entries
# source: nixops_aws/nix/vpc-network-acl.nix:107
entries: List[UnknownType('submodule')]
# Name of the DHCP options set.
# source: nixops_aws/nix/vpc-network-acl.nix:84
name: str
# The network ACL id generated from AWS. This is set by NixOps
# source: nixops_aws/nix/vpc-network-acl.nix:113
networkAclId: str
# A list of subnet IDs to apply to the ACL to.
# source: nixops_aws/nix/vpc-network-acl.nix:98
subnetIds: List[Union[str, NixopsRef('vpc-subnet')]]
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
# The Id of the associated VPC.
# source: nixops_aws/nix/vpc-network-acl.nix:90
vpcId: Union[str, NixopsRef('vpc')]
class EBSVolumeOptions(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/ebs-volume.nix:26
accessKeyId: str
# AWS region.
# source: nixops_aws/nix/ebs-volume.nix:11
region: str
# The snapshot ID from which this volume will be created. If
# not specified, an empty volume is created. Changing the
# snapshot ID has no effect if the volume already exists.
# source: nixops_aws/nix/ebs-volume.nix:41
snapshot: str
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
# The volume id to be imported into the NixOps ebs-volume resource.
# source: nixops_aws/nix/ebs-volume.nix:32
volumeId: str
# The EC2 availability zone in which the volume should be
# created.
# source: nixops_aws/nix/ebs-volume.nix:17
zone: str
class CloudwatchMetricAlarmOptions(nixops.resources.ResourceOptions):
# The AWS Access Key ID. If left empty, it defaults to the
# contents of the environment variables
# <envar>EC2_ACCESS_KEY</envar> or
# <envar>AWS_ACCESS_KEY_ID</envar> (in that order). The
# corresponding Secret Access Key is not specified in the
# deployment model, but looked up in the file
# <filename>~/.ec2-keys</filename>, which should specify, on
# each line, an Access Key ID followed by the corresponding
# Secret Access Key. If the lookup was unsuccessful it is continued
# in the standard AWS tools <filename>~/.aws/credentials</filename> file.
# If it does not appear in these files, the
# environment variables
# <envar>EC2_SECRET_KEY</envar> or
# <envar>AWS_SECRET_ACCESS_KEY</envar> are used.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:15
accessKeyId: str
# The actions to execute when this alarm transitions to the ALARM state from
# any other state.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:150
alarmActions: List[Union[str, UnknownType('resource of type ‘sns-topic’')]]
# The arithmetic operation to use when comparing the specified statistic and
# threshold. The specified statistic value is used as the first operand.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:142
comparisonOperator: Union[Literal["GreaterThanOrEqualToThreshold"], Literal["GreaterThanThreshold"], Literal["LessThanThreshold"], Literal["LessThanOrEqualToThreshold"]]
# The number of datapoints that must be breaching to trigger the alarm.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:188
datapointsToAlarm: int
# The dimensions for the metric associated with the alarm.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:62
dimensions: List[UnknownType('submodule')]
# The number of periods over which data is compared to the specified threshold.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:128
evaluationPeriods: int
# The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
# state from any other state.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:170
insufficientDataActions: List[Union[str, UnknownType('resource of type ‘sns-topic’')]]
# The name of the metric associated with the alarm.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:41
metricName: str
# Name of the CloudWatch Metric Alarm.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:9
name: str
# The namespace of the metric associated with the alarm.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:48
namespace: str
# The actions to execute when this alarm transitions to the OK state from
# any other state.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:160
okActions: List[Union[str, UnknownType('resource of type ‘sns-topic’')]]
# The period, in seconds, over which the statistic is applied.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:121
period: int
# AWS region.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:36
region: str
# The statistic for the metric associated with the alarm, other than percentile.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:55
statistic: Union[Literal["SampleCount"], Literal["Average"], Literal["Sum"], Literal["Minimum"], Literal["Maximum"]]
# The value to compare with the specified statistic.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:135
threshold: int
# How this alarm is to handle missing data points.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:180
treatMissingData: Union[Literal["breaching"], Literal["notBreaching"], Literal["ignore"], Literal["missing"]]
# The unit of the metric associated with the alarm.
# source: nixops_aws/nix/cloudwatch-metric-alarm.nix:86
unit: Union[Literal["Seconds"], Literal["Microseconds"], Literal["Milliseconds"], Literal["Bytes"], Literal["Kilobytes"], Literal["Megabytes"], Literal["Gigabytes"], Literal["Terabytes"], Literal["Bits"], Literal["Kilobits"], Literal["Megabits"], Literal["Gigabits"], Literal["Terabits"], Literal["Percent"], Literal["Count"], Literal["Bytes/Second"], Literal["Kilobytes/Second"], Literal["Megabytes/Second"], Literal["Gigabytes/Second"], Literal["Terabytes/Second"], Literal["Bits/Second"], Literal["Kilobits/Second"], Literal["Megabits/Second"], Literal["Gigabits/Second"], Literal["Terabits/Second"], Literal["Count/Second"], Literal["None"]]
class VPCRouteTableAssociationOptions(nixops.resources.ResourceOptions):
# Name of the VPC route table association.
# source: nixops_aws/nix/vpc-route-table-association.nix:9
name: str
# The ID of the VPC route table
# source: nixops_aws/nix/vpc-route-table-association.nix:23
routeTableId: Union[str, NixopsRef('vpc-route-table')]
# The ID of the VPC subnet where the route table will be associated
# source: nixops_aws/nix/vpc-route-table-association.nix:15
subnetId: Union[str, NixopsRef('vpc-subnet')]
class VPCInternetGatewayOptions(nixops.resources.ResourceOptions):
# Name of the VPC internet gateway.
# source: nixops_aws/nix/vpc-internet-gateway.nix:11
name: str
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
# The ID of the VPC where the internet gateway will be created
# source: nixops_aws/nix/vpc-internet-gateway.nix:17
vpcId: Union[str, NixopsRef('vpc')]
class VPCOptions(nixops.resources.ResourceOptions):
# Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC.
# You cannot specify the range of IP addresses, or the size of the CIDR block.
# source: nixops_aws/nix/vpc.nix:59
amazonProvidedIpv6CidrBlock: bool
# The CIDR block for the VPC
# source: nixops_aws/nix/vpc.nix:16
cidrBlock: str
# Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your
# ClassicLink-enabled VPC to allow communication over private IP addresses.
# You cannot enable your VPC for ClassicLink if any of your VPC’s route tables
# have existing routes for address ranges within the 10.0.0.0/8 IP address range
# , excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges.
# source: nixops_aws/nix/vpc.nix:47
enableClassicLink: bool
# Specifies whether DNS hostnames are provided for the instances launched in this VPC.
# You can only set this attribute to true if EnableDnsSupport is also true.
# source: nixops_aws/nix/vpc.nix:38
enableDnsHostnames: bool
# Specifies whether the DNS server provided by Amazon is enabled for the VPC.
# source: nixops_aws/nix/vpc.nix:30
enableDnsSupport: bool
# The supported tenancy options for instances launched
# into the VPC. Valid values are "default" and "dedicated".
# source: nixops_aws/nix/vpc.nix:21
instanceTenancy: str
# Name of the VPC.
# source: nixops_aws/nix/vpc.nix:10
name: str
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
# The VPC id generated from AWS. This is set by NixOps
# source: nixops_aws/nix/vpc.nix:68
vpcId: str
class UNKNOWN(nixops.resources.ResourceOptions):
# The AWS Access Key ID. If left empty, it defaults to the
# contents of the environment variables
# <envar>EC2_ACCESS_KEY</envar> or
# <envar>AWS_ACCESS_KEY_ID</envar> (in that order). The
# corresponding Secret Access Key is not specified in the
# deployment model, but looked up in the file
# <filename>~/.ec2-keys</filename>, which should specify, on
# each line, an Access Key ID followed by the corresponding
# Secret Access Key. If the lookup was unsuccessful it is continued
# in the standard AWS tools <filename>~/.aws/credentials</filename> file.
# If it does not appear in these files, the
# environment variables
# <envar>EC2_SECRET_KEY</envar> or
# <envar>AWS_SECRET_ACCESS_KEY</envar> are used.
# source: nixops_aws/nix/route53-recordset.nix:15
accessKeyId: str
# The DNS name to bind.
# source: nixops_aws/nix/route53-recordset.nix:49
domainName: str
# Optional ID of an Amazon Route 53 health check.
# source: nixops_aws/nix/route53-recordset.nix:117
healthCheckId: Union[str, UnknownType('resource of type ‘route53-health-check’')]
# Name of the recordset.
# source: nixops_aws/nix/route53-recordset.nix:9
name: str
# DNS record type
# source: nixops_aws/nix/route53-recordset.nix:74
recordType: Union[Literal["A"], Literal["AAAA"], Literal["TXT"], Literal["CNAME"], Literal["MX"], Literal["NAPT"], Literal["PTR"], Literal["SRV"], Literal["SPF"]]
# The value of the DNS record
# (e.g. IP address in case of an A or AAA record type,
# or a DNS name in case of a CNAME record type)
# source: nixops_aws/nix/route53-recordset.nix:83
recordValues: List[Union[str, UnknownType('resource of type ‘machine’')]]
# DNS record type
# source: nixops_aws/nix/route53-recordset.nix:65
routingPolicy: Union[Literal["simple"], Literal["weighted"], Literal["multivalue"]]
# A unique identifier that differentiates among multiple
# resource record sets that have the same combination of
# DNS name and type.
# source: nixops_aws/nix/route53-recordset.nix:95
setIdentifier: str
# The time to live (TTL) for the A record created for the
# specified DNS hostname.
# source: nixops_aws/nix/route53-recordset.nix:54
ttl: int
# Among resource record sets that have the same combination
# of DNS name and type, a value that determines what portion
# of traffic for the current resource record set is routed
# to the associated location. When value is 0, weighted
# routing policy is not used.
# source: nixops_aws/nix/route53-recordset.nix:105
weight: int
# The DNS hosted zone id. If null, the zoneName will be used to look up the zoneID
# source: nixops_aws/nix/route53-recordset.nix:36
zoneId: Optional[Union[str, UnknownType('resource of type ‘route53-hosted-zone’')]]
# The DNS name of the hosted zone
# source: nixops_aws/nix/route53-recordset.nix:43
zoneName: Optional[str]
class UNKNOWN(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/cloudwatch-log-group.nix:15
accessKeyId: str
# Amazon Resource Name (ARN) of the cloudwatch log group. This is set by NixOps.
# source: nixops_aws/nix/cloudwatch-log-group.nix:31
arn: str
# Name of the cloudwatch log group.
# source: nixops_aws/nix/cloudwatch-log-group.nix:9
name: str
# AWS region.
# source: nixops_aws/nix/cloudwatch-log-group.nix:20
region: str
# How long to store log data in a log group
# source: nixops_aws/nix/cloudwatch-log-group.nix:25
retentionInDays: Optional[int]
class VPCRouteTableOptions(nixops.resources.ResourceOptions):
# Name of the VPC route table.
# source: nixops_aws/nix/vpc-route-table.nix:10
name: str
# A list of VPN gateways for propagation.
# source: nixops_aws/nix/vpc-route-table.nix:24
propagatingVgws: List[Union[str, NixopsRef('aws-vpn-gateway')]]
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
# The ID of the VPC where the route table will be created
# source: nixops_aws/nix/vpc-route-table.nix:16
vpcId: Union[str, NixopsRef('vpc')]
class UNKNOWN(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/iam-role.nix:15
accessKeyId: str
# The IAM AssumeRole policy definition (in JSON format). Empty string (default) uses the existing Assume Role Policy.
# source: nixops_aws/nix/iam-role.nix:25
assumeRolePolicy: str
# Name of the IAM role.
# source: nixops_aws/nix/iam-role.nix:9
name: str
# The IAM policy definition (in JSON format).
# source: nixops_aws/nix/iam-role.nix:20
policy: str
class VPCRouteOptions(nixops.resources.ResourceOptions):
# The IPv4 CIDR address block used for the destination match.
# source: nixops_aws/nix/vpc-route.nix:30
destinationCidrBlock: Optional[str]
# The IPv6 CIDR block used for the destination match.
# source: nixops_aws/nix/vpc-route.nix:38
destinationIpv6CidrBlock: Optional[str]
# [IPv6 traffic only] The ID of an egress-only Internet gateway.
# source: nixops_aws/nix/vpc-route.nix:55
egressOnlyInternetGatewayId: Optional[Union[str, NixopsRef('vpc-egress-only-internet-gateway')]]
# The ID of an Internet gateway or virtual private gateway attached to your VPC.
# source: nixops_aws/nix/vpc-route.nix:46
gatewayId: Optional[Union[str, NixopsRef('vpc-internet-gateway')]]
# The ID of a NAT instance in your VPC. The operation fails if you specify an
# instance ID unless exactly one network interface is attached.
# source: nixops_aws/nix/vpc-route.nix:64
instanceId: Optional[Union[str, UnknownType('EC2 machine')]]
# Name of the VPC route.
# source: nixops_aws/nix/vpc-route.nix:16
name: str
# The ID of a NAT gateway.
# source: nixops_aws/nix/vpc-route.nix:74
natGatewayId: Optional[Union[str, NixopsRef('vpc-nat-gateway')]]
# The ID of a network interface.
# source: nixops_aws/nix/vpc-route.nix:83
networkInterfaceId: Optional[Union[str, NixopsRef('vpc-network-interface')]]
# The ID of the VPC route table
# source: nixops_aws/nix/vpc-route.nix:22
routeTableId: Union[str, NixopsRef('vpc-route-table')]
class EC2PlacementGroupOptions(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/ec2-placement-group.nix:26
accessKeyId: str
# Name of the placement group.
# source: nixops_aws/nix/ec2-placement-group.nix:9
name: str
# AWS region.
# source: nixops_aws/nix/ec2-placement-group.nix:21
region: str
# The placement strategy of the new placement group. Currently, the only acceptable value is “cluster”.
# source: nixops_aws/nix/ec2-placement-group.nix:15
strategy: str
class UNKNOWN(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/cloudwatch-log-stream.nix:15
accessKeyId: str
# Amazon Resource Name (ARN) of the cloudwatch log stream. This is set by NixOps.
# source: nixops_aws/nix/cloudwatch-log-stream.nix:30
arn: str
# The name of the log group under which the log stream is to be created.
# source: nixops_aws/nix/cloudwatch-log-stream.nix:25
logGroupName: str
# Name of the cloudwatch log stream.
# source: nixops_aws/nix/cloudwatch-log-stream.nix:9
name: str
# AWS region.
# source: nixops_aws/nix/cloudwatch-log-stream.nix:20
region: str
class ElasticFileSystemOptions(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/elastic-file-system.nix:14
accessKeyId: str
# AWS region.
# source: nixops_aws/nix/elastic-file-system.nix:9
region: str
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
class EC2SecurityGroupOptions(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/ec2-security-group.nix:28
accessKeyId: str
# Informational description of the security group.
# source: nixops_aws/nix/ec2-security-group.nix:17
description: str
# The security group ID. This is set by NixOps.
# source: nixops_aws/nix/ec2-security-group.nix:34
groupId: UnknownType('uniq')
# Name of the security group.
# source: nixops_aws/nix/ec2-security-group.nix:11
name: str
# AWS region.
# source: nixops_aws/nix/ec2-security-group.nix:23
region: str
# The security group's rules.
# source: nixops_aws/nix/ec2-security-group.nix:47
rules: List[UnknownType('submodule')]
# The VPC ID to create security group in (default is not set, uses default VPC in EC2-VPC account, in EC2-Classic accounts no VPC is set).
# source: nixops_aws/nix/ec2-security-group.nix:40
vpcId: UnknownType('uniq')
class EC2KeyPairOptions(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/ec2-keypair.nix:20
accessKeyId: str
# Name of the EC2 key pair.
# source: nixops_aws/nix/ec2-keypair.nix:9
name: str
# AWS region.
# source: nixops_aws/nix/ec2-keypair.nix:15
region: str
class VPCNetworkInterfaceAttachmentOptions(nixops.resources.ResourceOptions):
# The index of the device for the network interface attachment.
# source: nixops_aws/nix/vpc-network-interface-attachment.nix:39
deviceIndex: int
# ID of the instance to attach to.
# source: nixops_aws/nix/vpc-network-interface-attachment.nix:31
instanceId: Union[str, UnknownType('EC2 machine')]
# Name of the VPC network interface attachment.
# source: nixops_aws/nix/vpc-network-interface-attachment.nix:17
name: str
# ENI ID to attach to.
# source: nixops_aws/nix/vpc-network-interface-attachment.nix:23
networkInterfaceId: Union[str, NixopsRef('vpc-network-interface')]
class UNKNOWN(nixops.resources.ResourceOptions):
# The IPv4 CIDR address block used for the destination match.
# source: nixops_aws/nix/aws-vpn-connection-route.nix:23
destinationCidrBlock: Optional[str]
# Name of the VPN connection route.
# source: nixops_aws/nix/aws-vpn-connection-route.nix:9
name: str
# The ID of the VPN connection.
# source: nixops_aws/nix/aws-vpn-connection-route.nix:15
vpnConnectionId: Union[str, NixopsRef('aws-vpn-connection')]
class UNKNOWN(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/ec2-rds-dbsecurity-group.nix:29
accessKeyId: str
# Description of the RDS DB security group.
# source: nixops_aws/nix/ec2-rds-dbsecurity-group.nix:17
description: str
# Name of the RDS DB security group.
# source: nixops_aws/nix/ec2-rds-dbsecurity-group.nix:10
groupName: str
# Amazon RDS DB security group region.
# source: nixops_aws/nix/ec2-rds-dbsecurity-group.nix:24
region: str
#
# source: nixops_aws/nix/ec2-rds-dbsecurity-group.nix:35
rules: List[UnknownType('submodule')]
class EC2RDSDbInstanceOptions(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:29
accessKeyId: str
# Allocated storage in GB
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:35
allocatedStorage: int
# Optional database name to be created when instance is first created.
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:73
dbName: str
# The endpoint address of the database instance. This is set by NixOps.
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:78
endpoint: str
# Database engine. See <link
# xlink:href='http://boto.readthedocs.org/en/latest/ref/rds.html#boto.rds.RDSConnection.create_dbinstance'
# for valid engines.
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:66
engine: str
# Identifier for RDS database instance
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:10
id: str
# RDS instance class. See <link
# xlink:href='http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html' />
# for more information.
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:40
instanceClass: str
# Password for master user.
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:56
masterPassword: str
# Master username for authentication to database instance.
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:50
masterUsername: str
# If True, specifies the DB Instance will be deployed in multiple availability zones.
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:21
multiAZ: bool
# Port for database instance connections.
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:61
port: int
# Amazon RDS region.
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:16
region: str
# List of names of DBSecurityGroup to authorize on this DBInstance.
# source: nixops_aws/nix/ec2-rds-dbinstance.nix:84
securityGroups: List[Union[str, UnknownType('resource of type ‘ec2-rds-security-group’')]]
class AWSVPNConnectionOptions(nixops.resources.ResourceOptions):
# The ID of the customer gateway.
# source: nixops_aws/nix/aws-vpn-connection.nix:25
customerGatewayId: Union[str, NixopsRef('vpc-customer-gateway')]
# Name of the AWS VPN connection.
# source: nixops_aws/nix/aws-vpn-connection.nix:11
name: str
# Indicates whether the VPN connection uses static routes only.
# Static routes must be used for devices that don't support BGP.
# source: nixops_aws/nix/aws-vpn-connection.nix:33
staticRoutesOnly: bool
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
# The ID of the VPN gateway.
# source: nixops_aws/nix/aws-vpn-connection.nix:17
vpnGatewayId: Union[str, NixopsRef('aws-vpn-gateway')]
class UNKNOWN(nixops.resources.ResourceOptions):
# Name of the VPC endpoint.
# source: nixops_aws/nix/vpc-endpoint.nix:11
name: str
# A policy to attach to the endpoint that controls access to the service.
# source: nixops_aws/nix/vpc-endpoint.nix:25
policy: Optional[str]
# One or more route table IDs.
# source: nixops_aws/nix/vpc-endpoint.nix:33
routeTableIds: List[Union[str, NixopsRef('vpc-route-table')]]
# The AWS service name, in the form com.amazonaws.region.service.
# source: nixops_aws/nix/vpc-endpoint.nix:42
serviceName: str
# The ID of the VPC where the endpoint will be created.
# source: nixops_aws/nix/vpc-endpoint.nix:17
vpcId: Union[str, NixopsRef('vpc')]
class VPCNetworkInterfaceOptions(nixops.resources.ResourceOptions):
# A description for the network interface.
# source: nixops_aws/nix/vpc-network-interface.nix:24
description: str
# Name of the VPC network interface.
# source: nixops_aws/nix/vpc-network-interface.nix:10
name: str
# The primary private IPv4 address of the network interface. If you don't
# specify an IPv4 address, Amazon EC2 selects one for you from the subnet's
# IPv4 CIDR range.
# source: nixops_aws/nix/vpc-network-interface.nix:41
primaryPrivateIpAddress: Optional[str]
# One or more secondary private IPv4 addresses.
# source: nixops_aws/nix/vpc-network-interface.nix:51
privateIpAddresses: List[str]
# The number of secondary private IPv4 addresses to assign to a network interface.
# When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these
# IP addresses within the subnet's IPv4 CIDR range.
# You can't specify this option and specify privateIpAddresses in the same time.
# source: nixops_aws/nix/vpc-network-interface.nix:59
secondaryPrivateIpAddressCount: Optional[int]
# The IDs of one or more security groups.
# source: nixops_aws/nix/vpc-network-interface.nix:32
securityGroups: List[Union[str, NixopsRef('ec2-security-group')]]
# Indicates whether source/destination checking is enabled.
# Default value is true.
# source: nixops_aws/nix/vpc-network-interface.nix:70
sourceDestCheck: bool
# Subnet Id to create the ENI in.
# source: nixops_aws/nix/vpc-network-interface.nix:16
subnetId: Union[str, NixopsRef('vpc-subnet')]
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
class UNKNOWN(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/sqs-queue.nix:20
accessKeyId: str
# Amazon Resource Name (ARN) of the queue. This is set by NixOps.
# source: nixops_aws/nix/sqs-queue.nix:41
arn: str
# Name of the SQS queue.
# source: nixops_aws/nix/sqs-queue.nix:9
name: str
# AWS region.
# source: nixops_aws/nix/sqs-queue.nix:15
region: str
# URL of the queue. This is set by NixOps.
# source: nixops_aws/nix/sqs-queue.nix:35
url: str
# The time interval in seconds after a message has been
# received until it becomes visible again.
# source: nixops_aws/nix/sqs-queue.nix:25
visibilityTimeout: int
class VPCCustomerGatewayOptions(nixops.resources.ResourceOptions):
# For devices that support BGP, the customer gateway's BGP ASN.
# source: nixops_aws/nix/vpc-customer-gateway.nix:15
bgpAsn: int
# Name of the VPC customer gateway.
# source: nixops_aws/nix/vpc-customer-gateway.nix:9
name: str
# The Internet-routable IP address for the customer gateway's outside interface.
# The address must be static.
# source: nixops_aws/nix/vpc-customer-gateway.nix:22
publicIp: str
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
# The type of VPN connection that this customer gateway supports (ipsec.1 ).
# source: nixops_aws/nix/vpc-customer-gateway.nix:30
type: str
class SNSTopicOptions(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/sns-topic.nix:20
accessKeyId: str
# Amazon Resource Name (ARN) of the SNS topic. This is set by NixOps.
# source: nixops_aws/nix/sns-topic.nix:56
arn: str
# Display name of the topic
# source: nixops_aws/nix/sns-topic.nix:25
displayName: Optional[str]
# Name of the SNS topic.
# source: nixops_aws/nix/sns-topic.nix:9
name: str
# Policy to apply to the SNS topic.
# source: nixops_aws/nix/sns-topic.nix:31
policy: str
# AWS region.
# source: nixops_aws/nix/sns-topic.nix:15
region: str
# List of subscriptions to apply to the topic.
# source: nixops_aws/nix/sns-topic.nix:37
subscriptions: List[UnknownType('submodule')]
class VPCSubnetOptions(nixops.resources.ResourceOptions):
# The CIDR block for the VPC subnet
# source: nixops_aws/nix/vpc-subnet.nix:25
cidrBlock: str
# The IPv6 network range for the subnet, in CIDR notation.
# The subnet size must use a /64 prefix length.
# source: nixops_aws/nix/vpc-subnet.nix:30
ipv6CidrBlock: Optional[str]
# Indicates whether instances launched into the subnet should be assigned
# a public IP in launch. Default is false.
# source: nixops_aws/nix/vpc-subnet.nix:47
mapPublicIpOnLaunch: bool
# Name of the subnet VPC.
# source: nixops_aws/nix/vpc-subnet.nix:11
name: str
# The VPC subnet id generated from AWS. This is set by NixOps
# source: nixops_aws/nix/vpc-subnet.nix:56
subnetId: str
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
# The ID of the VPC where the subnet will be created
# source: nixops_aws/nix/vpc-subnet.nix:17
vpcId: Union[str, NixopsRef('vpc')]
# The availability zone for the VPC subnet.
# By default AWS selects one for you.
# source: nixops_aws/nix/vpc-subnet.nix:39
zone: str
class ElasticIPOptions(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/elastic-ip.nix:15
accessKeyId: str
# The elastic IP address, set by NixOps.
# source: nixops_aws/nix/elastic-ip.nix:21
address: str
# AWS region.
# source: nixops_aws/nix/elastic-ip.nix:9
region: str
# Whether to allocate the address for use with instances in a VPC.
# source: nixops_aws/nix/elastic-ip.nix:27
vpc: bool
class VPCNatGatewayOptions(nixops.resources.ResourceOptions):
# The allocation ID of the elastic IP address.
# source: nixops_aws/nix/vpc-nat-gateway.nix:17
allocationId: Union[str, NixopsRef('elastic-ip')]
# Name of the VPC NAT gateway.
# source: nixops_aws/nix/vpc-nat-gateway.nix:11
name: str
# The ID of the VPC subnet where the NAT gateway will be created
# source: nixops_aws/nix/vpc-nat-gateway.nix:25
subnetId: Union[str, NixopsRef('vpc-subnet')]
class UNKNOWN(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/common-ec2-auth-options.nix:7
accessKeyId: str
# AWS region.
# source: nixops_aws/nix/common-ec2-auth-options.nix:14
region: str
class AWSVPNGatewayOptions(nixops.resources.ResourceOptions):
# Name of the AWS VPN gateway.
# source: nixops_aws/nix/aws-vpn-gateway.nix:11
name: str
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
# The ID of the VPC where the VPN gateway will be attached.
# source: nixops_aws/nix/aws-vpn-gateway.nix:25
vpcId: Union[str, NixopsRef('vpc')]
# AWS availability zone.
# source: nixops_aws/nix/aws-vpn-gateway.nix:17
zone: str
class UNKNOWN(nixops.resources.ResourceOptions):
# The AWS Access Key ID.
# source: nixops_aws/nix/s3-bucket.nix:20
accessKeyId: str
# Amazon Resource Name (ARN) of the S3 bucket. This is set by NixOps.
# source: nixops_aws/nix/s3-bucket.nix:25
arn: str
# The JSON lifecycle management string to apply to the bucket.
# source: nixops_aws/nix/s3-bucket.nix:37
lifeCycle: str
# Name of the S3 bucket.
# source: nixops_aws/nix/s3-bucket.nix:9
name: str
# If set to true <command>nixops destroy</command> won't delete the bucket
# on destroy.
# source: nixops_aws/nix/s3-bucket.nix:49
persistOnDestroy: bool
# The JSON Policy string to apply to the bucket.
# source: nixops_aws/nix/s3-bucket.nix:31
policy: str
# Amazon S3 region.
# source: nixops_aws/nix/s3-bucket.nix:15
region: str
# Whether to enable S3 versioning or not. Valid values are 'Enabled' or 'Suspended'
# source: nixops_aws/nix/s3-bucket.nix:43
versioning: Union[Literal["Suspended"], Literal["Enabled"]]
class UNKNOWN(nixops.resources.ResourceOptions):
# If you're using AmazonProvidedDNS in us-east-1, specify ec2.internal.
# If you're using another region specify region.compute.internal (e.g
# ap-northeast-1.compute.internal). Otherwise specify a domain name e.g
# MyCompany.com. This value is used to complete unqualified DNS hostnames.
# source: nixops_aws/nix/vpc-dhcp-options.nix:32
domainName: Optional[str]
# The IP addresses of up to 4 domain name servers, or AmazonProvidedDNS.
# source: nixops_aws/nix/vpc-dhcp-options.nix:24
domainNameServers: Optional[List[str]]
# Name of the DHCP options set.
# source: nixops_aws/nix/vpc-dhcp-options.nix:10
name: str
# The IP addresses of up to 4 NetBIOS name servers.
# source: nixops_aws/nix/vpc-dhcp-options.nix:51
netbiosNameServers: Optional[List[str]]
# The NetBIOS node type (1,2,4 or 8).
# source: nixops_aws/nix/vpc-dhcp-options.nix:59
netbiosNodeType: Optional[int]
# The IP addresses of up to 4 Network Time Protocol (NTP) servers.
# source: nixops_aws/nix/vpc-dhcp-options.nix:43
ntpServers: Optional[List[str]]
# Tags assigned to the instance. Each tag name can be at most
# 128 characters, and each tag value can be at most 256
# characters. There can be at most 10 tags.
# source: nixops_aws/nix/common-ec2-options.nix:7
tags: Dict[str,str]
# The ID of the VPC used to associate the DHCP options to.
# source: nixops_aws/nix/vpc-dhcp-options.nix:16
vpcId: Union[str, NixopsRef('vpc')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment