Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse
dynatrace.getLambdaAgentVersion
Explore with Pulumi AI
The AWS Lambda agent version data source retrieves the latest version names of OneAgent code modules for the Java, Node.js, and Python runtimes, also including names for layers that are combined with the log collector, as well as for the standalone log collector layer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@pulumi/dynatrace";
const example = dynatrace.getLambdaAgentVersion({});
export const latest = example;
import pulumi
import pulumi_dynatrace as dynatrace
example = dynatrace.get_lambda_agent_version()
pulumi.export("latest", example)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := dynatrace.GetLambdaAgentVersion(ctx, &dynatrace.GetLambdaAgentVersionArgs{}, nil)
if err != nil {
return err
}
ctx.Export("latest", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumi.Dynatrace;
return await Deployment.RunAsync(() =>
{
var example = Dynatrace.GetLambdaAgentVersion.Invoke();
return new Dictionary<string, object?>
{
["latest"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dynatrace.DynatraceFunctions;
import com.pulumi.dynatrace.inputs.GetLambdaAgentVersionArgs;
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 = DynatraceFunctions.getLambdaAgentVersion();
ctx.export("latest", example.applyValue(getLambdaAgentVersionResult -> getLambdaAgentVersionResult));
}
}
variables:
example:
fn::invoke:
Function: dynatrace:getLambdaAgentVersion
Arguments: {}
outputs:
latest: ${example}
Using getLambdaAgentVersion
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 getLambdaAgentVersion(args: GetLambdaAgentVersionArgs, opts?: InvokeOptions): Promise<GetLambdaAgentVersionResult>
function getLambdaAgentVersionOutput(args: GetLambdaAgentVersionOutputArgs, opts?: InvokeOptions): Output<GetLambdaAgentVersionResult>
def get_lambda_agent_version(collector: Optional[str] = None,
java: Optional[str] = None,
java_with_collector: Optional[str] = None,
nodejs: Optional[str] = None,
nodejs_with_collector: Optional[str] = None,
python: Optional[str] = None,
python_with_collector: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLambdaAgentVersionResult
def get_lambda_agent_version_output(collector: Optional[pulumi.Input[str]] = None,
java: Optional[pulumi.Input[str]] = None,
java_with_collector: Optional[pulumi.Input[str]] = None,
nodejs: Optional[pulumi.Input[str]] = None,
nodejs_with_collector: Optional[pulumi.Input[str]] = None,
python: Optional[pulumi.Input[str]] = None,
python_with_collector: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLambdaAgentVersionResult]
func GetLambdaAgentVersion(ctx *Context, args *GetLambdaAgentVersionArgs, opts ...InvokeOption) (*GetLambdaAgentVersionResult, error)
func GetLambdaAgentVersionOutput(ctx *Context, args *GetLambdaAgentVersionOutputArgs, opts ...InvokeOption) GetLambdaAgentVersionResultOutput
> Note: This function is named GetLambdaAgentVersion
in the Go SDK.
public static class GetLambdaAgentVersion
{
public static Task<GetLambdaAgentVersionResult> InvokeAsync(GetLambdaAgentVersionArgs args, InvokeOptions? opts = null)
public static Output<GetLambdaAgentVersionResult> Invoke(GetLambdaAgentVersionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLambdaAgentVersionResult> getLambdaAgentVersion(GetLambdaAgentVersionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: dynatrace:index/getLambdaAgentVersion:getLambdaAgentVersion
arguments:
# arguments dictionary
The following arguments are supported:
- Collector string
- Latest version name of standalone log collector
- Java string
- Latest version name of Java code module
- Java
With stringCollector - Latest version name of Java code module with log collector
- Nodejs string
- Latest version name of NodeJS code module
- Nodejs
With stringCollector - Latest version name of NodeJS code module with log collector
- Python string
- Latest version name of Python code module
- Python
With stringCollector - Latest version name of Python code module with log collector
- Collector string
- Latest version name of standalone log collector
- Java string
- Latest version name of Java code module
- Java
With stringCollector - Latest version name of Java code module with log collector
- Nodejs string
- Latest version name of NodeJS code module
- Nodejs
With stringCollector - Latest version name of NodeJS code module with log collector
- Python string
- Latest version name of Python code module
- Python
With stringCollector - Latest version name of Python code module with log collector
- collector String
- Latest version name of standalone log collector
- java String
- Latest version name of Java code module
- java
With StringCollector - Latest version name of Java code module with log collector
- nodejs String
- Latest version name of NodeJS code module
- nodejs
With StringCollector - Latest version name of NodeJS code module with log collector
- python String
- Latest version name of Python code module
- python
With StringCollector - Latest version name of Python code module with log collector
- collector string
- Latest version name of standalone log collector
- java string
- Latest version name of Java code module
- java
With stringCollector - Latest version name of Java code module with log collector
- nodejs string
- Latest version name of NodeJS code module
- nodejs
With stringCollector - Latest version name of NodeJS code module with log collector
- python string
- Latest version name of Python code module
- python
With stringCollector - Latest version name of Python code module with log collector
- collector str
- Latest version name of standalone log collector
- java str
- Latest version name of Java code module
- java_
with_ strcollector - Latest version name of Java code module with log collector
- nodejs str
- Latest version name of NodeJS code module
- nodejs_
with_ strcollector - Latest version name of NodeJS code module with log collector
- python str
- Latest version name of Python code module
- python_
with_ strcollector - Latest version name of Python code module with log collector
- collector String
- Latest version name of standalone log collector
- java String
- Latest version name of Java code module
- java
With StringCollector - Latest version name of Java code module with log collector
- nodejs String
- Latest version name of NodeJS code module
- nodejs
With StringCollector - Latest version name of NodeJS code module with log collector
- python String
- Latest version name of Python code module
- python
With StringCollector - Latest version name of Python code module with log collector
getLambdaAgentVersion Result
The following output properties are available:
- Collector string
- Latest version name of standalone log collector
- Id string
- The provider-assigned unique ID for this managed resource.
- Java string
- Latest version name of Java code module
- Java
With stringCollector - Latest version name of Java code module with log collector
- Nodejs string
- Latest version name of NodeJS code module
- Nodejs
With stringCollector - Latest version name of NodeJS code module with log collector
- Python string
- Latest version name of Python code module
- Python
With stringCollector - Latest version name of Python code module with log collector
- Collector string
- Latest version name of standalone log collector
- Id string
- The provider-assigned unique ID for this managed resource.
- Java string
- Latest version name of Java code module
- Java
With stringCollector - Latest version name of Java code module with log collector
- Nodejs string
- Latest version name of NodeJS code module
- Nodejs
With stringCollector - Latest version name of NodeJS code module with log collector
- Python string
- Latest version name of Python code module
- Python
With stringCollector - Latest version name of Python code module with log collector
- collector String
- Latest version name of standalone log collector
- id String
- The provider-assigned unique ID for this managed resource.
- java String
- Latest version name of Java code module
- java
With StringCollector - Latest version name of Java code module with log collector
- nodejs String
- Latest version name of NodeJS code module
- nodejs
With StringCollector - Latest version name of NodeJS code module with log collector
- python String
- Latest version name of Python code module
- python
With StringCollector - Latest version name of Python code module with log collector
- collector string
- Latest version name of standalone log collector
- id string
- The provider-assigned unique ID for this managed resource.
- java string
- Latest version name of Java code module
- java
With stringCollector - Latest version name of Java code module with log collector
- nodejs string
- Latest version name of NodeJS code module
- nodejs
With stringCollector - Latest version name of NodeJS code module with log collector
- python string
- Latest version name of Python code module
- python
With stringCollector - Latest version name of Python code module with log collector
- collector str
- Latest version name of standalone log collector
- id str
- The provider-assigned unique ID for this managed resource.
- java str
- Latest version name of Java code module
- java_
with_ strcollector - Latest version name of Java code module with log collector
- nodejs str
- Latest version name of NodeJS code module
- nodejs_
with_ strcollector - Latest version name of NodeJS code module with log collector
- python str
- Latest version name of Python code module
- python_
with_ strcollector - Latest version name of Python code module with log collector
- collector String
- Latest version name of standalone log collector
- id String
- The provider-assigned unique ID for this managed resource.
- java String
- Latest version name of Java code module
- java
With StringCollector - Latest version name of Java code module with log collector
- nodejs String
- Latest version name of NodeJS code module
- nodejs
With StringCollector - Latest version name of NodeJS code module with log collector
- python String
- Latest version name of Python code module
- python
With StringCollector - Latest version name of Python code module with log collector
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.