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:
- Project
Id string The unique ID for the project to get all Cloud Provider Access
- Provider
Name string cloud provider name, currently only AWS is supported
- Role
Id string unique role id among all the aws roles provided by mongodb atlas
- Project
Id string The unique ID for the project to get all Cloud Provider Access
- Provider
Name string cloud provider name, currently only AWS is supported
- Role
Id string unique role id among all the aws roles provided by mongodb atlas
- project
Id String The unique ID for the project to get all Cloud Provider Access
- provider
Name String cloud provider name, currently only AWS is supported
- role
Id String unique role id among all the aws roles provided by mongodb atlas
- project
Id string The unique ID for the project to get all Cloud Provider Access
- provider
Name string cloud provider name, currently only AWS is supported
- role
Id 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
- project
Id String The unique ID for the project to get all Cloud Provider Access
- provider
Name String cloud provider name, currently only AWS is supported
- role
Id 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
- Aws
Configs List<GetCloud Provider Access Setup Aws Config> - Created
Date string Date on which this role was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Project
Id string - Provider
Name string - Role
Id string
- Aws map[string]string
aws related role information
- Aws
Configs []GetCloud Provider Access Setup Aws Config - Created
Date string Date on which this role was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Project
Id string - Provider
Name string - Role
Id string
- aws Map<String,String>
aws related role information
- aws
Configs List<GetCloud Provider Access Setup Aws Config> - created
Date String Date on which this role was created.
- id String
The provider-assigned unique ID for this managed resource.
- project
Id String - provider
Name String - role
Id String
- aws {[key: string]: string}
aws related role information
- aws
Configs GetCloud Provider Access Setup Aws Config[] - created
Date string Date on which this role was created.
- id string
The provider-assigned unique ID for this managed resource.
- project
Id string - provider
Name string - role
Id string
- aws Mapping[str, str]
aws related role information
- aws_
configs Sequence[GetCloud Provider Access Setup Aws Config] - 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
- aws
Configs List<Property Map> - created
Date String Date on which this role was created.
- id String
The provider-assigned unique ID for this managed resource.
- project
Id String - provider
Name String - role
Id String
Supporting Types
GetCloudProviderAccessSetupAwsConfig
- Atlas
Assumed stringRole External Id Unique external ID Atlas uses when assuming the IAM role in your AWS account.
- Atlas
Aws stringAccount Arn ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.
- Atlas
Assumed stringRole External Id Unique external ID Atlas uses when assuming the IAM role in your AWS account.
- Atlas
Aws stringAccount Arn ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.
- atlas
Assumed StringRole External Id Unique external ID Atlas uses when assuming the IAM role in your AWS account.
- atlas
Aws StringAccount Arn ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.
- atlas
Assumed stringRole External Id Unique external ID Atlas uses when assuming the IAM role in your AWS account.
- atlas
Aws stringAccount Arn ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.
- atlas_
assumed_ strrole_ external_ id Unique external ID Atlas uses when assuming the IAM role in your AWS account.
- atlas_
aws_ straccount_ arn ARN associated with the Atlas AWS account used to assume IAM roles in your AWS account.
- atlas
Assumed StringRole External Id Unique external ID Atlas uses when assuming the IAM role in your AWS account.
- atlas
Aws StringAccount Arn 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.