1. Packages
  2. AWS
  3. API Docs
  4. synthetics
  5. getRuntimeVersions
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.synthetics.getRuntimeVersions

Explore with Pulumi AI

Data source for managing an AWS CloudWatch Synthetics Runtime Versions.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.synthetics.getRuntimeVersions({});
Copy
import pulumi
import pulumi_aws as aws

example = aws.synthetics.get_runtime_versions()
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/synthetics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.GetRuntimeVersions(ctx, &synthetics.GetRuntimeVersionsArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Synthetics.GetRuntimeVersions.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.synthetics.SyntheticsFunctions;
import com.pulumi.aws.synthetics.inputs.GetRuntimeVersionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = SyntheticsFunctions.getRuntimeVersions(GetRuntimeVersionsArgs.builder()
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:synthetics:getRuntimeVersions
      arguments: {}
Copy

Using getRuntimeVersions

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRuntimeVersions(args: GetRuntimeVersionsArgs, opts?: InvokeOptions): Promise<GetRuntimeVersionsResult>
function getRuntimeVersionsOutput(args: GetRuntimeVersionsOutputArgs, opts?: InvokeOptions): Output<GetRuntimeVersionsResult>
Copy
def get_runtime_versions(runtime_versions: Optional[Sequence[GetRuntimeVersionsRuntimeVersion]] = None,
                         opts: Optional[InvokeOptions] = None) -> GetRuntimeVersionsResult
def get_runtime_versions_output(runtime_versions: Optional[pulumi.Input[Sequence[pulumi.Input[GetRuntimeVersionsRuntimeVersionArgs]]]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetRuntimeVersionsResult]
Copy
func GetRuntimeVersions(ctx *Context, args *GetRuntimeVersionsArgs, opts ...InvokeOption) (*GetRuntimeVersionsResult, error)
func GetRuntimeVersionsOutput(ctx *Context, args *GetRuntimeVersionsOutputArgs, opts ...InvokeOption) GetRuntimeVersionsResultOutput
Copy

> Note: This function is named GetRuntimeVersions in the Go SDK.

public static class GetRuntimeVersions 
{
    public static Task<GetRuntimeVersionsResult> InvokeAsync(GetRuntimeVersionsArgs args, InvokeOptions? opts = null)
    public static Output<GetRuntimeVersionsResult> Invoke(GetRuntimeVersionsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRuntimeVersionsResult> getRuntimeVersions(GetRuntimeVersionsArgs args, InvokeOptions options)
public static Output<GetRuntimeVersionsResult> getRuntimeVersions(GetRuntimeVersionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:synthetics/getRuntimeVersions:getRuntimeVersions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

RuntimeVersions List<GetRuntimeVersionsRuntimeVersion>
List of runtime versions. See runtime_versions attribute reference.
RuntimeVersions []GetRuntimeVersionsRuntimeVersion
List of runtime versions. See runtime_versions attribute reference.
runtimeVersions List<GetRuntimeVersionsRuntimeVersion>
List of runtime versions. See runtime_versions attribute reference.
runtimeVersions GetRuntimeVersionsRuntimeVersion[]
List of runtime versions. See runtime_versions attribute reference.
runtime_versions Sequence[GetRuntimeVersionsRuntimeVersion]
List of runtime versions. See runtime_versions attribute reference.
runtimeVersions List<Property Map>
List of runtime versions. See runtime_versions attribute reference.

getRuntimeVersions Result

The following output properties are available:

Id string
Name of the AWS region from which runtime versions are fetched.
RuntimeVersions List<GetRuntimeVersionsRuntimeVersion>
List of runtime versions. See runtime_versions attribute reference.
Id string
Name of the AWS region from which runtime versions are fetched.
RuntimeVersions []GetRuntimeVersionsRuntimeVersion
List of runtime versions. See runtime_versions attribute reference.
id String
Name of the AWS region from which runtime versions are fetched.
runtimeVersions List<GetRuntimeVersionsRuntimeVersion>
List of runtime versions. See runtime_versions attribute reference.
id string
Name of the AWS region from which runtime versions are fetched.
runtimeVersions GetRuntimeVersionsRuntimeVersion[]
List of runtime versions. See runtime_versions attribute reference.
id str
Name of the AWS region from which runtime versions are fetched.
runtime_versions Sequence[GetRuntimeVersionsRuntimeVersion]
List of runtime versions. See runtime_versions attribute reference.
id String
Name of the AWS region from which runtime versions are fetched.
runtimeVersions List<Property Map>
List of runtime versions. See runtime_versions attribute reference.

Supporting Types

GetRuntimeVersionsRuntimeVersion

DeprecationDate This property is required. string
Date of deprecation if the runtme version is deprecated.
Description This property is required. string
Description of the runtime version, created by Amazon.
ReleaseDate This property is required. string
Date that the runtime version was released.
VersionName This property is required. string
Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
DeprecationDate This property is required. string
Date of deprecation if the runtme version is deprecated.
Description This property is required. string
Description of the runtime version, created by Amazon.
ReleaseDate This property is required. string
Date that the runtime version was released.
VersionName This property is required. string
Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
deprecationDate This property is required. String
Date of deprecation if the runtme version is deprecated.
description This property is required. String
Description of the runtime version, created by Amazon.
releaseDate This property is required. String
Date that the runtime version was released.
versionName This property is required. String
Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
deprecationDate This property is required. string
Date of deprecation if the runtme version is deprecated.
description This property is required. string
Description of the runtime version, created by Amazon.
releaseDate This property is required. string
Date that the runtime version was released.
versionName This property is required. string
Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
deprecation_date This property is required. str
Date of deprecation if the runtme version is deprecated.
description This property is required. str
Description of the runtime version, created by Amazon.
release_date This property is required. str
Date that the runtime version was released.
version_name This property is required. str
Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
deprecationDate This property is required. String
Date of deprecation if the runtme version is deprecated.
description This property is required. String
Description of the runtime version, created by Amazon.
releaseDate This property is required. String
Date that the runtime version was released.
versionName This property is required. String
Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.