alicloud.ram.Role
Explore with Pulumi AI
Provides a RAM Role resource.
For information about RAM Role and how to use it, see What is Role.
NOTE: Available since v1.0.0.
NOTE: When you want to destroy this resource forcefully(means remove all the relationships associated with it automatically and then destroy it) without set
force
withtrue
at beginning, you need addforce = true
to configuration file and runpulumi preview
, then you can delete resource forcefully.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const defaultRole = new alicloud.ram.Role("default", {
roleName: `terraform-example-${_default.result}`,
assumeRolePolicyDocument: ` {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"apigateway.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
`,
description: "this is a role test.",
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
min=10000,
max=99999)
default_role = alicloud.ram.Role("default",
role_name=f"terraform-example-{default['result']}",
assume_role_policy_document=""" {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"apigateway.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
""",
description="this is a role test.")
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
_, err = ram.NewRole(ctx, "default", &ram.RoleArgs{
RoleName: pulumi.Sprintf("terraform-example-%v", _default.Result),
AssumeRolePolicyDocument: pulumi.String(` {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"apigateway.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
`),
Description: pulumi.String("this is a role test."),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var @default = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var defaultRole = new AliCloud.Ram.Role("default", new()
{
RoleName = $"terraform-example-{@default.Result}",
AssumeRolePolicyDocument = @" {
""Statement"": [
{
""Action"": ""sts:AssumeRole"",
""Effect"": ""Allow"",
""Principal"": {
""Service"": [
""apigateway.aliyuncs.com"",
""ecs.aliyuncs.com""
]
}
}
],
""Version"": ""1""
}
",
Description = "this is a role test.",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.integerArgs;
import com.pulumi.alicloud.ram.Role;
import com.pulumi.alicloud.ram.RoleArgs;
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 default_ = new Integer("default", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var defaultRole = new Role("defaultRole", RoleArgs.builder()
.roleName(String.format("terraform-example-%s", default_.result()))
.assumeRolePolicyDocument("""
{
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"apigateway.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
""")
.description("this is a role test.")
.build());
}
}
resources:
default:
type: random:integer
properties:
min: 10000
max: 99999
defaultRole:
type: alicloud:ram:Role
name: default
properties:
roleName: terraform-example-${default.result}
assumeRolePolicyDocument: |2
{
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"apigateway.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
description: this is a role test.
Create Role Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Role(name: string, args?: RoleArgs, opts?: CustomResourceOptions);
@overload
def Role(resource_name: str,
args: Optional[RoleArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Role(resource_name: str,
opts: Optional[ResourceOptions] = None,
assume_role_policy_document: Optional[str] = None,
description: Optional[str] = None,
document: Optional[str] = None,
force: Optional[bool] = None,
max_session_duration: Optional[int] = None,
name: Optional[str] = None,
ram_users: Optional[Sequence[str]] = None,
role_name: Optional[str] = None,
services: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
version: Optional[str] = None)
func NewRole(ctx *Context, name string, args *RoleArgs, opts ...ResourceOption) (*Role, error)
public Role(string name, RoleArgs? args = null, CustomResourceOptions? opts = null)
type: alicloud:ram:Role
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 RoleArgs
- 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 RoleArgs
- 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 RoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoleArgs
- 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 alicloudRoleResource = new AliCloud.Ram.Role("alicloudRoleResource", new()
{
AssumeRolePolicyDocument = "string",
Description = "string",
Force = false,
MaxSessionDuration = 0,
RoleName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := ram.NewRole(ctx, "alicloudRoleResource", &ram.RoleArgs{
AssumeRolePolicyDocument: pulumi.String("string"),
Description: pulumi.String("string"),
Force: pulumi.Bool(false),
MaxSessionDuration: pulumi.Int(0),
RoleName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var alicloudRoleResource = new com.pulumi.alicloud.ram.Role("alicloudRoleResource", com.pulumi.alicloud.ram.RoleArgs.builder()
.assumeRolePolicyDocument("string")
.description("string")
.force(false)
.maxSessionDuration(0)
.roleName("string")
.tags(Map.of("string", "string"))
.build());
alicloud_role_resource = alicloud.ram.Role("alicloudRoleResource",
assume_role_policy_document="string",
description="string",
force=False,
max_session_duration=0,
role_name="string",
tags={
"string": "string",
})
const alicloudRoleResource = new alicloud.ram.Role("alicloudRoleResource", {
assumeRolePolicyDocument: "string",
description: "string",
force: false,
maxSessionDuration: 0,
roleName: "string",
tags: {
string: "string",
},
});
type: alicloud:ram:Role
properties:
assumeRolePolicyDocument: string
description: string
force: false
maxSessionDuration: 0
roleName: string
tags:
string: string
Role 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 Role resource accepts the following input properties:
- Assume
Role stringPolicy Document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- Description string
- The description of the RAM role.
- Document string
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - Force bool
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - Max
Session intDuration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - Name string
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - Ram
Users List<string> - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Role
Name string - The name of the RAM role.
- Services List<string>
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Dictionary<string, string>
- The list of tags for the role.
- Version string
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
- Assume
Role stringPolicy Document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- Description string
- The description of the RAM role.
- Document string
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - Force bool
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - Max
Session intDuration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - Name string
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - Ram
Users []string - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Role
Name string - The name of the RAM role.
- Services []string
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - map[string]string
- The list of tags for the role.
- Version string
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
- assume
Role StringPolicy Document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- description String
- The description of the RAM role.
- document String
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - force Boolean
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - max
Session IntegerDuration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - name String
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - ram
Users List<String> - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - role
Name String - The name of the RAM role.
- services List<String>
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Map<String,String>
- The list of tags for the role.
- version String
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
- assume
Role stringPolicy Document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- description string
- The description of the RAM role.
- document string
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - force boolean
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - max
Session numberDuration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - name string
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - ram
Users string[] - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - role
Name string - The name of the RAM role.
- services string[]
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - {[key: string]: string}
- The list of tags for the role.
- version string
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
- assume_
role_ strpolicy_ document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- description str
- The description of the RAM role.
- document str
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - force bool
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - max_
session_ intduration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - name str
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - ram_
users Sequence[str] - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - role_
name str - The name of the RAM role.
- services Sequence[str]
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Mapping[str, str]
- The list of tags for the role.
- version str
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
- assume
Role StringPolicy Document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- description String
- The description of the RAM role.
- document String
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - force Boolean
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - max
Session NumberDuration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - name String
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - ram
Users List<String> - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - role
Name String - The name of the RAM role.
- services List<String>
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Map<String>
- The list of tags for the role.
- version String
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
Outputs
All input properties are implicitly available as output properties. Additionally, the Role resource produces the following output properties:
- Arn string
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- Create
Time string - (Available since v1.252.0) The time when the RAM role was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Role
Id string - The ID of the RAM role.
- Arn string
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- Create
Time string - (Available since v1.252.0) The time when the RAM role was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Role
Id string - The ID of the RAM role.
- arn String
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- create
Time String - (Available since v1.252.0) The time when the RAM role was created.
- id String
- The provider-assigned unique ID for this managed resource.
- role
Id String - The ID of the RAM role.
- arn string
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- create
Time string - (Available since v1.252.0) The time when the RAM role was created.
- id string
- The provider-assigned unique ID for this managed resource.
- role
Id string - The ID of the RAM role.
- arn str
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- create_
time str - (Available since v1.252.0) The time when the RAM role was created.
- id str
- The provider-assigned unique ID for this managed resource.
- role_
id str - The ID of the RAM role.
- arn String
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- create
Time String - (Available since v1.252.0) The time when the RAM role was created.
- id String
- The provider-assigned unique ID for this managed resource.
- role
Id String - The ID of the RAM role.
Look up Existing Role Resource
Get an existing Role 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?: RoleState, opts?: CustomResourceOptions): Role
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
assume_role_policy_document: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
document: Optional[str] = None,
force: Optional[bool] = None,
max_session_duration: Optional[int] = None,
name: Optional[str] = None,
ram_users: Optional[Sequence[str]] = None,
role_id: Optional[str] = None,
role_name: Optional[str] = None,
services: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
version: Optional[str] = None) -> Role
func GetRole(ctx *Context, name string, id IDInput, state *RoleState, opts ...ResourceOption) (*Role, error)
public static Role Get(string name, Input<string> id, RoleState? state, CustomResourceOptions? opts = null)
public static Role get(String name, Output<String> id, RoleState state, CustomResourceOptions options)
resources: _: type: alicloud:ram:Role 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.
- Arn string
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- Assume
Role stringPolicy Document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- Create
Time string - (Available since v1.252.0) The time when the RAM role was created.
- Description string
- The description of the RAM role.
- Document string
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - Force bool
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - Max
Session intDuration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - Name string
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - Ram
Users List<string> - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Role
Id string - The ID of the RAM role.
- Role
Name string - The name of the RAM role.
- Services List<string>
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Dictionary<string, string>
- The list of tags for the role.
- Version string
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
- Arn string
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- Assume
Role stringPolicy Document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- Create
Time string - (Available since v1.252.0) The time when the RAM role was created.
- Description string
- The description of the RAM role.
- Document string
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - Force bool
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - Max
Session intDuration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - Name string
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - Ram
Users []string - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Role
Id string - The ID of the RAM role.
- Role
Name string - The name of the RAM role.
- Services []string
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - map[string]string
- The list of tags for the role.
- Version string
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
- arn String
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- assume
Role StringPolicy Document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- create
Time String - (Available since v1.252.0) The time when the RAM role was created.
- description String
- The description of the RAM role.
- document String
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - force Boolean
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - max
Session IntegerDuration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - name String
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - ram
Users List<String> - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - role
Id String - The ID of the RAM role.
- role
Name String - The name of the RAM role.
- services List<String>
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Map<String,String>
- The list of tags for the role.
- version String
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
- arn string
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- assume
Role stringPolicy Document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- create
Time string - (Available since v1.252.0) The time when the RAM role was created.
- description string
- The description of the RAM role.
- document string
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - force boolean
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - max
Session numberDuration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - name string
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - ram
Users string[] - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - role
Id string - The ID of the RAM role.
- role
Name string - The name of the RAM role.
- services string[]
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - {[key: string]: string}
- The list of tags for the role.
- version string
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
- arn str
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- assume_
role_ strpolicy_ document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- create_
time str - (Available since v1.252.0) The time when the RAM role was created.
- description str
- The description of the RAM role.
- document str
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - force bool
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - max_
session_ intduration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - name str
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - ram_
users Sequence[str] - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - role_
id str - The ID of the RAM role.
- role_
name str - The name of the RAM role.
- services Sequence[str]
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Mapping[str, str]
- The list of tags for the role.
- version str
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
- arn String
- The Alibaba Cloud Resource Name (ARN) of the RAM role.
- assume
Role StringPolicy Document - The trust policy that specifies one or more trusted entities to assume the RAM role. The trusted entities can be Alibaba Cloud accounts, Alibaba Cloud services, or identity providers (IdPs).
- create
Time String - (Available since v1.252.0) The time when the RAM role was created.
- description String
- The description of the RAM role.
- document String
- Field
document
has been deprecated from provider version 1.252.0. New fieldassume_role_policy_document
instead. - force Boolean
- Specifies whether to force delete the Role. Default value:
false
. Valid values: - max
Session NumberDuration - The maximum session time of the RAM role. Default value:
3600
. Valid values:3600
to43200
. - name String
- Field
name
has been deprecated from provider version 1.252.0. New fieldrole_name
instead. - ram
Users List<String> - Field
ram_users
has been deprecated from provider version 1.49.0. New fielddocument
instead. - role
Id String - The ID of the RAM role.
- role
Name String - The name of the RAM role.
- services List<String>
- Field
services
has been deprecated from provider version 1.49.0. New fielddocument
instead. - Map<String>
- The list of tags for the role.
- version String
- Field
version
has been deprecated from provider version 1.49.0. New fielddocument
instead.
Import
RAM Role can be imported using the id, e.g.
$ pulumi import alicloud:ram/role:Role example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.