volcenginecc.iam.Policy
策略是对权限的一种描述,IAM用户、用户组或角色均需通过关联策略来赋予权限。当系统预设策略不能满足要求时,您可以创建自定义策略,对权限进行细粒度的定义。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
policyDemo:
type: volcenginecc:iam:Policy
name: PolicyDemo
properties:
policyName: PolicyDemo
policyType: Custom
description: PolicyDemo description
policyDocument: '{"Statement":[{"Action":["clb:DescribeAclAttributes","clb:DescribeHealthCheckLogProjectAttributes","clb:DescribeListenerAttributes","clb:DescribeListenerHealth","clb:DescribeLoadBalancerAttributes","clb:DescribeLoadBalancerHealth","clb:DescribeLoadBalancersBilling","clb:DescribeNLBListenerAttributes","clb:DescribeNLBListenerCertificates","clb:DescribeNLBListenerHealth","clb:DescribeNLBListeners","clb:DescribeNLBServerGroupAttributes","clb:DescribeNLBServerGroups","clb:DescribeNLBZones","clb:DescribeNetworkLoadBalancerAttributes","clb:DescribeNetworkLoadBalancers","clb:DescribeServerGroupAttributes","clb:DescribeZones","clb:ListTagsForNLBResources","clb:DescribeAcls","clb:DescribeCertificates","clb:DescribeHealthCheckLogTopicAttributes","clb:DescribeListeners","clb:DescribeLoadBalancerSpecs","clb:DescribeLoadBalancers","clb:DescribeRules","clb:DescribeServerGroups","clb:ListTagsForResources","clb:TagNLBResources","clb:TagResources","clb:UntagNLBResources","clb:UntagResources"],"Effect":"Allow","Resource":["*"]}]}'
policyUsers:
- name: test
policy_scope:
- project_name: default
policy_scope_type: test
project_display_name: test
policyRoles:
- name: roles
policy_scope:
- project_name: default
policyUserGroups:
- name: test
policy_scope:
- project_name: default
Create Policy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Policy(name: string, args: PolicyArgs, opts?: CustomResourceOptions);
@overload
def Policy(resource_name: str,
args: PolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Policy(resource_name: str,
opts: Optional[ResourceOptions] = None,
policy_document: Optional[str] = None,
policy_name: Optional[str] = None,
policy_type: Optional[str] = None,
category: Optional[str] = None,
description: Optional[str] = None,
policy_roles: Optional[Sequence[PolicyPolicyRoleArgs]] = None,
policy_user_groups: Optional[Sequence[PolicyPolicyUserGroupArgs]] = None,
policy_users: Optional[Sequence[PolicyPolicyUserArgs]] = None)
func NewPolicy(ctx *Context, name string, args PolicyArgs, opts ...ResourceOption) (*Policy, error)
public Policy(string name, PolicyArgs args, CustomResourceOptions? opts = null)
public Policy(String name, PolicyArgs args)
public Policy(String name, PolicyArgs args, CustomResourceOptions options)
type: volcenginecc:iam:Policy
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 PolicyArgs
- 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 PolicyArgs
- 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 PolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyArgs
- 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 policyResource = new Volcenginecc.Iam.Policy("policyResource", new()
{
PolicyDocument = "string",
PolicyName = "string",
PolicyType = "string",
Category = "string",
Description = "string",
PolicyRoles = new[]
{
new Volcenginecc.Iam.Inputs.PolicyPolicyRoleArgs
{
Name = "string",
PolicyScopes = new[]
{
new Volcenginecc.Iam.Inputs.PolicyPolicyRolePolicyScopeArgs
{
ProjectName = "string",
},
},
},
},
PolicyUserGroups = new[]
{
new Volcenginecc.Iam.Inputs.PolicyPolicyUserGroupArgs
{
Name = "string",
PolicyScopes = new[]
{
new Volcenginecc.Iam.Inputs.PolicyPolicyUserGroupPolicyScopeArgs
{
ProjectName = "string",
},
},
},
},
PolicyUsers = new[]
{
new Volcenginecc.Iam.Inputs.PolicyPolicyUserArgs
{
Name = "string",
PolicyScopes = new[]
{
new Volcenginecc.Iam.Inputs.PolicyPolicyUserPolicyScopeArgs
{
ProjectName = "string",
},
},
},
},
});
example, err := iam.NewPolicy(ctx, "policyResource", &iam.PolicyArgs{
PolicyDocument: pulumi.String("string"),
PolicyName: pulumi.String("string"),
PolicyType: pulumi.String("string"),
Category: pulumi.String("string"),
Description: pulumi.String("string"),
PolicyRoles: iam.PolicyPolicyRoleArray{
&iam.PolicyPolicyRoleArgs{
Name: pulumi.String("string"),
PolicyScopes: iam.PolicyPolicyRolePolicyScopeArray{
&iam.PolicyPolicyRolePolicyScopeArgs{
ProjectName: pulumi.String("string"),
},
},
},
},
PolicyUserGroups: iam.PolicyPolicyUserGroupArray{
&iam.PolicyPolicyUserGroupArgs{
Name: pulumi.String("string"),
PolicyScopes: iam.PolicyPolicyUserGroupPolicyScopeArray{
&iam.PolicyPolicyUserGroupPolicyScopeArgs{
ProjectName: pulumi.String("string"),
},
},
},
},
PolicyUsers: iam.PolicyPolicyUserArray{
&iam.PolicyPolicyUserArgs{
Name: pulumi.String("string"),
PolicyScopes: iam.PolicyPolicyUserPolicyScopeArray{
&iam.PolicyPolicyUserPolicyScopeArgs{
ProjectName: pulumi.String("string"),
},
},
},
},
})
var policyResource = new Policy("policyResource", PolicyArgs.builder()
.policyDocument("string")
.policyName("string")
.policyType("string")
.category("string")
.description("string")
.policyRoles(PolicyPolicyRoleArgs.builder()
.name("string")
.policyScopes(PolicyPolicyRolePolicyScopeArgs.builder()
.projectName("string")
.build())
.build())
.policyUserGroups(PolicyPolicyUserGroupArgs.builder()
.name("string")
.policyScopes(PolicyPolicyUserGroupPolicyScopeArgs.builder()
.projectName("string")
.build())
.build())
.policyUsers(PolicyPolicyUserArgs.builder()
.name("string")
.policyScopes(PolicyPolicyUserPolicyScopeArgs.builder()
.projectName("string")
.build())
.build())
.build());
policy_resource = volcenginecc.iam.Policy("policyResource",
policy_document="string",
policy_name="string",
policy_type="string",
category="string",
description="string",
policy_roles=[{
"name": "string",
"policy_scopes": [{
"project_name": "string",
}],
}],
policy_user_groups=[{
"name": "string",
"policy_scopes": [{
"project_name": "string",
}],
}],
policy_users=[{
"name": "string",
"policy_scopes": [{
"project_name": "string",
}],
}])
const policyResource = new volcenginecc.iam.Policy("policyResource", {
policyDocument: "string",
policyName: "string",
policyType: "string",
category: "string",
description: "string",
policyRoles: [{
name: "string",
policyScopes: [{
projectName: "string",
}],
}],
policyUserGroups: [{
name: "string",
policyScopes: [{
projectName: "string",
}],
}],
policyUsers: [{
name: "string",
policyScopes: [{
projectName: "string",
}],
}],
});
type: volcenginecc:iam:Policy
properties:
category: string
description: string
policyDocument: string
policyName: string
policyRoles:
- name: string
policyScopes:
- projectName: string
policyType: string
policyUserGroups:
- name: string
policyScopes:
- projectName: string
policyUsers:
- name: string
policyScopes:
- projectName: string
Policy 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 Policy resource accepts the following input properties:
- Policy
Document string - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- Policy
Name string - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- Policy
Type string - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- Category string
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- Description string
- 策略描述,长度不超过128。
- Policy
Roles List<Volcengine.Policy Policy Role> - Policy
User List<Volcengine.Groups Policy Policy User Group> - Policy
Users List<Volcengine.Policy Policy User>
- Policy
Document string - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- Policy
Name string - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- Policy
Type string - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- Category string
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- Description string
- 策略描述,长度不超过128。
- Policy
Roles []PolicyPolicy Role Args - Policy
User []PolicyGroups Policy User Group Args - Policy
Users []PolicyPolicy User Args
- policy
Document String - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy
Name String - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Type String - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- category String
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- description String
- 策略描述,长度不超过128。
- policy
Roles List<PolicyPolicy Role> - policy
User List<PolicyGroups Policy User Group> - policy
Users List<PolicyPolicy User>
- policy
Document string - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy
Name string - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Type string - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- category string
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- description string
- 策略描述,长度不超过128。
- policy
Roles PolicyPolicy Role[] - policy
User PolicyGroups Policy User Group[] - policy
Users PolicyPolicy User[]
- policy_
document str - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy_
name str - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy_
type str - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- category str
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- description str
- 策略描述,长度不超过128。
- policy_
roles Sequence[PolicyPolicy Role Args] - policy_
user_ Sequence[Policygroups Policy User Group Args] - policy_
users Sequence[PolicyPolicy User Args]
- policy
Document String - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy
Name String - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Type String - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- category String
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- description String
- 策略描述,长度不超过128。
- policy
Roles List<Property Map> - policy
User List<Property Map>Groups - policy
Users List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Policy resource produces the following output properties:
- Attachment
Count int - 策略绑定的身份数量。
- Created
Time string - 策略创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Service intRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- Policy
Trn string - 策略的TRN。
- Updated
Time string - 策略更新时间。
- Attachment
Count int - 策略绑定的身份数量。
- Created
Time string - 策略创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Service intRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- Policy
Trn string - 策略的TRN。
- Updated
Time string - 策略更新时间。
- attachment
Count Integer - 策略绑定的身份数量。
- created
Time String - 策略创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- is
Service IntegerRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy
Trn String - 策略的TRN。
- updated
Time String - 策略更新时间。
- attachment
Count number - 策略绑定的身份数量。
- created
Time string - 策略创建时间。
- id string
- The provider-assigned unique ID for this managed resource.
- is
Service numberRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy
Trn string - 策略的TRN。
- updated
Time string - 策略更新时间。
- attachment_
count int - 策略绑定的身份数量。
- created_
time str - 策略创建时间。
- id str
- The provider-assigned unique ID for this managed resource.
- is_
service_ introle_ policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy_
trn str - 策略的TRN。
- updated_
time str - 策略更新时间。
- attachment
Count Number - 策略绑定的身份数量。
- created
Time String - 策略创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- is
Service NumberRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy
Trn String - 策略的TRN。
- updated
Time String - 策略更新时间。
Look up Existing Policy Resource
Get an existing Policy 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?: PolicyState, opts?: CustomResourceOptions): Policy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attachment_count: Optional[int] = None,
category: Optional[str] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
is_service_role_policy: Optional[int] = None,
policy_document: Optional[str] = None,
policy_name: Optional[str] = None,
policy_roles: Optional[Sequence[PolicyPolicyRoleArgs]] = None,
policy_trn: Optional[str] = None,
policy_type: Optional[str] = None,
policy_user_groups: Optional[Sequence[PolicyPolicyUserGroupArgs]] = None,
policy_users: Optional[Sequence[PolicyPolicyUserArgs]] = None,
updated_time: Optional[str] = None) -> Policy
func GetPolicy(ctx *Context, name string, id IDInput, state *PolicyState, opts ...ResourceOption) (*Policy, error)
public static Policy Get(string name, Input<string> id, PolicyState? state, CustomResourceOptions? opts = null)
public static Policy get(String name, Output<String> id, PolicyState state, CustomResourceOptions options)
resources: _: type: volcenginecc:iam:Policy 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.
- Attachment
Count int - 策略绑定的身份数量。
- Category string
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- Created
Time string - 策略创建时间。
- Description string
- 策略描述,长度不超过128。
- Is
Service intRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- Policy
Document string - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- Policy
Name string - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- Policy
Roles List<Volcengine.Policy Policy Role> - Policy
Trn string - 策略的TRN。
- Policy
Type string - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- Policy
User List<Volcengine.Groups Policy Policy User Group> - Policy
Users List<Volcengine.Policy Policy User> - Updated
Time string - 策略更新时间。
- Attachment
Count int - 策略绑定的身份数量。
- Category string
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- Created
Time string - 策略创建时间。
- Description string
- 策略描述,长度不超过128。
- Is
Service intRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- Policy
Document string - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- Policy
Name string - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- Policy
Roles []PolicyPolicy Role Args - Policy
Trn string - 策略的TRN。
- Policy
Type string - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- Policy
User []PolicyGroups Policy User Group Args - Policy
Users []PolicyPolicy User Args - Updated
Time string - 策略更新时间。
- attachment
Count Integer - 策略绑定的身份数量。
- category String
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- created
Time String - 策略创建时间。
- description String
- 策略描述,长度不超过128。
- is
Service IntegerRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy
Document String - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy
Name String - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Roles List<PolicyPolicy Role> - policy
Trn String - 策略的TRN。
- policy
Type String - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
User List<PolicyGroups Policy User Group> - policy
Users List<PolicyPolicy User> - updated
Time String - 策略更新时间。
- attachment
Count number - 策略绑定的身份数量。
- category string
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- created
Time string - 策略创建时间。
- description string
- 策略描述,长度不超过128。
- is
Service numberRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy
Document string - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy
Name string - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Roles PolicyPolicy Role[] - policy
Trn string - 策略的TRN。
- policy
Type string - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
User PolicyGroups Policy User Group[] - policy
Users PolicyPolicy User[] - updated
Time string - 策略更新时间。
- attachment_
count int - 策略绑定的身份数量。
- category str
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- created_
time str - 策略创建时间。
- description str
- 策略描述,长度不超过128。
- is_
service_ introle_ policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy_
document str - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy_
name str - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy_
roles Sequence[PolicyPolicy Role Args] - policy_
trn str - 策略的TRN。
- policy_
type str - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy_
user_ Sequence[Policygroups Policy User Group Args] - policy_
users Sequence[PolicyPolicy User Args] - updated_
time str - 策略更新时间。
- attachment
Count Number - 策略绑定的身份数量。
- category String
- 系统预设策略所属的分类,通常为服务代码,对于自定义策略该字段不会返回值。
- created
Time String - 策略创建时间。
- description String
- 策略描述,长度不超过128。
- is
Service NumberRole Policy - 是否是服务关联角色的策略,0代表否,1代表是。
- policy
Document String - 策略语法内容,例如:{"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]}
- policy
Name String - 策略名,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Roles List<Property Map> - policy
Trn String - 策略的TRN。
- policy
Type String - 策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
User List<Property Map>Groups - policy
Users List<Property Map> - updated
Time String - 策略更新时间。
Supporting Types
PolicyPolicyRole, PolicyPolicyRoleArgs
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes List<Volcengine.Policy Policy Role Policy Scope>
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes []PolicyPolicy Role Policy Scope
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<PolicyPolicy Role Policy Scope>
- name string
- 对应用户、角色、用户组的名称。
- policy
Scopes PolicyPolicy Role Policy Scope[]
- name str
- 对应用户、角色、用户组的名称。
- policy_
scopes Sequence[PolicyPolicy Role Policy Scope]
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<Property Map>
PolicyPolicyRolePolicyScope, PolicyPolicyRolePolicyScopeArgs
- Project
Name string - 项目名。
- Project
Name string - 项目名。
- project
Name String - 项目名。
- project
Name string - 项目名。
- project_
name str - 项目名。
- project
Name String - 项目名。
PolicyPolicyUser, PolicyPolicyUserArgs
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes List<Volcengine.Policy Policy User Policy Scope>
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes []PolicyPolicy User Policy Scope
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<PolicyPolicy User Policy Scope>
- name string
- 对应用户、角色、用户组的名称。
- policy
Scopes PolicyPolicy User Policy Scope[]
- name str
- 对应用户、角色、用户组的名称。
- policy_
scopes Sequence[PolicyPolicy User Policy Scope]
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<Property Map>
PolicyPolicyUserGroup, PolicyPolicyUserGroupArgs
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes List<Volcengine.Policy Policy User Group Policy Scope>
- Name string
- 对应用户、角色、用户组的名称。
- Policy
Scopes []PolicyPolicy User Group Policy Scope
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<PolicyPolicy User Group Policy Scope>
- name string
- 对应用户、角色、用户组的名称。
- policy
Scopes PolicyPolicy User Group Policy Scope[]
- name str
- 对应用户、角色、用户组的名称。
- policy_
scopes Sequence[PolicyPolicy User Group Policy Scope]
- name String
- 对应用户、角色、用户组的名称。
- policy
Scopes List<Property Map>
PolicyPolicyUserGroupPolicyScope, PolicyPolicyUserGroupPolicyScopeArgs
- Project
Name string - 项目名。
- Project
Name string - 项目名。
- project
Name String - 项目名。
- project
Name string - 项目名。
- project_
name str - 项目名。
- project
Name String - 项目名。
PolicyPolicyUserPolicyScope, PolicyPolicyUserPolicyScopeArgs
- Project
Name string - 项目名。
- Project
Name string - 项目名。
- project
Name String - 项目名。
- project
Name string - 项目名。
- project_
name str - 项目名。
- project
Name String - 项目名。
Import
$ pulumi import volcenginecc:iam/policy:Policy example "policy_name|policy_type"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcenginecc
Terraform Provider.