This page documents the language specification for the alicloud package. If you're looking for help working with the inputs, outputs, or functions of alicloud resources in a Pulumi program, please see the resource documentation for examples and API reference.

resourcemanager

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-alicloud repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-alicloud repo.

class pulumi_alicloud.resourcemanager.Account(resource_name, opts=None, display_name=None, folder_id=None, payer_account_id=None, __props__=None, __name__=None, __opts__=None)

Provides a Resource Manager Account resource. Member accounts are containers for resources in a resource directory. These accounts isolate resources and serve as organizational units in the resource directory. You can create member accounts in a folder and then manage them in a unified manner. For information about Resource Manager Account and how to use it, see What is Resource Manager Account.

NOTE: Available in v1.83.0+.

import pulumi
import pulumi_alicloud as alicloud

# Add a Resource Manager Account.
f1 = alicloud.resourcemanager.Folder("f1", folder_name="test1")
example = alicloud.resourcemanager.Account("example",
    display_name="RDAccount",
    folder_id=f1.id)
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • display*name (pulumi.Input[str]) –

    Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (*), dots (.) And dashes (-).

  • folder_id (pulumi.Input[str]) – The ID of the parent folder.

  • payer_account_id (pulumi.Input[str]) – Settlement account ID. If the value is empty, the current account will be used for settlement.

display_name: pulumi.Output[str] = None

Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).

folder_id: pulumi.Output[str] = None

The ID of the parent folder.

join_method: pulumi.Output[str] = None

Ways for members to join the resource directory. Valid values: invited, created.

join_time: pulumi.Output[str] = None

The time when the member joined the resource directory.

modify_time: pulumi.Output[str] = None

The modification time of the invitation.

payer_account_id: pulumi.Output[str] = None

Settlement account ID. If the value is empty, the current account will be used for settlement.

resource_directory_id: pulumi.Output[str] = None

Resource directory ID.

status: pulumi.Output[str] = None

Member joining status. Valid values: CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.

type: pulumi.Output[str] = None

Member type. The value of ResourceAccount indicates the resource account.

static get(resource_name, id, opts=None, display_name=None, folder_id=None, join_method=None, join_time=None, modify_time=None, payer_account_id=None, resource_directory_id=None, status=None, type=None)

Get an existing Account resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • display*name (pulumi.Input[str]) –

    Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (*), dots (.) And dashes (-).

  • folder_id (pulumi.Input[str]) – The ID of the parent folder.

  • join_method (pulumi.Input[str]) – Ways for members to join the resource directory. Valid values: invited, created.

  • join_time (pulumi.Input[str]) – The time when the member joined the resource directory.

  • modify_time (pulumi.Input[str]) – The modification time of the invitation.

  • payer_account_id (pulumi.Input[str]) – Settlement account ID. If the value is empty, the current account will be used for settlement.

  • resource_directory_id (pulumi.Input[str]) – Resource directory ID.

  • status (pulumi.Input[str]) – Member joining status. Valid values: CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.

  • type (pulumi.Input[str]) – Member type. The value of ResourceAccount indicates the resource account.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.resourcemanager.AwaitableGetAccountsResult(accounts=None, id=None, ids=None, output_file=None)
class pulumi_alicloud.resourcemanager.AwaitableGetFoldersResult(folders=None, id=None, ids=None, name_regex=None, names=None, output_file=None, parent_folder_id=None)
class pulumi_alicloud.resourcemanager.AwaitableGetHandshakesResult(handshakes=None, id=None, ids=None, output_file=None)
class pulumi_alicloud.resourcemanager.AwaitableGetPoliciesResult(id=None, ids=None, name_regex=None, names=None, output_file=None, policies=None, policy_type=None)
class pulumi_alicloud.resourcemanager.AwaitableGetPolicyVersionsResult(id=None, ids=None, output_file=None, policy_name=None, policy_type=None, versions=None)
class pulumi_alicloud.resourcemanager.AwaitableGetResourceDirectoriesResult(directories=None, id=None, output_file=None)
class pulumi_alicloud.resourcemanager.AwaitableGetResourceGroupsResult(groups=None, id=None, ids=None, name_regex=None, names=None, output_file=None, status=None)
class pulumi_alicloud.resourcemanager.AwaitableGetRolesResult(id=None, ids=None, name_regex=None, names=None, output_file=None, roles=None)
class pulumi_alicloud.resourcemanager.Folder(resource_name, opts=None, folder_name=None, parent_folder_id=None, __props__=None, __name__=None, __opts__=None)

Provides a Resource Manager Folder resource. A folder is an organizational unit in a resource directory. You can use folders to build an organizational structure for resources. For information about Resource Manager Foler and how to use it, see What is Resource Manager Folder.

NOTE: Available in v1.82.0+.

NOTE: A maximum of five levels of folders can be created under the root folder.

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.resourcemanager.Folder("example", folder_name="test")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • folder*name (pulumi.Input[str]) –

    The name of the folder. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (*), periods (.), and hyphens (-).

  • parent_folder_id (pulumi.Input[str]) – The ID of the parent folder. If not set, the system default value will be used.

folder_name: pulumi.Output[str] = None

The name of the folder. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (_), periods (.), and hyphens (-).

parent_folder_id: pulumi.Output[str] = None

The ID of the parent folder. If not set, the system default value will be used.

static get(resource_name, id, opts=None, folder_name=None, parent_folder_id=None)

Get an existing Folder resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • folder*name (pulumi.Input[str]) –

    The name of the folder. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (*), periods (.), and hyphens (-).

  • parent_folder_id (pulumi.Input[str]) – The ID of the parent folder. If not set, the system default value will be used.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.resourcemanager.GetAccountsResult(accounts=None, id=None, ids=None, output_file=None)

A collection of values returned by getAccounts.

accounts = None

A list of accounts. Each element contains the following attributes:

id = None

The provider-assigned unique ID for this managed resource.

ids = None

A list of account IDs.

class pulumi_alicloud.resourcemanager.GetFoldersResult(folders=None, id=None, ids=None, name_regex=None, names=None, output_file=None, parent_folder_id=None)

A collection of values returned by getFolders.

folders = None

A list of folders. Each element contains the following attributes:

id = None

The provider-assigned unique ID for this managed resource.

ids = None

A list of folder IDs.

names = None

A list of folder names.

class pulumi_alicloud.resourcemanager.GetHandshakesResult(handshakes=None, id=None, ids=None, output_file=None)

A collection of values returned by getHandshakes.

handshakes = None

A list of Resource Manager Handshakes. Each element contains the following attributes:

id = None

The provider-assigned unique ID for this managed resource.

ids = None

A list of Resource Manager Handshake IDs.

class pulumi_alicloud.resourcemanager.GetPoliciesResult(id=None, ids=None, name_regex=None, names=None, output_file=None, policies=None, policy_type=None)

A collection of values returned by getPolicies.

id = None

The provider-assigned unique ID for this managed resource.

ids = None

A list of policy IDs.

names = None

A list of policy names.

policies = None

A list of policies. Each element contains the following attributes:

class pulumi_alicloud.resourcemanager.GetPolicyVersionsResult(id=None, ids=None, output_file=None, policy_name=None, policy_type=None, versions=None)

A collection of values returned by getPolicyVersions.

id = None

The provider-assigned unique ID for this managed resource.

ids = None

A list of policy version IDs.

versions = None

A list of policy versions. Each element contains the following attributes:

class pulumi_alicloud.resourcemanager.GetResourceDirectoriesResult(directories=None, id=None, output_file=None)

A collection of values returned by getResourceDirectories.

directories = None

A list of resource directories. Each element contains the following attributes:

id = None

The provider-assigned unique ID for this managed resource.

class pulumi_alicloud.resourcemanager.GetResourceGroupsResult(groups=None, id=None, ids=None, name_regex=None, names=None, output_file=None, status=None)

A collection of values returned by getResourceGroups.

groups = None

A list of resource groups. Each element contains the following attributes:

id = None

The provider-assigned unique ID for this managed resource.

ids = None

A list of resource group IDs.

names = None

A list of resource group names.

status = None

The status of the resource group. Possible values:Creating,Deleted,OK and PendingDelete.

class pulumi_alicloud.resourcemanager.GetRolesResult(id=None, ids=None, name_regex=None, names=None, output_file=None, roles=None)

A collection of values returned by getRoles.

id = None

The provider-assigned unique ID for this managed resource.

ids = None

A list of role IDs.

names = None

A list of role names.

roles = None

A list of roles. Each element contains the following attributes:

class pulumi_alicloud.resourcemanager.Handshake(resource_name, opts=None, note=None, target_entity=None, target_type=None, __props__=None, __name__=None, __opts__=None)

Provides a Resource Manager handshake resource. You can invite accounts to join a resource directory for unified management. For information about Resource Manager handshake and how to use it, see What is Resource Manager handshake.

NOTE: Available in v1.82.0+.

import pulumi
import pulumi_alicloud as alicloud

# Add a Resource Manager handshake.
example = alicloud.resourcemanager.Handshake("example",
    note="test resource manager handshake",
    target_entity="1182775234******",
    target_type="Account")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • note (pulumi.Input[str]) – Remarks. The maximum length is 1024 characters.

  • target_entity (pulumi.Input[str]) – Invited account ID or login email.

  • target_type (pulumi.Input[str]) – Type of account being invited. Valid values: Account, Email.

expire_time: pulumi.Output[str] = None

The expiration time of the invitation.

master_account_id: pulumi.Output[str] = None

Resource account master account ID.

master_account_name: pulumi.Output[str] = None

The name of the main account of the resource directory.

modify_time: pulumi.Output[str] = None

The modification time of the invitation.

note: pulumi.Output[str] = None

Remarks. The maximum length is 1024 characters.

resource_directory_id: pulumi.Output[str] = None

Resource directory ID.

status: pulumi.Output[str] = None

Invitation status. Valid values: Pending waiting for confirmation, Accepted, Cancelled, Declined, Expired.

target_entity: pulumi.Output[str] = None

Invited account ID or login email.

target_type: pulumi.Output[str] = None

Type of account being invited. Valid values: Account, Email.

static get(resource_name, id, opts=None, expire_time=None, master_account_id=None, master_account_name=None, modify_time=None, note=None, resource_directory_id=None, status=None, target_entity=None, target_type=None)

Get an existing Handshake resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • expire_time (pulumi.Input[str]) – The expiration time of the invitation.

  • master_account_id (pulumi.Input[str]) – Resource account master account ID.

  • master_account_name (pulumi.Input[str]) – The name of the main account of the resource directory.

  • modify_time (pulumi.Input[str]) – The modification time of the invitation.

  • note (pulumi.Input[str]) – Remarks. The maximum length is 1024 characters.

  • resource_directory_id (pulumi.Input[str]) – Resource directory ID.

  • status (pulumi.Input[str]) – Invitation status. Valid values: Pending waiting for confirmation, Accepted, Cancelled, Declined, Expired.

  • target_entity (pulumi.Input[str]) – Invited account ID or login email.

  • target_type (pulumi.Input[str]) – Type of account being invited. Valid values: Account, Email.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.resourcemanager.Policy(resource_name, opts=None, default_version=None, description=None, policy_document=None, policy_name=None, __props__=None, __name__=None, __opts__=None)

Provides a Resource Manager Policy resource.
For information about Resource Manager Policy and how to use it, see What is Resource Manager Policy.

NOTE: Available in v1.83.0+.

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.resourcemanager.Policy("example",
    policy_document="""         {
                        "Statement": [{
                                "Action": ["oss:*"],
                                "Effect": "Allow",
                                "Resource": ["acs:oss:*:*:*"]
                        }],
                        "Version": "1"
                }

""",
    policy_name="abc12345")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • default_version (pulumi.Input[str]) – The version of the policy. Default to v1.

  • description (pulumi.Input[str]) – The description of the policy. The description must be 1 to 1,024 characters in length.

  • policy_document (pulumi.Input[str]) – The content of the policy. The content must be 1 to 2,048 characters in length.

  • policy_name (pulumi.Input[str]) – The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

create_date: pulumi.Output[str] = None

The time when the policy was created.

default_version: pulumi.Output[str] = None

The version of the policy. Default to v1.

description: pulumi.Output[str] = None

The description of the policy. The description must be 1 to 1,024 characters in length.

policy_document: pulumi.Output[str] = None

The content of the policy. The content must be 1 to 2,048 characters in length.

policy_name: pulumi.Output[str] = None

The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

policy_type: pulumi.Output[str] = None

The type of the policy. Valid values: Custom, System.

static get(resource_name, id, opts=None, create_date=None, default_version=None, description=None, policy_document=None, policy_name=None, policy_type=None)

Get an existing Policy resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • create_date (pulumi.Input[str]) – The time when the policy was created.

  • default_version (pulumi.Input[str]) – The version of the policy. Default to v1.

  • description (pulumi.Input[str]) – The description of the policy. The description must be 1 to 1,024 characters in length.

  • policy_document (pulumi.Input[str]) – The content of the policy. The content must be 1 to 2,048 characters in length.

  • policy_name (pulumi.Input[str]) – The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

  • policy_type (pulumi.Input[str]) – The type of the policy. Valid values: Custom, System.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.resourcemanager.PolicyVersion(resource_name, opts=None, is_default_version=None, policy_document=None, policy_name=None, __props__=None, __name__=None, __opts__=None)

Provides a Resource Manager Policy Version resource. For information about Resource Manager Policy Version and how to use it, see What is Resource Manager Policy Version.

NOTE: Available in v1.84.0+.

import pulumi
import pulumi_alicloud as alicloud

example_policy = alicloud.resourcemanager.Policy("examplePolicy",
    policy_name="tftest",
    policy_document="""         {
                        "Statement": [{
                                "Action": ["oss:*"],
                                "Effect": "Allow",
                                "Resource": ["acs:oss:*:*:*"]
                        }],
                        "Version": "1"
                }
""")
example_policy_version = alicloud.resourcemanager.PolicyVersion("examplePolicyVersion",
    policy_name=example_policy.policy_name,
    policy_document="""         {
                        "Statement": [{
                                "Action": ["oss:*"],
                                "Effect": "Allow",
                                "Resource": ["acs:oss:*:*:myphotos"]
                        }],
                        "Version": "1"
                }
""")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • is_default_version (pulumi.Input[bool]) – Specifies whether to set the policy version as the default version. Default to false.

  • policy_document (pulumi.Input[str]) – The content of the policy. The content must be 1 to 2,048 characters in length.

  • policy_name (pulumi.Input[str]) – The name of the policy. Name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

create_date: pulumi.Output[str] = None

The time when the policy version was created.

is_default_version: pulumi.Output[bool] = None

Specifies whether to set the policy version as the default version. Default to false.

policy_document: pulumi.Output[str] = None

The content of the policy. The content must be 1 to 2,048 characters in length.

policy_name: pulumi.Output[str] = None

The name of the policy. Name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

version_id: pulumi.Output[str] = None

The ID of the policy version.

static get(resource_name, id, opts=None, create_date=None, is_default_version=None, policy_document=None, policy_name=None, version_id=None)

Get an existing PolicyVersion resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • create_date (pulumi.Input[str]) – The time when the policy version was created.

  • is_default_version (pulumi.Input[bool]) – Specifies whether to set the policy version as the default version. Default to false.

  • policy_document (pulumi.Input[str]) – The content of the policy. The content must be 1 to 2,048 characters in length.

  • policy_name (pulumi.Input[str]) – The name of the policy. Name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

  • version_id (pulumi.Input[str]) – The ID of the policy version.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.resourcemanager.ResourceDirectory(resource_name, opts=None, __props__=None, __name__=None, __opts__=None)

Provides a Resource Manager Resource Directory resource. Resource Directory enables you to establish an organizational structure for the resources used by applications of your enterprise. You can plan, build, and manage the resources in a centralized manner by using only one resource directory.

For information about Resource Manager Resource Directory and how to use it, see What is Resource Manager Resource Directory.

NOTE: Available in v1.84.0+.

NOTE: An account can only be used to enable a resource directory after it passes enterprise real-name verification. An account that only passed individual real-name verification cannot be used to enable a resource directory.

NOTE: Before you destroy the resource, make sure that the following requirements are met:

  • All member accounts must be removed from the resource directory.

  • All folders except the root folder must be deleted from the resource directory.

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.resourcemanager.ResourceDirectory("example")
Parameters
master_account_id: pulumi.Output[str] = None

The ID of the master account.

master_account_name: pulumi.Output[str] = None

The name of the master account.

root_folder_id: pulumi.Output[str] = None

The ID of the root folder.

static get(resource_name, id, opts=None, master_account_id=None, master_account_name=None, root_folder_id=None)

Get an existing ResourceDirectory resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • master_account_id (pulumi.Input[str]) – The ID of the master account.

  • master_account_name (pulumi.Input[str]) – The name of the master account.

  • root_folder_id (pulumi.Input[str]) – The ID of the root folder.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.resourcemanager.ResourceGroup(resource_name, opts=None, display_name=None, name=None, __props__=None, __name__=None, __opts__=None)

Provides a Resource Manager Resource Group resource. If you need to group cloud resources according to business departments, projects, and other dimensions, you can create resource groups. For information about Resource Manager Resoource Group and how to use it, see What is Resource Manager Resource Group

NOTE: Available in v1.82.0+.

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.resourcemanager.ResourceGroup("example", display_name="testrd")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • display*name (pulumi.Input[str]) –

    The display name of the resource group. The name must be 1 to 30 characters in length and can contain letters, digits, periods (.), at signs (@), and hyphens (-).

  • name (pulumi.Input[str]) – The unique identifier of the resource group.The identifier must be 3 to 12 characters in length and can contain letters, digits, periods (.), hyphens (-), and underscores (*). The identifier must start with a letter.

account_id: pulumi.Output[str] = None

The ID of the Alibaba Cloud account to which the resource group belongs.

create_date: pulumi.Output[str] = None

The time when the resource group was created.

  • region_statuses -The status of the resource group in all regions.

  • region_id - The region ID.

  • status - The status of the regional resource group.

display_name: pulumi.Output[str] = None

The display name of the resource group. The name must be 1 to 30 characters in length and can contain letters, digits, periods (.), at signs (@), and hyphens (-).

name: pulumi.Output[str] = None

The unique identifier of the resource group.The identifier must be 3 to 12 characters in length and can contain letters, digits, periods (.), hyphens (-), and underscores (_). The identifier must start with a letter.

status: pulumi.Output[str] = None

The status of the resource group.

static get(resource_name, id, opts=None, account_id=None, create_date=None, display_name=None, name=None, region_statuses=None, status=None)

Get an existing ResourceGroup resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • account_id (pulumi.Input[str]) – The ID of the Alibaba Cloud account to which the resource group belongs.

  • create_date (pulumi.Input[str]) – The time when the resource group was created.

* `region_statuses` -The status of the resource group in all regions.
- `region_id` - The region ID.
- `status` - The status of the regional resource group.
Parameters
  • display*name (pulumi.Input[str]) –

    The display name of the resource group. The name must be 1 to 30 characters in length and can contain letters, digits, periods (.), at signs (@), and hyphens (-).

  • name (pulumi.Input[str]) – The unique identifier of the resource group.The identifier must be 3 to 12 characters in length and can contain letters, digits, periods (.), hyphens (-), and underscores (*). The identifier must start with a letter.

  • status (pulumi.Input[str]) – The status of the resource group.

The region_statuses object supports the following:

  • regionId (pulumi.Input[str])

  • status (pulumi.Input[str]) - The status of the resource group.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.resourcemanager.Role(resource_name, opts=None, assume_role_policy_document=None, description=None, max_session_duration=None, role_name=None, __props__=None, __name__=None, __opts__=None)

Provides a Resource Manager role resource. Members are resource containers in the resource directory, which can physically isolate resources to form an independent resource grouping unit. You can create members in the resource folder to manage them in a unified manner. For information about Resource Manager role and how to use it, see What is Resource Manager role.

NOTE: Available in v1.82.0+.

import pulumi
import pulumi_alicloud as alicloud

# Add a Resource Manager role.
example = alicloud.resourcemanager.Role("example",
    assume_role_policy_document="""     {
          "Statement": [
               {
                    "Action": "sts:AssumeRole",
                    "Effect": "Allow",
                    "Principal": {
                        "RAM":"acs:ram::103755469187****:root"
                    }
                }
          ],
          "Version": "1"
     }

""",
    role_name="testrd")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • assume_role_policy_document (pulumi.Input[str]) – The content of the permissions strategy that plays a role.

  • description (pulumi.Input[str]) – The description of the Resource Manager role.

  • max_session_duration (pulumi.Input[float]) – Role maximum session time. Valid values: [3600-43200]. Default to 3600.

  • role_name (pulumi.Input[str]) – Role Name. The length is 1 ~ 64 characters, which can include English letters, numbers, dots “.” and dashes “-“.

arn: pulumi.Output[str] = None

The resource descriptor of the role.

assume_role_policy_document: pulumi.Output[str] = None

The content of the permissions strategy that plays a role.

create_date: pulumi.Output[str] = None

Role creation time.

description: pulumi.Output[str] = None

The description of the Resource Manager role.

max_session_duration: pulumi.Output[float] = None

Role maximum session time. Valid values: [3600-43200]. Default to 3600.

role_name: pulumi.Output[str] = None

Role Name. The length is 1 ~ 64 characters, which can include English letters, numbers, dots “.” and dashes “-“.

update_date: pulumi.Output[str] = None

Role update time.

static get(resource_name, id, opts=None, arn=None, assume_role_policy_document=None, create_date=None, description=None, max_session_duration=None, role_id=None, role_name=None, update_date=None)

Get an existing Role resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • arn (pulumi.Input[str]) – The resource descriptor of the role.

  • assume_role_policy_document (pulumi.Input[str]) – The content of the permissions strategy that plays a role.

  • create_date (pulumi.Input[str]) – Role creation time.

  • description (pulumi.Input[str]) – The description of the Resource Manager role.

  • max_session_duration (pulumi.Input[float]) – Role maximum session time. Valid values: [3600-43200]. Default to 3600.

  • role_name (pulumi.Input[str]) – Role Name. The length is 1 ~ 64 characters, which can include English letters, numbers, dots “.” and dashes “-“.

  • update_date (pulumi.Input[str]) – Role update time.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_alicloud.resourcemanager.get_accounts(ids=None, output_file=None, opts=None)

This data source provides the Resource Manager Accounts of the current Alibaba Cloud user.

NOTE: Available in 1.86.0+.

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.resourcemanager.get_accounts()
pulumi.export("firstAccountId", default.accounts[0]["id"])
Parameters

ids (list) – A list of account IDs.

pulumi_alicloud.resourcemanager.get_folders(ids=None, name_regex=None, output_file=None, parent_folder_id=None, opts=None)

This data source provides the resource manager folders of the current Alibaba Cloud user.

NOTE: Available in 1.84.0+.

NOTE: You can view only the information of the first-level child folders of the specified folder.

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.resourcemanager.get_folders(name_regex="tftest")
pulumi.export("firstFolderId", example.folders[0]["id"])
Parameters
  • ids (list) – A list of resource manager folders IDs.

  • name_regex (str) – A regex string to filter results by folder name.

  • parent_folder_id (str) – The ID of the parent folder.

pulumi_alicloud.resourcemanager.get_handshakes(ids=None, output_file=None, opts=None)

This data source provides the Resource Manager Handshakes of the current Alibaba Cloud user.

NOTE: Available in 1.86.0+.

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.resourcemanager.get_handshakes()
pulumi.export("firstHandshakeId", example.handshakes[0]["id"])
Parameters

ids (list) – A list of Resource Manager Handshake IDs.

pulumi_alicloud.resourcemanager.get_policies(ids=None, name_regex=None, output_file=None, policy_type=None, opts=None)

This data source provides the Resource Manager Policies of the current Alibaba Cloud user.

NOTE: Available in 1.86.0+.

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.resourcemanager.get_policies(description_regex="tftest_policy",
    name_regex="tftest",
    policy_type="Custom")
pulumi.export("firstPolicyId", example.policies[0]["id"])
Parameters
  • ids (list) – A list of Resource Manager Policy IDs.

  • name_regex (str) – A regex string to filter results by policy name.

  • policy_type (str) – The type of the policy. If you do not specify this parameter, the system lists all types of policies. Valid values: Custom and System.

pulumi_alicloud.resourcemanager.get_policy_versions(ids=None, output_file=None, policy_name=None, policy_type=None, opts=None)

This data source provides the Resource Manager Policy Versions of the current Alibaba Cloud user.

NOTE: Available in 1.85.0+.

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.resourcemanager.get_policy_versions(policy_name="tftest",
    policy_type="Custom")
pulumi.export("firstPolicyVersionId", default.versions[0]["id"])
Parameters
  • ids (list) – A list of policy version IDs.

  • policy_name (str) – The name of the policy.

  • policy_type (str) – The type of the policy. Valid values:Custom and System.

pulumi_alicloud.resourcemanager.get_resource_directories(output_file=None, opts=None)

This data source provides the Resource Manager Resource Directories of the current Alibaba Cloud user.

NOTE: Available in 1.86.0+.

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.resourcemanager.get_resource_directories()
pulumi.export("resourceDirectoryId", default.directories[0]["id"])
pulumi_alicloud.resourcemanager.get_resource_groups(ids=None, name_regex=None, output_file=None, status=None, opts=None)

This data source provides resource groups of the current Alibaba Cloud user.

NOTE: Available in v1.84.0+.

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.resourcemanager.get_resource_groups(name_regex="tftest")
pulumi.export("firstResourceGroupId", example.groups[0]["id"])
Parameters
  • ids (list) – A list of resource group IDs.

  • name_regex (str) – A regex string to filter results by resource group name.

  • status (str) – The status of the resource group. Possible values:Creating,Deleted,OK and PendingDelete.

pulumi_alicloud.resourcemanager.get_roles(ids=None, name_regex=None, output_file=None, opts=None)

This data source provides the Resource Manager Roles of the current Alibaba Cloud user.

NOTE: Available in 1.86.0+.

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.resourcemanager.get_roles(name_regex="tftest")
pulumi.export("firstRoleId", example.roles[0]["id"])
Parameters
  • ids (list) – A list of Resource Manager Role IDs.

  • name_regex (str) – A regex string to filter results by role name.