Package com.pulumi.aws.organizations
Class PolicyAttachmentArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.organizations.PolicyAttachmentArgs.Builder
-
- Enclosing class:
- PolicyAttachmentArgs
public static final class PolicyAttachmentArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(PolicyAttachmentArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyAttachmentArgs
build()
PolicyAttachmentArgs.Builder
policyId(com.pulumi.core.Output<java.lang.String> policyId)
PolicyAttachmentArgs.Builder
policyId(java.lang.String policyId)
PolicyAttachmentArgs.Builder
skipDestroy(com.pulumi.core.Output<java.lang.Boolean> skipDestroy)
PolicyAttachmentArgs.Builder
skipDestroy(java.lang.Boolean skipDestroy)
PolicyAttachmentArgs.Builder
targetId(com.pulumi.core.Output<java.lang.String> targetId)
PolicyAttachmentArgs.Builder
targetId(java.lang.String targetId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(PolicyAttachmentArgs defaults)
-
-
Method Detail
-
policyId
public PolicyAttachmentArgs.Builder policyId(com.pulumi.core.Output<java.lang.String> policyId)
- Parameters:
policyId
- The unique identifier (ID) of the policy that you want to attach to the target.- Returns:
- builder
-
policyId
public PolicyAttachmentArgs.Builder policyId(java.lang.String policyId)
- Parameters:
policyId
- The unique identifier (ID) of the policy that you want to attach to the target.- Returns:
- builder
-
skipDestroy
public PolicyAttachmentArgs.Builder skipDestroy(@Nullable com.pulumi.core.Output<java.lang.Boolean> skipDestroy)
- Parameters:
skipDestroy
- If set to `true`, destroy will **not** detach the policy and instead just remove the resource from state. This can be useful in situations where the attachment must be preserved to meet the AWS minimum requirement of 1 attached policy.- Returns:
- builder
-
skipDestroy
public PolicyAttachmentArgs.Builder skipDestroy(java.lang.Boolean skipDestroy)
- Parameters:
skipDestroy
- If set to `true`, destroy will **not** detach the policy and instead just remove the resource from state. This can be useful in situations where the attachment must be preserved to meet the AWS minimum requirement of 1 attached policy.- Returns:
- builder
-
targetId
public PolicyAttachmentArgs.Builder targetId(com.pulumi.core.Output<java.lang.String> targetId)
- Parameters:
targetId
- The unique identifier (ID) of the root, organizational unit, or account number that you want to attach the policy to.- Returns:
- builder
-
targetId
public PolicyAttachmentArgs.Builder targetId(java.lang.String targetId)
- Parameters:
targetId
- The unique identifier (ID) of the root, organizational unit, or account number that you want to attach the policy to.- Returns:
- builder
-
build
public PolicyAttachmentArgs build()
-
-