dome9.CloudaccountAlibaba
Explore with Pulumi AI
This resource is used to onboard Alibaba cloud accounts to Dome9. This is the first and pre-requisite step in order to apply Dome9 features, such as compliance testing, on the account.
Example Usage
Basic usage:
import * as pulumi from "@pulumi/pulumi";
import * as dome9 from "@pulumi/dome9";
const test = new dome9.CloudaccountAlibaba("test", {credentials: {
access_key: "ACCESS_KEY",
access_secret: "ACCESS_SECRET",
}});
import pulumi
import pulumi_dome9 as dome9
test = dome9.CloudaccountAlibaba("test", credentials={
"access_key": "ACCESS_KEY",
"access_secret": "ACCESS_SECRET",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/dome9/dome9"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dome9.NewCloudaccountAlibaba(ctx, "test", &dome9.CloudaccountAlibabaArgs{
Credentials: pulumi.StringMap{
"access_key": pulumi.String("ACCESS_KEY"),
"access_secret": pulumi.String("ACCESS_SECRET"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dome9 = Pulumi.Dome9;
return await Deployment.RunAsync(() =>
{
var test = new Dome9.CloudaccountAlibaba("test", new()
{
Credentials =
{
{ "access_key", "ACCESS_KEY" },
{ "access_secret", "ACCESS_SECRET" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dome9.CloudaccountAlibaba;
import com.pulumi.dome9.CloudaccountAlibabaArgs;
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 test = new CloudaccountAlibaba("test", CloudaccountAlibabaArgs.builder()
.credentials(Map.ofEntries(
Map.entry("access_key", "ACCESS_KEY"),
Map.entry("access_secret", "ACCESS_SECRET")
))
.build());
}
}
resources:
test:
type: dome9:CloudaccountAlibaba
properties:
credentials:
access_key: ACCESS_KEY
access_secret: ACCESS_SECRET
Create CloudaccountAlibaba Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudaccountAlibaba(name: string, args: CloudaccountAlibabaArgs, opts?: CustomResourceOptions);
@overload
def CloudaccountAlibaba(resource_name: str,
args: CloudaccountAlibabaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudaccountAlibaba(resource_name: str,
opts: Optional[ResourceOptions] = None,
credentials: Optional[Mapping[str, str]] = None,
cloudaccount_alibaba_id: Optional[str] = None,
name: Optional[str] = None,
organizational_unit_id: Optional[str] = None)
func NewCloudaccountAlibaba(ctx *Context, name string, args CloudaccountAlibabaArgs, opts ...ResourceOption) (*CloudaccountAlibaba, error)
public CloudaccountAlibaba(string name, CloudaccountAlibabaArgs args, CustomResourceOptions? opts = null)
public CloudaccountAlibaba(String name, CloudaccountAlibabaArgs args)
public CloudaccountAlibaba(String name, CloudaccountAlibabaArgs args, CustomResourceOptions options)
type: dome9:CloudaccountAlibaba
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 CloudaccountAlibabaArgs
- 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 CloudaccountAlibabaArgs
- 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 CloudaccountAlibabaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudaccountAlibabaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudaccountAlibabaArgs
- 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 cloudaccountAlibabaResource = new Dome9.CloudaccountAlibaba("cloudaccountAlibabaResource", new()
{
Credentials =
{
{ "string", "string" },
},
CloudaccountAlibabaId = "string",
Name = "string",
OrganizationalUnitId = "string",
});
example, err := dome9.NewCloudaccountAlibaba(ctx, "cloudaccountAlibabaResource", &dome9.CloudaccountAlibabaArgs{
Credentials: pulumi.StringMap{
"string": pulumi.String("string"),
},
CloudaccountAlibabaId: pulumi.String("string"),
Name: pulumi.String("string"),
OrganizationalUnitId: pulumi.String("string"),
})
var cloudaccountAlibabaResource = new CloudaccountAlibaba("cloudaccountAlibabaResource", CloudaccountAlibabaArgs.builder()
.credentials(Map.of("string", "string"))
.cloudaccountAlibabaId("string")
.name("string")
.organizationalUnitId("string")
.build());
cloudaccount_alibaba_resource = dome9.CloudaccountAlibaba("cloudaccountAlibabaResource",
credentials={
"string": "string",
},
cloudaccount_alibaba_id="string",
name="string",
organizational_unit_id="string")
const cloudaccountAlibabaResource = new dome9.CloudaccountAlibaba("cloudaccountAlibabaResource", {
credentials: {
string: "string",
},
cloudaccountAlibabaId: "string",
name: "string",
organizationalUnitId: "string",
});
type: dome9:CloudaccountAlibaba
properties:
cloudaccountAlibabaId: string
credentials:
string: string
name: string
organizationalUnitId: string
CloudaccountAlibaba 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 CloudaccountAlibaba resource accepts the following input properties:
- Credentials Dictionary<string, string>
- Has the following arguments:
- Cloudaccount
Alibaba stringId - Name string
- The name of the Alibaba account in Dome9
- Organizational
Unit stringId - Organizational unit id.
- Credentials map[string]string
- Has the following arguments:
- Cloudaccount
Alibaba stringId - Name string
- The name of the Alibaba account in Dome9
- Organizational
Unit stringId - Organizational unit id.
- credentials Map<String,String>
- Has the following arguments:
- cloudaccount
Alibaba StringId - name String
- The name of the Alibaba account in Dome9
- organizational
Unit StringId - Organizational unit id.
- credentials {[key: string]: string}
- Has the following arguments:
- cloudaccount
Alibaba stringId - name string
- The name of the Alibaba account in Dome9
- organizational
Unit stringId - Organizational unit id.
- credentials Mapping[str, str]
- Has the following arguments:
- cloudaccount_
alibaba_ strid - name str
- The name of the Alibaba account in Dome9
- organizational_
unit_ strid - Organizational unit id.
- credentials Map<String>
- Has the following arguments:
- cloudaccount
Alibaba StringId - name String
- The name of the Alibaba account in Dome9
- organizational
Unit StringId - Organizational unit id.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudaccountAlibaba resource produces the following output properties:
- Alibaba
Account stringId - Alibaba account id.
- Creation
Date string - Date the account was onboarded to Dome9
- Id string
- The provider-assigned unique ID for this managed resource.
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- Vendor string
- The cloud provider ("Alibaba")
- Alibaba
Account stringId - Alibaba account id.
- Creation
Date string - Date the account was onboarded to Dome9
- Id string
- The provider-assigned unique ID for this managed resource.
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- Vendor string
- The cloud provider ("Alibaba")
- alibaba
Account StringId - Alibaba account id.
- creation
Date String - Date the account was onboarded to Dome9
- id String
- The provider-assigned unique ID for this managed resource.
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - Organizational unit path
- vendor String
- The cloud provider ("Alibaba")
- alibaba
Account stringId - Alibaba account id.
- creation
Date string - Date the account was onboarded to Dome9
- id string
- The provider-assigned unique ID for this managed resource.
- organizational
Unit stringName - Organizational unit name
- organizational
Unit stringPath - Organizational unit path
- vendor string
- The cloud provider ("Alibaba")
- alibaba_
account_ strid - Alibaba account id.
- creation_
date str - Date the account was onboarded to Dome9
- id str
- The provider-assigned unique ID for this managed resource.
- organizational_
unit_ strname - Organizational unit name
- organizational_
unit_ strpath - Organizational unit path
- vendor str
- The cloud provider ("Alibaba")
- alibaba
Account StringId - Alibaba account id.
- creation
Date String - Date the account was onboarded to Dome9
- id String
- The provider-assigned unique ID for this managed resource.
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - Organizational unit path
- vendor String
- The cloud provider ("Alibaba")
Look up Existing CloudaccountAlibaba Resource
Get an existing CloudaccountAlibaba 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?: CloudaccountAlibabaState, opts?: CustomResourceOptions): CloudaccountAlibaba
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alibaba_account_id: Optional[str] = None,
cloudaccount_alibaba_id: Optional[str] = None,
creation_date: Optional[str] = None,
credentials: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
organizational_unit_id: Optional[str] = None,
organizational_unit_name: Optional[str] = None,
organizational_unit_path: Optional[str] = None,
vendor: Optional[str] = None) -> CloudaccountAlibaba
func GetCloudaccountAlibaba(ctx *Context, name string, id IDInput, state *CloudaccountAlibabaState, opts ...ResourceOption) (*CloudaccountAlibaba, error)
public static CloudaccountAlibaba Get(string name, Input<string> id, CloudaccountAlibabaState? state, CustomResourceOptions? opts = null)
public static CloudaccountAlibaba get(String name, Output<String> id, CloudaccountAlibabaState state, CustomResourceOptions options)
resources: _: type: dome9:CloudaccountAlibaba 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.
- Alibaba
Account stringId - Alibaba account id.
- Cloudaccount
Alibaba stringId - Creation
Date string - Date the account was onboarded to Dome9
- Credentials Dictionary<string, string>
- Has the following arguments:
- Name string
- The name of the Alibaba account in Dome9
- Organizational
Unit stringId - Organizational unit id.
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- Vendor string
- The cloud provider ("Alibaba")
- Alibaba
Account stringId - Alibaba account id.
- Cloudaccount
Alibaba stringId - Creation
Date string - Date the account was onboarded to Dome9
- Credentials map[string]string
- Has the following arguments:
- Name string
- The name of the Alibaba account in Dome9
- Organizational
Unit stringId - Organizational unit id.
- Organizational
Unit stringName - Organizational unit name
- Organizational
Unit stringPath - Organizational unit path
- Vendor string
- The cloud provider ("Alibaba")
- alibaba
Account StringId - Alibaba account id.
- cloudaccount
Alibaba StringId - creation
Date String - Date the account was onboarded to Dome9
- credentials Map<String,String>
- Has the following arguments:
- name String
- The name of the Alibaba account in Dome9
- organizational
Unit StringId - Organizational unit id.
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - Organizational unit path
- vendor String
- The cloud provider ("Alibaba")
- alibaba
Account stringId - Alibaba account id.
- cloudaccount
Alibaba stringId - creation
Date string - Date the account was onboarded to Dome9
- credentials {[key: string]: string}
- Has the following arguments:
- name string
- The name of the Alibaba account in Dome9
- organizational
Unit stringId - Organizational unit id.
- organizational
Unit stringName - Organizational unit name
- organizational
Unit stringPath - Organizational unit path
- vendor string
- The cloud provider ("Alibaba")
- alibaba_
account_ strid - Alibaba account id.
- cloudaccount_
alibaba_ strid - creation_
date str - Date the account was onboarded to Dome9
- credentials Mapping[str, str]
- Has the following arguments:
- name str
- The name of the Alibaba account in Dome9
- organizational_
unit_ strid - Organizational unit id.
- organizational_
unit_ strname - Organizational unit name
- organizational_
unit_ strpath - Organizational unit path
- vendor str
- The cloud provider ("Alibaba")
- alibaba
Account StringId - Alibaba account id.
- cloudaccount
Alibaba StringId - creation
Date String - Date the account was onboarded to Dome9
- credentials Map<String>
- Has the following arguments:
- name String
- The name of the Alibaba account in Dome9
- organizational
Unit StringId - Organizational unit id.
- organizational
Unit StringName - Organizational unit name
- organizational
Unit StringPath - Organizational unit path
- vendor String
- The cloud provider ("Alibaba")
Import
Alibaba cloud account can be imported; use <Alibaba CLOUD ACCOUNT ID>
as the import ID.
For example:
$ pulumi import dome9:index/cloudaccountAlibaba:CloudaccountAlibaba test 00000000-0000-0000-0000-000000000000
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- dome9 dome9/terraform-provider-dome9
- License
- Notes
- This Pulumi package is based on the
dome9
Terraform Provider.