Package com.pulumi.aws.xray
Class ResourcePolicyArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.xray.ResourcePolicyArgs.Builder
-
- Enclosing class:
- ResourcePolicyArgs
public static final class ResourcePolicyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(ResourcePolicyArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcePolicyArgsbuild()ResourcePolicyArgs.BuilderbypassPolicyLockoutCheck(com.pulumi.core.Output<java.lang.Boolean> bypassPolicyLockoutCheck)ResourcePolicyArgs.BuilderbypassPolicyLockoutCheck(java.lang.Boolean bypassPolicyLockoutCheck)ResourcePolicyArgs.BuilderpolicyDocument(com.pulumi.core.Output<java.lang.String> policyDocument)ResourcePolicyArgs.BuilderpolicyDocument(java.lang.String policyDocument)ResourcePolicyArgs.BuilderpolicyName(com.pulumi.core.Output<java.lang.String> policyName)ResourcePolicyArgs.BuilderpolicyName(java.lang.String policyName)ResourcePolicyArgs.BuilderpolicyRevisionId(com.pulumi.core.Output<java.lang.String> policyRevisionId)ResourcePolicyArgs.BuilderpolicyRevisionId(java.lang.String policyRevisionId)ResourcePolicyArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)ResourcePolicyArgs.Builderregion(java.lang.String region)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ResourcePolicyArgs defaults)
-
-
Method Detail
-
bypassPolicyLockoutCheck
public ResourcePolicyArgs.Builder bypassPolicyLockoutCheck(@Nullable com.pulumi.core.Output<java.lang.Boolean> bypassPolicyLockoutCheck)
- Parameters:
bypassPolicyLockoutCheck- Whether to bypass the resource policy lockout safety check. Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately. Use this parameter only when you include a policy in the request and you intend to prevent the principal that is making the request from making a subsequent PutResourcePolicy request. The default value is `false`.- Returns:
- builder
-
bypassPolicyLockoutCheck
public ResourcePolicyArgs.Builder bypassPolicyLockoutCheck(java.lang.Boolean bypassPolicyLockoutCheck)
- Parameters:
bypassPolicyLockoutCheck- Whether to bypass the resource policy lockout safety check. Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately. Use this parameter only when you include a policy in the request and you intend to prevent the principal that is making the request from making a subsequent PutResourcePolicy request. The default value is `false`.- Returns:
- builder
-
policyDocument
public ResourcePolicyArgs.Builder policyDocument(com.pulumi.core.Output<java.lang.String> policyDocument)
- Parameters:
policyDocument- JSON string of the resource policy or resource policy document, which can be up to 5kb in size.- Returns:
- builder
-
policyDocument
public ResourcePolicyArgs.Builder policyDocument(java.lang.String policyDocument)
- Parameters:
policyDocument- JSON string of the resource policy or resource policy document, which can be up to 5kb in size.- Returns:
- builder
-
policyName
public ResourcePolicyArgs.Builder policyName(com.pulumi.core.Output<java.lang.String> policyName)
- Parameters:
policyName- Name of the resource policy. Must be unique within a specific Amazon Web Services account. The following arguments are optional:- Returns:
- builder
-
policyName
public ResourcePolicyArgs.Builder policyName(java.lang.String policyName)
- Parameters:
policyName- Name of the resource policy. Must be unique within a specific Amazon Web Services account. The following arguments are optional:- Returns:
- builder
-
policyRevisionId
public ResourcePolicyArgs.Builder policyRevisionId(@Nullable com.pulumi.core.Output<java.lang.String> policyRevisionId)
- Parameters:
policyRevisionId- Specific policy revision, to ensure an atomic create operation. By default the resource policy is created if it does not exist, or updated with an incremented revision ID. The revision ID is unique to each policy in the account. If the policy revision ID does not match the latest revision ID, the operation will fail with an InvalidPolicyRevisionIdException exception. You can also provide a PolicyRevisionId of 0. In this case, the operation will fail with an InvalidPolicyRevisionIdException exception if a resource policy with the same name already exists.- Returns:
- builder
-
policyRevisionId
public ResourcePolicyArgs.Builder policyRevisionId(java.lang.String policyRevisionId)
- Parameters:
policyRevisionId- Specific policy revision, to ensure an atomic create operation. By default the resource policy is created if it does not exist, or updated with an incremented revision ID. The revision ID is unique to each policy in the account. If the policy revision ID does not match the latest revision ID, the operation will fail with an InvalidPolicyRevisionIdException exception. You can also provide a PolicyRevisionId of 0. In this case, the operation will fail with an InvalidPolicyRevisionIdException exception if a resource policy with the same name already exists.- Returns:
- builder
-
region
public ResourcePolicyArgs.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public ResourcePolicyArgs.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
build
public ResourcePolicyArgs build()
-
-