public static final class ManagedPolicy.Builder extends Object implements software.amazon.jsii.Builder<ManagedPolicy>
ManagedPolicy.| Modifier and Type | Method and Description |
|---|---|
ManagedPolicy |
build() |
static ManagedPolicy.Builder |
create(com.aliyun.ros.cdk.core.Construct scope,
String id) |
static ManagedPolicy.Builder |
create(com.aliyun.ros.cdk.core.Construct scope,
String id,
Boolean enableResourcePropertyConstraint) |
ManagedPolicy.Builder |
description(com.aliyun.ros.cdk.core.IResolvable description)
Property description: Specifies the authorization policy description, containing up to 1024 characters.
|
ManagedPolicy.Builder |
description(String description)
Property description: Specifies the authorization policy description, containing up to 1024 characters.
|
ManagedPolicy.Builder |
groups(com.aliyun.ros.cdk.core.IResolvable groups)
Property groups: The names of groups to attach to this policy.
|
ManagedPolicy.Builder |
groups(List<? extends Object> groups)
Property groups: The names of groups to attach to this policy.
|
ManagedPolicy.Builder |
ignoreExisting(Boolean ignoreExisting)
Property ignoreExisting: Whether to ignore existing policy False: ROS will perform a uniqueness check.If a policy with the same name exists, an error will be reported when creating it.
|
ManagedPolicy.Builder |
ignoreExisting(com.aliyun.ros.cdk.core.IResolvable ignoreExisting)
Property ignoreExisting: Whether to ignore existing policy False: ROS will perform a uniqueness check.If a policy with the same name exists, an error will be reported when creating it.
|
ManagedPolicy.Builder |
policyDocument(com.aliyun.ros.cdk.core.IResolvable policyDocument)
Property policyDocument: A policy document that describes what actions are allowed on which resources.
|
ManagedPolicy.Builder |
policyDocument(RosManagedPolicy.PolicyDocumentProperty policyDocument)
Property policyDocument: A policy document that describes what actions are allowed on which resources.
|
ManagedPolicy.Builder |
policyDocumentUnchecked(com.aliyun.ros.cdk.core.IResolvable policyDocumentUnchecked)
Property policyDocumentUnchecked: A policy document that describes what actions are allowed on which resources.
|
ManagedPolicy.Builder |
policyDocumentUnchecked(Map<String,? extends Object> policyDocumentUnchecked)
Property policyDocumentUnchecked: A policy document that describes what actions are allowed on which resources.
|
ManagedPolicy.Builder |
policyName(com.aliyun.ros.cdk.core.IResolvable policyName)
Property policyName: Specifies the authorization policy name, containing up to 128 characters.
|
ManagedPolicy.Builder |
policyName(String policyName)
Property policyName: Specifies the authorization policy name, containing up to 128 characters.
|
ManagedPolicy.Builder |
roles(com.aliyun.ros.cdk.core.IResolvable roles)
Property roles: The names of roles to attach to this policy.
|
ManagedPolicy.Builder |
roles(List<? extends Object> roles)
Property roles: The names of roles to attach to this policy.
|
ManagedPolicy.Builder |
users(com.aliyun.ros.cdk.core.IResolvable users)
Property users: The names of users to attach to this policy.
|
ManagedPolicy.Builder |
users(List<? extends Object> users)
Property users: The names of users to attach to this policy.
|
public static ManagedPolicy.Builder create(com.aliyun.ros.cdk.core.Construct scope, String id, Boolean enableResourcePropertyConstraint)
scope - This parameter is required.id - This parameter is required.enableResourcePropertyConstraint - ManagedPolicy.Builder.public static ManagedPolicy.Builder create(com.aliyun.ros.cdk.core.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ManagedPolicy.Builder.public ManagedPolicy.Builder policyName(String policyName)
policyName - Property policyName: Specifies the authorization policy name, containing up to 128 characters. This parameter is required.thispublic ManagedPolicy.Builder policyName(com.aliyun.ros.cdk.core.IResolvable policyName)
policyName - Property policyName: Specifies the authorization policy name, containing up to 128 characters. This parameter is required.thispublic ManagedPolicy.Builder description(String description)
description - Property description: Specifies the authorization policy description, containing up to 1024 characters. This parameter is required.thispublic ManagedPolicy.Builder description(com.aliyun.ros.cdk.core.IResolvable description)
description - Property description: Specifies the authorization policy description, containing up to 1024 characters. This parameter is required.thispublic ManagedPolicy.Builder groups(List<? extends Object> groups)
groups - Property groups: The names of groups to attach to this policy. This parameter is required.thispublic ManagedPolicy.Builder groups(com.aliyun.ros.cdk.core.IResolvable groups)
groups - Property groups: The names of groups to attach to this policy. This parameter is required.thispublic ManagedPolicy.Builder ignoreExisting(Boolean ignoreExisting)
ignoreExisting - Property ignoreExisting: Whether to ignore existing policy False: ROS will perform a uniqueness check.If a policy with the same name exists, an error will be reported when creating it. True: ROS will not check the uniqueness.If there is a policy with the same name, the policy creation process will be ignored. If the policy is not created by ROS, it will be ignored during update and delete stage. This parameter is required.thispublic ManagedPolicy.Builder ignoreExisting(com.aliyun.ros.cdk.core.IResolvable ignoreExisting)
ignoreExisting - Property ignoreExisting: Whether to ignore existing policy False: ROS will perform a uniqueness check.If a policy with the same name exists, an error will be reported when creating it. True: ROS will not check the uniqueness.If there is a policy with the same name, the policy creation process will be ignored. If the policy is not created by ROS, it will be ignored during update and delete stage. This parameter is required.thispublic ManagedPolicy.Builder policyDocument(com.aliyun.ros.cdk.core.IResolvable policyDocument)
policyDocument - Property policyDocument: A policy document that describes what actions are allowed on which resources. This parameter is required.thispublic ManagedPolicy.Builder policyDocument(RosManagedPolicy.PolicyDocumentProperty policyDocument)
policyDocument - Property policyDocument: A policy document that describes what actions are allowed on which resources. This parameter is required.thispublic ManagedPolicy.Builder policyDocumentUnchecked(com.aliyun.ros.cdk.core.IResolvable policyDocumentUnchecked)
If it is specified, PolicyDocument will be ignored.
policyDocumentUnchecked - Property policyDocumentUnchecked: A policy document that describes what actions are allowed on which resources. This parameter is required.thispublic ManagedPolicy.Builder policyDocumentUnchecked(Map<String,? extends Object> policyDocumentUnchecked)
If it is specified, PolicyDocument will be ignored.
policyDocumentUnchecked - Property policyDocumentUnchecked: A policy document that describes what actions are allowed on which resources. This parameter is required.thispublic ManagedPolicy.Builder roles(List<? extends Object> roles)
roles - Property roles: The names of roles to attach to this policy. This parameter is required.thispublic ManagedPolicy.Builder roles(com.aliyun.ros.cdk.core.IResolvable roles)
roles - Property roles: The names of roles to attach to this policy. This parameter is required.thispublic ManagedPolicy.Builder users(List<? extends Object> users)
users - Property users: The names of users to attach to this policy. This parameter is required.thispublic ManagedPolicy.Builder users(com.aliyun.ros.cdk.core.IResolvable users)
users - Property users: The names of users to attach to this policy. This parameter is required.thispublic ManagedPolicy build()
build in interface software.amazon.jsii.Builder<ManagedPolicy>ManagedPolicy.Copyright © 2023. All rights reserved.