Dynatrace v0.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse
dynatrace.getAwsCredentials
Explore with Pulumi AI
The dynatrace.AwsCredentials
data source allows the AWS credential ID to be retrieved by its label.
label
(String) - The label/name of the AWS credential
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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.GetAwsCredentialsArgs;
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.getAwsCredentials(GetAwsCredentialsArgs.builder()
.name("Terraform Example")
.build());
ctx.export("id", example.applyValue(getAwsCredentialsResult -> getAwsCredentialsResult.id()));
}
}
variables:
example:
fn::invoke:
Function: dynatrace:getAwsCredentials
Arguments:
name: Terraform Example
outputs:
id: ${example.id}
Using getAwsCredentials
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 getAwsCredentials(args: GetAwsCredentialsArgs, opts?: InvokeOptions): Promise<GetAwsCredentialsResult>
function getAwsCredentialsOutput(args: GetAwsCredentialsOutputArgs, opts?: InvokeOptions): Output<GetAwsCredentialsResult>
def get_aws_credentials(label: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAwsCredentialsResult
def get_aws_credentials_output(label: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAwsCredentialsResult]
func LookupAwsCredentials(ctx *Context, args *LookupAwsCredentialsArgs, opts ...InvokeOption) (*LookupAwsCredentialsResult, error)
func LookupAwsCredentialsOutput(ctx *Context, args *LookupAwsCredentialsOutputArgs, opts ...InvokeOption) LookupAwsCredentialsResultOutput
> Note: This function is named LookupAwsCredentials
in the Go SDK.
public static class GetAwsCredentials
{
public static Task<GetAwsCredentialsResult> InvokeAsync(GetAwsCredentialsArgs args, InvokeOptions? opts = null)
public static Output<GetAwsCredentialsResult> Invoke(GetAwsCredentialsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAwsCredentialsResult> getAwsCredentials(GetAwsCredentialsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: dynatrace:index/getAwsCredentials:getAwsCredentials
arguments:
# arguments dictionary
The following arguments are supported:
- Label string
- Label string
- label String
- label string
- label str
- label String
getAwsCredentials Result
The following output properties are available:
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.