1. Packages
  2. Dynatrace
  3. API Docs
  4. getAwsCredentials
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.getAwsCredentials

Explore with Pulumi AI

Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

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()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: dynatrace:getAwsCredentials
      arguments:
        name: Terraform Example
outputs:
  id: ${example.id}
Copy

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>
Copy
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]
Copy
func LookupAwsCredentials(ctx *Context, args *LookupAwsCredentialsArgs, opts ...InvokeOption) (*LookupAwsCredentialsResult, error)
func LookupAwsCredentialsOutput(ctx *Context, args *LookupAwsCredentialsOutputArgs, opts ...InvokeOption) LookupAwsCredentialsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAwsCredentialsResult> getAwsCredentials(GetAwsCredentialsArgs args, InvokeOptions options)
public static Output<GetAwsCredentialsResult> getAwsCredentials(GetAwsCredentialsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: dynatrace:index/getAwsCredentials:getAwsCredentials
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Label This property is required. string
Label This property is required. string
label This property is required. String
label This property is required. string
label This property is required. str
label This property is required. String

getAwsCredentials Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Label string
Id string
The provider-assigned unique ID for this managed resource.
Label string
id String
The provider-assigned unique ID for this managed resource.
label String
id string
The provider-assigned unique ID for this managed resource.
label string
id str
The provider-assigned unique ID for this managed resource.
label str
id String
The provider-assigned unique ID for this managed resource.
label String

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse