mongodbatlas.CloudProviderAccess
Import
The Cloud Provider Access resource can be imported using project ID and the provider name and mongodbatlas role id, in the format project_id
-provider_name
-role_id
, e.g.
$ pulumi import mongodbatlas:index/cloudProviderAccess:CloudProviderAccess my_role 1112222b3bf99403840e8934-AWS-5fc17d476f7a33224f5b224e
Create CloudProviderAccess Resource
new CloudProviderAccess(name: string, args: CloudProviderAccessArgs, opts?: CustomResourceOptions);
@overload
def CloudProviderAccess(resource_name: str,
opts: Optional[ResourceOptions] = None,
iam_assumed_role_arn: Optional[str] = None,
project_id: Optional[str] = None,
provider_name: Optional[str] = None)
@overload
def CloudProviderAccess(resource_name: str,
args: CloudProviderAccessArgs,
opts: Optional[ResourceOptions] = None)
func NewCloudProviderAccess(ctx *Context, name string, args CloudProviderAccessArgs, opts ...ResourceOption) (*CloudProviderAccess, error)
public CloudProviderAccess(string name, CloudProviderAccessArgs args, CustomResourceOptions? opts = null)
public CloudProviderAccess(String name, CloudProviderAccessArgs args)
public CloudProviderAccess(String name, CloudProviderAccessArgs args, CustomResourceOptions options)
type: mongodbatlas:CloudProviderAccess
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudProviderAccessArgs
- 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 CloudProviderAccessArgs
- 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 CloudProviderAccessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudProviderAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudProviderAccessArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CloudProviderAccess Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CloudProviderAccess 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 only AWS is supported.
- Iam
Assumed stringRole Arn ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
- Project
Id string The unique ID for the project
- Provider
Name string The cloud provider for which to create a new role. Currently only AWS is supported.
- Iam
Assumed stringRole Arn ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
- project
Id String The unique ID for the project
- provider
Name String The cloud provider for which to create a new role. Currently only AWS is supported.
- iam
Assumed StringRole Arn ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
- project
Id string The unique ID for the project
- provider
Name string The cloud provider for which to create a new role. Currently only AWS is supported.
- iam
Assumed stringRole Arn ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
- project_
id str The unique ID for the project
- provider_
name str The cloud provider for which to create a new role. Currently only AWS is supported.
- iam_
assumed_ strrole_ arn ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
- project
Id String The unique ID for the project
- provider
Name String The cloud provider for which to create a new role. Currently only AWS is supported.
- iam
Assumed StringRole Arn ARN of the IAM Role that Atlas assumes when accessing resources in your AWS account. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudProviderAccess resource produces the following output properties:
- 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<CloudProvider Access Feature Usage> Atlas features this AWS IAM role is linked to.
- Id string
The provider-assigned unique ID for this managed resource.
- Role
Id string Unique ID of this role returned by mongodb atlas api
- 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 []CloudProvider Access Feature Usage Atlas features this AWS IAM role is linked to.
- Id string
The provider-assigned unique ID for this managed resource.
- Role
Id string Unique ID of this role returned by mongodb atlas api
- 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<CloudProvider Access Feature Usage> Atlas features this AWS IAM role is linked to.
- id String
The provider-assigned unique ID for this managed resource.
- role
Id String Unique ID of this role returned by mongodb atlas api
- 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 CloudProvider Access Feature Usage[] Atlas features this AWS IAM role is linked to.
- id string
The provider-assigned unique ID for this managed resource.
- role
Id string Unique ID of this role returned by mongodb atlas api
- 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[CloudProvider Access Feature Usage] Atlas features this AWS IAM role is linked to.
- id str
The provider-assigned unique ID for this managed resource.
- role_
id str Unique ID of this role returned by mongodb atlas api
- 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<Property Map> Atlas features this AWS IAM role is linked to.
- id String
The provider-assigned unique ID for this managed resource.
- role
Id String Unique ID of this role returned by mongodb atlas api
Look up Existing CloudProviderAccess Resource
Get an existing CloudProviderAccess 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?: CloudProviderAccessState, opts?: CustomResourceOptions): CloudProviderAccess
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
atlas_assumed_role_external_id: Optional[str] = None,
atlas_aws_account_arn: Optional[str] = None,
authorized_date: Optional[str] = None,
created_date: Optional[str] = None,
feature_usages: Optional[Sequence[CloudProviderAccessFeatureUsageArgs]] = None,
iam_assumed_role_arn: Optional[str] = None,
project_id: Optional[str] = None,
provider_name: Optional[str] = None,
role_id: Optional[str] = None) -> CloudProviderAccess
func GetCloudProviderAccess(ctx *Context, name string, id IDInput, state *CloudProviderAccessState, opts ...ResourceOption) (*CloudProviderAccess, error)
public static CloudProviderAccess Get(string name, Input<string> id, CloudProviderAccessState? state, CustomResourceOptions? opts = null)
public static CloudProviderAccess get(String name, Output<String> id, CloudProviderAccessState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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<CloudProvider Access 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. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
- Project
Id string The unique ID for the project
- Provider
Name string The cloud provider for which to create a new role. Currently only AWS is supported.
- Role
Id string Unique ID of this role returned by mongodb atlas api
- 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 []CloudProvider Access 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. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
- Project
Id string The unique ID for the project
- Provider
Name string The cloud provider for which to create a new role. Currently only AWS is supported.
- Role
Id string Unique ID of this role returned by mongodb atlas api
- 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<CloudProvider Access 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. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
- project
Id String The unique ID for the project
- provider
Name String The cloud provider for which to create a new role. Currently only AWS is supported.
- role
Id String Unique ID of this role returned by mongodb atlas api
- 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 CloudProvider Access 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. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
- project
Id string The unique ID for the project
- provider
Name string The cloud provider for which to create a new role. Currently only AWS is supported.
- role
Id string Unique ID of this role returned by mongodb atlas api
- 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[CloudProvider Access 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. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
- project_
id str The unique ID for the project
- provider_
name str The cloud provider for which to create a new role. Currently only AWS is supported.
- role_
id str Unique ID of this role returned by mongodb atlas api
- 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<Property Map> 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. This value is required after the creation (register of the role) as part of Set Up Unified AWS Access.
- project
Id String The unique ID for the project
- provider
Name String The cloud provider for which to create a new role. Currently only AWS is supported.
- role
Id String Unique ID of this role returned by mongodb atlas api
Supporting Types
CloudProviderAccessFeatureUsage
- Feature
Id Dictionary<string, object> - Feature
Type string
- Feature
Id map[string]interface{} - Feature
Type string
- feature
Id Map<String,Object> - feature
Type String
- feature
Id {[key: string]: any} - feature
Type string
- feature_
id Mapping[str, Any] - feature_
type str
- feature
Id Map<Any> - feature
Type String
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
mongodbatlas
Terraform Provider.