pub fn is_duplicate_policy_attachment_exception(&self) -> bool {
        matches!(
            &self.kind,
            AttachPolicyErrorKind::DuplicatePolicyAttachmentException(_)
        )
    }
/// Returns `true` if the error kind is `AttachPolicyErrorKind::DuplicatePolicyAttachmentException`.
Returns `true` if the error kind is `AttachPolicyErrorKind::DuplicatePolicyAttachmentException`.
Returns ` true ` if the error kind is ` AttachPolicyErrorKind :: DuplicatePolicyAttachmentException ` .
pub fn is_duplicate_policy_attachment_exception(&self) -> bool {
        matches!(
            &self.kind,
            AttachPolicyErrorKind::DuplicatePolicyAttachmentException(_)
        )
    }
pub fn is_duplicate_policy_attachment_exception ( & self ) -> bool { matches ! ( self kind AttachPolicyErrorKind DuplicatePolicyAttachmentException ( ) ) }
Returns `true` if the error kind is `AttachPolicyErrorKind::DuplicatePolicyAttachmentException`.
Returns ` true ` if the error kind is ` AttachPolicyErrorKind :: DuplicatePolicyAttachmentException ` .
&self
&self