Class PolicyAttachmentState


  • public final class PolicyAttachmentState
    extends com.pulumi.resources.ResourceArgs
    • 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.