Example Usage
With AWS
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testRole = new mongodbatlas.CloudProviderAccessSetup("test_role", {
projectId: "64259ee860c43338194b0f8e",
providerName: "AWS",
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_role = mongodbatlas.CloudProviderAccessSetup("test_role",
project_id="64259ee860c43338194b0f8e",
provider_name="AWS")
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongodbatlas.NewCloudProviderAccessSetup(ctx, "test_role", &mongodbatlas.CloudProviderAccessSetupArgs{
ProjectId: pulumi.String("64259ee860c43338194b0f8e"),
ProviderName: pulumi.String("AWS"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var testRole = new Mongodbatlas.CloudProviderAccessSetup("test_role", new()
{
ProjectId = "64259ee860c43338194b0f8e",
ProviderName = "AWS",
});
});
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 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("64259ee860c43338194b0f8e")
.providerName("AWS")
.build());
}
}
resources:
testRole:
type: mongodbatlas:CloudProviderAccessSetup
name: test_role
properties:
projectId: 64259ee860c43338194b0f8e
providerName: AWS
With Azure
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testRole = new mongodbatlas.CloudProviderAccessSetup("test_role", {
projectId: "64259ee860c43338194b0f8e",
providerName: "AZURE",
azureConfigs: [{
atlasAzureAppId: "9f2deb0d-be22-4524-a403-df531868bac0",
servicePrincipalId: "22f1d2a6-d0e9-482a-83a4-b8dd7dddc2c1",
tenantId: "91402384-d71e-22f5-22dd-759e272cdc1c",
}],
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_role = mongodbatlas.CloudProviderAccessSetup("test_role",
project_id="64259ee860c43338194b0f8e",
provider_name="AZURE",
azure_configs=[{
"atlas_azure_app_id": "9f2deb0d-be22-4524-a403-df531868bac0",
"service_principal_id": "22f1d2a6-d0e9-482a-83a4-b8dd7dddc2c1",
"tenant_id": "91402384-d71e-22f5-22dd-759e272cdc1c",
}])
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongodbatlas.NewCloudProviderAccessSetup(ctx, "test_role", &mongodbatlas.CloudProviderAccessSetupArgs{
ProjectId: pulumi.String("64259ee860c43338194b0f8e"),
ProviderName: pulumi.String("AZURE"),
AzureConfigs: mongodbatlas.CloudProviderAccessSetupAzureConfigArray{
&mongodbatlas.CloudProviderAccessSetupAzureConfigArgs{
AtlasAzureAppId: pulumi.String("9f2deb0d-be22-4524-a403-df531868bac0"),
ServicePrincipalId: pulumi.String("22f1d2a6-d0e9-482a-83a4-b8dd7dddc2c1"),
TenantId: pulumi.String("91402384-d71e-22f5-22dd-759e272cdc1c"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var testRole = new Mongodbatlas.CloudProviderAccessSetup("test_role", new()
{
ProjectId = "64259ee860c43338194b0f8e",
ProviderName = "AZURE",
AzureConfigs = new[]
{
new Mongodbatlas.Inputs.CloudProviderAccessSetupAzureConfigArgs
{
AtlasAzureAppId = "9f2deb0d-be22-4524-a403-df531868bac0",
ServicePrincipalId = "22f1d2a6-d0e9-482a-83a4-b8dd7dddc2c1",
TenantId = "91402384-d71e-22f5-22dd-759e272cdc1c",
},
},
});
});
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.inputs.CloudProviderAccessSetupAzureConfigArgs;
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("64259ee860c43338194b0f8e")
.providerName("AZURE")
.azureConfigs(CloudProviderAccessSetupAzureConfigArgs.builder()
.atlasAzureAppId("9f2deb0d-be22-4524-a403-df531868bac0")
.servicePrincipalId("22f1d2a6-d0e9-482a-83a4-b8dd7dddc2c1")
.tenantId("91402384-d71e-22f5-22dd-759e272cdc1c")
.build())
.build());
}
}
resources:
testRole:
type: mongodbatlas:CloudProviderAccessSetup
name: test_role
properties:
projectId: 64259ee860c43338194b0f8e
providerName: AZURE
azureConfigs:
- atlasAzureAppId: 9f2deb0d-be22-4524-a403-df531868bac0
servicePrincipalId: 22f1d2a6-d0e9-482a-83a4-b8dd7dddc2c1
tenantId: 91402384-d71e-22f5-22dd-759e272cdc1c
With GCP
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testRole = new mongodbatlas.CloudProviderAccessSetup("test_role", {
projectId: "64259ee860c43338194b0f8e",
providerName: "GCP",
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_role = mongodbatlas.CloudProviderAccessSetup("test_role",
project_id="64259ee860c43338194b0f8e",
provider_name="GCP")
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongodbatlas.NewCloudProviderAccessSetup(ctx, "test_role", &mongodbatlas.CloudProviderAccessSetupArgs{
ProjectId: pulumi.String("64259ee860c43338194b0f8e"),
ProviderName: pulumi.String("GCP"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var testRole = new Mongodbatlas.CloudProviderAccessSetup("test_role", new()
{
ProjectId = "64259ee860c43338194b0f8e",
ProviderName = "GCP",
});
});
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 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("64259ee860c43338194b0f8e")
.providerName("GCP")
.build());
}
}
resources:
testRole:
type: mongodbatlas:CloudProviderAccessSetup
name: test_role
properties:
projectId: 64259ee860c43338194b0f8e
providerName: GCP
Further Examples
- AWS Cloud Provider Access
- Azure Cloud Provider Access
- GCP Cloud Provider Access
Create CloudProviderAccessSetup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudProviderAccessSetup(name: string, args: CloudProviderAccessSetupArgs, opts?: CustomResourceOptions);@overload
def CloudProviderAccessSetup(resource_name: str,
args: CloudProviderAccessSetupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudProviderAccessSetup(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
provider_name: Optional[str] = None,
azure_configs: Optional[Sequence[CloudProviderAccessSetupAzureConfigArgs]] = None,
delete_on_create_timeout: Optional[bool] = None)func NewCloudProviderAccessSetup(ctx *Context, name string, args CloudProviderAccessSetupArgs, opts ...ResourceOption) (*CloudProviderAccessSetup, error)public CloudProviderAccessSetup(string name, CloudProviderAccessSetupArgs args, CustomResourceOptions? opts = null)
public CloudProviderAccessSetup(String name, CloudProviderAccessSetupArgs args)
public CloudProviderAccessSetup(String name, CloudProviderAccessSetupArgs args, CustomResourceOptions options)
type: mongodbatlas:CloudProviderAccessSetup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CloudProviderAccessSetupArgs
- 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 CloudProviderAccessSetupArgs
- 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 CloudProviderAccessSetupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudProviderAccessSetupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudProviderAccessSetupArgs
- 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 cloudProviderAccessSetupResource = new Mongodbatlas.CloudProviderAccessSetup("cloudProviderAccessSetupResource", new()
{
ProjectId = "string",
ProviderName = "string",
AzureConfigs = new[]
{
new Mongodbatlas.Inputs.CloudProviderAccessSetupAzureConfigArgs
{
AtlasAzureAppId = "string",
ServicePrincipalId = "string",
TenantId = "string",
},
},
DeleteOnCreateTimeout = false,
});
example, err := mongodbatlas.NewCloudProviderAccessSetup(ctx, "cloudProviderAccessSetupResource", &mongodbatlas.CloudProviderAccessSetupArgs{
ProjectId: pulumi.String("string"),
ProviderName: pulumi.String("string"),
AzureConfigs: mongodbatlas.CloudProviderAccessSetupAzureConfigArray{
&mongodbatlas.CloudProviderAccessSetupAzureConfigArgs{
AtlasAzureAppId: pulumi.String("string"),
ServicePrincipalId: pulumi.String("string"),
TenantId: pulumi.String("string"),
},
},
DeleteOnCreateTimeout: pulumi.Bool(false),
})
var cloudProviderAccessSetupResource = new CloudProviderAccessSetup("cloudProviderAccessSetupResource", CloudProviderAccessSetupArgs.builder()
.projectId("string")
.providerName("string")
.azureConfigs(CloudProviderAccessSetupAzureConfigArgs.builder()
.atlasAzureAppId("string")
.servicePrincipalId("string")
.tenantId("string")
.build())
.deleteOnCreateTimeout(false)
.build());
cloud_provider_access_setup_resource = mongodbatlas.CloudProviderAccessSetup("cloudProviderAccessSetupResource",
project_id="string",
provider_name="string",
azure_configs=[{
"atlas_azure_app_id": "string",
"service_principal_id": "string",
"tenant_id": "string",
}],
delete_on_create_timeout=False)
const cloudProviderAccessSetupResource = new mongodbatlas.CloudProviderAccessSetup("cloudProviderAccessSetupResource", {
projectId: "string",
providerName: "string",
azureConfigs: [{
atlasAzureAppId: "string",
servicePrincipalId: "string",
tenantId: "string",
}],
deleteOnCreateTimeout: false,
});
type: mongodbatlas:CloudProviderAccessSetup
properties:
azureConfigs:
- atlasAzureAppId: string
servicePrincipalId: string
tenantId: string
deleteOnCreateTimeout: false
projectId: string
providerName: string
CloudProviderAccessSetup 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 CloudProviderAccessSetup resource accepts the following input properties:
- Project
Id string - The unique ID for the project
- Provider
Name string - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - Azure
Configs List<CloudProvider Access Setup Azure Config> - azure related configurations
- Delete
On boolCreate Timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue.
- Project
Id string - The unique ID for the project
- Provider
Name string - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - Azure
Configs []CloudProvider Access Setup Azure Config Args - azure related configurations
- Delete
On boolCreate Timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue.
- project
Id String - The unique ID for the project
- provider
Name String - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - azure
Configs List<CloudProvider Access Setup Azure Config> - azure related configurations
- delete
On BooleanCreate Timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue.
- project
Id string - The unique ID for the project
- provider
Name string - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - azure
Configs CloudProvider Access Setup Azure Config[] - azure related configurations
- delete
On booleanCreate Timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue.
- project_
id str - The unique ID for the project
- provider_
name str - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - azure_
configs Sequence[CloudProvider Access Setup Azure Config Args] - azure related configurations
- delete_
on_ boolcreate_ timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue.
- project
Id String - The unique ID for the project
- provider
Name String - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - azure
Configs List<Property Map> - azure related configurations
- delete
On BooleanCreate Timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudProviderAccessSetup resource produces the following output properties:
- Aws
Configs List<CloudProvider Access Setup Aws Config> - aws related arn roles
- Created
Date string - Date on which this role was created.
- Gcp
Configs List<CloudProvider Access Setup Gcp Config> - gcp related configuration
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Role
Id string - Unique ID of this role.
- Aws
Configs []CloudProvider Access Setup Aws Config - aws related arn roles
- Created
Date string - Date on which this role was created.
- Gcp
Configs []CloudProvider Access Setup Gcp Config - gcp related configuration
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Role
Id string - Unique ID of this role.
- aws
Configs List<CloudProvider Access Setup Aws Config> - aws related arn roles
- created
Date String - Date on which this role was created.
- gcp
Configs List<CloudProvider Access Setup Gcp Config> - gcp related configuration
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringDate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- role
Id String - Unique ID of this role.
- aws
Configs CloudProvider Access Setup Aws Config[] - aws related arn roles
- created
Date string - Date on which this role was created.
- gcp
Configs CloudProvider Access Setup Gcp Config[] - gcp related configuration
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringDate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- role
Id string - Unique ID of this role.
- aws_
configs Sequence[CloudProvider Access Setup Aws Config] - aws related arn roles
- created_
date str - Date on which this role was created.
- gcp_
configs Sequence[CloudProvider Access Setup Gcp Config] - gcp related configuration
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strdate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- role_
id str - Unique ID of this role.
- aws
Configs List<Property Map> - aws related arn roles
- created
Date String - Date on which this role was created.
- gcp
Configs List<Property Map> - gcp related configuration
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringDate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- role
Id String - Unique ID of this role.
Look up Existing CloudProviderAccessSetup Resource
Get an existing CloudProviderAccessSetup 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?: CloudProviderAccessSetupState, opts?: CustomResourceOptions): CloudProviderAccessSetup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aws_configs: Optional[Sequence[CloudProviderAccessSetupAwsConfigArgs]] = None,
azure_configs: Optional[Sequence[CloudProviderAccessSetupAzureConfigArgs]] = None,
created_date: Optional[str] = None,
delete_on_create_timeout: Optional[bool] = None,
gcp_configs: Optional[Sequence[CloudProviderAccessSetupGcpConfigArgs]] = None,
last_updated_date: Optional[str] = None,
project_id: Optional[str] = None,
provider_name: Optional[str] = None,
role_id: Optional[str] = None) -> CloudProviderAccessSetupfunc GetCloudProviderAccessSetup(ctx *Context, name string, id IDInput, state *CloudProviderAccessSetupState, opts ...ResourceOption) (*CloudProviderAccessSetup, error)public static CloudProviderAccessSetup Get(string name, Input<string> id, CloudProviderAccessSetupState? state, CustomResourceOptions? opts = null)public static CloudProviderAccessSetup get(String name, Output<String> id, CloudProviderAccessSetupState state, CustomResourceOptions options)resources: _: type: mongodbatlas:CloudProviderAccessSetup get: 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.
- Aws
Configs List<CloudProvider Access Setup Aws Config> - aws related arn roles
- Azure
Configs List<CloudProvider Access Setup Azure Config> - azure related configurations
- Created
Date string - Date on which this role was created.
- Delete
On boolCreate Timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue. - Gcp
Configs List<CloudProvider Access Setup Gcp Config> - gcp related configuration
- Last
Updated stringDate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Project
Id string - The unique ID for the project
- Provider
Name string - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - Role
Id string - Unique ID of this role.
- Aws
Configs []CloudProvider Access Setup Aws Config Args - aws related arn roles
- Azure
Configs []CloudProvider Access Setup Azure Config Args - azure related configurations
- Created
Date string - Date on which this role was created.
- Delete
On boolCreate Timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue. - Gcp
Configs []CloudProvider Access Setup Gcp Config Args - gcp related configuration
- Last
Updated stringDate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- Project
Id string - The unique ID for the project
- Provider
Name string - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - Role
Id string - Unique ID of this role.
- aws
Configs List<CloudProvider Access Setup Aws Config> - aws related arn roles
- azure
Configs List<CloudProvider Access Setup Azure Config> - azure related configurations
- created
Date String - Date on which this role was created.
- delete
On BooleanCreate Timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue. - gcp
Configs List<CloudProvider Access Setup Gcp Config> - gcp related configuration
- last
Updated StringDate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- project
Id String - The unique ID for the project
- provider
Name String - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - role
Id String - Unique ID of this role.
- aws
Configs CloudProvider Access Setup Aws Config[] - aws related arn roles
- azure
Configs CloudProvider Access Setup Azure Config[] - azure related configurations
- created
Date string - Date on which this role was created.
- delete
On booleanCreate Timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue. - gcp
Configs CloudProvider Access Setup Gcp Config[] - gcp related configuration
- last
Updated stringDate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- project
Id string - The unique ID for the project
- provider
Name string - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - role
Id string - Unique ID of this role.
- aws_
configs Sequence[CloudProvider Access Setup Aws Config Args] - aws related arn roles
- azure_
configs Sequence[CloudProvider Access Setup Azure Config Args] - azure related configurations
- created_
date str - Date on which this role was created.
- delete_
on_ boolcreate_ timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue. - gcp_
configs Sequence[CloudProvider Access Setup Gcp Config Args] - gcp related configuration
- last_
updated_ strdate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- project_
id str - The unique ID for the project
- provider_
name str - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - role_
id str - Unique ID of this role.
- aws
Configs List<Property Map> - aws related arn roles
- azure
Configs List<Property Map> - azure related configurations
- created
Date String - Date on which this role was created.
- delete
On BooleanCreate Timeout - Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to
trueand timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set tofalse, the timeout will not trigger resource deletion. If you suspect a transient error when the value istrue, wait before retrying to allow resource deletion to finish. Default istrue. - gcp
Configs List<Property Map> - gcp related configuration
- last
Updated StringDate - Date and time when this Azure Service Principal was last updated. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
- project
Id String - The unique ID for the project
- provider
Name String - The cloud provider for which to create a new role. Currently, AWS, AZURE and GCP are supported. WARNING Changing the
provider_namewill result in destruction of the existing resource and the creation of a new resource. - role
Id String - Unique ID of this role.
Supporting Types
CloudProviderAccessSetupAwsConfig, CloudProviderAccessSetupAwsConfigArgs
- 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.
CloudProviderAccessSetupAzureConfig, CloudProviderAccessSetupAzureConfigArgs
- Atlas
Azure stringApp Id - Azure Active Directory Application ID of Atlas. This property is required when
provider_name </span>= "AZURE". - Service
Principal stringId - UUID string that identifies the Azure Service Principal. This property is required when
provider_name </span>= "AZURE". - Tenant
Id string - UUID String that identifies the Azure Active Directory Tenant ID. This property is required when
provider_name </span>= "AZURE".
- Atlas
Azure stringApp Id - Azure Active Directory Application ID of Atlas. This property is required when
provider_name </span>= "AZURE". - Service
Principal stringId - UUID string that identifies the Azure Service Principal. This property is required when
provider_name </span>= "AZURE". - Tenant
Id string - UUID String that identifies the Azure Active Directory Tenant ID. This property is required when
provider_name </span>= "AZURE".
- atlas
Azure StringApp Id - Azure Active Directory Application ID of Atlas. This property is required when
provider_name </span>= "AZURE". - service
Principal StringId - UUID string that identifies the Azure Service Principal. This property is required when
provider_name </span>= "AZURE". - tenant
Id String - UUID String that identifies the Azure Active Directory Tenant ID. This property is required when
provider_name </span>= "AZURE".
- atlas
Azure stringApp Id - Azure Active Directory Application ID of Atlas. This property is required when
provider_name </span>= "AZURE". - service
Principal stringId - UUID string that identifies the Azure Service Principal. This property is required when
provider_name </span>= "AZURE". - tenant
Id string - UUID String that identifies the Azure Active Directory Tenant ID. This property is required when
provider_name </span>= "AZURE".
- atlas_
azure_ strapp_ id - Azure Active Directory Application ID of Atlas. This property is required when
provider_name </span>= "AZURE". - service_
principal_ strid - UUID string that identifies the Azure Service Principal. This property is required when
provider_name </span>= "AZURE". - tenant_
id str - UUID String that identifies the Azure Active Directory Tenant ID. This property is required when
provider_name </span>= "AZURE".
- atlas
Azure StringApp Id - Azure Active Directory Application ID of Atlas. This property is required when
provider_name </span>= "AZURE". - service
Principal StringId - UUID string that identifies the Azure Service Principal. This property is required when
provider_name </span>= "AZURE". - tenant
Id String - UUID String that identifies the Azure Active Directory Tenant ID. This property is required when
provider_name </span>= "AZURE".
CloudProviderAccessSetupGcpConfig, CloudProviderAccessSetupGcpConfigArgs
- Service
Account stringFor Atlas - The GCP service account email that Atlas uses.
- Status string
- The status of the GCP cloud provider access setup. See MongoDB Atlas API.
- Service
Account stringFor Atlas - The GCP service account email that Atlas uses.
- Status string
- The status of the GCP cloud provider access setup. See MongoDB Atlas API.
- service
Account StringFor Atlas - The GCP service account email that Atlas uses.
- status String
- The status of the GCP cloud provider access setup. See MongoDB Atlas API.
- service
Account stringFor Atlas - The GCP service account email that Atlas uses.
- status string
- The status of the GCP cloud provider access setup. See MongoDB Atlas API.
- service_
account_ strfor_ atlas - The GCP service account email that Atlas uses.
- status str
- The status of the GCP cloud provider access setup. See MongoDB Atlas API.
- service
Account StringFor Atlas - The GCP service account email that Atlas uses.
- status String
- The status of the GCP cloud provider access setup. See MongoDB Atlas API.
Import
It can be imported using project ID, provider name and role_id in the format project_id-provider_name-role_id, e.g.
$ pulumi import mongodbatlas:index/cloudProviderAccessSetup:CloudProviderAccessSetup my_role 1112222b3bf99403840e8934-AWS-5fc17d476f7a33224f5b224e
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
