1. Packages
  2. Packages
  3. Dynatrace
  4. API Docs
  5. AwsConnectionRoleArn
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse
dynatrace logo
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse

    This resource requires the API token scopes Read settings (settings.read) and Write settings (settings.write)

    This resource requires the OAuth scopes Read settings (settings:objects:read) and Write settings (settings:objects:write)

    Requirements

    This resource must be used in combination with the dynatrace.AwsConnection resource. Ensure you configure both resources together for a valid AWS connection. An example of how to set up both resources can be found in the Resource Example Usage section below.

    Limitations

    If you are creating the dynatrace.AwsConnectionRoleArn and the awsIamRole it is referencing in the same invocation of pulumi up, be aware that due to eventual consistency in AWS, the creation of the awsIamRole might not be fully propagated when the dynatrace.AwsConnectionRoleArn resource is being created. To mitigate this, we retry the creation of the dynatrace.AwsConnectionRoleArn resource with a default timeout of 2 minutes. This is also the timeout used by terraform-provider-aws when waiting for IAM changes to propagate. If you desire a different timeout, you can adjust it using the timeouts block in the dynatrace.AwsConnectionRoleArn resource as shown in the example below.

    The following is an example of the error you might encounter due to this limitation:

    Unable to assume role with web identity. (AccessDenied) Not authorized to perform sts:AssumeRoleWithWebIdentity (Service: Sts, Status Code: 403, Request ID: 00000000-1111-2222-3333-555555555555) (SDK Attempt Count: 1), RequestId 00000000-1111-2222-3333-555555555555
    

    Warning If a resource is created using an API token or without setting DYNATRACE_HTTP_OAUTH_PREFERENCE=true (when both are used), the settings object’s owner will remain empty.

    An empty owner implies:

    • The settings object becomes public, allowing other users with settings permissions to read and modify it.
    • Changing the settings object’s permissions will have no effect, meaning the dynatrace.SettingsPermissions resource can’t alter its access.

    When a settings object is created using platform credentials:

    • The owner is set to the owner of the OAuth client or platform token.
    • By default, the settings object is private; only the owner can read and modify it.
    • Access modifiers can be managed using the dynatrace.SettingsPermissions resource.

    We recommend using platform credentials to ensure a correct setup. In case an API token is needed, we recommend setting DYNATRACE_HTTP_OAUTH_PREFERENCE=true.

    Dynatrace Documentation

    • AWS Connector - https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/actions/aws

    • Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: builtin:hyperscaler-authentication.connections.aws)

    Export Example Usage

    • terraform-provider-dynatrace -export dynatrace.AwsConnectionRoleArn downloads all existing AWS connections.

    The full documentation of the export feature is available here.

    Resource Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    import * as dynatrace from "@pulumiverse/dynatrace";
    
    const test_aws_connection = new dynatrace.AwsConnection("test-aws-connection", {
        name: "#name#",
        webIdentity: {
            consumers: "APP:dynatrace.aws.connector",
        },
    });
    const dynatrace_oidc_provider = new aws.iam.OpenIdConnectProvider("dynatrace-oidc-provider", {
        url: "https://token.dynatrace.com",
        clientIdLists: ["<TENANT_URL>/app-id/dynatrace.aws.connector"],
    });
    const exampleRole = new aws.iam.Role("example_role", {
        name: "#name#",
        assumeRolePolicy: pulumi.jsonStringify({
            Version: "2012-10-17",
            Statement: [{
                Effect: "Allow",
                Principal: {
                    Federated: dynatrace_oidc_provider.arn,
                },
                Action: "sts:AssumeRoleWithWebIdentity",
                Condition: {
                    StringEquals: pulumi.all([dynatrace_oidc_provider.url, test_aws_connection.id, dynatrace_oidc_provider.url]).apply(([dynatrace-oidc-providerUrl, id, dynatrace-oidc-providerUrl1]) => {
                        [`${dynatrace_oidc_providerUrl}:sub`]: `dt:connection-id/${id}`,
                        [`${dynatrace_oidc_providerUrl1}:aud`]: "<TENANT_URL>/app-id/dynatrace.aws.connector",
                    }),
                },
            }],
        }),
    });
    const test_aws_connection_arn = new dynatrace.AwsConnectionRoleArn("test-aws-connection-arn", {
        awsConnectionId: test_aws_connection.id,
        roleArn: exampleRole.arn,
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    import pulumiverse_dynatrace as dynatrace
    
    test_aws_connection = dynatrace.AwsConnection("test-aws-connection",
        name="#name#",
        web_identity={
            "consumers": "APP:dynatrace.aws.connector",
        })
    dynatrace_oidc_provider = aws.iam.OpenIdConnectProvider("dynatrace-oidc-provider",
        url="https://token.dynatrace.com",
        client_id_lists=["<TENANT_URL>/app-id/dynatrace.aws.connector"])
    example_role = aws.iam.Role("example_role",
        name="#name#",
        assume_role_policy=pulumi.Output.json_dumps({
            "Version": "2012-10-17",
            "Statement": [{
                "Effect": "Allow",
                "Principal": {
                    "Federated": dynatrace_oidc_provider.arn,
                },
                "Action": "sts:AssumeRoleWithWebIdentity",
                "Condition": {
                    "StringEquals": pulumi.Output.all(
                        dynatrace-oidc-providerUrl=dynatrace_oidc_provider.url,
                        id=test_aws_connection.id,
                        dynatrace-oidc-providerUrl1=dynatrace_oidc_provider.url
    ).apply(lambda resolved_outputs: {
                        f"{resolved_outputs['dynatrace-oidc-providerUrl']}:sub": f"dt:connection-id/{resolved_outputs['id']}",
                        f"{resolved_outputs['dynatrace-oidc-providerUrl1']}:aud": "<TENANT_URL>/app-id/dynatrace.aws.connector",
                    })
    ,
                },
            }],
        }))
    test_aws_connection_arn = dynatrace.AwsConnectionRoleArn("test-aws-connection-arn",
        aws_connection_id=test_aws_connection.id,
        role_arn=example_role.arn)
    
    package main
    
    import (
    	"encoding/json"
    	"fmt"
    
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/iam"
    	"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 {
    		test_aws_connection, err := dynatrace.NewAwsConnection(ctx, "test-aws-connection", &dynatrace.AwsConnectionArgs{
    			Name: pulumi.String("#name#"),
    			WebIdentity: &dynatrace.AwsConnectionWebIdentityArgs{
    				Consumers: pulumi.String("APP:dynatrace.aws.connector"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		dynatrace_oidc_provider, err := iam.NewOpenIdConnectProvider(ctx, "dynatrace-oidc-provider", &iam.OpenIdConnectProviderArgs{
    			Url: pulumi.String("https://token.dynatrace.com"),
    			ClientIdLists: pulumi.StringArray{
    				pulumi.String("<TENANT_URL>/app-id/dynatrace.aws.connector"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleRole, err := iam.NewRole(ctx, "example_role", &iam.RoleArgs{
    			Name: pulumi.String("#name#"),
    			AssumeRolePolicy: pulumi.All(dynatrace_oidc_provider.Arn, dynatrace_oidc_provider.Url, test_aws_connection.ID(), dynatrace_oidc_provider.Url).ApplyT(func(_args []interface{}) (string, error) {
    				arn := _args[0].(string)
    				dynatrace - oidc - providerUrl := _args[1].(string)
    				id := _args[2].(string)
    				dynatrace - oidc - providerUrl1 := _args[3].(string)
    				var _zero string
    				tmpJSON0, err := json.Marshal(map[string]interface{}{
    					"Version": "2012-10-17",
    					"Statement": []map[string]interface{}{
    						map[string]interface{}{
    							"Effect": "Allow",
    							"Principal": map[string]interface{}{
    								"Federated": arn,
    							},
    							"Action": "sts:AssumeRoleWithWebIdentity",
    							"Condition": map[string]interface{}{
    								"StringEquals": map[string]string{
    									fmt.Sprintf("%v:sub", dynatrace_oidc_providerUrl):  fmt.Sprintf("dt:connection-id/%v", id),
    									fmt.Sprintf("%v:aud", dynatrace_oidc_providerUrl1): "<TENANT_URL>/app-id/dynatrace.aws.connector",
    								},
    							},
    						},
    					},
    				})
    				if err != nil {
    					return _zero, err
    				}
    				json0 := string(tmpJSON0)
    				return json0, nil
    			}).(pulumi.StringOutput),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = dynatrace.NewAwsConnectionRoleArn(ctx, "test-aws-connection-arn", &dynatrace.AwsConnectionRoleArnArgs{
    			AwsConnectionId: test_aws_connection.ID(),
    			RoleArn:         exampleRole.Arn,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    using Dynatrace = Pulumiverse.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var test_aws_connection = new Dynatrace.AwsConnection("test-aws-connection", new()
        {
            Name = "#name#",
            WebIdentity = new Dynatrace.Inputs.AwsConnectionWebIdentityArgs
            {
                Consumers = "APP:dynatrace.aws.connector",
            },
        });
    
        var dynatrace_oidc_provider = new Aws.Iam.OpenIdConnectProvider("dynatrace-oidc-provider", new()
        {
            Url = "https://token.dynatrace.com",
            ClientIdLists = new[]
            {
                "<TENANT_URL>/app-id/dynatrace.aws.connector",
            },
        });
    
        var exampleRole = new Aws.Iam.Role("example_role", new()
        {
            Name = "#name#",
            AssumeRolePolicy = Output.JsonSerialize(Output.Create(new Dictionary<string, object?>
            {
                ["Version"] = "2012-10-17",
                ["Statement"] = new[]
                {
                    new Dictionary<string, object?>
                    {
                        ["Effect"] = "Allow",
                        ["Principal"] = new Dictionary<string, object?>
                        {
                            ["Federated"] = dynatrace_oidc_provider.Arn,
                        },
                        ["Action"] = "sts:AssumeRoleWithWebIdentity",
                        ["Condition"] = new Dictionary<string, object?>
                        {
                            ["StringEquals"] = Output.Tuple(dynatrace_oidc_provider.Url, test_aws_connection.Id, dynatrace_oidc_provider.Url).Apply(values =>
                            {
                                var dynatrace-oidc-providerUrl = values.Item1;
                                var id = values.Item2;
                                var dynatrace-oidc-providerUrl1 = values.Item3;
                                return 
                                {
                                    { $"{dynatrace_oidc_providerUrl}:sub", $"dt:connection-id/{id}" },
                                    { $"{dynatrace_oidc_providerUrl1}:aud", "<TENANT_URL>/app-id/dynatrace.aws.connector" },
                                };
                            }),
                        },
                    },
                },
            })),
        });
    
        var test_aws_connection_arn = new Dynatrace.AwsConnectionRoleArn("test-aws-connection-arn", new()
        {
            AwsConnectionId = test_aws_connection.Id,
            RoleArn = exampleRole.Arn,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dynatrace.AwsConnection;
    import com.pulumi.dynatrace.AwsConnectionArgs;
    import com.pulumi.dynatrace.inputs.AwsConnectionWebIdentityArgs;
    import com.pulumi.aws.iam.OpenIdConnectProvider;
    import com.pulumi.aws.iam.OpenIdConnectProviderArgs;
    import com.pulumi.aws.iam.Role;
    import com.pulumi.aws.iam.RoleArgs;
    import com.pulumi.dynatrace.AwsConnectionRoleArn;
    import com.pulumi.dynatrace.AwsConnectionRoleArnArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            var test_aws_connection = new AwsConnection("test-aws-connection", AwsConnectionArgs.builder()
                .name("#name#")
                .webIdentity(AwsConnectionWebIdentityArgs.builder()
                    .consumers("APP:dynatrace.aws.connector")
                    .build())
                .build());
    
            var dynatrace_oidc_provider = new OpenIdConnectProvider("dynatrace-oidc-provider", OpenIdConnectProviderArgs.builder()
                .url("https://token.dynatrace.com")
                .clientIdLists("<TENANT_URL>/app-id/dynatrace.aws.connector")
                .build());
    
            var exampleRole = new Role("exampleRole", RoleArgs.builder()
                .name("#name#")
                .assumeRolePolicy(Output.tuple(dynatrace_oidc_provider.arn(), dynatrace_oidc_provider.url(), test_aws_connection.id(), dynatrace_oidc_provider.url()).applyValue(values -> {
                    var arn = values.t1;
                    var dynatrace-oidc-providerUrl = values.t2;
                    var id = values.t3;
                    var dynatrace-oidc-providerUrl1 = values.t4;
                    return serializeJson(
                        jsonObject(
                            jsonProperty("Version", "2012-10-17"),
                            jsonProperty("Statement", jsonArray(jsonObject(
                                jsonProperty("Effect", "Allow"),
                                jsonProperty("Principal", jsonObject(
                                    jsonProperty("Federated", arn)
                                )),
                                jsonProperty("Action", "sts:AssumeRoleWithWebIdentity"),
                                jsonProperty("Condition", jsonObject(
                                    jsonProperty("StringEquals", jsonObject(
                                        jsonProperty(String.format("%s:sub", dynatrace_oidc_providerUrl), String.format("dt:connection-id/%s", id)),
                                        jsonProperty(String.format("%s:aud", dynatrace_oidc_providerUrl1), "<TENANT_URL>/app-id/dynatrace.aws.connector")
                                    ))
                                ))
                            )))
                        ));
                }))
                .build());
    
            var test_aws_connection_arn = new AwsConnectionRoleArn("test-aws-connection-arn", AwsConnectionRoleArnArgs.builder()
                .awsConnectionId(test_aws_connection.id())
                .roleArn(exampleRole.arn())
                .build());
    
        }
    }
    
    resources:
      test-aws-connection:
        type: dynatrace:AwsConnection
        properties:
          name: '#name#'
          webIdentity:
            consumers: APP:dynatrace.aws.connector
      dynatrace-oidc-provider:
        type: aws:iam:OpenIdConnectProvider
        properties:
          url: https://token.dynatrace.com
          clientIdLists:
            - <TENANT_URL>/app-id/dynatrace.aws.connector
      exampleRole:
        type: aws:iam:Role
        name: example_role
        properties:
          name: '#name#'
          assumeRolePolicy:
            fn::toJSON:
              Version: 2012-10-17
              Statement:
                - Effect: Allow
                  Principal:
                    Federated: ${["dynatrace-oidc-provider"].arn}
                  Action: sts:AssumeRoleWithWebIdentity
                  Condition:
                    StringEquals:
                      ${["dynatrace-oidc-provider"].url}:sub: dt:connection-id/${["test-aws-connection"].id}
                      ${["dynatrace-oidc-provider"].url}:aud: <TENANT_URL>/app-id/dynatrace.aws.connector
      test-aws-connection-arn:
        type: dynatrace:AwsConnectionRoleArn
        properties:
          awsConnectionId: ${["test-aws-connection"].id}
          roleArn: ${exampleRole.arn}
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
        dynatrace = {
          source = "pulumi/dynatrace"
        }
      }
    }
    
    resource "dynatrace_awsconnection" "test-aws-connection" {
      name = "#name#"
      web_identity = {
        consumers = "APP:dynatrace.aws.connector"
      }
    }
    resource "aws_iam_openidconnectprovider" "dynatrace-oidc-provider" {
      url             = "https://token.dynatrace.com"
      client_id_lists = ["<TENANT_URL>/app-id/dynatrace.aws.connector"]
    }
    resource "aws_iam_role" "example_role" {
      name = "#name#"
      assume_role_policy = jsonencode({
        "Version" = "2012-10-17"
        "Statement" = [{
          "Effect" = "Allow"
          "Principal" = {
            "Federated" = aws_iam_openidconnectprovider.dynatrace-oidc-provider.arn
          }
          "Action" = "sts:AssumeRoleWithWebIdentity"
          "Condition" = {
            "StringEquals" = {
              "${aws_iam_openidconnectprovider.dynatrace-oidc-provider.url}:sub" ="dt:connection-id/${dynatrace_awsconnection.test-aws-connection.id}"
              "${aws_iam_openidconnectprovider.dynatrace-oidc-provider.url}:aud" = "<TENANT_URL>/app-id/dynatrace.aws.connector"
            }
          }
        }]
      })
    }
    resource "dynatrace_awsconnectionrolearn" "test-aws-connection-arn" {
      aws_connection_id = dynatrace_awsconnection.test-aws-connection.id
      role_arn          = aws_iam_role.example_role.arn
    }
    

    Create AwsConnectionRoleArn Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AwsConnectionRoleArn(name: string, args: AwsConnectionRoleArnArgs, opts?: CustomResourceOptions);
    @overload
    def AwsConnectionRoleArn(resource_name: str,
                             args: AwsConnectionRoleArnArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def AwsConnectionRoleArn(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             aws_connection_id: Optional[str] = None,
                             role_arn: Optional[str] = None)
    func NewAwsConnectionRoleArn(ctx *Context, name string, args AwsConnectionRoleArnArgs, opts ...ResourceOption) (*AwsConnectionRoleArn, error)
    public AwsConnectionRoleArn(string name, AwsConnectionRoleArnArgs args, CustomResourceOptions? opts = null)
    public AwsConnectionRoleArn(String name, AwsConnectionRoleArnArgs args)
    public AwsConnectionRoleArn(String name, AwsConnectionRoleArnArgs args, CustomResourceOptions options)
    
    type: dynatrace:AwsConnectionRoleArn
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "dynatrace_awsconnectionrolearn" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AwsConnectionRoleArnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AwsConnectionRoleArnArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AwsConnectionRoleArnArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AwsConnectionRoleArnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AwsConnectionRoleArnArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var awsConnectionRoleArnResource = new Dynatrace.AwsConnectionRoleArn("awsConnectionRoleArnResource", new()
    {
        AwsConnectionId = "string",
        RoleArn = "string",
    });
    
    example, err := dynatrace.NewAwsConnectionRoleArn(ctx, "awsConnectionRoleArnResource", &dynatrace.AwsConnectionRoleArnArgs{
    	AwsConnectionId: pulumi.String("string"),
    	RoleArn:         pulumi.String("string"),
    })
    
    resource "dynatrace_awsconnectionrolearn" "awsConnectionRoleArnResource" {
      aws_connection_id = "string"
      role_arn          = "string"
    }
    
    var awsConnectionRoleArnResource = new AwsConnectionRoleArn("awsConnectionRoleArnResource", AwsConnectionRoleArnArgs.builder()
        .awsConnectionId("string")
        .roleArn("string")
        .build());
    
    aws_connection_role_arn_resource = dynatrace.AwsConnectionRoleArn("awsConnectionRoleArnResource",
        aws_connection_id="string",
        role_arn="string")
    
    const awsConnectionRoleArnResource = new dynatrace.AwsConnectionRoleArn("awsConnectionRoleArnResource", {
        awsConnectionId: "string",
        roleArn: "string",
    });
    
    type: dynatrace:AwsConnectionRoleArn
    properties:
        awsConnectionId: string
        roleArn: string
    

    AwsConnectionRoleArn Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AwsConnectionRoleArn resource accepts the following input properties:

    AwsConnectionId string
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    RoleArn string
    The ARN of the AWS role that should be assumed.
    AwsConnectionId string
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    RoleArn string
    The ARN of the AWS role that should be assumed.
    aws_connection_id string
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    role_arn string
    The ARN of the AWS role that should be assumed.
    awsConnectionId String
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    roleArn String
    The ARN of the AWS role that should be assumed.
    awsConnectionId string
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    roleArn string
    The ARN of the AWS role that should be assumed.
    aws_connection_id str
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    role_arn str
    The ARN of the AWS role that should be assumed.
    awsConnectionId String
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    roleArn String
    The ARN of the AWS role that should be assumed.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AwsConnectionRoleArn resource produces the following output properties:

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

    Look up Existing AwsConnectionRoleArn Resource

    Get an existing AwsConnectionRoleArn resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AwsConnectionRoleArnState, opts?: CustomResourceOptions): AwsConnectionRoleArn
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aws_connection_id: Optional[str] = None,
            role_arn: Optional[str] = None) -> AwsConnectionRoleArn
    func GetAwsConnectionRoleArn(ctx *Context, name string, id IDInput, state *AwsConnectionRoleArnState, opts ...ResourceOption) (*AwsConnectionRoleArn, error)
    public static AwsConnectionRoleArn Get(string name, Input<string> id, AwsConnectionRoleArnState? state, CustomResourceOptions? opts = null)
    public static AwsConnectionRoleArn get(String name, Output<String> id, AwsConnectionRoleArnState state, CustomResourceOptions options)
    resources:  _:    type: dynatrace:AwsConnectionRoleArn    get:      id: ${id}
    import {
      to = dynatrace_awsconnectionrolearn.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AwsConnectionId string
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    RoleArn string
    The ARN of the AWS role that should be assumed.
    AwsConnectionId string
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    RoleArn string
    The ARN of the AWS role that should be assumed.
    aws_connection_id string
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    role_arn string
    The ARN of the AWS role that should be assumed.
    awsConnectionId String
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    roleArn String
    The ARN of the AWS role that should be assumed.
    awsConnectionId string
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    roleArn string
    The ARN of the AWS role that should be assumed.
    aws_connection_id str
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    role_arn str
    The ARN of the AWS role that should be assumed.
    awsConnectionId String
    The ID of a dynatrace.AwsConnection resource instance for which to define the AWS Role ARN
    roleArn String
    The ARN of the AWS role that should be assumed.

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Viewing docs for Dynatrace v0.36.0
    published on Tuesday, Jun 9, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial