getCloudProviderAccess
mongodbatlas.CloudProviderAccess
allows you to get the list of cloud provider access roles, currently only AWS is supported.
NOTE: Groups and projects are synonymous terms. You may find
groupId
in the official documentation.
Example Usage
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var testRole = new Mongodbatlas.CloudProviderAccess("testRole", new Mongodbatlas.CloudProviderAccessArgs
{
ProjectId = "<PROJECT-ID>",
ProviderName = "AWS",
});
var all = testRole.ProjectId.Apply(projectId => Mongodbatlas.GetCloudProviderAccess.InvokeAsync(new Mongodbatlas.GetCloudProviderAccessArgs
{
ProjectId = projectId,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testRole, err := mongodbatlas.NewCloudProviderAccess(ctx, "testRole", &mongodbatlas.CloudProviderAccessArgs{
ProjectId: pulumi.String("<PROJECT-ID>"),
ProviderName: pulumi.String("AWS"),
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_role = mongodbatlas.CloudProviderAccess("testRole",
project_id="<PROJECT-ID>",
provider_name="AWS")
all = test_role.project_id.apply(lambda project_id: mongodbatlas.get_cloud_provider_access(project_id=project_id))
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testRole = new mongodbatlas.CloudProviderAccess("testRole", {
projectId: "<PROJECT-ID>",
providerName: "AWS",
});
const all = testRole.projectId.apply(projectId => mongodbatlas.getCloudProviderAccess({
projectId: projectId,
}));
Using getCloudProviderAccess
function getCloudProviderAccess(args: GetCloudProviderAccessArgs, opts?: InvokeOptions): Promise<GetCloudProviderAccessResult>
def get_cloud_provider_access(project_id: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetCloudProviderAccessResult
func LookupCloudProviderAccess(ctx *Context, args *LookupCloudProviderAccessArgs, opts ...InvokeOption) (*LookupCloudProviderAccessResult, error)
Note: This function is named
LookupCloudProviderAccess
in the Go SDK.
public static class GetCloudProviderAccess {
public static Task<GetCloudProviderAccessResult> InvokeAsync(GetCloudProviderAccessArgs args, InvokeOptions? opts = null)
}
The following arguments are supported:
- Project
Id string The unique ID for the project to get all Cloud Provider Access
- Project
Id string The unique ID for the project to get all Cloud Provider Access
- project
Id string The unique ID for the project to get all Cloud Provider Access
- project_
id str The unique ID for the project to get all Cloud Provider Access
getCloudProviderAccess Result
The following output properties are available:
- Aws
Iam List<GetRoles Cloud Provider Access Aws Iam Role> A list where each represents a Cloud Provider Access Role.
- Id string
The provider-assigned unique ID for this managed resource.
- Project
Id string
- Aws
Iam []GetRoles Cloud Provider Access Aws Iam Role A list where each represents a Cloud Provider Access Role.
- Id string
The provider-assigned unique ID for this managed resource.
- Project
Id string
- aws
Iam GetRoles Cloud Provider Access Aws Iam Role[] A list where each represents a Cloud Provider Access Role.
- id string
The provider-assigned unique ID for this managed resource.
- project
Id string
- aws_
iam_ Sequence[Getroles Cloud Provider Access Aws Iam Role] A list where each represents a Cloud Provider Access Role.
- id str
The provider-assigned unique ID for this managed resource.
- project_
id str
Supporting Types
GetCloudProviderAccessAwsIamRole
- 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.
- string
Date on which this role was authorized.
- Created
Date string Date on which this role was created.
- Feature
Usages List<GetCloud Provider Access Aws Iam Role Feature Usage Args> Atlas features this AWS IAM role is linked to.
- Iam
Assumed stringRole Arn ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account.
- Provider
Name string Name of the cloud provider. Currently limited to AWS.
- Role
Id string Unique ID of this role.
- 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.
- string
Date on which this role was authorized.
- Created
Date string Date on which this role was created.
- Feature
Usages []GetCloud Provider Access Aws Iam Role Feature Usage Atlas features this AWS IAM role is linked to.
- Iam
Assumed stringRole Arn ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account.
- Provider
Name string Name of the cloud provider. Currently limited to AWS.
- Role
Id string Unique ID of this role.
- 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.
- string
Date on which this role was authorized.
- created
Date string Date on which this role was created.
- feature
Usages GetCloud Provider Access Aws Iam Role Feature Usage[] Atlas features this AWS IAM role is linked to.
- iam
Assumed stringRole Arn ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account.
- provider
Name string Name of the cloud provider. Currently limited to AWS.
- role
Id string Unique ID of this role.
- 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.
- str
Date on which this role was authorized.
- created_
date str Date on which this role was created.
- feature_
usages Sequence[GetCloud Provider Access Aws Iam Role Feature Usage Args] Atlas features this AWS IAM role is linked to.
- iam_
assumed_ strrole_ arn ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account.
- provider_
name str Name of the cloud provider. Currently limited to AWS.
- role_
id str Unique ID of this role.
GetCloudProviderAccessAwsIamRoleFeatureUsage
- Feature
Id string - Feature
Type string
- Feature
Id string - Feature
Type string
- feature
Id string - feature
Type string
- feature_
id str - feature_
type str
Package Details
- Repository
- https://github.com/pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.