Namespace Pulumi.AliCloud.ResourceManager
Classes
Account
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+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
// Add a Resource Manager Account.
var f1 = new AliCloud.ResourceManager.Folder("f1", new AliCloud.ResourceManager.FolderArgs
{
FolderName = "test1",
});
var example = new AliCloud.ResourceManager.Account("example", new AliCloud.ResourceManager.AccountArgs
{
DisplayName = "RDAccount",
FolderId = f1.Id,
});
}
}
AccountArgs
AccountState
Folder
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.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = new AliCloud.ResourceManager.Folder("example", new AliCloud.ResourceManager.FolderArgs
{
FolderName = "test",
});
}
}
FolderArgs
FolderState
GetFolders
GetFoldersArgs
GetFoldersResult
GetPolicyVersions
GetPolicyVersionsArgs
GetPolicyVersionsResult
GetResourceGroups
GetResourceGroupsArgs
GetResourceGroupsResult
Handshake
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+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
// Add a Resource Manager handshake.
var example = new AliCloud.ResourceManager.Handshake("example", new AliCloud.ResourceManager.HandshakeArgs
{
Note = "test resource manager handshake",
TargetEntity = "1182775234******",
TargetType = "Account",
});
}
}
HandshakeArgs
HandshakeState
Policy
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+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = new AliCloud.ResourceManager.Policy("example", new AliCloud.ResourceManager.PolicyArgs
{
PolicyDocument = @" {
""Statement"": [{
""Action"": [""oss:*""],
""Effect"": ""Allow"",
""Resource"": [""acs:oss:*:*:*""]
}],
""Version"": ""1""
}
",
PolicyName = "abc12345",
});
}
}
PolicyArgs
PolicyState
PolicyVersion
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+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var examplePolicy = new AliCloud.ResourceManager.Policy("examplePolicy", new AliCloud.ResourceManager.PolicyArgs
{
PolicyName = "tftest",
PolicyDocument = @" {
""Statement"": [{
""Action"": [""oss:*""],
""Effect"": ""Allow"",
""Resource"": [""acs:oss:*:*:*""]
}],
""Version"": ""1""
}
",
});
var examplePolicyVersion = new AliCloud.ResourceManager.PolicyVersion("examplePolicyVersion", new AliCloud.ResourceManager.PolicyVersionArgs
{
PolicyName = examplePolicy.PolicyName,
PolicyDocument = @" {
""Statement"": [{
""Action"": [""oss:*""],
""Effect"": ""Allow"",
""Resource"": [""acs:oss:*:*:myphotos""]
}],
""Version"": ""1""
}
",
});
}
}
PolicyVersionArgs
PolicyVersionState
ResourceDirectory
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.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = new AliCloud.ResourceManager.ResourceDirectory("example", new AliCloud.ResourceManager.ResourceDirectoryArgs
{
});
}
}
ResourceDirectoryArgs
ResourceDirectoryState
ResourceGroup
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+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = new AliCloud.ResourceManager.ResourceGroup("example", new AliCloud.ResourceManager.ResourceGroupArgs
{
DisplayName = "testrd",
});
}
}
ResourceGroupArgs
ResourceGroupState
Role
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+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
// Add a Resource Manager role.
var example = new AliCloud.ResourceManager.Role("example", new AliCloud.ResourceManager.RoleArgs
{
AssumeRolePolicyDocument = @" {
""Statement"": [
{
""Action"": ""sts:AssumeRole"",
""Effect"": ""Allow"",
""Principal"": {
""RAM"":""acs:ram::103755469187****:root""
}
}
],
""Version"": ""1""
}
",
RoleName = "testrd",
});
}
}