Class PolicyAttachmentState.Builder
- java.lang.Object
-
- com.pulumi.aws.organizations.inputs.PolicyAttachmentState.Builder
-
- Enclosing class:
- PolicyAttachmentState
public static final class PolicyAttachmentState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(PolicyAttachmentState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyAttachmentStatebuild()PolicyAttachmentState.BuilderpolicyId(com.pulumi.core.Output<java.lang.String> policyId)PolicyAttachmentState.BuilderpolicyId(java.lang.String policyId)PolicyAttachmentState.BuilderskipDestroy(com.pulumi.core.Output<java.lang.Boolean> skipDestroy)PolicyAttachmentState.BuilderskipDestroy(java.lang.Boolean skipDestroy)PolicyAttachmentState.BuildertargetId(com.pulumi.core.Output<java.lang.String> targetId)PolicyAttachmentState.BuildertargetId(java.lang.String targetId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(PolicyAttachmentState defaults)
-
-
Method Detail
-
policyId
public PolicyAttachmentState.Builder policyId(@Nullable 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 PolicyAttachmentState.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 PolicyAttachmentState.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 PolicyAttachmentState.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 PolicyAttachmentState.Builder targetId(@Nullable 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 PolicyAttachmentState.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 PolicyAttachmentState build()
-
-