Class PolicyAttachmentArgs.Builder

  • Enclosing class:
    PolicyAttachmentArgs

    public static final class PolicyAttachmentArgs.Builder
    extends java.lang.Object
    • 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