1. Packages
  2. AWS
  3. API Docs
  4. synthetics
  5. getRuntimeVersion
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.synthetics.getRuntimeVersion

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Data source for managing an AWS CloudWatch Synthetics Runtime Version.

    Example Usage

    Latest Runtime Version

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.synthetics.getRuntimeVersion({
        prefix: "syn-nodejs-puppeteer",
        latest: true,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.synthetics.get_runtime_version(prefix="syn-nodejs-puppeteer",
        latest=True)
    
    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.GetRuntimeVersion(ctx, &synthetics.GetRuntimeVersionArgs{
    			Prefix: "syn-nodejs-puppeteer",
    			Latest: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Synthetics.GetRuntimeVersion.Invoke(new()
        {
            Prefix = "syn-nodejs-puppeteer",
            Latest = true,
        });
    
    });
    
    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.GetRuntimeVersionArgs;
    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.getRuntimeVersion(GetRuntimeVersionArgs.builder()
                .prefix("syn-nodejs-puppeteer")
                .latest(true)
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:synthetics:getRuntimeVersion
          Arguments:
            prefix: syn-nodejs-puppeteer
            latest: true
    

    Specific Runtime Version

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.synthetics.getRuntimeVersion({
        prefix: "syn-nodejs-puppeteer",
        version: "9.0",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.synthetics.get_runtime_version(prefix="syn-nodejs-puppeteer",
        version="9.0")
    
    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.GetRuntimeVersion(ctx, &synthetics.GetRuntimeVersionArgs{
    			Prefix:  "syn-nodejs-puppeteer",
    			Version: pulumi.StringRef("9.0"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Synthetics.GetRuntimeVersion.Invoke(new()
        {
            Prefix = "syn-nodejs-puppeteer",
            Version = "9.0",
        });
    
    });
    
    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.GetRuntimeVersionArgs;
    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.getRuntimeVersion(GetRuntimeVersionArgs.builder()
                .prefix("syn-nodejs-puppeteer")
                .version("9.0")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:synthetics:getRuntimeVersion
          Arguments:
            prefix: syn-nodejs-puppeteer
            version: '9.0'
    

    Using getRuntimeVersion

    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 getRuntimeVersion(args: GetRuntimeVersionArgs, opts?: InvokeOptions): Promise<GetRuntimeVersionResult>
    function getRuntimeVersionOutput(args: GetRuntimeVersionOutputArgs, opts?: InvokeOptions): Output<GetRuntimeVersionResult>
    def get_runtime_version(latest: Optional[bool] = None,
                            prefix: Optional[str] = None,
                            version: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetRuntimeVersionResult
    def get_runtime_version_output(latest: Optional[pulumi.Input[bool]] = None,
                            prefix: Optional[pulumi.Input[str]] = None,
                            version: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetRuntimeVersionResult]
    func GetRuntimeVersion(ctx *Context, args *GetRuntimeVersionArgs, opts ...InvokeOption) (*GetRuntimeVersionResult, error)
    func GetRuntimeVersionOutput(ctx *Context, args *GetRuntimeVersionOutputArgs, opts ...InvokeOption) GetRuntimeVersionResultOutput

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

    public static class GetRuntimeVersion 
    {
        public static Task<GetRuntimeVersionResult> InvokeAsync(GetRuntimeVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetRuntimeVersionResult> Invoke(GetRuntimeVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRuntimeVersionResult> getRuntimeVersion(GetRuntimeVersionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:synthetics/getRuntimeVersion:getRuntimeVersion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Prefix string

    Name prefix of the runtime version (for example, syn-nodejs-puppeteer).

    The following arguments are optional:

    Latest bool
    Whether the latest version of the runtime should be fetched. Conflicts with version. Valid values: true.
    Version string
    Version of the runtime to be fetched (for example, 9.0). Conflicts with latest.
    Prefix string

    Name prefix of the runtime version (for example, syn-nodejs-puppeteer).

    The following arguments are optional:

    Latest bool
    Whether the latest version of the runtime should be fetched. Conflicts with version. Valid values: true.
    Version string
    Version of the runtime to be fetched (for example, 9.0). Conflicts with latest.
    prefix String

    Name prefix of the runtime version (for example, syn-nodejs-puppeteer).

    The following arguments are optional:

    latest Boolean
    Whether the latest version of the runtime should be fetched. Conflicts with version. Valid values: true.
    version String
    Version of the runtime to be fetched (for example, 9.0). Conflicts with latest.
    prefix string

    Name prefix of the runtime version (for example, syn-nodejs-puppeteer).

    The following arguments are optional:

    latest boolean
    Whether the latest version of the runtime should be fetched. Conflicts with version. Valid values: true.
    version string
    Version of the runtime to be fetched (for example, 9.0). Conflicts with latest.
    prefix str

    Name prefix of the runtime version (for example, syn-nodejs-puppeteer).

    The following arguments are optional:

    latest bool
    Whether the latest version of the runtime should be fetched. Conflicts with version. Valid values: true.
    version str
    Version of the runtime to be fetched (for example, 9.0). Conflicts with latest.
    prefix String

    Name prefix of the runtime version (for example, syn-nodejs-puppeteer).

    The following arguments are optional:

    latest Boolean
    Whether the latest version of the runtime should be fetched. Conflicts with version. Valid values: true.
    version String
    Version of the runtime to be fetched (for example, 9.0). Conflicts with latest.

    getRuntimeVersion Result

    The following output properties are available:

    DeprecationDate string
    Date of deprecation if the runtme version is deprecated.
    Description string
    Description of the runtime version, created by Amazon.
    Id string
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    Prefix string
    ReleaseDate string
    Date that the runtime version was released.
    VersionName string
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    Latest bool
    Version string
    DeprecationDate string
    Date of deprecation if the runtme version is deprecated.
    Description string
    Description of the runtime version, created by Amazon.
    Id string
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    Prefix string
    ReleaseDate string
    Date that the runtime version was released.
    VersionName string
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    Latest bool
    Version string
    deprecationDate String
    Date of deprecation if the runtme version is deprecated.
    description String
    Description of the runtime version, created by Amazon.
    id String
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    prefix String
    releaseDate String
    Date that the runtime version was released.
    versionName String
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    latest Boolean
    version String
    deprecationDate string
    Date of deprecation if the runtme version is deprecated.
    description string
    Description of the runtime version, created by Amazon.
    id string
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    prefix string
    releaseDate string
    Date that the runtime version was released.
    versionName string
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    latest boolean
    version string
    deprecation_date str
    Date of deprecation if the runtme version is deprecated.
    description str
    Description of the runtime version, created by Amazon.
    id str
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    prefix str
    release_date str
    Date that the runtime version was released.
    version_name str
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    latest bool
    version str
    deprecationDate String
    Date of deprecation if the runtme version is deprecated.
    description String
    Description of the runtime version, created by Amazon.
    id String
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    prefix String
    releaseDate String
    Date that the runtime version was released.
    versionName String
    Name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions.
    latest Boolean
    version String

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi