Class PolicyAttachmentState
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.aws.organizations.inputs.PolicyAttachmentState
-
public final class PolicyAttachmentState extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PolicyAttachmentState.Builder
-
Field Summary
Fields Modifier and Type Field Description static PolicyAttachmentState
Empty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyAttachmentState.Builder
builder()
static PolicyAttachmentState.Builder
builder(PolicyAttachmentState defaults)
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
policyId()
java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>
skipDestroy()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
targetId()
-
-
-
Field Detail
-
Empty
public static final PolicyAttachmentState Empty
-
-
Method Detail
-
policyId
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> policyId()
- Returns:
- The unique identifier (ID) of the policy that you want to attach to the target.
-
skipDestroy
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> skipDestroy()
- Returns:
- 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.
-
targetId
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> targetId()
- Returns:
- The unique identifier (ID) of the root, organizational unit, or account number that you want to attach the policy to.
-
builder
public static PolicyAttachmentState.Builder builder()
-
builder
public static PolicyAttachmentState.Builder builder(PolicyAttachmentState defaults)
-
-