UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

101 lines (100 loc) 3.52 kB
import * as pulumi from "@pulumi/pulumi"; /** * Information about single Outpost Instance Type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.outposts.getOutpostInstanceType({ * arn: exampleAwsOutpostsOutpost.arn, * preferredInstanceTypes: [ * "m5.large", * "m5.4xlarge", * ], * }); * const exampleEc2Instance = new aws.index.Ec2Instance("example", {instanceType: example.instanceType}); * ``` */ export declare function getOutpostInstanceType(args: GetOutpostInstanceTypeArgs, opts?: pulumi.InvokeOptions): Promise<GetOutpostInstanceTypeResult>; /** * A collection of arguments for invoking getOutpostInstanceType. */ export interface GetOutpostInstanceTypeArgs { /** * Outpost ARN. * * The following arguments are optional: */ arn: string; /** * Desired instance type. Conflicts with `preferredInstanceTypes`. */ instanceType?: string; /** * Ordered list of preferred instance types. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned. Conflicts with `instanceType`. */ preferredInstanceTypes?: string[]; /** * 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?: string; } /** * A collection of values returned by getOutpostInstanceType. */ export interface GetOutpostInstanceTypeResult { readonly arn: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceType: string; readonly preferredInstanceTypes?: string[]; readonly region: string; } /** * Information about single Outpost Instance Type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.outposts.getOutpostInstanceType({ * arn: exampleAwsOutpostsOutpost.arn, * preferredInstanceTypes: [ * "m5.large", * "m5.4xlarge", * ], * }); * const exampleEc2Instance = new aws.index.Ec2Instance("example", {instanceType: example.instanceType}); * ``` */ export declare function getOutpostInstanceTypeOutput(args: GetOutpostInstanceTypeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOutpostInstanceTypeResult>; /** * A collection of arguments for invoking getOutpostInstanceType. */ export interface GetOutpostInstanceTypeOutputArgs { /** * Outpost ARN. * * The following arguments are optional: */ arn: pulumi.Input<string>; /** * Desired instance type. Conflicts with `preferredInstanceTypes`. */ instanceType?: pulumi.Input<string>; /** * Ordered list of preferred instance types. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned. Conflicts with `instanceType`. */ preferredInstanceTypes?: pulumi.Input<pulumi.Input<string>[]>; /** * 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<string>; }