mongodbatlas.getCloudProviderAccessSetup

mongodbatlas.CloudProviderAccess allows you to get a single role for a provider access role setup, currently only AWS is supported.

NOTE: Groups and projects are synonymous terms. You may find groupId in the official documentation.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;

return await Deployment.RunAsync(() => 
{
    var testRole = new Mongodbatlas.CloudProviderAccessSetup("testRole", new()
    {
        ProjectId = "<PROJECT-ID>",
        ProviderName = "AWS",
    });

    var singleSetup = Mongodbatlas.GetCloudProviderAccessSetup.Invoke(new()
    {
        ProjectId = testRole.ProjectId,
        ProviderName = testRole.ProviderName,
        RoleId = testRole.RoleId,
    });

});
package main

import (
	"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testRole, err := mongodbatlas.NewCloudProviderAccessSetup(ctx, "testRole", &mongodbatlas.CloudProviderAccessSetupArgs{
			ProjectId:    pulumi.String("<PROJECT-ID>"),
			ProviderName: pulumi.String("AWS"),
		})
		if err != nil {
			return err
		}
		_ = mongodbatlas.LookupCloudProviderAccessSetupOutput(ctx, mongodbatlas.GetCloudProviderAccessSetupOutputArgs{
			ProjectId:    testRole.ProjectId,
			ProviderName: testRole.ProviderName,
			RoleId:       testRole.RoleId,
		}, nil)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.CloudProviderAccessSetup;
import com.pulumi.mongodbatlas.CloudProviderAccessSetupArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetCloudProviderAccessSetupArgs;
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) {
        var testRole = new CloudProviderAccessSetup("testRole", CloudProviderAccessSetupArgs.builder()        
            .projectId("<PROJECT-ID>")
            .providerName("AWS")
            .build());

        final var singleSetup = MongodbatlasFunctions.getCloudProviderAccessSetup(GetCloudProviderAccessSetupArgs.builder()
            .projectId(testRole.projectId())
            .providerName(testRole.providerName())
            .roleId(testRole.roleId())
            .build());

    }
}
import pulumi
import pulumi_mongodbatlas as mongodbatlas

test_role = mongodbatlas.CloudProviderAccessSetup("testRole",
    project_id="<PROJECT-ID>",
    provider_name="AWS")
single_setup = mongodbatlas.get_cloud_provider_access_setup_output(project_id=test_role.project_id,
    provider_name=test_role.provider_name,
    role_id=test_role.role_id)
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";

const testRole = new mongodbatlas.CloudProviderAccessSetup("testRole", {
    projectId: "<PROJECT-ID>",
    providerName: "AWS",
});
const singleSetup = mongodbatlas.getCloudProviderAccessSetupOutput({
    projectId: testRole.projectId,
    providerName: testRole.providerName,
    roleId: testRole.roleId,
});
resources:
  testRole:
    type: mongodbatlas:CloudProviderAccessSetup
    properties:
      projectId: <PROJECT-ID>
      providerName: AWS
variables:
  singleSetup:
    fn::invoke:
      Function: mongodbatlas:getCloudProviderAccessSetup
      Arguments:
        projectId: ${testRole.projectId}
        providerName: ${testRole.providerName}
        roleId: ${testRole.roleId}

Using getCloudProviderAccessSetup

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 getCloudProviderAccessSetup(args: GetCloudProviderAccessSetupArgs, opts?: InvokeOptions): Promise<GetCloudProviderAccessSetupResult>
function getCloudProviderAccessSetupOutput(args: GetCloudProviderAccessSetupOutputArgs, opts?: InvokeOptions): Output<GetCloudProviderAccessSetupResult>
def get_cloud_provider_access_setup(project_id: Optional[str] = None,
                                    provider_name: Optional[str] = None,
                                    role_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetCloudProviderAccessSetupResult
def get_cloud_provider_access_setup_output(project_id: Optional[pulumi.Input[str]] = None,
                                    provider_name: Optional[pulumi.Input[str]] = None,
                                    role_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetCloudProviderAccessSetupResult]
func LookupCloudProviderAccessSetup(ctx *Context, args *LookupCloudProviderAccessSetupArgs, opts ...InvokeOption) (*LookupCloudProviderAccessSetupResult, error)
func LookupCloudProviderAccessSetupOutput(ctx *Context, args *LookupCloudProviderAccessSetupOutputArgs, opts ...InvokeOption) LookupCloudProviderAccessSetupResultOutput

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

public static class GetCloudProviderAccessSetup 
{
    public static Task<GetCloudProviderAccessSetupResult> InvokeAsync(GetCloudProviderAccessSetupArgs args, InvokeOptions? opts = null)
    public static Output<GetCloudProviderAccessSetupResult> Invoke(GetCloudProviderAccessSetupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudProviderAccessSetupResult> getCloudProviderAccessSetup(GetCloudProviderAccessSetupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: mongodbatlas:index/getCloudProviderAccessSetup:getCloudProviderAccessSetup
  arguments:
    # arguments dictionary

The following arguments are supported:

ProjectId string

The unique ID for the project to get all Cloud Provider Access

ProviderName string

cloud provider name, currently only AWS is supported

RoleId string

unique role id among all the aws roles provided by mongodb atlas

ProjectId string

The unique ID for the project to get all Cloud Provider Access

ProviderName string

cloud provider name, currently only AWS is supported

RoleId string

unique role id among all the aws roles provided by mongodb atlas

projectId String

The unique ID for the project to get all Cloud Provider Access

providerName String

cloud provider name, currently only AWS is supported

roleId String

unique role id among all the aws roles provided by mongodb atlas

projectId string

The unique ID for the project to get all Cloud Provider Access

providerName string

cloud provider name, currently only AWS is supported

roleId string

unique role id among all the aws roles provided by mongodb atlas

project_id str

The unique ID for the project to get all Cloud Provider Access

provider_name str

cloud provider name, currently only AWS is supported

role_id str

unique role id among all the aws roles provided by mongodb atlas

projectId String

The unique ID for the project to get all Cloud Provider Access

providerName String

cloud provider name, currently only AWS is supported

roleId String

unique role id among all the aws roles provided by mongodb atlas

getCloudProviderAccessSetup Result

The following output properties are available:

Aws Dictionary<string, string>

aws related role information

AwsConfigs List<GetCloudProviderAccessSetupAwsConfig>
CreatedDate string

Date on which this role was created.

Id string

The provider-assigned unique ID for this managed resource.

ProjectId string
ProviderName string
RoleId string
Aws map[string]string

aws related role information

AwsConfigs []GetCloudProviderAccessSetupAwsConfig
CreatedDate string

Date on which this role was created.

Id string

The provider-assigned unique ID for this managed resource.

ProjectId string
ProviderName string
RoleId string
aws Map<String,String>

aws related role information

awsConfigs List<GetCloudProviderAccessSetupAwsConfig>
createdDate String

Date on which this role was created.

id String

The provider-assigned unique ID for this managed resource.

projectId String
providerName String
roleId String
aws {[key: string]: string}

aws related role information

awsConfigs GetCloudProviderAccessSetupAwsConfig[]
createdDate string

Date on which this role was created.

id string

The provider-assigned unique ID for this managed resource.

projectId string
providerName string
roleId string
aws Mapping[str, str]

aws related role information

aws_configs Sequence[GetCloudProviderAccessSetupAwsConfig]
created_date str

Date on which this role was created.

id str

The provider-assigned unique ID for this managed resource.

project_id str
provider_name str
role_id str
aws Map<String>

aws related role information

awsConfigs List<Property Map>
createdDate String

Date on which this role was created.

id String

The provider-assigned unique ID for this managed resource.

projectId String
providerName String
roleId String

Supporting Types

GetCloudProviderAccessSetupAwsConfig

AtlasAssumedRoleExternalId string

Unique external ID Atlas uses when assuming the IAM role in your AWS account.

AtlasAwsAccountArn string

ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.

AtlasAssumedRoleExternalId string

Unique external ID Atlas uses when assuming the IAM role in your AWS account.

AtlasAwsAccountArn string

ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.

atlasAssumedRoleExternalId String

Unique external ID Atlas uses when assuming the IAM role in your AWS account.

atlasAwsAccountArn String

ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.

atlasAssumedRoleExternalId string

Unique external ID Atlas uses when assuming the IAM role in your AWS account.

atlasAwsAccountArn string

ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.

atlas_assumed_role_external_id str

Unique external ID Atlas uses when assuming the IAM role in your AWS account.

atlas_aws_account_arn str

ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.

atlasAssumedRoleExternalId String

Unique external ID Atlas uses when assuming the IAM role in your AWS account.

atlasAwsAccountArn String

ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.

Package Details

Repository
MongoDB Atlas pulumi/pulumi-mongodbatlas
License
Apache-2.0
Notes

This Pulumi package is based on the mongodbatlas Terraform Provider.