@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
137 lines (136 loc) • 4.34 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Data source for managing an AWS CloudWatch Synthetics Runtime Version.
*
* ## Example Usage
*
* ### Latest Runtime Version
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.synthetics.getRuntimeVersion({
* prefix: "syn-nodejs-puppeteer",
* latest: true,
* });
* ```
*
* ### Specific Runtime Version
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.synthetics.getRuntimeVersion({
* prefix: "syn-nodejs-puppeteer",
* version: "9.0",
* });
* ```
*/
export declare function getRuntimeVersion(args: GetRuntimeVersionArgs, opts?: pulumi.InvokeOptions): Promise<GetRuntimeVersionResult>;
/**
* A collection of arguments for invoking getRuntimeVersion.
*/
export interface GetRuntimeVersionArgs {
/**
* Whether the latest version of the runtime should be fetched. Conflicts with `version`. Valid values: `true`.
*/
latest?: boolean;
/**
* Name prefix of the runtime version (for example, `syn-nodejs-puppeteer`).
*
* The following arguments are optional:
*/
prefix: 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;
/**
* Version of the runtime to be fetched (for example, `9.0`). Conflicts with `latest`.
*/
version?: string;
}
/**
* A collection of values returned by getRuntimeVersion.
*/
export interface GetRuntimeVersionResult {
/**
* Date of deprecation if the runtme version is deprecated.
*/
readonly deprecationDate: string;
/**
* Description of the runtime version, created by Amazon.
*/
readonly description: string;
/**
* Name of the runtime version. For a list of valid runtime versions, see [Canary Runtime Versions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html).
*/
readonly id: string;
readonly latest?: boolean;
readonly prefix: string;
readonly region: string;
/**
* Date that the runtime version was released.
*/
readonly releaseDate: string;
readonly version?: string;
/**
* Name of the runtime version. For a list of valid runtime versions, see [Canary Runtime Versions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html).
*/
readonly versionName: string;
}
/**
* Data source for managing an AWS CloudWatch Synthetics Runtime Version.
*
* ## Example Usage
*
* ### Latest Runtime Version
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.synthetics.getRuntimeVersion({
* prefix: "syn-nodejs-puppeteer",
* latest: true,
* });
* ```
*
* ### Specific Runtime Version
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.synthetics.getRuntimeVersion({
* prefix: "syn-nodejs-puppeteer",
* version: "9.0",
* });
* ```
*/
export declare function getRuntimeVersionOutput(args: GetRuntimeVersionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRuntimeVersionResult>;
/**
* A collection of arguments for invoking getRuntimeVersion.
*/
export interface GetRuntimeVersionOutputArgs {
/**
* Whether the latest version of the runtime should be fetched. Conflicts with `version`. Valid values: `true`.
*/
latest?: pulumi.Input<boolean>;
/**
* Name prefix of the runtime version (for example, `syn-nodejs-puppeteer`).
*
* The following arguments are optional:
*/
prefix: 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>;
/**
* Version of the runtime to be fetched (for example, `9.0`). Conflicts with `latest`.
*/
version?: pulumi.Input<string>;
}