import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides an EC2 Secondary Subnet resource. * * A secondary subnet is a subnet within a secondary network that provides high-performance networking capabilities for specialized workloads such as RDMA (Remote Direct Memory Access) applications. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.ec2.SecondaryNetwork("example", { * ipv4CidrBlock: "10.0.0.0/16", * networkType: "rdma", * tags: { * Name: "example-secondary-network", * }, * }); * const exampleSecondarySubnet = new aws.ec2.SecondarySubnet("example", { * secondaryNetworkId: example.id, * ipv4CidrBlock: "10.0.1.0/24", * availabilityZone: "us-west-2a", * tags: { * Name: "example-secondary-subnet", * }, * }); * ``` * * ### Using Availability Zone ID * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const available = aws.getAvailabilityZones({ * filters: [{ * name: "opt-in-status", * values: ["opt-in-not-required"], * }], * state: "available", * }); * const example = new aws.ec2.SecondaryNetwork("example", { * ipv4CidrBlock: "10.0.0.0/16", * networkType: "rdma", * tags: { * Name: "example-secondary-network", * }, * }); * const exampleSecondarySubnet = new aws.ec2.SecondarySubnet("example", { * secondaryNetworkId: example.id, * ipv4CidrBlock: "10.0.1.0/24", * availabilityZoneId: available.then(available => available.zoneIds?.[0]), * tags: { * Name: "example-secondary-subnet", * }, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `id` - (String) ID of the secondary subnet. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import EC2 Secondary Subnets using the secondary subnet ID. For example: * * ```sh * $ pulumi import aws:ec2/secondarySubnet:SecondarySubnet example ss-0123456789abcdef0 * ``` */ export declare class SecondarySubnet extends pulumi.CustomResource { /** * Get an existing SecondarySubnet resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SecondarySubnetState, opts?: pulumi.CustomResourceOptions): SecondarySubnet; /** * Returns true if the given object is an instance of SecondarySubnet. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SecondarySubnet; /** * ARN of the secondary subnet. */ readonly arn: pulumi.Output; /** * Availability Zone for the secondary subnet. Cannot be specified with `availabilityZoneId`. */ readonly availabilityZone: pulumi.Output; /** * ID of the Availability Zone for the secondary subnet. This option is preferred over `availabilityZone` as it provides a consistent identifier across AWS accounts. Cannot be specified with `availabilityZone`. */ readonly availabilityZoneId: pulumi.Output; /** * IPv4 CIDR block for the secondary subnet. The CIDR block size must be between `/12` and `/28`. */ readonly ipv4CidrBlock: pulumi.Output; /** * A list of IPv4 CIDR block associations for the secondary network. */ readonly ipv4CidrBlockAssociations: pulumi.Output; /** * ID of the AWS account that owns the secondary subnet. */ readonly ownerId: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * ID of the secondary network in which to create the secondary subnet. */ readonly secondaryNetworkId: pulumi.Output; /** * Type of the secondary network (e.g., `rdma`). */ readonly secondaryNetworkType: pulumi.Output; /** * ID of the secondary subnet. */ readonly secondarySubnetId: pulumi.Output; /** * State of the IPv4 CIDR block association. */ readonly state: pulumi.Output; /** * A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; readonly timeouts: pulumi.Output; /** * Create a SecondarySubnet resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SecondarySubnetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SecondarySubnet resources. */ export interface SecondarySubnetState { /** * ARN of the secondary subnet. */ arn?: pulumi.Input; /** * Availability Zone for the secondary subnet. Cannot be specified with `availabilityZoneId`. */ availabilityZone?: pulumi.Input; /** * ID of the Availability Zone for the secondary subnet. This option is preferred over `availabilityZone` as it provides a consistent identifier across AWS accounts. Cannot be specified with `availabilityZone`. */ availabilityZoneId?: pulumi.Input; /** * IPv4 CIDR block for the secondary subnet. The CIDR block size must be between `/12` and `/28`. */ ipv4CidrBlock?: pulumi.Input; /** * A list of IPv4 CIDR block associations for the secondary network. */ ipv4CidrBlockAssociations?: pulumi.Input[] | undefined>; /** * ID of the AWS account that owns the secondary subnet. */ ownerId?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * ID of the secondary network in which to create the secondary subnet. */ secondaryNetworkId?: pulumi.Input; /** * Type of the secondary network (e.g., `rdma`). */ secondaryNetworkType?: pulumi.Input; /** * ID of the secondary subnet. */ secondarySubnetId?: pulumi.Input; /** * State of the IPv4 CIDR block association. */ state?: pulumi.Input; /** * A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a SecondarySubnet resource. */ export interface SecondarySubnetArgs { /** * Availability Zone for the secondary subnet. Cannot be specified with `availabilityZoneId`. */ availabilityZone?: pulumi.Input; /** * ID of the Availability Zone for the secondary subnet. This option is preferred over `availabilityZone` as it provides a consistent identifier across AWS accounts. Cannot be specified with `availabilityZone`. */ availabilityZoneId?: pulumi.Input; /** * IPv4 CIDR block for the secondary subnet. The CIDR block size must be between `/12` and `/28`. */ ipv4CidrBlock: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * ID of the secondary network in which to create the secondary subnet. */ secondaryNetworkId: pulumi.Input; /** * A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; } //# sourceMappingURL=secondarySubnet.d.ts.map